diff --git a/dsql-app/.local_dist/BUILD_ID b/dsql-app/.local_dist/BUILD_ID index 970c60c..9609e44 100644 --- a/dsql-app/.local_dist/BUILD_ID +++ b/dsql-app/.local_dist/BUILD_ID @@ -1 +1 @@ -BYGBoTeiBrkCn0j6XrihZ \ No newline at end of file +H18gzOjVUv9E4GCco-0Rs \ 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 a71df5b..e23c3e1 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/BYGBoTeiBrkCn0j6XrihZ/_buildManifest.js", - "static/BYGBoTeiBrkCn0j6XrihZ/_ssgManifest.js" + "static/H18gzOjVUv9E4GCco-0Rs/_buildManifest.js", + "static/H18gzOjVUv9E4GCco-0Rs/_ssgManifest.js" ], "rootMainFiles": [], "rootMainFilesTree": {}, @@ -17,26 +17,26 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/3298-73758aefe44233a6.js", "static/css/60c48dd4b3301227.css", - "static/chunks/pages/index-d8f75819eb449ffc.js" + "static/chunks/pages/index-f4368d8e4e652a17.js" ], "/404": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/404-386ef30594132ecb.js" + "static/chunks/pages/404-9880de8d6a22dd12.js" ], "/500": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/500-81f6b715960091f2.js" + "static/chunks/pages/500-3ae265ebb1fb2898.js" ], "/_app": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/css/40a7197d287e4ac0.css", - "static/chunks/pages/_app-f20525907c2f070a.js" + "static/chunks/pages/_app-d52aa62bd48f175b.js" ], "/_error": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -49,44 +49,44 @@ "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/3298-73758aefe44233a6.js", - "static/chunks/pages/about-69331c972566352a.js" + "static/chunks/pages/about-54414f59f6957c50.js" ], "/admin": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/9950-e6be92fc61deb6e3.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/9950-f96c0c56ed7fb229.js", "static/chunks/pages/admin-eaa52fa698c19034.js" ], "/admin/[user_id]": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/9950-e6be92fc61deb6e3.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/9950-f96c0c56ed7fb229.js", "static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js" ], "/admin/[user_id]/api-keys": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", + "static/chunks/7391-2cf158002dcd120b.js", "static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js" ], "/admin/[user_id]/connect": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/pages/admin/[user_id]/connect-364ec8656f8ec17d.js" ], "/admin/[user_id]/databases": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/9950-e6be92fc61deb6e3.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/9950-f96c0c56ed7fb229.js", "static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js" ], "/admin/[user_id]/databases/[single]": [ @@ -94,60 +94,61 @@ "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", - "static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/2438-ac276572cee5ba87.js", + "static/chunks/pages/admin/[user_id]/databases/[single]-d46a6f8520fb0f98.js" ], "/admin/[user_id]/databases/[single]/connect": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js" + "static/chunks/pages/admin/[user_id]/databases/[single]/connect-adbc0491ae2ebe2b.js" ], "/admin/[user_id]/databases/[single]/edit-database": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/3867-2967250ea22dd40a.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/8319-0fac4a0bd5bb0c06.js", + "static/chunks/6272-34d9d0c839440fe4.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1fa62e8a98f0558f.js" ], "/admin/[user_id]/databases/[single]/schema": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/2438-ac276572cee5ba87.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/schema-36ce4fa776487307.js" ], "/admin/[user_id]/databases/[single]/shell": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/shell-7f3f6c277320a54e.js" ], "/admin/[user_id]/databases/[single]/tables": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/2438-ac276572cee5ba87.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables-987bf588cbdcec1c.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -156,12 +157,12 @@ "static/chunks/94726e6d-33de6887e71ace1a.js", "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/9660-628b42bc1127aefa.js", - "static/chunks/6460-ab4ab8caec784ffc.js", + "static/chunks/6460-15d2e5543b20c3c6.js", "static/chunks/2829-608af754738e12fc.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", + "static/chunks/2438-ac276572cee5ba87.js", "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/1580-68f706d212c5eb63.js", "static/chunks/6830-80ccce098977dfd6.js", @@ -174,11 +175,11 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/94726e6d-33de6887e71ace1a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/6460-ab4ab8caec784ffc.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/6460-15d2e5543b20c3c6.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", + "static/chunks/2438-ac276572cee5ba87.js", "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js" ], @@ -189,14 +190,14 @@ "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/9660-628b42bc1127aefa.js", "static/chunks/2829-608af754738e12fc.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", + "static/chunks/2438-ac276572cee5ba87.js", "static/chunks/1580-68f706d212c5eb63.js", "static/chunks/6830-80ccce098977dfd6.js", "static/chunks/4403-dd72a46996d6c5f9.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js" + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ebcd5c78ed2bf0ee.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -205,11 +206,11 @@ "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/9660-628b42bc1127aefa.js", "static/chunks/2829-608af754738e12fc.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/1580-68f706d212c5eb63.js", "static/chunks/6830-80ccce098977dfd6.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js" + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-8e1a59a792f137ba.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -217,10 +218,10 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/9660-628b42bc1127aefa.js", - "static/chunks/7287-dadce6acb3d43d67.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", + "static/chunks/7287-a0cc766f27863bfc.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/2438-ac276572cee5ba87.js", "static/chunks/1580-68f706d212c5eb63.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js" ], @@ -230,11 +231,11 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/94726e6d-33de6887e71ace1a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/6460-ab4ab8caec784ffc.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/6460-15d2e5543b20c3c6.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", + "static/chunks/2438-ac276572cee5ba87.js", "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js" ], @@ -244,9 +245,9 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/94726e6d-33de6887e71ace1a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/6460-ab4ab8caec784ffc.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/6460-15d2e5543b20c3c6.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", "static/chunks/8311-87e8d6ec01c2e05f.js", "static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js" @@ -256,101 +257,102 @@ "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/2438-aa7e9f2130cd81f0.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/2438-ac276572cee5ba87.js", "static/chunks/6383-02bec644b1a9f0a8.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js" + "static/chunks/pages/admin/[user_id]/databases/[single]/users-8c51f0fefd294914.js" ], "/admin/[user_id]/databases/[single]/users/[user]": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-1eafec6fde026d0e.js" ], "/admin/[user_id]/databases/[single]/users/[user]/change-password": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-bed64535d8eb2ad5.js" ], "/admin/[user_id]/databases/[single]/users/add-social-logins": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d336e424d1e0ebac.js" ], "/admin/[user_id]/databases/[single]/users/add-user": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/8076-c34ce8d8512255e7.js", + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8076-c8df432e3a6a7868.js", "static/chunks/9268-6ca91a807cecf2b4.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js" + "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-2f84f689db965c75.js" ], "/admin/[user_id]/databases/add-database": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/3867-2967250ea22dd40a.js", - "static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8319-0fac4a0bd5bb0c06.js", + "static/chunks/6272-34d9d0c839440fe4.js", + "static/chunks/pages/admin/[user_id]/databases/add-database-2339ca478d7ae04e.js" ], "/admin/[user_id]/media": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/2480-c3f2e7fac796ce00.js", - "static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/9551-762af3f63f78e37c.js", + "static/chunks/pages/admin/[user_id]/media-f2e686b58b412be8.js" ], "/admin/[user_id]/media/[...folder]": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/2480-c3f2e7fac796ce00.js", - "static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/9551-762af3f63f78e37c.js", + "static/chunks/pages/admin/[user_id]/media/[...folder]-235f83b98f9f8c89.js" ], "/admin/[user_id]/schema": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js" + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js" ], "/admin/[user_id]/settings": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/6999-765fb1dc8daf2756.js", - "static/chunks/4060-34ac8bf5371932b9.js", - "static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/8319-0fac4a0bd5bb0c06.js", + "static/chunks/7384-e241cdc2266f0106.js", + "static/chunks/pages/admin/[user_id]/settings-cda1d1faa0aab729.js" ], "/admin/[user_id]/users": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", + "static/chunks/7391-2cf158002dcd120b.js", "static/chunks/6383-02bec644b1a9f0a8.js", "static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js" ], @@ -358,14 +360,14 @@ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", + "static/chunks/7391-2cf158002dcd120b.js", "static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js" ], "/admin/[user_id]/users/databases": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", + "static/chunks/7391-2cf158002dcd120b.js", "static/chunks/6383-02bec644b1a9f0a8.js", "static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js" ], @@ -373,7 +375,7 @@ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/7391-b72414be460cf0f0.js", + "static/chunks/7391-2cf158002dcd120b.js", "static/chunks/6383-02bec644b1a9f0a8.js", "static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js" ], @@ -381,72 +383,73 @@ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/8261-3c3582fc434ee275.js", - "static/chunks/7391-b72414be460cf0f0.js", - "static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7391-2cf158002dcd120b.js", + "static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-01fbcda5d58677e8.js" ], "/blog": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/blog-8c70d46c8352664e.js" + "static/chunks/pages/blog-cf9f462c9f1c79b1.js" ], "/contact": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/contact-f2a4f3c2e97b25fb.js" + "static/chunks/pages/contact-015582f94d67d7a7.js" ], "/create-account": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/6999-765fb1dc8daf2756.js", - "static/chunks/4060-34ac8bf5371932b9.js", - "static/chunks/pages/create-account-59f89a25241640f4.js" + "static/chunks/7384-e241cdc2266f0106.js", + "static/chunks/pages/create-account-7bb20b64ad6eb40f.js" ], "/docs": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/docs-354599f34e0b3ced.js" + "static/chunks/pages/docs-eb06d9879a01da6a.js" ], "/docs/[page]": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js" + "static/chunks/pages/docs/[page]-21bb67b33655c0e4.js" ], "/docs/[page]/[sub-page]": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js" + "static/chunks/pages/docs/[page]/[sub-page]-b127761336e2c313.js" ], "/email-verification": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/email-verification-fec9fecfdcb56e8d.js" + "static/chunks/pages/email-verification-b9eba009160729b0.js" ], "/login": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/6999-765fb1dc8daf2756.js", - "static/chunks/pages/login-f10f3645e54e61fd.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/7384-e241cdc2266f0106.js", + "static/chunks/pages/login-4d7e5dc8974c6b4f.js" ], "/logout": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/logout-455304f72b658ce6.js" + "static/chunks/1335-9b647f464da8b044.js", + "static/chunks/pages/logout-5713792f28342582.js" ], "/privacy": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/privacy-3a1d5e267140271e.js" + "static/chunks/pages/privacy-2af1bbeba3506b4f.js" ], "/redirect": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -458,13 +461,13 @@ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/reset-password-404836a50d6e9e32.js" + "static/chunks/pages/reset-password-6b15512e80d3b798.js" ], "/send-password-reset-link": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js" + "static/chunks/pages/send-password-reset-link-757b50458fb65f03.js" ], "/su": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -556,7 +559,7 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/5810-7c3a3c4731750dc7.js", - "static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js" + "static/chunks/pages/su/load-balancing-795c8e791cf6f943.js" ], "/su/login": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -570,7 +573,7 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/5810-7c3a3c4731750dc7.js", - "static/chunks/pages/su/servers-d48477ad4489744d.js" + "static/chunks/pages/su/servers-2ebfc87f21d94901.js" ], "/su/users": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -585,7 +588,7 @@ "static/chunks/main-96e9b4333635008a.js", "static/chunks/6428-c106bf6efb539d8c.js", "static/chunks/5810-7c3a3c4731750dc7.js", - "static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js" + "static/chunks/pages/su/users/[single]-41de29bb2522359b.js" ], "/su/users/new": [ "static/chunks/webpack-5381863dc66a9c32.js", @@ -598,13 +601,13 @@ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/terms-37fb4519d728aa13.js" + "static/chunks/pages/terms-d72b3b55d9844241.js" ], "/unsubscribe": [ "static/chunks/webpack-5381863dc66a9c32.js", "static/chunks/framework-5f43af1a76a0211a.js", "static/chunks/main-96e9b4333635008a.js", - "static/chunks/pages/unsubscribe-e6a608d5b8cea536.js" + "static/chunks/pages/unsubscribe-2c980eb18878b40b.js" ] }, "ampFirstPages": [] diff --git a/dsql-app/.local_dist/cache/config.json b/dsql-app/.local_dist/cache/config.json index e839215..3eb195a 100644 --- a/dsql-app/.local_dist/cache/config.json +++ b/dsql-app/.local_dist/cache/config.json @@ -1,7 +1,7 @@ { "telemetry": { - "notifiedAt": "1736839426953", - "anonymousId": "4d1be282580018eb008e2249955feed0c6237277a0e637a83767a4769b152164", - "salt": "1a9e1de1f27111c95fb831cf98c2802f" + "notifiedAt": "1736868332768", + "anonymousId": "6a300a41530a771a92373549f3faa1b6b53150cd61ed4aaeebd60556e47700d3", + "salt": "9802e1c1b929d131bd4e660358ac4c7d" } } \ 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 2712537..2a22cf3 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 b9492ca..0775b37 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 3e882cf..0a9f21c 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 59176b1..2aa7d20 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 ece2940..0f8aa4a 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 20e4054..9640871 100644 --- a/dsql-app/.local_dist/next-minimal-server.js.nft.json +++ b/dsql-app/.local_dist/next-minimal-server.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.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/launchEditor.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../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/stack-trace-parser.cjs.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/browserslist/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/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/caniuse-lite/package.json","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.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/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js"]} \ No newline at end of file +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.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/lib/semver-noop.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../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/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/caniuse-lite/package.json","../node_modules/caniuse-lite/data/agents.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/dist/unpacker/browsers.js","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/next-server.js.nft.json b/dsql-app/.local_dist/next-server.js.nft.json index f124f7f..788307a 100644 --- a/dsql-app/.local_dist/next-server.js.nft.json +++ b/dsql-app/.local_dist/next-server.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/node-environment.js","../node_modules/next/dist/server/require-hook.js","../node_modules/next/dist/server/node-polyfill-crypto.js","../node_modules/next/dist/lib/find-pages-dir.js","../node_modules/next/dist/server/request-meta.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/server/route-kind.js","../node_modules/next/dist/lib/generate-interception-routes-rewrites.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/lib/format-dynamic-import-path.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/lib/format-server-error.js","../node_modules/react-dom/package.json","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/server/lib/node-fs-methods.js","../node_modules/next/dist/server/route-matches/pages-api-route-match.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/async-callback-set.js","../node_modules/next/dist/shared/lib/invariant-error.js","../node_modules/next/dist/server/after/awaiter.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/constants.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/module-loader/route-module-loader.js","../node_modules/next/dist/server/route-modules/pages/module.render.js","../node_modules/next/dist/server/route-modules/app-page/module.render.js","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.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/get-next-pathname-info.js","../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/server/web/spec-extension/adapters/next-request.js","../node_modules/sharp/package.json","../node_modules/next/dist/server/response-cache/index.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/react-dom/index.js","../node_modules/sharp/lib/index.js","../node_modules/@next/env/package.json","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/lib/url.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../node_modules/next/dist/server/node-environment-extensions/node-crypto.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/lib/revalidate.js","../node_modules/next/dist/server/lib/etag.js","../node_modules/next/dist/server/lib/lru-cache.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/metadata/is-metadata-route.js","../node_modules/next/dist/server/app-render/action-utils.js","../node_modules/next/dist/server/app-render/encryption-utils.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-remote-pattern.js","../node_modules/next/dist/shared/lib/match-local-pattern.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.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/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/scheduler.js","../node_modules/next/dist/lib/batcher.js","../node_modules/next/dist/server/web/spec-extension/request.js","../node_modules/next/dist/server/response-cache/utils.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/server/lib/to-route.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/web/spec-extension/adapters/headers.js","../node_modules/next/dist/server/lib/incremental-cache/fetch-cache.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/server/lib/incremental-cache/shared-revalidate-timings.js","../node_modules/next/dist/server/web/sandbox/context.js","../node_modules/next/dist/server/web/sandbox/sandbox.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/shared/lib/router/utils/index.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/path-to-regexp/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/send/package.json","../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/shared/lib/amp-context.shared-runtime.js","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/server/request/fallback-params.js","../node_modules/next/dist/server/lib/format-hostname.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/normalizers/locale-route-normalizer.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js","../node_modules/next/dist/server/route-matcher-providers/pages-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/stream-utils/encodedTags.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/web/adapter.js","../node_modules/next/dist/server/instrumentation/utils.js","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/experimental/testmode/fetch.js","../node_modules/next/dist/experimental/testmode/context.js","../node_modules/next/dist/experimental/testmode/httpget.js","../node_modules/next/dist/shared/lib/utils/warn-once.js","../node_modules/next/dist/server/normalizers/request/rsc.js","../node_modules/next/dist/server/lib/router-utils/decode-path-params.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/server/app-render/work-async-storage.external.js","../node_modules/next/dist/compiled/@hapi/accept/package.json","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/client/components/redirect-status-code.js","../node_modules/next/dist/server/api-utils/get-cookie-parser.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/send/index.js","../node_modules/scheduler/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/scheduler/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/lib/pick.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/@img/sharp-libvips-linux-x64/package.json","../node_modules/@img/sharp-libvips-linux-x64/versions.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../node_modules/@img/sharp-linux-x64/LICENSE","../node_modules/@img/sharp-linux-x64/package.json","../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../node_modules/@img/sharp-linuxmusl-x64/package.json","../node_modules/next/dist/compiled/ws/package.json","../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/next/dist/lib/is-app-route-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/lib/is-app-page-route.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/web/sandbox/resource-managers.js","../node_modules/next/dist/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matchers/app-route-route-matcher.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.js","../node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js","../node_modules/next/dist/server/route-matchers/app-page-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-route-matcher.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/globals.js","../node_modules/next/dist/server/web/get-edge-preview-props.js","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/web/spec-extension/response.js","../node_modules/next/dist/server/app-render/dynamic-rendering.js","../node_modules/next/dist/server/web/spec-extension/fetch-event.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/resize.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/server/normalizers/request/suffix.js","../node_modules/next/dist/server/normalizers/request/prefix.js","../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/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/app-page-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/cjs/scheduler.development.js","../node_modules/next/dist/server/route-modules/app-page/module.js","../node_modules/next/dist/server/route-modules/pages/module.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/next/dist/server/normalizers/built/app/index.js","../node_modules/next/dist/server/normalizers/built/pages/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/experimental/testmode/server-edge.js","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/libvips.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/dynamic-rendering-utils.js","../node_modules/next/dist/server/after/after-context.js","../node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.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/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/color/index.js","../node_modules/next/dist/server/render.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.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/launchEditor.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/color/package.json","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/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/debug/index.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/package.json","../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/pages/pages-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/semver/functions/satisfies.js","../node_modules/semver/functions/coerce.js","../node_modules/semver/functions/gte.js","../node_modules/next/dist/server/after/revalidation-utils.js","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/semver/package.json","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/index.js","../node_modules/next/dist/shared/lib/loadable.shared-runtime.js","../node_modules/next/dist/shared/lib/router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/html-context.shared-runtime.js","../node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js","../node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","../node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/color-convert/index.js","../node_modules/color-string/index.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/client/components/redirect-error.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/parse-and-validate-flight-router-state.js","../node_modules/next/dist/server/app-render/get-segment-param.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/server/app-render/get-script-nonce-from-header.js","../node_modules/next/dist/server/app-render/server-inserted-html.js","../node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js","../node_modules/next/dist/server/app-render/create-error-handler.js","../node_modules/next/dist/server/app-render/required-scripts.js","../node_modules/next/dist/server/app-render/flight-render-result.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/get-asset-query-string.js","../node_modules/next/dist/server/app-render/create-component-tree.js","../node_modules/next/dist/server/app-render/postponed-state.js","../node_modules/next/dist/server/app-render/use-flight-response.js","../node_modules/next/dist/server/app-render/app-render-prerender-utils.js","../node_modules/next/dist/client/components/app-router.js","../node_modules/next/dist/server/app-render/prospective-render-utils.js","../node_modules/next/dist/server/app-render/app-render-render-utils.js","../node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/server/app-render/parse-loader-tree.js","../node_modules/next/dist/server/app-render/cache-signal.js","../node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js","../node_modules/next/dist/server/resume-data-cache/resume-data-cache.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js","../node_modules/next/dist/shared/lib/router/action-queue.js","../node_modules/next/dist/server/lib/trace/utils.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/color-convert/package.json","../node_modules/color-string/package.json","../node_modules/semver/classes/semver.js","../node_modules/semver/functions/parse.js","../node_modules/semver/internal/re.js","../node_modules/semver/classes/range.js","../node_modules/semver/functions/compare.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/lib/page-types.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/next/dist/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/lib/client-reference.js","../node_modules/next/dist/client/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/color-name/package.json","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/semver/internal/constants.js","../node_modules/semver/internal/parse-options.js","../node_modules/semver/internal/identifiers.js","../node_modules/semver/internal/debug.js","../node_modules/semver/internal/lrucache.js","../node_modules/semver/classes/comparator.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/client/components/is-next-router-error.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/has-loading-component-in-tree.js","../node_modules/next/dist/server/app-render/get-preloadable-fonts.js","../node_modules/next/dist/server/app-render/interop-default.js","../node_modules/next/dist/server/lib/app-dir-module.js","../node_modules/next/dist/server/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/error-boundary.js","../node_modules/next/dist/client/components/use-reducer.js","../node_modules/next/dist/client/components/unresolved-thenable.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/nav-failure-handler.js","../node_modules/next/dist/server/app-render/render-css-resource.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/server/resume-data-cache/cache-store.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/simple-swizzle/index.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/router-reducer/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/client/components/segment-cache/prefetch.js","../node_modules/next/dist/client/components/http-access-fallback/error-boundary.js","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/color-name/index.js","../node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js","../node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","../node_modules/next/dist/compiled/react-is/index.js","../node_modules/next/dist/compiled/strip-ansi/index.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/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js","../node_modules/simple-swizzle/package.json","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/busboy/package.json","../node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/normalize-trailing-slash.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/server/lib/clone-response.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/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/is-arrayish/index.js","../node_modules/next/dist/client/components/segment-cache/scheduler.js","../node_modules/next/dist/client/components/segment-cache/cache-key.js","../node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js","../node_modules/next/dist/server/dev/hot-reloader-types.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/is-arrayish/package.json","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.js","../node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js","../node_modules/next/dist/client/components/router-reducer/apply-flight-data.js","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/semver/functions/gt.js","../node_modules/semver/functions/neq.js","../node_modules/semver/functions/eq.js","../node_modules/semver/functions/lt.js","../node_modules/semver/functions/lte.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/format-webpack-messages.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/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/use-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","../node_modules/next/dist/lib/metadata/get-metadata-route.js","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/busboy/lib/utils.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/next/dist/client/app-find-source-map-url.js","../node_modules/next/dist/client/app-build-id.js","../node_modules/next/dist/client/components/segment-cache/cache.js","../node_modules/next/dist/shared/lib/hash.js","../node_modules/next/dist/client/assign-location.js","../node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js","../node_modules/next/dist/client/components/promise-queue.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js","../node_modules/next/dist/client/components/router-reducer/handle-mutable.js","../node_modules/next/dist/client/components/router-reducer/ppr-navigations.js","../node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js","../node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.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/segment-cache/navigation.js","../node_modules/next/dist/client/lib/console.js","../node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-reference-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/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/container/StaticIndicator.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/CssReset.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/root-layout-missing-tags-error.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/BuildError.js","../node_modules/streamsearch/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.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/hydration-error-info.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/attach-hydration-error-state.js","../node_modules/next/dist/client/components/unauthorized.js","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/next/dist/client/components/forbidden.js","../node_modules/streamsearch/lib/sbmh.js","../node_modules/next/dist/client/components/segment-cache/tuple-map.js","../node_modules/next/dist/client/components/segment-cache/lru.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/export/helpers/is-dynamic-usage-error.js","../node_modules/next/dist/shared/lib/normalized-asset-prefix.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/LightningBolt.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CloseIcon.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-error-by-type.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/nodejs-inspector.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/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/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/component-stack-pseudo-html.js","../node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json","../node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.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/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/VersionStalenessInfo/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/hot-linked-text/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/LeftRightDialogHeader/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/copy-button/index.js","../node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json","../node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs","../node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stack-frame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CollapseIcon.js","../node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../node_modules/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/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/Toast/Toast.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/container/RuntimeError/CallStackFrame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/VersionStalenessInfo.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/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/LeftRightDialogHeader/LeftRightDialogHeader.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/CodeFrame/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/hooks/use-on-click-outside.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/EditorLink.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js","../node_modules/next/dist/compiled/anser/package.json","../node_modules/next/dist/compiled/anser/index.js","../node_modules/next/dist/compiled/css.escape/package.json","../node_modules/next/dist/compiled/platform/package.json","../node_modules/next/dist/compiled/css.escape/css.escape.js","../node_modules/next/dist/compiled/platform/platform.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js"]} \ No newline at end of file +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/react/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/require-hook.js","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/node-environment.js","../node_modules/next/dist/server/node-polyfill-crypto.js","../node_modules/next/dist/server/send-payload.js","../node_modules/next/dist/server/request-meta.js","../node_modules/next/dist/server/require.js","../node_modules/next/dist/lib/find-pages-dir.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/lib/constants.js","../node_modules/next/dist/server/setup-http-agent-env.js","../node_modules/next/dist/server/pipe-readable.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/lib/format-dynamic-import-path.js","../node_modules/next/dist/server/load-manifest.js","../node_modules/next/dist/server/route-kind.js","../node_modules/next/dist/lib/generate-interception-routes-rewrites.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/lib/format-server-error.js","../node_modules/react-dom/package.json","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/server/route-matches/pages-api-route-match.js","../node_modules/next/dist/server/lib/node-fs-methods.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/after/awaiter.js","../node_modules/next/dist/server/lib/async-callback-set.js","../node_modules/next/dist/shared/lib/invariant-error.js","../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/module-loader/route-module-loader.js","../node_modules/next/dist/server/route-modules/pages/module.render.js","../node_modules/next/dist/server/route-modules/app-page/module.render.js","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/sharp/package.json","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/querystring.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/remove-trailing-slash.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/server/web/spec-extension/adapters/next-request.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/sharp/lib/index.js","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/react-dom/index.js","../node_modules/@next/env/package.json","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/next/dist/lib/url.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/server/node-environment-extensions/random.js","../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../node_modules/next/dist/server/node-environment-extensions/date.js","../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../node_modules/next/dist/server/lib/revalidate.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/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/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/metadata/is-metadata-route.js","../node_modules/next/dist/shared/lib/deep-freeze.js","../node_modules/next/dist/server/lib/interception-routes.js","../node_modules/next/dist/shared/lib/image-blur-svg.js","../node_modules/next/dist/shared/lib/match-local-pattern.js","../node_modules/next/dist/shared/lib/match-remote-pattern.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/server/lib/module-loader/node-module-loader.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js","../node_modules/next/dist/shared/lib/segment.js","../node_modules/next/dist/shared/lib/escape-regexp.js","../node_modules/next/dist/server/base-http/helpers.js","../node_modules/next/dist/lib/scheduler.js","../node_modules/next/dist/lib/batcher.js","../node_modules/next/dist/server/web/spec-extension/request.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/server/response-cache/utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/next/dist/server/lib/to-route.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/web/spec-extension/adapters/headers.js","../node_modules/next/dist/server/lib/incremental-cache/shared-revalidate-timings.js","../node_modules/next/dist/server/lib/incremental-cache/fetch-cache.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/server/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/shared/lib/router/utils/index.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/compiled/send/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/image-size/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../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/server/patch-error-inspect.js","../node_modules/next/dist/server/request/fallback-params.js","../node_modules/next/dist/server/lib/format-hostname.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/normalizers/locale-route-normalizer.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js","../node_modules/next/dist/server/route-matcher-providers/app-page-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/lib/patch-set-header.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/after/builtin-request-context.js","../node_modules/next/dist/server/web/adapter.js","../node_modules/next/dist/server/stream-utils/encodedTags.js","../node_modules/next/dist/server/instrumentation/utils.js","../node_modules/next/dist/experimental/testmode/fetch.js","../node_modules/next/dist/experimental/testmode/context.js","../node_modules/next/dist/experimental/testmode/httpget.js","../node_modules/next/dist/shared/lib/utils/warn-once.js","../node_modules/next/dist/server/node-environment-extensions/utils.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/server/normalizers/request/rsc.js","../node_modules/next/dist/server/lib/router-utils/decode-path-params.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/compiled/@hapi/accept/package.json","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/client/components/redirect-status-code.js","../node_modules/next/dist/server/api-utils/get-cookie-parser.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/send/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/image-size/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/scheduler/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/scheduler/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/lib/pick.js","../node_modules/@img/sharp-libvips-linux-x64/package.json","../node_modules/@img/sharp-libvips-linux-x64/versions.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../node_modules/@img/sharp-linux-x64/LICENSE","../node_modules/@img/sharp-linux-x64/package.json","../node_modules/@img/sharp-linuxmusl-x64/package.json","../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/lib/is-app-route-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/lib/is-app-page-route.js","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/web/sandbox/resource-managers.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matchers/app-route-route-matcher.js","../node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js","../node_modules/next/dist/server/route-matchers/pages-route-matcher.js","../node_modules/next/dist/server/route-matchers/app-page-route-matcher.js","../node_modules/next/dist/server/async-storage/work-store.js","../node_modules/next/dist/server/web/get-edge-preview-props.js","../node_modules/next/dist/server/async-storage/request-store.js","../node_modules/next/dist/server/web/web-on-close.js","../node_modules/next/dist/server/web/globals.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware-webpack.js","../node_modules/next/dist/server/app-render/dynamic-rendering.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/server/web/spec-extension/response.js","../node_modules/next/dist/server/web/spec-extension/fetch-event.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/utility.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/channel.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.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/server/normalizers/request/suffix.js","../node_modules/next/dist/server/normalizers/request/prefix.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/next-server/pages-turbo.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/app-page-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/scheduler/cjs/scheduler.development.js","../node_modules/next/dist/server/route-modules/pages/module.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/next/dist/server/route-modules/app-page/module.js","../node_modules/next/dist/server/normalizers/built/app/index.js","../node_modules/next/dist/server/normalizers/built/pages/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/experimental/testmode/server-edge.js","../node_modules/next/dist/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/server/dynamic-rendering-utils.js","../node_modules/next/dist/server/route-matchers/route-matcher.js","../node_modules/next/dist/server/async-storage/draft-mode-provider.js","../node_modules/next/dist/server/after/after-context.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/lib/metadata/metadata-constants.js","../node_modules/next/dist/client/components/static-generation-bailout.js","../node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js","../node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/color/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.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/server/render.js","../node_modules/next/dist/server/route-modules/route-module.js","../node_modules/next/dist/server/app-render/app-render.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/color/package.json","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/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/compiled/@edge-runtime/cookies/package.json","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js","../node_modules/semver/functions/satisfies.js","../node_modules/semver/functions/gte.js","../node_modules/semver/functions/coerce.js","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../node_modules/next/dist/server/after/revalidation-utils.js","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/semver/package.json","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/index.js","../node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js","../node_modules/next/dist/shared/lib/router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/loadable.shared-runtime.js","../node_modules/next/dist/shared/lib/html-context.shared-runtime.js","../node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","../node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/color-string/index.js","../node_modules/color-convert/index.js","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/server/app-render/flight-render-result.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/server/app-render/get-script-nonce-from-header.js","../node_modules/next/dist/server/app-render/get-segment-param.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js","../node_modules/next/dist/server/app-render/server-inserted-html.js","../node_modules/next/dist/client/components/redirect-error.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/server/app-render/create-component-tree.js","../node_modules/next/dist/server/app-render/action-handler.js","../node_modules/next/dist/server/app-render/create-error-handler.js","../node_modules/next/dist/server/app-render/get-asset-query-string.js","../node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js","../node_modules/next/dist/server/app-render/use-flight-response.js","../node_modules/next/dist/server/app-render/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/postponed-state.js","../node_modules/next/dist/server/app-render/prospective-render-utils.js","../node_modules/next/dist/server/app-render/app-render-prerender-utils.js","../node_modules/next/dist/server/app-render/cache-signal.js","../node_modules/next/dist/server/app-render/required-scripts.js","../node_modules/next/dist/client/components/app-router.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js","../node_modules/next/dist/server/resume-data-cache/resume-data-cache.js","../node_modules/next/dist/server/app-render/parse-loader-tree.js","../node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js","../node_modules/next/dist/server/app-render/app-render-render-utils.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js","../node_modules/next/dist/shared/lib/router/action-queue.js","../node_modules/next/dist/server/lib/trace/utils.js","../node_modules/color-string/package.json","../node_modules/color-convert/package.json","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/semver/classes/range.js","../node_modules/semver/functions/compare.js","../node_modules/semver/classes/semver.js","../node_modules/semver/internal/re.js","../node_modules/semver/functions/parse.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/lib/page-types.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/color-convert/route.js","../node_modules/color-convert/conversions.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/color-name/package.json","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/lib/client-reference.js","../node_modules/next/dist/client/add-base-path.js","../node_modules/next/dist/client/remove-base-path.js","../node_modules/next/dist/client/has-base-path.js","../node_modules/next/dist/client/app-call-server.js","../node_modules/semver/internal/lrucache.js","../node_modules/semver/internal/parse-options.js","../node_modules/semver/classes/comparator.js","../node_modules/semver/internal/debug.js","../node_modules/semver/internal/constants.js","../node_modules/semver/internal/identifiers.js","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/next/dist/server/app-render/types.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/has-loading-component-in-tree.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/server/app-render/csrf-protection.js","../node_modules/next/dist/server/app-render/react-server.node.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/client/components/is-next-router-error.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/shared/lib/encode-uri-path.js","../node_modules/next/dist/server/app-render/render-css-resource.js","../node_modules/next/dist/server/resume-data-cache/cache-store.js","../node_modules/next/dist/client/components/app-router-announcer.js","../node_modules/next/dist/client/components/redirect-boundary.js","../node_modules/next/dist/client/components/error-boundary.js","../node_modules/next/dist/client/components/use-reducer.js","../node_modules/next/dist/client/components/unresolved-thenable.js","../node_modules/next/dist/client/components/nav-failure-handler.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/simple-swizzle/index.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/http-access-fallback/error-boundary.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/client/components/segment-cache/prefetch.js","../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/package.json","../node_modules/color-name/index.js","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.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/router-reducer/reducers/find-head-in-cache.js","../node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js","../node_modules/simple-swizzle/package.json","../node_modules/next/dist/client/components/router-reducer/prefetch-cache-utils.js","../node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js","../node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js","../node_modules/next/dist/client/components/router-reducer/router-reducer.js","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/busboy/package.json","../node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/normalize-trailing-slash.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/next/dist/server/lib/dedupe-fetch.js","../node_modules/next/dist/server/lib/clone-response.js","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/client/components/navigation.js","../node_modules/next/dist/client/components/navigation-untracked.js","../node_modules/is-arrayish/index.js","../node_modules/next/dist/client/components/segment-cache/cache-key.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.js","../node_modules/next/dist/client/components/segment-cache/scheduler.js","../node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js","../node_modules/next/dist/server/dev/hot-reloader-types.js","../node_modules/is-arrayish/package.json","../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/router-reducer/create-router-cache-key.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/semver/functions/eq.js","../node_modules/semver/functions/gt.js","../node_modules/semver/functions/neq.js","../node_modules/semver/functions/lt.js","../node_modules/semver/functions/lte.js","../node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/next/dist/lib/metadata/get-metadata-route.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/format-webpack-messages.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-websocket.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-component-stack.js","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/semver/package.json","../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/busboy/lib/utils.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/next/dist/client/app-find-source-map-url.js","../node_modules/next/dist/client/app-build-id.js","../node_modules/next/dist/shared/lib/hash.js","../node_modules/next/dist/client/components/segment-cache/cache.js","../node_modules/next/dist/client/assign-location.js","../node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js","../node_modules/next/dist/client/components/promise-queue.js","../node_modules/next/dist/client/components/router-reducer/handle-mutable.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.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-segment-mismatch.js","../node_modules/next/dist/client/components/router-reducer/ppr-navigations.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/segment-cache/navigation.js","../node_modules/next/dist/client/components/router-reducer/clear-cache-node-data-for-segment-path.js","../node_modules/next/dist/client/components/router-reducer/aliased-prefetch-navigations.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js","../node_modules/next/dist/client/lib/console.js","../node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-reference-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/ShadowPortal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/BuildError.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/CssReset.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/Base.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/Errors.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/ComponentStyles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/root-layout-missing-tags-error.js","../node_modules/streamsearch/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/attach-hydration-error-state.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/console-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/hydration-error-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/enqueue-client-error.js","../node_modules/next/dist/client/components/forbidden.js","../node_modules/next/dist/client/components/unauthorized.js","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/streamsearch/lib/sbmh.js","../node_modules/next/dist/client/components/segment-cache/tuple-map.js","../node_modules/next/dist/client/components/segment-cache/lru.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/export/helpers/is-dynamic-usage-error.js","../node_modules/next/dist/shared/lib/normalized-asset-prefix.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CloseIcon.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-error-by-type.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/nodejs-inspector.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/LightningBolt.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.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/Overlay/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/data/agents.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/dist/unpacker/browsers.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/Dialog/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/copy-button/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/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/container/RuntimeError/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/Terminal/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/next/dist/client/components/react-dev-overlay/internal/helpers/stack-frame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CollapseIcon.js","../node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../node_modules/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/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/container/RuntimeError/CallStackFrame.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/Toast/styles.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/Toast/Toast.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/Terminal/Terminal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.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/helpers/use-open-in-editor.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/components/Terminal/EditorLink.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js","../node_modules/next/dist/compiled/anser/package.json","../node_modules/next/dist/compiled/anser/index.js","../node_modules/next/dist/compiled/platform/package.json","../node_modules/next/dist/compiled/css.escape/package.json","../node_modules/next/dist/compiled/platform/platform.js","../node_modules/next/dist/compiled/css.escape/css.escape.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/prerender-manifest.json b/dsql-app/.local_dist/prerender-manifest.json index 11ef121..2394c5e 100644 --- a/dsql-app/.local_dist/prerender-manifest.json +++ b/dsql-app/.local_dist/prerender-manifest.json @@ -1 +1 @@ -{"version":4,"routes":{},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"311f02c94fe2ce6c8f3ed66832b010db","previewModeSigningKey":"035a8b4bc9a45fe20fc043f15dffd5a4b03e900b6e69589d922a1d3fef332a87","previewModeEncryptionKey":"e1dc138ce91f686804ec5d4ab11797095ebeeadfb17b3d28ea93ef5a5d3296cd"}} \ No newline at end of file +{"version":4,"routes":{},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/H18gzOjVUv9E4GCco-0Rs/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/H18gzOjVUv9E4GCco-0Rs/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["host","x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"d2164d04274cc51784b1eaaf76ed660f","previewModeSigningKey":"eb613665bdf28eca381a65026ef6b423a39ed6f3ffadf172c72fedef84ad48aa","previewModeEncryptionKey":"6c25a349994e4288cb539688e45686981666175ea971430292c338edba5ae532"}} \ 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 7c3f0b3..2ff68e9 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/BYGBoTeiBrkCn0j6XrihZ/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/BYGBoTeiBrkCn0j6XrihZ/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/H18gzOjVUv9E4GCco\\-0Rs/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/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/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/H18gzOjVUv9E4GCco\\-0Rs/unsubscribe.json$"}],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1251.js b/dsql-app/.local_dist/server/chunks/1251.js index 1986ecf..afebf5f 100644 --- a/dsql-app/.local_dist/server/chunks/1251.js +++ b/dsql-app/.local_dist/server/chunks/1251.js @@ -1 +1 @@ -"use strict";exports.id=1251,exports.ids=[1251],exports.modules={96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},98e3:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(72583),a=n.n(r),o=n(92652),s=n(30802),c=n(48786),i=n(37275),l=n(68829),u=n(7971);async function d({dbContext:e,paradigm:t,dbFullName:n,tableName:r,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:f,update:g,encryptionKey:h,encryptionSalt:y,useLocal:S}){let E=!!S||!e?.match(/dsql.user/i)&&(!n||!!n.match(/^datasquirel$/)),m=S?u.A:E?c.A:i.A;if(d?.date_created_timestamp&&delete d.date_created_timestamp,d?.date_updated_timestamp&&delete d.date_updated_timestamp,d?.date_updated&&delete d.date_updated,d?.date_updated_code&&delete d.date_updated_code,d?.date_created&&delete d.date_created,d?.date_created_code&&delete d.date_created_code,_&&"string"==typeof _){let a=E?await m(`SELECT * FROM \`${r}\` WHERE \`${_}\`=?`,[f]):await m({paradigm:"Read Only",queryString:`SELECT * FROM \`${n}\`.\`${r}\` WHERE \`${_}\`=?`,queryValues:[f]});if(a?.[0]&&!g)return null;if(a&&a[0]&&g)return await (0,s.A)({dbContext:e,paradigm:t,dbFullName:n,tableName:r,data:d,tableSchema:p,encryptionKey:h,encryptionSalt:y,identifierColumnName:_,identifierValue:f||""})}let A=Object.keys(d),D=[],N=[];for(let e=0;ee.fieldName==t):null,s=r&&r[0]?r[0]:null;if(null==n||void 0==n||s?.dataType?.match(/int$/i)&&"string"==typeof n&&!n?.match(/./))continue;s?.encrypted&&(n=(0,l.A)({data:n,encryptionKey:h,encryptionSalt:y}),console.log("DSQL: Encrypted value =>",n));let c=/<[^>]+>/g;(s?.richText||String(n).match(c))&&(n=a()(n,o.A)),s?.pattern&&!new RegExp(s.pattern,s.patternFlags||"").test(n)&&(console.log("DSQL: Pattern not matched =>",n),n=""),D.push("`"+t+"`"),"object"==typeof n&&(n=JSON.stringify(n)),"number"==typeof n?N.push(String(n)):N.push(n)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(D.push("`date_created`"),N.push(Date())),d?.date_created_code||(D.push("`date_created_code`"),N.push(Date.now())),d?.date_updated||(D.push("`date_updated`"),N.push(Date())),d?.date_updated_code||(D.push("`date_updated_code`"),N.push(Date.now()));let L=`INSERT INTO \`${n}\`.\`${r}\` (${D.join(",")}) VALUES (${N.map(()=>"?").join(",")})`;return E?await m(L,N):await m({paradigm:t,queryString:L,queryValues:N})}},30802:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(72583),a=n.n(r),o=n(92652),s=n(48786),c=n(37275),i=n(68829),l=n(7971);async function u({dbContext:e,paradigm:t,dbFullName:n,tableName:r,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:g,useLocal:h}){if(!u||!Object.keys(u).length)return null;let y=!!h||!e?.match(/dsql.user/i)&&(!n||!!n.match(/^datasquirel$/)),S=h?l.A:y?s.A:c.A,E=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===t):null,s=r&&r[0]?r[0]:null;if(null==n||void 0==n)continue;let c=/<[^>]+>/g;(s?.richText||String(n).match(c))&&(n=a()(n,o.A)),s?.encrypted&&(n=(0,i.A)({data:n,encryptionKey:f,encryptionSalt:g})),"object"==typeof n&&(n=JSON.stringify(n)),s?.pattern&&!new RegExp(s.pattern,s.patternFlags||"").test(n)&&(console.log("DSQL: Pattern not matched =>",n),n=""),"string"==typeof n&&n.match(/^null$/i)&&(n={toSqlString:function(){return"NULL"}}),"string"!=typeof n||n.match(/./i)||(n={toSqlString:function(){return"NULL"}}),m.push(`\`${t}\`=?`),"number"==typeof n?A.push(String(n)):A.push(n)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${n}\`.\`${r}\` SET ${m.join(",")} WHERE \`${p}\`=?`;return A.push(_),y?await S(D,A):await S({paradigm:t,queryString:D,queryValues:A})}},92652:(e,t,n)=>{n.d(t,{A:()=>r});let r={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(55511),a=n(79428);function o({data:e,encryptionKey:t,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,s=n||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!s?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let i=(0,r.scryptSync)(o,s,c),l=a.Buffer.alloc(16,0),u=(0,r.createCipheriv)("aes-192-cbc",i,l);try{let t=u.update(e,"utf8","hex");return t+=u.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},48786:(e,t,n)=>{n.d(t,{A:()=>r});async function r(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let n=await t.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},37275:(e,t,n)=>{async function r(e,t,n){try{if("string"==typeof t){let r=await e.query(a(t),n);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let n=[];for(let r=0;ro})},7971:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(9973),a=n.n(r),o=n(29021),s=n.n(o);async function c(...e){let t=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let n=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}}; \ No newline at end of file +"use strict";exports.id=1251,exports.ids=[1251],exports.modules={96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},98e3:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(72583),a=r.n(n),s=r(92652),o=r(30802),i=r(48786),c=r(37897),l=r(68829),u=r(62050);async function d({dbContext:e,paradigm:t,dbFullName:r,tableName:n,data:d,tableSchema:p,duplicateColumnName:_,duplicateColumnValue:S,update:f,encryptionKey:y,encryptionSalt:h,useLocal:g}){let D=!!g||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),A=g?u.A:D?i.A:c.A;if(d?.date_created_timestamp&&delete d.date_created_timestamp,d?.date_updated_timestamp&&delete d.date_updated_timestamp,d?.date_updated&&delete d.date_updated,d?.date_updated_code&&delete d.date_updated_code,d?.date_created&&delete d.date_created,d?.date_created_code&&delete d.date_created_code,_&&"string"==typeof _){let a=D?await A(`SELECT * FROM \`${n}\` WHERE \`${_}\`=?`,[S]):await A({paradigm:"Read Only",queryString:`SELECT * FROM \`${r}\`.\`${n}\` WHERE \`${_}\`=?`,queryValues:[S]});if(a?.[0]&&!f)return null;if(a&&a[0]&&f)return await (0,o.A)({dbContext:e,paradigm:t,dbFullName:r,tableName:n,data:d,tableSchema:p,encryptionKey:y,encryptionSalt:h,identifierColumnName:_,identifierValue:S||""})}let E=Object.keys(d),L=[],m=[];for(let e=0;ee.fieldName==t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r||o?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;o?.encrypted&&(r=(0,l.A)({data:r,encryptionKey:y,encryptionSalt:h}),console.log("DSQL: Encrypted value =>",r));let i=/<[^>]+>/g;(o?.richText||String(r).match(i))&&(r=a()(r,s.A)),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?m.push(String(r)):m.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(L.push("`date_created`"),m.push(Date())),d?.date_created_code||(L.push("`date_created_code`"),m.push(Date.now())),d?.date_updated||(L.push("`date_updated`"),m.push(Date())),d?.date_updated_code||(L.push("`date_updated_code`"),m.push(Date.now()));let N=`INSERT INTO \`${r}\`.\`${n}\` (${L.join(",")}) VALUES (${m.map(()=>"?").join(",")})`;return D?await A(N,m):await A({paradigm:t,queryString:N,queryValues:m})}},30802:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(72583),a=r.n(n),s=r(92652),o=r(48786),i=r(37897),c=r(68829),l=r(62050);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:S,encryptionSalt:f,useLocal:y}){if(!u||!Object.keys(u).length)return null;let h=!!y||!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),g=y?l.A:h?o.A:i.A,D=Object.keys(u),A=[],E=[];for(let e=0;ee.fieldName===t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;let i=/<[^>]+>/g;(o?.richText||String(r).match(i))&&(r=a()(r,s.A)),o?.encrypted&&(r=(0,c.A)({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"}}),A.push(`\`${t}\`=?`),"number"==typeof r?E.push(String(r)):E.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let L=`UPDATE \`${r}\`.\`${n}\` SET ${A.join(",")} WHERE \`${p}\`=?`;return E.push(_),h?await g(L,E):await g({paradigm:t,queryString:L,queryValues:E})}},92652:(e,t,r)=>{r.d(t,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(55511),a=r(79428),s=r(32443);function o({data:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:i,keyLen:c,algorithm:l,bufferAllocSize:u}=(0,s.A)({encryptionKey:t});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 d=(0,n.scryptSync)(o,i,c),p=a.Buffer.alloc(u,0),_=(0,n.createCipheriv)(l,d,p);try{let t=_.update(e,"utf8","hex");return t+=_.final("hex")}catch(t){return console.log("Error in encrypting =>",t.message),e}}},48786:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(7447);async function a(...e){let t=(0,n.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},37897:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(64292),a=r(7447);async function s({paradigm:e,queryString:t,queryValues:r}){let s="Read Only"==e?(0,a.A)({ro:!0}):(0,a.A)({fa:!0});try{return await (0,n.A)(s,t,r)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}},62050:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(7447);async function a(...e){let t=(0,n.A)();console.log("Querying ...");try{let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await t?.end()}}},64292:(e,t,r)=>{async function n(e,t,r){try{if("string"==typeof t){let n=await e.query(a(t),r);return JSON.parse(JSON.stringify(n))}if("object"!=typeof t)return null;{let r=[];for(let n=0;nn})},7447:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(9973),a=r.n(n);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,t,r)=>{r.d(t,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,r)=>{e.exports=r(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2282.js b/dsql-app/.local_dist/server/chunks/2282.js index 260a325..2a4e0bc 100644 --- a/dsql-app/.local_dist/server/chunks/2282.js +++ b/dsql-app/.local_dist/server/chunks/2282.js @@ -1,25 +1,17 @@ -"use strict";exports.id=2282,exports.ids=[2282],exports.modules={67619:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(29021),r=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,d=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||l||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== +"use strict";exports.id=2282,exports.ids=[2282],exports.modules={46083:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),i=t.n(s),n=t(32251),r=t(36138),d=t(27825),o=t.n(d);function c({targetField:e,fieldIndex:a,tableFields:s,setTableFields:d,refreshFieldsListRef:c,setActiveEdit:u,database:m,currentTable:x,user:p}){let h=e?.dataType?e.dataType.replace(/\d|\(|\)/g,""):null,f=e?.dataType?e.dataType.replace(/[^\d]/g,""):"200",g=t(94327),y=i().useRef(o().cloneDeep(e)),v=i().useRef(),[j,N]=i().useState(e),[w,b]=i().useState(e?.fieldName),[T,_]=i().useState(h),[F,S]=i().useState(f),[C,A]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[k,D]=i().useState(e?.richText&&!e?.encrypted?"Yes":"No"),V=!!T?.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:v,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{e.preventDefault(),d(e=>(e[a]=j,e)),c.current(e=>e+1);let t=e.target;t.closest(".table-field-wrapper")?.querySelector(".edit-table-field-section")?.classList.toggle("hidden")},children:[(0,l.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_"),N(e=>(e.fieldName=a.value,e.updatedField=!0,e.originName||(e.originName=w),e))},required:!0,defaultValue:w})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:C})})]})]}),(0,l.jsxs)("div",{className:"w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:a=>{let t=a.target;_(t.value),t.childNodes.forEach(e=>{e.value===t.value&&e.dataset.desc&&A(e.dataset.desc),e.value===t.value&&e.dataset.literal?(j.defaultValueLiteral=e.dataset.literal,j.nullValue=!1):delete j.defaultValueLiteral}),e.dataType=t.value+(t.value.match(/VARCHAR/)?`(${F||200})`:"")},defaultValue:T||void 0,children:g.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(F||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),T?.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:F||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:a=>{S(a.target.value),e.dataType=T+`(${a.target.value})`}})]})]}),T?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(r.A,{targetField:e})}),!e.dataType?.match(/text/i)&&!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:e?.notNullValue?"Yes":"No",onChange:a=>{console.log(e),"Yes"===a.target.value?e.notNullValue=!0:(e.notNullValue=!1,delete e.notNullValue)},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:j?.dataType?.match(/text$/i)?"Can't Set Default for text values":"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:j?.dataType?.match(/text$/i)?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:j?.defaultValue?j.defaultValue:j?.nullValue?"NULL":"",onInput:e=>{let a=e.target;j.dataType?.match(/text$/i)||N(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!V&&(0,l.jsx)(n.A,{database:m,setFieldData:N,setTableFields:d,tableFields:s,targetField:e,user:p,currentTable:x,fieldIndex:a})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:t=>{y.current&&(e=o().cloneDeep(y.current)),d(e=>{let t=o().cloneDeep(e);return a&&y.current&&(t[a]=o().cloneDeep(y.current)),t}),u&&u(!1)},children:"Cancel"})]})]})})}},32251:(e,a,t)=>{t.d(a,{A:()=>g});var l=t(8732),s=t(82015),i=t.n(s),n=t(83155),r=t(58150);function d({targetField:e}){if(!e?.richText)return null;let[a,t]=i().useState(e.cssFiles||[]),s=i().useRef(null);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,l.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,a)=>(0,l.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(r.A,{size:20,onClick:()=>{t(a=>a.filter(a=>a!==e))},className:"cursor-pointer hover:opacity-60 "})]},a+1)),(0,l.jsxs)("div",{className:"row w-full",children:[(0,l.jsx)(n.A,{name:"css-file",placeholder:"CSS file URL",elementRef:s}),(0,l.jsx)("button",{className:"secondary outlined",onClick:()=>{let e=s.current?.value;e?.match(/./)&&t(a=>[...new Set([...a,e])])},children:"Add"})]}),(0,l.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function o({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,l.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:e?.encrypted?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.encrypted=!0:(a.encrypted=!1,delete a.encrypted),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var c=t(93763);function u({targetField:e,setFieldData:a}){return null}function m({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,l.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:a=>{let t=a.target;t?.value?.length>0?e.pattern=t.value:delete e.pattern},defaultValue:e?.pattern}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:a=>{let t=a.target;t?.value?.length>0?e.patternFlags=t.value:delete e.patternFlags},defaultValue:e?.patternFlags})]})}var x=t(27825),p=t.n(x),h=t(84483);function f({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,l.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:e?.unique?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.unique=!0:(a.unique=!1,delete a.unique),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g({targetField:e,currentTable:a,database:t,tableFields:s,setTableFields:n,setFieldData:r,user:x,fieldIndex:g}){let[y,v]=i().useState(!1),j=i().useRef(p().cloneDeep(e));return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{v(!0)},children:"More"}),(0,l.jsx)(h.A,{open:y,onClose:()=>{j.current&&(e=p().cloneDeep(j.current)),v(!1)},maxWidth:"600px",children:(0,l.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,l.jsx)("div",{className:"w-full justify-between",children:(0,l.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,l.jsx)(d,{targetField:e}),(0,l.jsx)(f,{targetField:e,setFieldData:r}),(0,l.jsx)(o,{targetField:e,setFieldData:r}),a&&(0,l.jsx)(c.A,{targetField:e,setFieldData:r,database:t,tableFields:s,setTableFields:n,currentTable:a,user:x}),(0,l.jsx)(u,{targetField:e,setFieldData:r}),(0,l.jsx)(m,{targetField:e}),(0,l.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{v(!1)},children:"Done"})]})})]})}},471:(e,a,t)=>{t.d(a,{A:()=>F});var l=t(8732),s=t(82015),i=t.n(s);function n({tableFields:e,setTableFields:a,setRefresh:t,setPageRefresh:l,refreshFieldsListRef:s}){let i=e.findIndex(e=>"date_created"===e.fieldName);e.splice(i,0,{newTempField:!0}),a(e),s?.current&&s.current(e=>e+1)}t(80255);var r=t(51339),d=t(16757),o=t(42960),c=t(93763),u=t(46169);function m({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:m,user:x,isDelegated:p,setLoading:h}){let[f,g]=i().useState(e),[y,v]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(y?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(y?" rounded-t":" rounded")+(f.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(f.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:f.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:f.dataType}),f?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[f.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:f.foreignKey.destinationTableColumnName})," ",")"]})]}),f.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/))||f.foreignKey||d?.active_clone?.toString()?.match(/1/)?!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/)&&!d?.active_clone?.toString()?.match(/1/)?(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:a=>{window.confirm("Delete this foreign Key?")&&(delete e.foreignKey,h(!0),(0,u.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:m,database:d.db_full_name,dbSlug:d.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")}))},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,l.jsx)(i().Fragment,{}):(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{y?v(!1):v(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),y&&!p&&(0,l.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,l.jsx)(c.A,{targetField:e,setFieldData:g,tableFields:s,setTableFields:n,database:d,currentTable:m,user:x,setActiveEdit:v,activeClonedTable:!0})})]})}var x=t(32251),p=t(36138);function h({fieldIndex:e,setTableFields:a,database:s,user:n,isNewField:r,setLiteralValue:d,tempFieldData:o,setTempFieldData:c,dataTypeValue:u,setDataTypeValue:m,dataType:h,setDataType:f,dataTypeDesc:g,setDataTypeDesc:y}){let v=t(94327);i().useRef();let j=!!h.match(/uuid/i);return(0,l.jsxs)(i().Fragment,{children:[r&&(0,l.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target,t=a.value.toLowerCase().replace(/ /g,"_");a.value=t},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:g})})]})]}),(0,l.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let a=e.target;f(a.value),a.childNodes.forEach(e=>{e.value===a.value&&y(e.dataset.desc),e.value===a.value&&e.dataset.literal&&d(e.dataset.literal)})},children:v.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(u||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),h.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:u,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{m(e.target.value)}})]})]}),h?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(p.A,{targetField:o})}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!j&&(0,l.jsx)(x.A,{database:s,setFieldData:c,targetField:o,user:n,fieldIndex:e})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,l.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:t=>{a(a=>a.filter((a,t)=>t!=e))},children:"Cancel"})]})]})}function f({fieldIndex:e,tableFields:a,setTableFields:t,refreshFieldsListRef:s,database:n,currentTable:r,user:d}){let[o,c]=i().useState("VARCHAR"),[u,m]=i().useState("200"),[x,p]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[f,g]=i().useState({}),y=i().useRef(),[v,j]=i().useState(""),N=!!o.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:y,children:(0,l.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:a=>{a.preventDefault();let l=f.foreignKey;l&&!l.destinationTableName&&delete f.foreignKey;let i=a.target,n=i.new_field_name.value,r=i.new_field_data_type.value,d=i.new_field_required?.value,o=i.new_field_default_value?.value,c=i.encryption_field?.value,m=i.rich_text_option?.value,x=i.foreign_key_field,p=i.foreign_key_destination_table_name,h=i.foreign_key_destination_table_column_name;x?.value;let g={...f,fieldName:n,dataType:f?.dataType&&f?.foreignKey?f.dataType:r?.match(/VARCHAR/)?`${r}(${u})`:r};d?.match(/yes/i)?g.notNullValue=!0:o?.match(/./)||(g.nullValue=!0),o?.match(/./)&&(g.defaultValue=o),c?.match(/yes/i)&&(g.encrypted=!0),h?.value?.match(/./i)&&!h?.value?.match(/^--$/i)&&(g.dataType=h.dataset.dataType,g.foreignKey={foreignKeyName:h.dataset.foreignKeyName,destinationTableName:p.dataset.destinationTableName,destinationTableColumnName:h.dataset.destinationTableColumnName,cascadeDelete:!0}),m?.match(/yes/i)&&(g.richText=!0),N?(g.defaultValueLiteral=v,g.nullValue=!1):delete g.defaultValueLiteral,console.log("newFieldObject",g),function({fieldIndex:e,setTableFields:a,refreshFieldsListRef:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t?.current&&t.current(e=>e+1)}({fieldIndex:e,setTableFields:t,refreshFieldsListRef:s,payload:g})},children:(0,l.jsx)(h,{database:n,fieldIndex:e,isNewField:!0,literalValue:v,refreshFieldsListRef:s,setLiteralValue:j,setTableFields:t,user:d,currentTable:r,tableFields:a,tempFieldData:f,setTempFieldData:g,dataTypeValue:u,setDataTypeValue:m,dataType:o,setDataType:c,dataTypeDesc:x,setDataTypeDesc:p})})})}var g=t(27825),y=t.n(g);function v({tableFields:e,setTableFields:a,refreshFieldsListRef:t,order:l,field:s,e:i}){let n=y().cloneDeep(e),r=n.findIndex(e=>e.fieldName===s.fieldName);if(r<0)return;let d=n[r];if("up"===l&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===l&&r&&r>=n.length-7){console.log("Max Reached =>",r);return}try{let e;let a=i.target.closest(".table-field-wrapper"),t=a.previousElementSibling,s=a.nextElementSibling,n=window.DSQL.Flip,r=n.getState(a);"up"===l?(e=n.getState(t),a.parentNode?.insertBefore(a,t)):s?.nextElementSibling&&(e=n.getState(s),a.parentNode?.insertBefore(a,s.nextElementSibling)),n.from(r,{duration:.3,ease:"power1.inOut"}),n.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}n.splice(r,1),"up"===l?n.splice(r-1,0,d):n.splice(r+1,0,d),setTimeout(()=>{a([...n]),t.current&&t.current(e=>e+1)},500)}var j=t(46083),N=t(55904),w=t(58526);function b({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:c,confirmedDelegetedUser:u,user:m}){let x=u?.delegated,p=u?.priviledges?.match(/Edit Tables/i);u?.priviledges?.match(/Delete Tables/i),u?.priviledges?.match(/Create Tables/i);let{active_clone:h,active_clone_parent_db:f,remote_connected:g}=d,[y,b]=i().useState(e),[T,_]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(T?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(T?" rounded-t":" rounded")+(y.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(y.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:y.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:y.dataType}),y?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[y.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:y.foreignKey.destinationTableColumnName})," ",")"]})]}),y.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!y.fieldName?.match(o.A)&&!f&&!g&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!x||x&&p)&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)(N.A,{children:[(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{T?_(!1):_(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!f&&!g&&(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:a=>{window.confirm(`Delete "${e.fieldName}"?`)&&n(e=>e.filter((e,a)=>a!=t))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"up",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})}),(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"down",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})})]})]})})]}),T&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(j.A,{fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,targetField:e,setActiveEdit:_,database:d,currentTable:c,user:m})})]})}var T=t(60424);let _=1;function F({user:e,tableFields:a,setTableFields:t,setTargetField:s,refreshFieldsListRef:o,updateTable:c,updateTableAfterFieldsUpdateFunction:u,collapsed:x,database:p,table:h,confirmedDelegetedUser:g,query:y}){h?.childTable&&h.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),"");let v=g?.delegated,j=g?.priviledges?.match(/Edit Tables/i);g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i);let{active_clone:N,active_clone_parent_db:w,remote_connected:F}=p,[S,C]=i().useState(0);o.current=C;let[A,k]=i().useState(!1),[D,V]=i().useState(x||!1);return v&&!j?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper green",children:[A&&(0,l.jsx)(d.A,{}),h?.childTable?(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsx)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:a&&a[0]&&a.map((i,n)=>(_++,(0,l.jsx)(m,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,setLoading:k,currentTable:h,user:e,isDelegated:v},_)))}),x&&(0,l.jsx)(r.A,{collapse:D||!1,setCollapse:V})]}):(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(!v||v&&j)&&!w&&!F&&(0,l.jsxs)("div",{className:"button secondary outlined",onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:[a&&a[0]&&a.map((i,n)=>(_++,i.newTempField)?(0,l.jsx)(f,{fieldIndex:n,tableFields:a,setTableFields:t,refreshFieldsListRef:o,database:p,currentTable:h,user:e},_):(0,l.jsx)(b,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,currentTable:h,confirmedDelegetedUser:g,user:e},_)),(!v||v&&j)&&!w&&!F&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),c&&(0,l.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{window.confirm("Update Table Fields?")&&(k(!0),u&&u(k))},children:"Update Table Fields"})]})]}),x&&(0,l.jsx)(r.A,{collapse:D,setCollapse:V})]})]})}},93763:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(8732),s=t(82015),i=t.n(s),n=t(46169),r=t(16757),d=t(2913);function o({targetField:e,setFieldData:a,tableFields:t,setTableFields:s,database:o,currentTable:c,user:u,setActiveEdit:m,activeClonedTable:x}){let[p,h]=i().useState(!!e?.foreignKey),[f,g]=i().useState(null),[y,v]=i().useState(null),[j,N]=i().useState(null),[w,b]=i().useState(null),[T,_]=i().useState(!1),[F,S]=i().useState("boolean"!=typeof e.foreignKey?.cascadeDelete||e.foreignKey.cascadeDelete),[C,A]=i().useState("boolean"==typeof e.foreignKey?.cascadeUpdate&&e.foreignKey.cascadeUpdate);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[T&&(0,l.jsx)(r.A,{}),(0,l.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,l.jsx)("span",{children:"Foreign Key?"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,l.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:e?.foreignKey?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(h(!0),a&&a(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(h(!1),a&&a(e=>(delete e.foreignKey,e)))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]}),p&&f&&(0,l.jsx)(i().Fragment,{children:(0,l.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableName?e.foreignKey.destinationTableName:void 0,onChange:e=>{let t=e.target;if(e.target.value?.match(/--/)){a?a(e=>{let a=e.foreignKey;return a&&(a.destinationTableName=void 0),e}):t.dataset.destinationTableName=void 0;return}let l=f.filter(a=>a.tableName===e.target.value)[0];v(l),l?.fields&&N(l.fields),a?a(a=>{let t=a.foreignKey;return t&&(t.destinationTableName=e.target.value),a}):e.target.dataset.destinationTableName=e.target.value},children:[(0,l.jsx)("option",{value:"--",children:"--Select Table--"}),f.map((e,a)=>(0,l.jsx)("option",{value:e.tableName,children:e.tableFullName},a+1))]})}),y&&j&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableColumnName?e.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{let t=j.filter(a=>a.fieldName===e.target.value)[0];if(b(t),e.target.value?.match(/--/)){a&&a(e=>{let a=e.foreignKey;return a&&(a.destinationTableColumnName=void 0),e});return}let l=`dsql_${o.user_id}_${o.db_slug}_${Date.now()}`;a?a(e=>{e.dataType=t.dataType;let a=e.foreignKey;return a&&(a.destinationTableColumnName=t.fieldName,a.destinationTableColumnType=t.dataType,a.foreignKeyName=l),e}):(e.target.dataset.dataType=t.dataType,e.target.dataset.destinationTableColumnName=t.fieldName,e.target.dataset.foreignKeyName=l)}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:u}})}},children:[(0,l.jsx)("option",{value:"--",children:"--Select Column--"}),j.map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,children:e.fieldName},a+1))]}),x&&w&&(0,l.jsx)("button",{className:"secondary w-full",onClick:e=>{_(!0),(0,n.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:o.db_full_name,dbSlug:o.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{m&&m(!1)},1e3)})},children:"Add Foreign Key"}),(0,l.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:F,name:"cascade-delete",onChangeHandler:e=>{S(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:C,onChangeHandler:e=>{A(e.target.checked)}}],smallText:!0})]}),x&&(0,l.jsx)("button",{className:"light-gray w-full",onClick:a=>{delete e.foreignKey,m&&m(!1)},children:"Cancel"})]})}},36138:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,l.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:a=>{switch(delete e.json,delete e.richText,delete e.yaml,delete e.html,delete e.javascript,delete e.shell,a.target.value){case"plain":break;case"rte":e.richText=!0;break;case"json":e.json=!0;break;case"yaml":e.yaml=!0;break;case"html":e.html=!0;break;case"css":e.css=!0;break;case"javascript":e.javascript=!0;break;case"shell":e.shell=!0}},defaultValue:e.richText?"rte":e.json?"json":e.yaml?"yaml":e.html?"html":e.javascript?"javascript":e.shell?"shell":e.css?"css":"plain",children:[(0,l.jsx)("option",{value:"plain",children:"Plain Text"}),(0,l.jsx)("option",{value:"rte",children:"Rich Text"}),(0,l.jsx)("option",{value:"json",children:"JSON"}),(0,l.jsx)("option",{value:"yaml",children:"YAML"}),(0,l.jsx)("option",{value:"html",children:"HTML"}),(0,l.jsx)("option",{value:"css",children:"CSS"}),(0,l.jsx)("option",{value:"javascript",children:"Javascript"}),(0,l.jsx)("option",{value:"shell",children:"Shell"})]})]})}t(82015)},60424:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(42960);function s({paradigm:e,table:a,query:t,user:s}){let i="";try{let s=`DSQL_${t.single}_${t.single_table}`.toUpperCase(),r=a.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let d=[],o=[];d.push(`type ${s} = {`),o.push(`/** + * @typedef {object} ${s}`),r.forEach(e=>{let a=e.nullValue?"?":e.fieldName?.match(l.A)?"?":"";d.push(` ${e.fieldName}${a}: ${n(e.dataType||"")};`),o.push(` * @property {${n(e.dataType||"")}${a}} ${e.fieldName}`)}),d.push("}"),o.push(" */"),e?.match(/javascript/i)&&(i=o.join("\n")),e?.match(/typescript/i)&&(i=d.join("\n"))}catch(e){console.log(e.message),i=null}return i}},2913:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({name:e,checkBoxValues:a,setAlert:t,labelColor:s,flexRow:i,baseText:n,smallText:r,className:d}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:a.map((a,i)=>{let{payload:d,title:o,onChangeHandler:c,fixed:u,jsx:m}=a,x=a.name?`${e}-${a.name}`:d?e+"-"+d:e;return(0,l.jsxs)("div",{className:"flex items-center"+(a.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+(a?.className?a.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!a.default,name:x,id:x,onChange:e=>{t&&t(null),c&&c(e,a)},value:d,style:{minWidth:"20px"},...a.props}),m||(0,l.jsx)("label",{htmlFor:x,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(n||r?" text-base":" text-lg"),children:o})]},i+1)})})}t(82015)},51339:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({collapse:e,setCollapse:a}){return(0,l.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:t=>{e?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:e?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}t(82015)},84483:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({children:e,open:a,setOpen:t,onClose:s,maxWidth:i}){return(0,l.jsx)(l.Fragment,{})}t(82015),t(1976),t(58150)},42960:(e,a,t)=>{t.d(a,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},72272:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(77047),s=t(29021),i=t.n(s),n=t(33873),r=t.n(n);function d({userId:e}){try{let a=r().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(i().readFileSync(a,"utf-8"))}catch(e){return(0,l.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(29021),s=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,r=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||l||a||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== Error Message: ${a} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),i?.url&&(l+=` URL: ${i.url}`),i?.body&&(l+=` -Request Body: ${JSON.stringify(i.body,null,4)}`),d&&(l+=` -IP: ${d}`),l+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),r&&(l+=` +IP: ${r}`),l+=` Date: ${n.toDateString()} -========================================`,r().existsSync("./.tmp/error.log")||r().writeFileSync("./.tmp/error.log","","utf-8");let u=r().readFileSync("./.tmp/error.log","utf-8");r().writeFileSync("./.tmp/error.log",l),r().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",l),s().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(55511),r=t(79428);function i({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=a||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,d=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,l.scryptSync)(i,n,d),s=r.Buffer.alloc(16,0),o=(0,l.createDecipheriv)("aes-192-cbc",u,s);try{let a=o.update(e,"hex","utf8");return a+=o.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},76856:(e,a,t)=>{t.d(a,{A:()=>T});var l=t(33873),r=t.n(l),i=t(29021),n=t.n(i),d=t(66866),u=t(41864);async function s({queryString:e,queryValuesArray:a}){let t;try{t=e&&a&&Array.isArray(a)&&a[0]?await (0,u.A)({query:e,values:a}):await (0,u.A)({query:e})}catch(e){console.log("Shell Vardb Error =>",e.message)}return t}function o({columnData:e,primaryKeySet:a}){let{fieldName:t,dataType:l,nullValue:r,primaryKey:i,autoIncrement:n,defaultValue:d,defaultValueLiteral:u,onUpdateLiteral:s,notNullValue:o}=e,E="";return E+=`\`${t}\` ${l}`,r?E+=" DEFAULT NULL":u?E+=` DEFAULT ${u}`:d?String(d).match(/uuid\(\)/i)?E+=" DEFAULT UUID()":E+=` DEFAULT '${d}'`:o&&(E+=" NOT NULL"),s&&(E+=` ON UPDATE ${s}`),i&&!a&&(E+=" PRIMARY KEY",a=!0),n&&(E+=" AUTO_INCREMENT",a=!0),{fieldEntryText:E,newPrimaryKeySet:a||!1}}async function E({dbFullName:e,tableName:a,tableInfoArray:l,tableSchema:r,recordedDbEntry:i}){let n=function({tableInfoArray:e}){let a=t(95610),l=e.filter(e=>e.primaryKey);return a.forEach(a=>{let t=e.filter(e=>e.fieldName===a.fieldName);t&&t[0]||("id"!==a.fieldName||l[0]?e.push(a):e.unshift(a))}),e}({tableInfoArray:l}),d=[];d.push(`CREATE TABLE IF NOT EXISTS \`${e}\`.\`${a}\` (`);try{if(!i)throw Error("Recorded Db entry not found!");let e=await s({queryString:"SELECT * FROM datasquirel.user_database_tables WHERE db_id = ? AND table_slug = ?",queryValuesArray:[i.id,r?.tableName]}),a=e?.[0];a?.id||await (0,u.A)({query:"INSERT INTO datasquirel.user_database_tables SET ?",values:{user_id:i.user_id,db_id:i.id,db_slug:i.db_slug,table_name:r?.tableFullName,table_slug:r?.tableName,child_table:r?.childTable?"1":null,child_table_parent_database:r?.childTableDbFullName||null,child_table_parent_table:r?.childTableName||null,date_created:Date(),date_created_code:Date.now(),date_updated:Date(),date_updated_code:Date.now()}})}catch(e){}let E=!1,c=[];for(let e=0;e{let l=e.fieldName,r=e.foreignKey?.destinationTableName,i=e.foreignKey?.destinationTableColumnName,n=e.foreignKey?.cascadeDelete,u=e.foreignKey?.cascadeUpdate,s=e.foreignKey?.foreignKeyName,o=a===c.length-1?"":",";d.push(` CONSTRAINT \`${s}\` FOREIGN KEY (\`${l}\`) REFERENCES \`${r}\`(${i})${n?" ON DELETE CASCADE":""}${u?" ON UPDATE CASCADE":""}${o}`)}),d.push(") ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;");let N=d.join("\n");return await s({queryString:N})}let c=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function N({dbFullName:e,tableName:a,tableInfoArray:t,userId:l,dbSchema:r,tableIndexes:i,tableSchema:d,clone:E,childDb:N,tableIndex:f,tableNameFull:T,recordedDbEntry:m}){let A=[],_=t;try{let t=[];if(t.push(`ALTER TABLE \`${e}\`.\`${a}\``),N)try{if(!m)throw Error("Recorded Db entry not found!");let e=await s({queryString:"SELECT * FROM datasquirel.user_database_tables WHERE db_id = ? AND table_slug = ?",queryValuesArray:[m.id,a]}),t=e?.[0];t?.id||await (0,u.A)({query:"INSERT INTO datasquirel.user_database_tables SET ?",values:{user_id:m.user_id,db_id:m.id,db_slug:m.db_slug,table_name:T,table_slug:a,child_table:d?.childTable?"1":null,child_table_parent_database:d?.childTableDbFullName||null,child_table_parent_table:d.childTableName||null,date_created:Date(),date_created_code:Date.now(),date_updated:Date(),date_updated_code:Date.now()}})}catch(e){}let f=await s({queryString:`SHOW INDEXES FROM \`${e}\`.\`${a}\``}),b=await s({queryString:`SHOW COLUMNS FROM \`${e}\`.\`${a}\``}),S=[];for(let t=0;te.fieldName===i||e.originName===i);if(d&&d[0]){if(d[0].updatedField&&d[0].fieldName){S.push(d[0].fieldName),await s({queryString:`ALTER TABLE \`${e}\`.\`${a}\` RENAME COLUMN \`${d[0].originName}\` TO \`${d[0].fieldName}\``}),console.log(`Column Renamed from "${d[0].originName}" to "${d[0].fieldName}"`);try{let t=r.findIndex(a=>a.dbFullName===e),i=r[t].tables.findIndex(e=>e.tableName===a),u=r[t].tables[i].fields.findIndex(e=>e.fieldName===d[0].fieldName);delete r[t].tables[i].fields[u].originName,delete r[t].tables[i].fields[u].updatedField,_=r[t].tables[i].fields,n().writeFileSync(`${String(process.env.DSQL_USER_DB_SCHEMA_PATH)}/user-${l}/main.json`,JSON.stringify(r),"utf8")}catch(e){console.log("Update table error =>",e.message)}}continue}await s({queryString:`ALTER TABLE \`${e}\`.\`${a}\` DROP COLUMN \`${i}\``})}for(let t=0;te.alias===l);if(!e?.[0])throw Error(`This Index(${l}) Has been Deleted!`)}catch(t){await s({queryString:`ALTER TABLE \`${e}\`.\`${a}\` DROP INDEX \`${l}\``})}}if(i&&i[0])for(let t=0;te.Key_name===d)[0])throw Error("This Index Does not Exist")}catch(t){await s({queryString:`CREATE${l?.match(/fullText/i)?" FULLTEXT":""} INDEX \`${d}\` ON \`${e}\`.\`${a}\`(${n?.map(e=>e.value).map(e=>`\`${e}\``).join(",")}) COMMENT 'schema_index'`})}}let y=await s({queryString:`SELECT CONSTRAINT_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '${e}' AND TABLE_NAME='${a}' AND CONSTRAINT_TYPE='FOREIGN KEY'`});if(y)for(let t=0;t{if(e.Field===c)return i=a,!0}):null,{fieldEntryText:p}=o({columnData:n});if(h&&h[0]?.Field){let{Field:e,Type:a,Null:t,Key:n,Default:s,Extra:o}=h[0],E=r1)return await s({queryString:g});return"No Changes Made to Table"}catch(e){return console.log('Error in "updateTable" shell function =>',e.message),"Error in Updating Table"}}var f=t(59338);async function T({userId:e,targetDatabase:a,dbSchemaData:t}){let l=e?r().join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`/user-${e}/main.json`):r().resolve(__dirname,"../../jsonData/dbSchemas/main.json"),i=t||f.A.parse(n().readFileSync(l,"utf8"));if(!i){console.log("Schema Not Found!");return}for(let t=0;te.tableName===t)[0]){let a=n.filter(e=>e.tableNameOld&&e.tableNameOld===t);a&&a[0]?(console.log("Renaming Table"),await s({queryString:`RENAME TABLE \`${r}\`.\`${a[0].tableNameOld}\` TO \`${a[0].tableName}\``})):(console.log(`Dropping Table from ${r}`),await s({queryString:`DROP TABLE \`${r}\`.\`${t}\``}),await (0,u.A)({query:"DELETE FROM datasquirel.user_database_tables WHERE user_id = ? AND db_slug = ? AND table_slug = ?",values:[e,c,t]}))}}let _=e?await s({queryString:"SELECT * FROM datasquirel.user_databases WHERE db_full_name = ?",queryValuesArray:[r]}):void 0,b=_?.[0];for(let a=0;a0){if(await N({dbFullName:r,tableName:d,tableNameFull:t.tableFullName,tableInfoArray:u,userId:e,dbSchema:i,tableIndexes:o,tableIndex:a,childDb:l.childDatabase||void 0,recordedDbEntry:b,tableSchema:t}),t.childrenTables&&t.childrenTables[0])for(let a=0;ae.Key_name===i)[0])throw Error("This Index Does not Exist")}catch(e){await s({queryString:`CREATE${a?.match(/fullText/i)?" FULLTEXT":""} INDEX \`${i}\` ON \`${r}\`.\`${d}\`(${l?.map(e=>e.value).map(e=>`\`${e}\``).join(",")}) COMMENT 'schema_index'`})}}}if(f?.[0])for(let a=0;a{t.d(a,{A:()=>d});var l=t(29021),r=t.n(l),i=t(33873),n=t.n(i);async function d({query:e,values:a}){let t,l=global.DSQL_DB_CONN;try{t=e&&a?await l.query(e,a):await l.query(e)}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(l.config()),r().appendFileSync(n().resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null}finally{await l?.end()}return t?JSON.parse(JSON.stringify(t)):null}},66866:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(41864);async function r(e){let a;try{a=await (0,l.A)({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return a||null}},59338:(e,a,t)=>{t.d(a,{A:()=>l});let l={parse:function(e,a){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,a)}catch(e){return}}},stringify:function(e,a,t){try{return JSON.stringify(e,a||void 0,t)}catch(e){return}}}},95610:e=>{e.exports=JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]')}}; \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3474.js b/dsql-app/.local_dist/server/chunks/3474.js index bd0dcaa..d77cc01 100644 --- a/dsql-app/.local_dist/server/chunks/3474.js +++ b/dsql-app/.local_dist/server/chunks/3474.js @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,a,t)=>{t.d(a,{A:()=>c});var r=t(71205);let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:a}){let t=[];try{for(let s=0;s",a.message),e}}var n=t(77047),i=t(71934),d=t(43651),o=t(16175);async function c({queryString:e,queryValuesArray:a,database:t,tableSchema:r,useLocal:l}){let c;let u=!!l||!!t?.match(/^datasquirel$/),m=l?o.A:u?i.A:d.A;try{c=e&&a&&Array.isArray(a)&&a[0]?u?await m(e,a):await m({paradigm:"Full Access",queryString:e,queryValues:a}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&r)try{let e=c;return await s({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,a,t)=>{async function r(e,a,t){try{if("string"==typeof a){let r=await e.query(l(a),t);return JSON.parse(JSON.stringify(r))}if("object"!=typeof a)return null;{let t=[];for(let r=0;rs})},16175:(e,a,t)=>{t.d(a,{A:()=>i});var r=t(9973),l=t.n(r),s=t(29021),n=t.n(s);async function i(...e){let a=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:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let a=`${e}/ca-cert.pem`;if(!n().existsSync(a)){console.log(`${a} does not exist`);return}return{ca:n().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let 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}}}},50264:(e,a,t)=>{t.a(e,async(e,r)=>{try{t.r(a),t.d(a,{SingleDbUserContext:()=>x,default:()=>f,getServerSideProps:()=>b});var l=t(8732),s=t(29021),n=t.n(s),i=t(82015),d=t.n(i),o=t(25562),c=t(92702),u=t(55880),m=t(22873),p=t(92090),h=t(71934),y=t(52854),g=e([u,p]);[u,p]=g.then?(await g)():g;let x=d().createContext({});function f({user:e,database:a,table:t,dbSchemaData:r,singleUser:s,query:n,confirmedDelegetedUser:i}){let d=`${s.first_name} ${s.last_name} Users | Datasquirel"`,c=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:d}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(o.A,{head:c,user:e,extraHeaderContent:(0,l.jsx)(u.A,{database:a,query:n,confirmedDelegetedUser:i,user:e}),children:(0,l.jsx)(x.Provider,{value:{user:e,database:a,table:t,dbSchemaData:r,singleUser:s,query:n,confirmedDelegetedUser:i},children:(0,l.jsx)(p.A,{})})})}async function b({req:e,res:a,query:t}){let r=await (0,c.A)(e,a);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let l=await (0,m.A)({request:e,user:r,databaseSlug:t.single,query:t});if(!l)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:s,rootUserId:i}=l,d=await (0,h.A)(`SELECT * FROM user_databases WHERE user_id='${s}' AND db_slug='${t.single}'`);if(!d||!d[0])return console.log("Database Not Found"),{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(n().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===d[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],p=await (0,y.A)({database:d[0].db_full_name,queryString:`SELECT * FROM ${d[0].db_full_name}.users WHERE id='${t.user}'`,tableSchema:u});return p?.[0]?{props:{user:r,database:d?.[0]||null,table:u||{},dbSchemaData:o,singleUser:p?.[0]||null,query:t,confirmedDelegetedUser:l}}:{redirect:{destination:`/admin/${r?.id}/databases/${d[0].db_slug}/users`,permanent:!1}}}r()}catch(e){r(e)}})},9455:(e,a)=>{Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,a,t)=>{t.d(a,{A:()=>o});var r=t(71205);let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:a}){let t=[];try{for(let s=0;s",a.message),e}}var n=t(77047),i=t(51779),d=t(84640);async function o({queryString:e,queryValuesArray:a,database:t,tableSchema:r,useLocal:l,debug:o}){let c=(0,i.A)({fa:!0});l&&(c=(0,i.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,i.A)()),o&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",a));let u=await (0,d.A)(c,e,a);if(o&&console.log("varDatabaseDbHandler:results:",u),u&&r)try{return await s({unparsedResults:u,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},71205:(e,a,t)=>{t.d(a,{A:()=>n});var r=t(55511),l=t(79428),s=t(48243);function n({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:d,algorithm:o,bufferAllocSize:c}=(0,s.A)({encryptionKey:a});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,r.scryptSync)(n,i,d),m=l.Buffer.alloc(c,0),p=(0,r.createDecipheriv)(o,u,m);try{let a=p.update(e,"hex","utf8");return a+=p.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},84640:(e,a,t)=>{async function r(e,a,t){try{if("string"==typeof a){let r=await e.query(l(a),t);return JSON.parse(JSON.stringify(r))}if("object"!=typeof a)return null;{let t=[];for(let r=0;rr})},48243:(e,a,t)=>{t.d(a,{A:()=>r});function r(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,a){try{let a=Number(e);if("number"!=typeof a||isNaN(a))return 0;return Math.round(a)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},50264:(e,a,t)=>{t.a(e,async(e,r)=>{try{t.r(a),t.d(a,{SingleDbUserContext:()=>A,default:()=>g,getServerSideProps:()=>b});var l=t(8732),s=t(29021),n=t.n(s),i=t(82015),d=t.n(i),o=t(25562),c=t(92702),u=t(55880),m=t(22873),p=t(92090),h=t(71934),y=t(52854),f=e([u,p]);[u,p]=f.then?(await f)():f;let A=d().createContext({});function g({user:e,database:a,table:t,dbSchemaData:r,singleUser:s,query:n,confirmedDelegetedUser:i}){let d=`${s.first_name} ${s.last_name} Users | Datasquirel"`,c=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:d}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(o.A,{head:c,user:e,extraHeaderContent:(0,l.jsx)(u.A,{database:a,query:n,confirmedDelegetedUser:i,user:e}),children:(0,l.jsx)(A.Provider,{value:{user:e,database:a,table:t,dbSchemaData:r,singleUser:s,query:n,confirmedDelegetedUser:i},children:(0,l.jsx)(p.A,{})})})}async function b({req:e,res:a,query:t}){let r=await (0,c.A)(e,a);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let l=await (0,m.A)({request:e,user:r,databaseSlug:t.single,query:t});if(!l)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:s,rootUserId:i}=l,d=await (0,h.A)(`SELECT * FROM user_databases WHERE user_id='${s}' AND db_slug='${t.single}'`);if(!d||!d[0])return console.log("Database Not Found"),{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(n().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===d[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],p=await (0,y.A)({database:d[0].db_full_name,queryString:`SELECT * FROM ${d[0].db_full_name}.users WHERE id='${t.user}'`,tableSchema:u});return p?.[0]?{props:{user:r,database:d?.[0]||null,table:u||{},dbSchemaData:o,singleUser:p?.[0]||null,query:t,confirmedDelegetedUser:l}}:{redirect:{destination:`/admin/${r?.id}/databases/${d[0].db_slug}/users`,permanent:!1}}}r()}catch(e){r(e)}})},9455:(e,a)=>{Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3496.js b/dsql-app/.local_dist/server/chunks/3496.js deleted file mode 100644 index 3e8d791..0000000 --- a/dsql-app/.local_dist/server/chunks/3496.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";exports.id=3496,exports.ids=[3496],exports.modules={96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let E=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!E)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${E}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== -Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` -User Id: ${e?.id} -User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(s+=` -URL: ${a.url}`),a?.body&&(s+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` -Date: ${o.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` - - - - -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},5437:(e,r,t)=>{t.d(r,{A:()=>_});var s=t(33873),n=t.n(s),a=t(47795),o=t.n(a),i=t(66866),l=t(41864);async function c({username:e,host:r,grants:t,userId:s}){let n=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),n;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),n;if(!t)return console.log("No grants Array provided."),n;try{let a=await (0,i.A)(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(a?.[0]?.User){let n=await (0,i.A)(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return n}var u=t(68829),E=t(95969);t(60818).config({path:n().resolve(__dirname,"../../../.env")});let d=process.env.DSQL_DB_HOST||"127.0.0.1";async function _({userId:e,mariadbUserHost:r,mariadbUsername:t,sqlUserID:s}){let n=await (0,l.A)({query:"SELECT * FROM mariadb_users"});if(!n?.[0])return;let a=!!e&&e==Number(process.env.DSQL_SU_USER_ID);for(let _=0;_",e.message)}}}},41864:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(29021),n=t.n(s),a=t(33873),o=t.n(a);async function i({query:e,values:r}){let t,s=global.DSQL_DB_CONN;try{t=e&&r?await s.query(e,r):await s.query(e)}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(s.config()),n().appendFileSync(o().resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null}finally{await s?.end()}return t?JSON.parse(JSON.stringify(t)):null}},66866:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(41864);async function n(e){let r;try{r=await (0,s.A)({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3634.js b/dsql-app/.local_dist/server/chunks/3634.js deleted file mode 100644 index 7898e56..0000000 --- a/dsql-app/.local_dist/server/chunks/3634.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";exports.id=3634,exports.ids=[3634],exports.modules={59023:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(8732),l=t(23293);function n(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(l.A,{})})}t(82015)},73872:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>i});var l=t(8732);t(82015);var n=t(96089),r=t(75979),d=e([r]);function i({slugText:e,justIcon:a,noIcon:t,title:s,outlined:d,extraClasses:i}){return(0,l.jsxs)("div",{className:(0,r.twMerge)("button small-text hover:!bg-transparent",d?" outlined gray bg-white":" ghost light-gray",i),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:d?void 0:{padding:0},children:[!t&&(0,l.jsx)(n.A,{size:d?15:20}),!a&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}r=(d.then?(await d)():d)[0],s()}catch(e){s(e)}})},55880:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>j});var l=t(8732),n=t(82015),r=t.n(n),d=t(73872),i=t(87639),o=t(63025),c=t(46169),m=t(16757),h=t(58526),u=t(98136),b=t(71296),x=t(72935),g=t(25088),p=e([d]);function j({database:e,query:a,confirmedDelegetedUser:t,user:s}){let{active_clone:n,active_clone_parent_db:o}=e,c=t?.delegated;t?.priviledges?.match(/Edit Tables/i),t?.priviledges?.match(/Delete Tables/i);let[m,b]=r().useState(null);return(0,l.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,l.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,l.jsx)("img",{src:e.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),t?.delegated&&(0,l.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,l.jsx)("img",{src:t.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,l.jsx)("span",{className:"text-xs",children:t.rootUserEmail})]})]}),(0,l.jsx)("span",{className:"font-semibold text-base"+(t?.delegated?" -mt-3":""),children:e.db_name})]}),(0,l.jsx)(h.A,{size:20}),(0,l.jsxs)("div",{className:"dropdown p-0",children:[(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/edit-database`,className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,l.jsx)("hr",{className:"m-0"}),!n&&(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/add-database?duplicate=${e.db_full_name}`,className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,l.jsx)("hr",{className:"m-0"})]}),(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/schema`,className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/users`,className:"button plain-text more-padding normal-weight",children:"Database Users"}),!c&&(0,l.jsx)(f,{database:e,user:s})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(d.A,{slugText:e.db_slug,title:"Db Slug"}),(0,l.jsx)("div",{className:"-mt-1 gap-1",children:(0,l.jsx)(d.A,{slugText:e.db_full_name,title:"Full DB Name"})}),!c&&(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsxs)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/shell`,className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,l.jsx)(u.A,{size:20}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(i.A,{})]})}function f({database:e,user:a}){let[t,s]=r().useState(!1),n=r().useRef();return(0,l.jsxs)(r().Fragment,{children:[t&&(0,l.jsx)(m.A,{width:"20px"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${e.db_slug}/shell`,className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,l.jsx)("hr",{className:"m-0"}),e?.remote_connected==1?(0,l.jsx)(w,{database:e}):(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${e.db_slug}/connect`,className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:a=>{(0,o.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`})},children:[(0,l.jsx)(b.A,{size:20}),(0,l.jsx)("span",{children:"Export Database"})]}),(0,l.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:n,className:"hidden"}),(0,l.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:a=>{n.current&&(n.current.addEventListener("change",a=>{let t=a.target,l=t.files?.[0];if(!l){alert("No File Selected");return}var n=new FileReader;n.onload=function(a){var t=a.target?.result;t||alert("Invalid File!");try{let a=t?.toString();if(!a)throw Error("Invalid File!");let l=JSON.parse(a);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(s(!0),(0,c.A)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:l,dbId:e.id}},!0).then(e=>{e.success&&window.location.reload()}).finally(()=>{s(!1)}))}catch(e){alert("Invalid File. Please enter a valid JSON file")}},n.readAsText(l)}),n.current?.click())},children:[(0,l.jsx)(x.A,{size:20}),(0,l.jsx)("span",{children:"Update From Schema"})]}),(0,l.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none",onClick:a=>{(0,o.A)({url:`/api/downloadDatabaseSchema?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.json`})},children:[(0,l.jsx)(g.A,{size:20}),(0,l.jsx)("span",{children:"Download Schema"})]})]})}function w({database:e}){return(0,l.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:a=>{window.confirm("Disconnect this Database from the remote host?")&&(0,c.A)("/api/connect/disconnect",{method:"POST",body:{dbId:e.id}},!0).then(e=>{e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))})},children:"Disconnect"})}d=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},63025:(e,a,t)=>{t.d(a,{A:()=>s});function s({url:e,fileName:a,setLoading:t}){t&&t(!0),fetch(e,{method:"GET",headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.body).then(e=>{let a=e?.getReader();if(a)return new ReadableStream({start:e=>(function t(){return a?.read().then(({done:a,value:s})=>{if(a){e.close();return}return e.enqueue(s),t()})})()})}).then(e=>new Response(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{let s=document.createElement("a");s.href=e,s.download=a,s.style.display="none",document.body.appendChild(s),s.click(),URL.revokeObjectURL(e),document.body.removeChild(s),setTimeout(()=>{t&&t(!1)},1e3)}).catch(e=>{console.log(e),setTimeout(()=>{t&&t(!1)},1e3)})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3704.js b/dsql-app/.local_dist/server/chunks/3704.js index 4dedf0c..5cb5430 100644 --- a/dsql-app/.local_dist/server/chunks/3704.js +++ b/dsql-app/.local_dist/server/chunks/3704.js @@ -1,4 +1,4 @@ -"use strict";exports.id=3704,exports.ids=[3704],exports.modules={83704:(e,a,t)=>{t.d(a,{A:()=>g});var s=t(29021),r=t.n(s),i=t(96052),l=t(33873),n=t.n(l),o=t(67580),d=t(30944),u=t(68829),c=t(98e3),m=t(49941);async function _({user:e,social_platform:a,invitation:t,database:s,additionalFields:r,useLocal:i}){let l=s||"datasquirel",n=`SELECT * FROM \`${l}\`.\`users\` WHERE email=? AND social_id=? AND social_platform=?`,o=[e.email,e.social_id,a],u=await (0,d.A)({database:l,queryString:n,queryValuesArray:o,useLocal:i});if(!u?.[0])return{success:!1,payload:null};let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),_={id:u[0].id,first_name:u[0].first_name,last_name:u[0].last_name,username:u[0].username,user_type:u[0].user_type,email:u[0].email,social_id:u[0].social_id,image:u[0].image,image_thumbnail:u[0].image_thumbnail,verification_status:u[0].verification_status,social_login:u[0].social_login,social_platform:u[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()};return r?.[0]&&r.forEach(e=>{_[e]=u[0][e]}),t&&(!s||s?.match(/^datasquirel$/))&&(0,m.A)({query:t,user:_,useLocal:i}),{success:!0,payload:_,csrf:c}}async function g({database:e,social_id:a,email:t,social_platform:s,payload:l,invitation:m,supEmail:g,additionalFields:p,useLocal:E}){try{let y=[a.toString(),s],A=await (0,d.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:y,useLocal:E});if(A&&A[0])return await _({user:A[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:E});let S=t||g||null;if(!S)return{success:!1,payload:null,msg:"No Email Present"};let f=`SELECT * FROM datasquirel.users WHERE email='${S}'`,b=await (0,d.A)({database:e||"datasquirel",queryString:f,useLocal:E});if(b&&b[0])return{success:!1,payload:null,msg:"This Email is already taken"};let D=[S,s,a],h=await (0,d.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:D,useLocal:E});if(h&&h[0])return await _({user:l,social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:E});let R=(0,u.A)({data:a.toString()}),v={social_login:"1",verification_status:g?"0":"1",password:R};Object.keys(l).forEach(e=>{v[e]=l[e]});let N=await (0,c.A)({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:S,data:{...v,email:S},useLocal:E});if(!N?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.ts' backend function =>",N),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.ts' backend function"};{e||await (0,o.A)({userId:N.insertId,useLocal:E});let a=`SELECT * FROM datasquirel.users WHERE id='${N.insertId}'`,t=await (0,d.A)({database:e||"datasquirel",queryString:a,useLocal:E});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(g&&e?.match(/^datasquirel$/)){let e=(0,u.A)({data:JSON.stringify({id:N.insertId,email:g,dateCode:Date.now()})});(0,i.A)({to:g,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:r().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(()=>{})}let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),{success:!1,payload:null,msg:"Static File ENV not Found!"};if(!e||e?.match(/^datasquirel$/)){let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${N.insertId}`,a=n().join(l,`images/user-images/user-${N.insertId}`);r().mkdirSync(e),r().mkdirSync(a),r().writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await _({user:t[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:E})}}catch(e){return console.log("ERROR in 'handleSocialDb.ts' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},49941:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(67619),r=t(48786),i=t(98e3),l=t(7971);async function n({query:e,user:a,useLocal:t}){try{let s=t?l.A:r.A,{invite:n,database_access:o,priviledge:d,email:u}=e,c=[n,u],m=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!m||!m[0])throw Error("No Invitation Found");let _=[n],g=await s("SELECT first_name,last_name,email FROM users WHERE id=?",_);if(g?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{(0,i.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:n,invited_user_id:a.id,database_access:o,first_name:a.first_name,last_name:a.last_name,phone:a.phone,email:a.email,username:a.username,user_type:"admin",user_priviledge:d,image:a.image,image_thumbnail:a.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[n,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{t.d(a,{A:()=>u});var s=t(47795),r=t.n(s),i=t(48786),l=t(47546),n=t(98e3),o=t(68829),d=t(7971);async function u({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",s=`dsql_user_${e}`,u=r().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,o.A)({data:u}),m=`CREATE USER IF NOT EXISTS '${s}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await (0,d.A)(m):await (0,l.A)(m);let _="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",g=[s,c,e];a?await (0,d.A)(_,g):await (0,i.A)(_,g),await (0,n.A)({tableName:"mariadb_users",data:{user_id:e,username:s,host:t,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:a}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),i=t(21572);let l=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function n({to:e,subject:a,text:t,html:s,alias:i,senderName:n}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!r().existsSync("./email/index.html"))return;let u=r().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${n||"Datasquirel"}" <${d}>`,s.sender=d,i&&(s.replyTo=d),s.to=e,s.subject=a,s.text=t,s.html=u,o=await l.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},43775:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function i({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},67619:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(29021),r=t.n(s);async function i({user:e,message:a,component:t,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||s||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";exports.id=3704,exports.ids=[3704],exports.modules={83704:(e,a,t)=>{t.d(a,{A:()=>g});var s=t(29021),r=t.n(s),i=t(96052),l=t(33873),n=t.n(l),o=t(67580),d=t(30944),u=t(68829),c=t(98e3),m=t(49941);async function _({user:e,social_platform:a,invitation:t,database:s,additionalFields:r,useLocal:i}){let l=s||"datasquirel",n=`SELECT * FROM \`${l}\`.\`users\` WHERE email=? AND social_id=? AND social_platform=?`,o=[e.email,e.social_id,a],u=await (0,d.A)({database:l,queryString:n,queryValuesArray:o,useLocal:i});if(!u?.[0])return{success:!1,payload:null};let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),_={id:u[0].id,first_name:u[0].first_name,last_name:u[0].last_name,username:u[0].username,user_type:u[0].user_type,email:u[0].email,social_id:u[0].social_id,image:u[0].image,image_thumbnail:u[0].image_thumbnail,verification_status:u[0].verification_status,social_login:u[0].social_login,social_platform:u[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()};return r?.[0]&&r.forEach(e=>{_[e]=u[0][e]}),t&&(!s||s?.match(/^datasquirel$/))&&(0,m.A)({query:t,user:_,useLocal:i}),{success:!0,payload:_,csrf:c}}async function g({database:e,social_id:a,email:t,social_platform:s,payload:l,invitation:m,supEmail:g,additionalFields:p,useLocal:f}){try{let y=[a.toString(),s],E=await (0,d.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:y,useLocal:f});if(E&&E[0])return await _({user:E[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:f});let A=t||g||null;if(!A)return{success:!1,payload:null,msg:"No Email Present"};let S=`SELECT * FROM datasquirel.users WHERE email='${A}'`,b=await (0,d.A)({database:e||"datasquirel",queryString:S,useLocal:f});if(b&&b[0])return{success:!1,payload:null,msg:"This Email is already taken"};let h=[A,s,a],D=await (0,d.A)({database:e||"datasquirel",queryString:"SELECT * FROM datasquirel.users WHERE email=? AND social_login='1' AND social_platform=? AND social_id=?",queryValuesArray:h,useLocal:f});if(D&&D[0])return await _({user:l,social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:f});let v=(0,u.A)({data:a.toString()}),R={social_login:"1",verification_status:g?"0":"1",password:v};Object.keys(l).forEach(e=>{R[e]=l[e]});let L=await (0,c.A)({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:A,data:{...R,email:A},useLocal:f});if(!L?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.ts' backend function =>",L),{success:!1,payload:null,msg:"Social User Failed to insert in 'handleSocialDb.ts' backend function"};{e||await (0,o.A)({userId:L.insertId,useLocal:f});let a=`SELECT * FROM datasquirel.users WHERE id='${L.insertId}'`,t=await (0,d.A)({database:e||"datasquirel",queryString:a,useLocal:f});if(!t||!t[0])return{success:!1,payload:null,msg:"User Insertion Failed!"};if(g&&e?.match(/^datasquirel$/)){let e=(0,u.A)({data:JSON.stringify({id:L.insertId,email:g,dateCode:Date.now()})});(0,i.A)({to:g,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:r().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(()=>{})}let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),{success:!1,payload:null,msg:"Static File ENV not Found!"};if(!e||e?.match(/^datasquirel$/)){let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${L.insertId}`,a=n().join(l,`images/user-images/user-${L.insertId}`);r().mkdirSync(e),r().mkdirSync(a),r().writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await _({user:t[0],social_platform:s,invitation:m,database:e,additionalFields:p,useLocal:f})}}catch(e){return console.log("ERROR in 'handleSocialDb.ts' backend function =>",e.message),{success:!1,payload:null,msg:e.message}}}},49941:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(67619),r=t(48786),i=t(98e3),l=t(62050);async function n({query:e,user:a,useLocal:t}){try{let s=t?l.A:r.A,{invite:n,database_access:o,priviledge:d,email:u}=e,c=[n,u],m=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",c);if(!m||!m[0])throw Error("No Invitation Found");let _=[n],g=await s("SELECT first_name,last_name,email FROM users WHERE id=?",_);if(g?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[n,a.id,u]);if(e?.[0])console.log("User already added");else{(0,i.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:n,invited_user_id:a.id,database_access:o,first_name:a.first_name,last_name:a.last_name,phone:a.phone,email:a.email,username:a.username,user_type:"admin",user_priviledge:d,image:a.image,image_thumbnail:a.image_thumbnail},useLocal:t});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[n,u]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e{t.d(a,{A:()=>u});var s=t(47795),r=t.n(s),i=t(48786),l=t(47546),n=t(98e3),o=t(68829),d=t(62050);async function u({userId:e,useLocal:a}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",s=`dsql_user_${e}`,u=r().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,o.A)({data:u}),m=`CREATE USER IF NOT EXISTS '${s}'@'127.0.0.1' IDENTIFIED BY '${u}'`;a?await (0,d.A)(m):await (0,l.A)(m);let _="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",g=[s,c,e];a?await (0,d.A)(_,g):await (0,i.A)(_,g),await (0,n.A)({tableName:"mariadb_users",data:{user_id:e,username:s,host:t,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:a}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),i=t(21572);let l=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function n({to:e,subject:a,text:t,html:s,alias:i,senderName:n}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!r().existsSync("./email/index.html"))return;let u=r().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${n||"Datasquirel"}" <${d}>`,s.sender=d,i&&(s.replyTo=d),s.to=e,s.subject=a,s.text=t,s.html=u,o=await l.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},43775:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function i({unparsedResults:e,tableSchema:a}){let t=[];try{for(let i=0;i",a.message),e}}},67619:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(29021),r=t.n(s);async function i({user:e,message:a,component:t,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||s||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${a} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(43775),r=t(67619),i=t(48786),l=t(37275),n=t(7971);async function o({queryString:e,queryValuesArray:a,database:t,tableSchema:o,useLocal:d}){let u;let c=!!d||!!t?.match(/^datasquirel$/),m=d?n.A:c?i.A:l.A;try{u=e&&a&&Array.isArray(a)&&a[0]?c?await m(e,a):await m({paradigm:"Full Access",queryString:e,queryValues:a}):c?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,r.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(55511),r=t(79428);function i({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=a||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,s.scryptSync)(i,l,n),d=r.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",o,d);try{let a=u.update(e,"hex","utf8");return a+=u.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},47546:(e,a,t)=>{t.d(a,{A:()=>s});function s(...e){let a=global.DSQL_DB_CONN;try{return new Promise((t,s)=>{a.query(...e).then(e=>{a.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}}; \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(43775),r=t(67619),i=t(7447),l=t(64292);async function n({queryString:e,queryValuesArray:a,database:t,tableSchema:n,useLocal:o,debug:d}){let u=(0,i.A)({fa:!0});o&&(u=(0,i.A)({local:!0})),t?.match(/^datasquirel$/)&&(u=(0,i.A)()),d&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",a));let c=await (0,l.A)(u,e,a);if(d&&console.log("varDatabaseDbHandler:results:",c),c&&n)try{return await (0,s.A)({unparsedResults:c,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(55511),r=t(79428),i=t(32443);function l({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:l,salt:n,keyLen:o,algorithm:d,bufferAllocSize:u}=(0,i.A)({encryptionKey:a});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 c=(0,s.scryptSync)(l,n,o),m=r.Buffer.alloc(u,0),_=(0,s.createDecipheriv)(d,c,m);try{let a=_.update(e,"hex","utf8");return a+=_.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},47546:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(7447);function r(...e){let a=(0,s.A)();try{return new Promise((t,s)=>{a.query(...e).then(e=>{a.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}finally{a?.end()}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5392.js b/dsql-app/.local_dist/server/chunks/5392.js index b219166..e17328a 100644 --- a/dsql-app/.local_dist/server/chunks/5392.js +++ b/dsql-app/.local_dist/server/chunks/5392.js @@ -1 +1 @@ -"use strict";exports.id=5392,exports.ids=[5392],exports.modules={53926:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(8732),r=t(82015),n=t.n(r);function i({confirmedDelegetedUser:e,linksArray:s,user:t}){let[r,i]=n().useState(s||null);return r&&r[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:r.map((e,s,t)=>s===r.length-1?(0,a.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,a.jsxs)(n().Fragment,{children:[(0,a.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,a.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,a.jsx)(n().Fragment,{})}},87639:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),r=t(82015),n=t.n(r);t(46169);var i=t(72390),l=t(16757),c=t(66916),o=t(66918),d=t(23293);function x(){let[e,s]=n().useState(!0),[t,r]=n().useState(0),[x,m]=n().useState(0);return e?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(l.A,{width:"15px",position:"relative"})}):(0,a.jsx)(n().Fragment,{children:t?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{m(e=>e+1),s(!1)})},children:[e&&(0,a.jsx)(l.A,{width:"15px"}),(0,a.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,a.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:t&&t.toFixed(2)}),(0,a.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,a.jsx)(o.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,a.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,a.jsx)(d.A,{}),(0,a.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},92702:(e,s,t)=>{t.d(s,{A:()=>c});var a=t(71934),r=t(71205),n=t(29021),i=t.n(n),l=t(41939);async function c(e,s,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,r.A)({encryptedString:e.cookies[n]});if(!o)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(o);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let x=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!x)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${x}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(s){return console.log(`userAuth Error for ${e.url}: ${s.message}`),null}}},72390:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(46169);async function r(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},89923:(e,s,t)=>{t.d(s,{A:()=>a});function a(e,s){return s?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},25562:(e,s,t)=>{t.d(s,{A:()=>N});var a=t(8732),r=t(82015),n=t.n(r),i=t(27912),l=t.n(i),c=t(50139),o=t(52070),d=t(34637),x=t(83158),m=t(25294),h=t(92441),u=t(29743),p=t(10643),j=t(10321),f=t(89923);function g({user:e}){let[s,t]=n().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),children:[(0,a.jsx)(c.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:t}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,a.jsx)(o.A,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases`,"data-currentlink":`/admin/${e?.id}/databases`,children:[(0,a.jsx)(d.A,{size:20}),(0,a.jsx)("span",{children:"Databases"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/media`,"data-currentlink":`/admin/${e?.id}/media`,children:[(0,a.jsx)(x.A,{size:20}),(0,a.jsx)("span",{children:"Media"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/users`,"data-currentlink":`/admin/${e?.id}/users`,children:[(0,a.jsx)(m.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/schema`,"data-currentlink":`/admin/${e?.id}/schema`,children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Schema"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/api-keys`,"data-currentlink":`/admin/${e?.id}/api-keys`,children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"API Keys"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/connect`,"data-currentlink":`/admin/${e?.id}/connect`,children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Connect"})]}),(0,f.A)(e)&&(0,a.jsx)(n().Fragment,{children:(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,a.jsx)(j.A,{size:20}),(0,a.jsx)("span",{children:"Super Admin User"})]})}),(0,a.jsx)("hr",{className:"opacity-80"}),(0,a.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,a.jsx)("a",{href:`/admin/${e?.id}/settings`,"data-currentlink":`/admin/${e?.id}/settings`,children:(0,a.jsx)("span",{children:"Settings"})}),(0,a.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,a.jsx)("span",{children:"Documentation"})}),(0,a.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,a.jsx)("span",{children:"Logout"})})]})]})]})}var y=t(192);function v({user:e,extraHeaderContent:s}){let[t,r]=n().useState(e||null);return(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 shadow-slate-900/5 relative z-[100]",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,a.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,a.jsx)("div",{className:"gap-6",children:s}),(0,a.jsx)(y.A,{activeUser:t})]})]}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}t(27550);var _=t(87639);function N({children:e,head:s,user:t,productionEnvironment:r,extraHeaderContent:i,aceEditor:o}){return i||(i=(0,a.jsx)(_.A,{})),(0,a.jsxs)(n().Fragment,{children:[(0,a.jsxs)(l(),{children:[s,(0,a.jsxs)(n().Fragment,{children:[(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(g,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(v,{user:t,extraHeaderContent:i}),(0,a.jsx)("div",{className:"admin-content relative z-10",children:e}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}t(46169)},41939:(e,s,t)=>{t.d(s,{A:()=>a});function a(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=s;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let l=s;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let c=s;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:l,oneTimeCodeName:c+=r}}},71205:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(55511),r=t(79428);function n({encryptedString:e,encryptionKey:s,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=s||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,a.scryptSync)(n,i,l),o=r.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",c,o);try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},71934:(e,s,t)=>{t.d(s,{A:()=>a});async function a(...e){let s=global.DSQL_DB_CONN;try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let t=await s.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},5583:(e,s,t)=>{t.r(s),t.d(s,{default:()=>n});var a=t(8732);t(82015);var r=t(20883);function n(){return(0,a.jsxs)(r.Html,{lang:"en",children:[(0,a.jsxs)(r.Head,{children:[(0,a.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,a.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,a.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,a.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,a.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,a.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,a.jsxs)("body",{children:[(0,a.jsx)(r.Main,{}),(0,a.jsx)(r.NextScript,{})]})]})}}}; \ No newline at end of file +"use strict";exports.id=5392,exports.ids=[5392],exports.modules={53926:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(8732),n=t(82015),l=t.n(n);function i({confirmedDelegetedUser:e,linksArray:s,user:t}){let[n,i]=l().useState(s||null);return n&&n[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:n.map((e,s,t)=>s===n.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)(l().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)(l().Fragment,{})}},87639:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),n=t(82015),l=t.n(n);t(46169);var i=t(72390),r=t(16757),c=t(66916),d=t(66918),o=t(23293);function x(){let[e,s]=l().useState(!0),[t,n]=l().useState(0),[x,m]=l().useState(0);return e?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(r.A,{width:"15px",position:"relative"})}):(0,a.jsx)(l().Fragment,{children:t?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{m(e=>e+1),s(!1)})},children:[e&&(0,a.jsx)(r.A,{width:"15px"}),(0,a.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,a.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:t&&t.toFixed(2)}),(0,a.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,a.jsx)(d.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)(o.A,{}),(0,a.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},92702:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(39908),n=t.n(a);async function l(e,s,t){let a=n()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},72390:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(46169);async function n(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},89923:(e,s,t)=>{t.d(s,{A:()=>a});function a(e,s){return s?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},25562:(e,s,t)=>{t.d(s,{A:()=>w});var a=t(8732),n=t(82015),l=t.n(n),i=t(27912),r=t.n(i),c=t(50139),d=t(52070),o=t(34637),x=t(83158),m=t(25294),h=t(92441),j=t(29743),p=t(10643),u=t(10321),g=t(89923);function f({user:e}){let[s,t]=l().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)(d.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)(o.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)(j.A,{size:20}),(0,a.jsx)("span",{children:"API Keys"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/connect`,"data-currentlink":`/admin/${e?.id}/connect`,children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Connect"})]}),(0,g.A)(e)&&(0,a.jsx)(l().Fragment,{children:(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"Super Admin User"})]})}),(0,a.jsx)("hr",{className:"opacity-80"}),(0,a.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,a.jsx)("a",{href:`/admin/${e?.id}/settings`,"data-currentlink":`/admin/${e?.id}/settings`,children:(0,a.jsx)("span",{children:"Settings"})}),(0,a.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,a.jsx)("span",{children:"Documentation"})}),(0,a.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,a.jsx)("span",{children:"Logout"})})]})]})]})}var y=t(192);function v({user:e,extraHeaderContent:s}){let[t,n]=l().useState(e||null);return(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 shadow-slate-900/5 relative z-[100]",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,a.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,a.jsx)("div",{className:"gap-6",children:s}),(0,a.jsx)(y.A,{activeUser:t})]})]}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}t(27550);var b=t(87639);function w({children:e,head:s,user:t,productionEnvironment:n,extraHeaderContent:i,aceEditor:d}){return i||(i=(0,a.jsx)(b.A,{})),(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)(r(),{children:[s,(0,a.jsxs)(l().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)(f,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(v,{user:t,extraHeaderContent:i}),(0,a.jsx)("div",{className:"admin-content relative z-10",children:e}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}t(46169)},5583:(e,s,t)=>{t.r(s),t.d(s,{default:()=>l});var a=t(8732);t(82015);var n=t(20883);function l(){return(0,a.jsxs)(n.Html,{lang:"en",children:[(0,a.jsxs)(n.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)(n.Main,{}),(0,a.jsx)(n.NextScript,{})]})]})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5771.js b/dsql-app/.local_dist/server/chunks/5771.js new file mode 100644 index 0000000..ee1bfdc --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5771.js @@ -0,0 +1 @@ +"use strict";exports.id=5771,exports.ids=[5771],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,s){return s in a?a[s]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,s)):"function"==typeof a&&"default"===s?a:void 0}}})},74153:(e,a,s)=>{s.d(a,{A:()=>h});var t=s(8732),l=s(82015),n=s.n(l),r=s(88791),d=s(91140),i=s(46169),c=s(16757),o=s(55904),p=s(6070);function h({database:e,setTargetDatabase:a,delegated:s,user:l}){let h=`/admin/${l?.id}/databases/${e.db_slug}`+(s?`?delegated=true&dbUserId=${e.user_id}`:""),{active_clone:u,active_clone_parent_db:m}=e,[x,y]=n().useState(!1);return(0,t.jsxs)("a",{href:h,className:"card",onClick:a=>{let t=a.target;(t.closest(".db-list-item-actions-block")||t.closest(".cancel-link"))&&a.preventDefault(),s&&(a.preventDefault(),y(!0),(0,i.A)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:e.user_id,priviledges:e.user_priviledge,database:e.db_slug}},!0).then(e=>{e.success&&(window.location.href=h)}),setTimeout(()=>{y(!1)},1e3))},children:[x&&(0,t.jsx)(c.A,{width:"20px"}),(0,t.jsx)("img",{src:e.db_image?e.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:e.db_image?"avatar":"avatar opacity-50"}),(0,t.jsxs)("div",{className:"flex-col items-start grow",children:[(0,t.jsx)("span",{className:"title",children:e.db_name}),m&&(0,t.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,t.jsx)("b",{children:m.replace(/datasquirel_user_\d+_/,"")})]}),(0,t.jsx)("div",{className:"-mt-2",children:(0,t.jsx)(r.A,{slugText:e.db_slug,smaller:!0})}),(0,t.jsx)("div",{className:"-mt-1 gap-1",children:(0,t.jsx)(r.A,{slugText:e.db_full_name,smaller:!0,full:!0})}),!s&&(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",e.date_created?.substring(0,21)]}),s&&(0,t.jsxs)("div",{className:"flex items-center mt-2",children:[(0,t.jsx)("img",{src:e.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,t.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-600",children:[e.first_name," ",e.last_name]}),(0,t.jsx)("span",{className:"text-xs text-slate-400",children:e.email})]})]}),(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(o.A,{children:[!s&&(0,t.jsx)("button",{className:"outlined light-gray small-text",onClick:a=>{window.location.pathname=`/admin/${l?.id}/databases/${e.db_slug}/edit-database`},children:(0,t.jsx)("span",{children:"Edit"})}),!s&&!u&&(0,t.jsx)("button",{className:"outlined light-gray small-text",onClick:a=>{window.location.href=`/admin/${l?.id}/databases/add-database?duplicate=${e.db_full_name}`},children:(0,t.jsx)("span",{children:"Duplicate"})}),!s&&(0,t.jsx)("button",{className:"outlined light-gray small-text",onClick:s=>{a&&a(e),(0,d.PB)("delete-database-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(p.A,{className:"text-slate-600",size:20})]})]})]})}},56331:(e,a,s)=>{s.d(a,{A:()=>i});var t=s(8732),l=s(82015),n=s.n(l),r=s(74153);let d=(0,s(82544).A)("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);function i({databases:e,setTargetDatabase:a,title:s,more:l,user:i}){return(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("section",{className:"paper",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:s||"Database List"}),i&&e&&e[0]&&a&&(0,t.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:e.map(e=>(0,t.jsx)(r.A,{database:e,setTargetDatabase:a,user:i},e.id))}),l&&e&&e[0]&&(0,t.jsx)("a",{href:`/admin/${i?.id}/databases`,className:"button w-full more-padding",children:"See All Databases"}),!e||!e[0]&&(0,t.jsxs)("a",{href:`/admin/${i?.id}/databases/add-database`,className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,t.jsx)(d,{}),(0,t.jsx)("span",{className:"",children:"Add Database"})]})]})})}},67274:(e,a,s)=>{s.d(a,{A:()=>i});var t=s(8732),l=s(82015),n=s.n(l),r=s(16757);s(46169);var d=s(74153);function i({user:e}){let[a,s]=n().useState(null),[l,i]=n().useState(!1);return(0,t.jsxs)("section",{className:"paper",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),l&&(0,t.jsx)(r.A,{}),e&&a?a[0]?(0,t.jsx)(n().Fragment,{children:(0,t.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map(a=>(0,t.jsx)(d.A,{database:a,delegated:!0,user:e},a.id))})}):(0,t.jsx)(n().Fragment,{children:(0,t.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,t.jsx)(n().Fragment,{children:(0,t.jsx)("div",{className:"w-full justify-center",children:(0,t.jsx)(r.A,{position:"relative",width:"20px"})})})]})}},70355:(e,a,s)=>{s.d(a,{A:()=>c});var t=s(8732),l=s(82015),n=s.n(l),r=s(46169),d=s(91140),i=s(16757);function c({targetDatabase:e}){let[a,s]=n().useState(!1);return(0,t.jsxs)(d.Ay,{title:"delete-database-confirmation",children:[a&&(0,t.jsx)(i.A,{width:"20px"}),(0,t.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}s(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,r.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):s(!1)},children:(0,t.jsx)("span",{children:"Yes"})}),(0,t.jsx)("button",{onClick:e=>{(0,d.fs)()},children:(0,t.jsx)("span",{children:"Cancel"})})]})]})}},88791:(e,a,s)=>{s.d(a,{A:()=>n});var t=s(8732),l=s(96089);function n({slugText:e,smaller:a,outlined:s,full:n}){return(0,t.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(s?" outlined gray":"light-gray")+(a?" small-text":""),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`${n?"Database Full name":"Database Slug"} "${e}" Copied to Clipboard. Use this as the database name when querying data`)})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,t.jsx)(l.A,{}),(0,t.jsx)("span",{children:e})]})}s(82015)},91140:(e,a,s)=>{s.d(a,{Ay:()=>d,PB:()=>i,fs:()=>c});var t=s(8732),l=s(58150),n=s(82015),r=s.n(n);function d({children:e,title:a,data:s,fullPage:n,wrapperClasses:d,closePopupDispatch:i,wrapperStyle:o,noContainer:p}){return n?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":a||null,style:o,children:[p?(0,t.jsx)(r().Fragment,{children:e}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),i&&i()},children:(0,t.jsx)(l.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[p?(0,t.jsx)(r().Fragment,{children:e}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]})}function i(e,a){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",a?.(s))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},66485:(e,a,s)=>{s.d(a,{A:()=>l});var t=s(8732);function l(){return(0,t.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,t.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}s(82015)},55904:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(8732),l=s(82015),n=s.n(l);function r({children:e,column:a,className:s}){let l=n().useRef();return(0,t.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(s?" "+s:""),ref:l,children:e})}},23293:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},6070:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},96089:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(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"}]])},58150:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71934:(e,a,s)=>{s.d(a,{A:()=>l});var t=s(51779);async function l(...e){let a=(0,t.A)();try{if(!a)throw Error("No Connection provided to DB_HANDLER function!");let s=await a.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await a?.end()}}},51779:(e,a,s)=>{s.d(a,{A:()=>n});var t=s(9973),l=s.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||l()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||l()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||l()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,a)=>{Object.defineProperty(a,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6133.js b/dsql-app/.local_dist/server/chunks/6133.js new file mode 100644 index 0000000..64f5cd4 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/6133.js @@ -0,0 +1,16 @@ +"use strict";exports.id=6133,exports.ids=[6133],exports.modules={96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(39908),t=s.n(n);async function o(e,r,s){let n=t()({req:e,level:s?"deep":void 0});return console.log(n),n.payload}},67619:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(29021),t=s.n(n);async function o({user:e,message:r,component:s,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"],s=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],t=s||n||r||o.socket.remoteAddress;if(!t)return null;return String(t)}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} +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()} +========================================`,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)}}},95969:(e,r,s)=>{s.d(r,{A:()=>a});var n=s(55511),t=s(79428),o=s(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:i,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,o.A)({encryptionKey:r});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 E=(0,n.scryptSync)(a,i,l),S=t.Buffer.alloc(u,0),_=(0,n.createDecipheriv)(c,E,S);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,s)=>{s.d(r,{A:()=>a});var n=s(55511),t=s(79428),o=s(32443);function a({data:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:a,salt:i,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,o.A)({encryptionKey:r});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 E=(0,n.scryptSync)(a,i,l),S=t.Buffer.alloc(u,0),_=(0,n.createCipheriv)(c,E,S);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},5437:(e,r,s)=>{s.d(r,{A:()=>_});var n=s(33873),t=s.n(n),o=s(47795),a=s.n(o),i=s(66866),l=s(41864);async function c({username:e,host:r,grants:s,userId:n}){let t=!1;if(console.log("Handling Grants for User =>",e,r),!e)return console.log("No username provided."),t;if(!r)return console.log(`No Host provided. \x1b[35m\`--host\`\x1b[0m flag is required`),t;if(!s)return console.log("No grants Array provided."),t;try{let o=await (0,i.A)(`SELECT * FROM mysql.user WHERE User = '${e}' AND Host = '${r}'`);if(o?.[0]?.User){let t=await (0,i.A)(`SHOW GRANTS FOR '${e}'@'${r}'`);for(let e=0;e",e.message)}return t}var u=s(68829),E=s(95969);s(60818).config({path:t().resolve(__dirname,"../../../.env")});let S=process.env.DSQL_DB_HOST||"127.0.0.1";async function _({userId:e,mariadbUserHost:r,mariadbUsername:s,sqlUserID:n}){let t=await (0,l.A)({query:"SELECT * FROM mariadb_users"});if(!t?.[0])return;let o=!!e&&e==Number(process.env.DSQL_SU_USER_ID);for(let _=0;_",e.message)}}}},41864:(e,r,s)=>{s.d(r,{A:()=>l});var n=s(29021),t=s.n(n),o=s(33873),a=s.n(o),i=s(7447);async function l({query:e,values:r}){let s;let n=(0,i.A)();try{s=e&&r?await n.query(e,r):await n.query(e)}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(n.config()),t().appendFileSync(a().resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),s=null}finally{await n?.end()}return s?JSON.parse(JSON.stringify(s)):null}},66866:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(41864);async function t(e){let r;try{r=await (0,n.A)({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48786:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(7447);async function t(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(9973),t=s.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,s)=>{s.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6160.js b/dsql-app/.local_dist/server/chunks/6160.js deleted file mode 100644 index eeaff40..0000000 --- a/dsql-app/.local_dist/server/chunks/6160.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";exports.id=6160,exports.ids=[6160],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,t){return t in a?a[t]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,t)):"function"==typeof a&&"default"===t?a:void 0}}})},74153:(e,a,t)=>{t.d(a,{A:()=>p});var s=t(8732),l=t(82015),d=t.n(l),n=t(88791),i=t(91140),r=t(46169),c=t(16757),o=t(55904),h=t(6070);function p({database:e,setTargetDatabase:a,delegated:t,user:l}){let p=`/admin/${l?.id}/databases/${e.db_slug}`+(t?`?delegated=true&dbUserId=${e.user_id}`:""),{active_clone:x,active_clone_parent_db:m}=e,[u,y]=d().useState(!1);return(0,s.jsxs)("a",{href:p,className:"card",onClick:a=>{let s=a.target;(s.closest(".db-list-item-actions-block")||s.closest(".cancel-link"))&&a.preventDefault(),t&&(a.preventDefault(),y(!0),(0,r.A)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:e.user_id,priviledges:e.user_priviledge,database:e.db_slug}},!0).then(e=>{e.success&&(window.location.href=p)}),setTimeout(()=>{y(!1)},1e3))},children:[u&&(0,s.jsx)(c.A,{width:"20px"}),(0,s.jsx)("img",{src:e.db_image?e.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:e.db_image?"avatar":"avatar opacity-50"}),(0,s.jsxs)("div",{className:"flex-col items-start grow",children:[(0,s.jsx)("span",{className:"title",children:e.db_name}),m&&(0,s.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,s.jsx)("b",{children:m.replace(/datasquirel_user_\d+_/,"")})]}),(0,s.jsx)("div",{className:"-mt-2",children:(0,s.jsx)(n.A,{slugText:e.db_slug,smaller:!0})}),(0,s.jsx)("div",{className:"-mt-1 gap-1",children:(0,s.jsx)(n.A,{slugText:e.db_full_name,smaller:!0,full:!0})}),!t&&(0,s.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",e.date_created?.substring(0,21)]}),t&&(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("img",{src:e.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600",children:[e.first_name," ",e.last_name]}),(0,s.jsx)("span",{className:"text-xs text-slate-400",children:e.email})]})]}),(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,s.jsxs)(o.A,{children:[!t&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:a=>{window.location.pathname=`/admin/${l?.id}/databases/${e.db_slug}/edit-database`},children:(0,s.jsx)("span",{children:"Edit"})}),!t&&!x&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:a=>{window.location.href=`/admin/${l?.id}/databases/add-database?duplicate=${e.db_full_name}`},children:(0,s.jsx)("span",{children:"Duplicate"})}),!t&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{a&&a(e),(0,i.PB)("delete-database-confirmation")},children:(0,s.jsx)("span",{children:"Delete"})})]})}),(0,s.jsx)(h.A,{className:"text-slate-600",size:20})]})]})]})}},56331:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(8732),l=t(82015),d=t.n(l),n=t(74153);let i=(0,t(82544).A)("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);function r({databases:e,setTargetDatabase:a,title:t,more:l,user:r}){return(0,s.jsx)(d().Fragment,{children:(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:t||"Database List"}),r&&e&&e[0]&&a&&(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:e.map(e=>(0,s.jsx)(n.A,{database:e,setTargetDatabase:a,user:r},e.id))}),l&&e&&e[0]&&(0,s.jsx)("a",{href:`/admin/${r?.id}/databases`,className:"button w-full more-padding",children:"See All Databases"}),!e||!e[0]&&(0,s.jsxs)("a",{href:`/admin/${r?.id}/databases/add-database`,className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,s.jsx)(i,{}),(0,s.jsx)("span",{className:"",children:"Add Database"})]})]})})}},67274:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(8732),l=t(82015),d=t.n(l),n=t(16757);t(46169);var i=t(74153);function r({user:e}){let[a,t]=d().useState(null),[l,r]=d().useState(!1);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),l&&(0,s.jsx)(n.A,{}),e&&a?a[0]?(0,s.jsx)(d().Fragment,{children:(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map(a=>(0,s.jsx)(i.A,{database:a,delegated:!0,user:e},a.id))})}):(0,s.jsx)(d().Fragment,{children:(0,s.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,s.jsx)(d().Fragment,{children:(0,s.jsx)("div",{className:"w-full justify-center",children:(0,s.jsx)(n.A,{position:"relative",width:"20px"})})})]})}},70355:(e,a,t)=>{t.d(a,{A:()=>c});var s=t(8732),l=t(82015),d=t.n(l),n=t(46169),i=t(91140),r=t(16757);function c({targetDatabase:e}){let[a,t]=d().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}t(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,n.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):t(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},88791:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(8732),l=t(96089);function d({slugText:e,smaller:a,outlined:t,full:d}){return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(t?" outlined gray":"light-gray")+(a?" small-text":""),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`${d?"Database Full name":"Database Slug"} "${e}" Copied to Clipboard. Use this as the database name when querying data`)})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{children:e})]})}t(82015)},91140:(e,a,t)=>{t.d(a,{Ay:()=>i,PB:()=>r,fs:()=>c});var s=t(8732),l=t(58150),d=t(82015),n=t.n(d);function i({children:e,title:a,data:t,fullPage:d,wrapperClasses:i,closePopupDispatch:r,wrapperStyle:o,noContainer:h}){return d?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":a||null,style:o,children:[h?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),r&&r()},children:(0,s.jsx)(l.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),r&&r()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[h?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),r&&r()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),h&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),r&&r()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),r&&r()}})]})}function r(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a?.(t))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},66485:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(8732);function l(){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(82015)},55904:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(8732),l=t(82015),d=t.n(l);function n({children:e,column:a,className:t}){let l=d().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(t?" "+t:""),ref:l,children:e})}},23293:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},6070:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},96089:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,a,t)=>{t.d(a,{A:()=>s});let s=(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"}]])},58150:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,a)=>{Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3791.js b/dsql-app/.local_dist/server/chunks/6247.js similarity index 61% rename from dsql-app/.local_dist/server/chunks/3791.js rename to dsql-app/.local_dist/server/chunks/6247.js index c302f2f..27a551d 100644 --- a/dsql-app/.local_dist/server/chunks/3791.js +++ b/dsql-app/.local_dist/server/chunks/6247.js @@ -1 +1 @@ -"use strict";exports.id=3791,exports.ids=[3791],exports.modules={23791:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>o,p:()=>u});var t=s(8732),i=s(82015),n=s.n(i),r=s(6803),c=s(537),d=e([r]);function o({database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:i,user:d}){return l?.delegated,l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i),l?.priviledges?.match(/Create Tables/i),(0,t.jsxs)(n().Fragment,{children:[e.active_clone&&d?(0,t.jsx)(c.A,{database:e,user:d}):(0,t.jsx)(t.Fragment,{}),e.remote_connected?(0,t.jsx)(u,{database:e}):(0,t.jsx)(t.Fragment,{}),(0,t.jsxs)("section",{className:"paper gray",children:[a&&a[0]?(0,t.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,t.jsx)("a",{href:`/admin/${d?.id}/databases/${e.db_slug}/tables`,className:"button outlined gray small-text",children:"See All Tables"})]}):(0,t.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,t.jsx)("hr",{}),d?(0,t.jsx)(r.A,{database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:i,user:d}):null]})]})}function u({database:e}){return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:e.remote_db_full_name?.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,t.jsx)("a",{className:"font-bold text-inherit",href:e.remote_connection_host,target:"_blank",children:e.remote_connection_host})," ","Host"]})})}r=(d.then?(await d)():d)[0],l()}catch(e){l(e)}})},17208:(e,a,s)=>{s.d(a,{A:()=>o});var l=s(8732),t=s(82015),i=s.n(t),n=s(46169),r=s(83921),c=s(16757),d=s(2459);function o({database:e}){let a=i().useRef(),[s,t]=i().useState(!1);return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:a}),(0,l.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:s=>{a.current?.addEventListener("change",a=>{let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected");return}r.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)&&(t(!0),n.A("/api/importDatabase",{method:"post",body:{database:e,fileBase64:a.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{t(!1)},1e3)}))})}),a.current?.click()},children:[s&&(0,l.jsx)(c.A,{}),(0,l.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,l.jsx)(d.A,{}),(0,l.jsx)("span",{className:"",children:"Import Database"})]})]})}},7605:(e,a,s)=>{s.d(a,{A:()=>o});var l=s(8732),t=s(82015),i=s.n(t),n=s(46169),r=s(83921),c=s(16757),d=s(38552);function o({database:e}){let a=i().useRef(),[s,t]=i().useState(!1);return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:a}),(0,l.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:s=>{a.current?.addEventListener("change",a=>{let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected");return}r.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)&&(t(!0),n.A("/api/importDatabaseSchema",{method:"post",body:{database:e,fileBase64:a.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{t(!1)},1e3)}))})}),a.current?.click()},children:[s&&(0,l.jsx)(c.A,{}),(0,l.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,l.jsx)(d.A,{}),(0,l.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}},83556:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>h});var t=s(8732),i=s(82015),n=s.n(i),r=s(73872),c=s(91140),d=s(55904),o=s(93213),u=s(6070),m=e([r]);function h({table:e,setTargetTable:a,database:s,confirmedDelegetedUser:l,query:i,icons:m,user:h}){let p=l?.delegated,x=l?.priviledges?.match(/Edit Tables/i),f=l?.priviledges?.match(/Delete Tables/i);l?.priviledges?.match(/Create Table/i);let{active_clone:b,active_clone_parent_db:j,remote_connected:g}=s;return(0,t.jsxs)("a",{href:`/admin/${h?.id}/databases/${s.db_slug}/tables/${e.table_slug}`,className:"card w-full items-center justify-between py-4"+(e?.child_table?" green":""),onClick:e=>{e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,t.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,t.jsx)(o.A,{size:20,opacity:.3}),(0,t.jsx)("span",{className:"title",style:{fontSize:"16px"},children:e.table_name}),(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",e.date_created?.substring(0,21)]})]}),(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(d.A,{children:[(0,t.jsx)(r.A,{slugText:e.table_slug||"",outlined:!0}),(!p||p&&x)&&!j&&!g&&(0,t.jsx)(n().Fragment,{children:(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:a=>{window.location.pathname=`/admin/${h?.id}/databases/${s.db_slug}/tables/${e.table_slug}/edit-table`},children:(0,t.jsx)("span",{children:"Edit"})})}),!j&&!e.child_table&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:a=>{window.location.href=`/admin/${h?.id}/databases/${s.db_slug}/tables/add-table?clone=true&clone_db=${s.db_slug}&clone_table=${e.table_slug}`},children:(0,t.jsx)("span",{children:"Clone"})}),(!p||p&&f)&&!j&&!g&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:s=>{a(e),(0,c.PB)("delete-table-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(u.A,{className:"text-slate-600",size:20})]})]})}r=(m.then?(await m)():m)[0],l()}catch(e){l(e)}})},6803:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>f});var t=s(8732),i=s(82015),n=s.n(i),r=s(83556),c=s(17208),d=s(7605),o=s(11717),u=s(62338),m=s(46512),h=s(96089),p=s(2833),x=e([r]);function f({database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:i,user:x}){let f=l?.delegated;l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i);let b=l?.priviledges?.match(/Create Table/i),j=(!a||!a[0])&&!f||(!a||!a[0])&&!!f&&!!b,{active_clone:g,active_clone_parent_db:N,remote_connected:y}=e;return(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("div",{className:"w-full flex-col",children:[a&&a[0]&&a.map(a=>(0,t.jsx)(r.A,{table:a,setTargetTable:s,database:e,confirmedDelegetedUser:l,query:i,icons:{edit:(0,t.jsx)(o.A,{}),duplicate:(0,t.jsx)(u.A,{}),delete:(0,t.jsx)(m.A,{}),copy:(0,t.jsx)(h.A,{})},user:x},a.id)),j&&!N&&!y&&(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,t.jsxs)("a",{href:`/admin/${x?.id}/databases/${e.db_slug}/tables/add-table`,className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,t.jsx)(p.A,{}),(0,t.jsx)("span",{className:"",children:"Add Table"})]}),(0,t.jsx)(c.A,{database:e}),(0,t.jsx)(d.A,{database:e})]})}),(!a||!a[0])&&f&&(0,t.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}r=(x.then?(await x)():x)[0],l()}catch(e){l(e)}})},537:(e,a,s)=>{s.d(a,{A:()=>t});var l=s(8732);function t({database:e,user:a}){let s=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),t=`/admin/${a?.id}/databases/${s}`;return(0,l.jsx)("div",{className:"info green",children:(0,l.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,l.jsx)("b",{children:(0,l.jsx)("a",{href:t,target:"_blank",className:"query-url",children:s})})]})})}s(82015)},91140:(e,a,s)=>{s.d(a,{Ay:()=>r,PB:()=>c,fs:()=>d});var l=s(8732),t=s(58150),i=s(82015),n=s.n(i);function r({children:e,title:a,data:s,fullPage:i,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:o,noContainer:u}){return i?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:o,children:[u?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,l.jsx)(t.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[u?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function c(e,a){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",a?.(s))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,a,s)=>{s.d(a,{A:()=>n});var l=s(8732),t=s(82015),i=s.n(t);function n({children:e,column:a,className:s}){let t=i().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(s?" "+s:""),ref:t,children:e})}},83921:(e,a,s)=>{s.d(a,{A:()=>l});async function l({inputFile:e}){try{let a=e.name.replace(/\..*/,""),s=await new Promise((a,s)=>{var l=new FileReader;l.readAsDataURL(e),l.onload=function(){a(l.result)},l.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:s.replace(/.*?base64,/,""),fileBase64Full:s,fileName:a,fileSize:e.size,fileType:e.type}}catch(a){return console.log("Image Processing Error! =>",a.message),{fileBase64:null,fileBase64Full:null,fileName:e.name,fileSize:null,fileType:null}}}}}; \ No newline at end of file +"use strict";exports.id=6247,exports.ids=[6247],exports.modules={23791:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>o,p:()=>u});var t=s(8732),n=s(82015),i=s.n(n),r=s(6803),c=s(537),d=e([r]);function o({database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:n,user:d}){return l?.delegated,l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i),l?.priviledges?.match(/Create Tables/i),(0,t.jsxs)(i().Fragment,{children:[e.active_clone&&d?(0,t.jsx)(c.A,{database:e,user:d}):(0,t.jsx)(t.Fragment,{}),e.remote_connected?(0,t.jsx)(u,{database:e}):(0,t.jsx)(t.Fragment,{}),(0,t.jsxs)("section",{className:"paper gray",children:[a&&a[0]?(0,t.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,t.jsx)("a",{href:`/admin/${d?.id}/databases/${e.db_slug}/tables`,className:"button outlined gray small-text",children:"See All Tables"})]}):(0,t.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,t.jsx)("hr",{}),d?(0,t.jsx)(r.A,{database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:n,user:d}):null]})]})}function u({database:e}){return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:e.remote_db_full_name?.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,t.jsx)("a",{className:"font-bold text-inherit",href:e.remote_connection_host,target:"_blank",children:e.remote_connection_host})," ","Host"]})})}r=(d.then?(await d)():d)[0],l()}catch(e){l(e)}})},17208:(e,a,s)=>{s.d(a,{A:()=>o});var l=s(8732),t=s(82015),n=s.n(t),i=s(46169),r=s(83921),c=s(16757),d=s(2459);function o({database:e}){let a=n().useRef(),[s,t]=n().useState(!1);return(0,l.jsxs)(n().Fragment,{children:[(0,l.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:a}),(0,l.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:s=>{a.current?.addEventListener("change",a=>{let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected");return}r.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)&&(t(!0),i.A("/api/importDatabase",{method:"post",body:{database:e,fileBase64:a.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{t(!1)},1e3)}))})}),a.current?.click()},children:[s&&(0,l.jsx)(c.A,{}),(0,l.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,l.jsx)(d.A,{}),(0,l.jsx)("span",{className:"",children:"Import Database"})]})]})}},7605:(e,a,s)=>{s.d(a,{A:()=>o});var l=s(8732),t=s(82015),n=s.n(t),i=s(46169),r=s(83921),c=s(16757),d=s(38552);function o({database:e}){let a=n().useRef(),[s,t]=n().useState(!1);return(0,l.jsxs)(n().Fragment,{children:[(0,l.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:a}),(0,l.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:s=>{a.current?.addEventListener("change",a=>{let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected");return}r.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)&&(t(!0),i.A("/api/importDatabaseSchema",{method:"post",body:{database:e,fileBase64:a.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{t(!1)},1e3)}))})}),a.current?.click()},children:[s&&(0,l.jsx)(c.A,{}),(0,l.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,l.jsx)(d.A,{}),(0,l.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}},83556:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>p});var t=s(8732),n=s(82015),i=s.n(n),r=s(73872),c=s(91140),d=s(55904),o=s(93213),u=s(6070),m=e([r]);function p({table:e,setTargetTable:a,database:s,confirmedDelegetedUser:l,query:n,icons:m,user:p}){let h=l?.delegated,f=l?.priviledges?.match(/Edit Tables/i),x=l?.priviledges?.match(/Delete Tables/i);l?.priviledges?.match(/Create Table/i);let{active_clone:b,active_clone_parent_db:g,remote_connected:j}=s;return(0,t.jsxs)("a",{href:`/admin/${p?.id}/databases/${s.db_slug}/tables/${e.table_slug}`,className:"card w-full items-center justify-between py-4"+(e?.child_table?" green":""),onClick:e=>{e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,t.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,t.jsx)(o.A,{size:20,opacity:.3}),(0,t.jsx)("span",{className:"title",style:{fontSize:"16px"},children:e.table_name}),(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",e.date_created?.substring(0,21)]})]}),(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(d.A,{children:[(0,t.jsx)(r.A,{slugText:e.table_slug||"",outlined:!0}),(!h||h&&f)&&!g&&!j&&(0,t.jsx)(i().Fragment,{children:(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:a=>{window.location.pathname=`/admin/${p?.id}/databases/${s.db_slug}/tables/${e.table_slug}/edit-table`},children:(0,t.jsx)("span",{children:"Edit"})})}),!g&&!e.child_table&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:a=>{window.location.href=`/admin/${p?.id}/databases/${s.db_slug}/tables/add-table?clone=true&clone_db=${s.db_slug}&clone_table=${e.table_slug}`},children:(0,t.jsx)("span",{children:"Clone"})}),(!h||h&&x)&&!g&&!j&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:s=>{a(e),(0,c.PB)("delete-table-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(u.A,{className:"text-slate-600",size:20})]})]})}r=(m.then?(await m)():m)[0],l()}catch(e){l(e)}})},6803:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>x});var t=s(8732),n=s(82015),i=s.n(n),r=s(83556),c=s(17208),d=s(7605),o=s(11717),u=s(62338),m=s(46512),p=s(96089),h=s(2833),f=e([r]);function x({database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:n,user:f}){let x=l?.delegated;l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i);let b=l?.priviledges?.match(/Create Table/i),g=(!a||!a[0])&&!x||(!a||!a[0])&&!!x&&!!b,{active_clone:j,active_clone_parent_db:N,remote_connected:y}=e;return(0,t.jsx)(i().Fragment,{children:(0,t.jsxs)("div",{className:"w-full flex-col",children:[a&&a[0]&&a.map(a=>(0,t.jsx)(r.A,{table:a,setTargetTable:s,database:e,confirmedDelegetedUser:l,query:n,icons:{edit:(0,t.jsx)(o.A,{}),duplicate:(0,t.jsx)(u.A,{}),delete:(0,t.jsx)(m.A,{}),copy:(0,t.jsx)(p.A,{})},user:f},a.id)),g&&!N&&!y&&(0,t.jsx)(i().Fragment,{children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,t.jsxs)("a",{href:`/admin/${f?.id}/databases/${e.db_slug}/tables/add-table`,className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,t.jsx)(h.A,{}),(0,t.jsx)("span",{className:"",children:"Add Table"})]}),(0,t.jsx)(c.A,{database:e}),(0,t.jsx)(d.A,{database:e})]})}),(!a||!a[0])&&x&&(0,t.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}r=(f.then?(await f)():f)[0],l()}catch(e){l(e)}})},537:(e,a,s)=>{s.d(a,{A:()=>t});var l=s(8732);function t({database:e,user:a}){let s=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),t=`/admin/${a?.id}/databases/${s}`;return(0,l.jsx)("div",{className:"info green",children:(0,l.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,l.jsx)("b",{children:(0,l.jsx)("a",{href:t,target:"_blank",className:"query-url",children:s})})]})})}s(82015)},91140:(e,a,s)=>{s.d(a,{Ay:()=>r,PB:()=>c,fs:()=>d});var l=s(8732),t=s(58150),n=s(82015),i=s.n(n);function r({children:e,title:a,data:s,fullPage:n,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:o,noContainer:u}){return n?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:o,children:[u?(0,l.jsx)(i().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,l.jsx)(t.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[u?(0,l.jsx)(i().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function c(e,a){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",a?.(s))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,a,s)=>{s.d(a,{A:()=>i});var l=s(8732),t=s(82015),n=s.n(t);function i({children:e,column:a,className:s}){let t=n().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(s?" "+s:""),ref:t,children:e})}},83921:(e,a,s)=>{s.d(a,{A:()=>l});async function l({inputFile:e}){try{let a=e.name.replace(/\..*/,""),s=await new Promise((a,s)=>{var l=new FileReader;l.readAsDataURL(e),l.onload=function(){a(l.result)},l.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:s.replace(/.*?base64,/,""),fileBase64Full:s,fileName:a,fileSize:e.size,fileType:e.type}}catch(a){return console.log("Image Processing Error! =>",a.message),{fileBase64:null,fileBase64Full:null,fileName:e.name,fileSize:null,fileType:null}}}},71205:(e,a,s)=>{s.d(a,{A:()=>i});var l=s(55511),t=s(79428),n=s(48243);function i({encryptedString:e,encryptionKey:a,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:r,keyLen:c,algorithm:d,bufferAllocSize:o}=(0,n.A)({encryptionKey:a});if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!r?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,l.scryptSync)(i,r,c),m=t.Buffer.alloc(o,0),p=(0,l.createDecipheriv)(d,u,m);try{let a=p.update(e,"hex","utf8");return a+=p.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},48243:(e,a,s)=>{s.d(a,{A:()=>l});function l(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,a){try{let a=Number(e);if("number"!=typeof a||isNaN(a))return 0;return Math.round(a)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6622.js b/dsql-app/.local_dist/server/chunks/6622.js index 6877840..20a784a 100644 --- a/dsql-app/.local_dist/server/chunks/6622.js +++ b/dsql-app/.local_dist/server/chunks/6622.js @@ -1 +1 @@ -"use strict";exports.id=6622,exports.ids=[6622],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}}})},61197:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(71205),r=t(41939);async function l(e){let{keyCookieName:s,csrfCookieName:t}=(0,r.A)(),l=`${s}_su`;if(!e.cookies?.[l])return console.log("No auth key cookie found"),null;let n=(0,a.A)({encryptedString:e.cookies[l]});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}},40778:(e,s,t)=>{t.d(s,{A:()=>b});var a=t(8732),r=t(82015),l=t.n(r),n=t(27912),i=t.n(n),c=t(50139),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 u=(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 x=t(2459);let p=(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(){let[e,s]=l().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(e?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:e?"250px":"300px",zIndex:800},children:[(0,a.jsx)(c.A,{adminAside:!0,collapseAsideMobile:e,setCollapseAsideMobile:s}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(e?" 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)(u,{size:20}),(0,a.jsx)("span",{children:"Error Logs"})]}),(0,a.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,a.jsx)(x.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)(p,{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(81868),v=t(58526);function k({user:e,extraHeaderContent:s}){let[t,r]=l().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)(l().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(27550)},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"}]])},41939:(e,s,t)=>{t.d(s,{A:()=>a});function a(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=s;e?.userId&&(n+=`user_${e.userId}_`),l&&(n+=`${l}_`),n+=t;let i=s;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=a;let c=s;return e?.userId&&(c+=`user_${e.userId}_`),l&&(c+=`${l}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:c+=r}}},71205:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(55511),r=t(79428);function l({encryptedString:e,encryptionKey:s,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let l=s||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,a.scryptSync)(l,n,i),o=r.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",c,o);try{let s=d.update(e,"hex","utf8");return s+=d.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},5583:(e,s,t)=>{t.r(s),t.d(s,{default:()=>l});var a=t(8732);t(82015);var r=t(20883);function l(){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,{})]})]})}},9455:(e,s)=>{Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file +"use strict";exports.id=6622,exports.ids=[6622],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}}})},61197:(e,s,t)=>{t.d(s,{A:()=>l});var r=t(71205),a=t(41939);async function l(e){let{keyCookieName:s,csrfCookieName:t}=(0,a.A)(),l=`${s}_su`;if(!e.cookies?.[l])return console.log("No auth key cookie found"),null;let n=(0,r.A)({encryptedString:e.cookies[l]});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}},40778:(e,s,t)=>{t.d(s,{A:()=>b});var r=t(8732),a=t(82015),l=t.n(a),n=t(27912),i=t.n(n),c=t(50139),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 u=t(25294);let h=(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 x=(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"}]]),y=(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(){let[e,s]=l().useState(!0);return(0,r.jsxs)("aside",{className:"aside"+(e?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:e?"250px":"300px",zIndex:800},children:[(0,r.jsx)(c.A,{adminAside:!0,collapseAsideMobile:e,setCollapseAsideMobile:s}),(0,r.jsx)("hr",{className:"opacity-0 mt-4"}),(0,r.jsxs)("div",{className:"main-links"+(e?" hidden lg:flex":" "),children:[(0,r.jsxs)("a",{href:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,r.jsx)(d,{size:20}),(0,r.jsx)("span",{children:"Dashboard"})]}),(0,r.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,r.jsx)(u.A,{size:20}),(0,r.jsx)("span",{children:"Users"})]}),(0,r.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,r.jsx)(h,{size:20}),(0,r.jsx)("span",{children:"Error Logs"})]}),(0,r.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,r.jsx)(p.A,{size:20}),(0,r.jsx)("span",{children:"Servers"})]}),(0,r.jsxs)("a",{href:"/su/load-balancing","data-currentlink":"/su/load-balancing",children:[(0,r.jsx)(x,{size:20}),(0,r.jsx)("span",{children:"Load Balancing"})]}),!1,(0,r.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,r.jsx)(m,{size:20}),(0,r.jsx)("span",{children:"Backups"})]}),(0,r.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,r.jsx)(g,{size:20}),(0,r.jsx)("span",{children:"Console"})]}),(0,r.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,r.jsx)(y,{size:20}),(0,r.jsx)("span",{children:"Env"})]})]})]})}var j=t(81868),v=t(58526);function k({user:e,extraHeaderContent:s}){let[t,a]=l().useState(e||null);return(0,r.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,r.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,r.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,r.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,r.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,r.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,r.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,r.jsx)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:(0,r.jsx)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,r.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,r.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,r.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,r.jsx)("span",{children:(0,r.jsx)("b",{children:"Super User"})}),(0,r.jsx)(v.A,{size:20}),(0,r.jsx)("div",{className:"dropdown",children:(0,r.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,r.jsx)("div",{className:"ml-2",children:(0,r.jsx)(j.A,{})}),(0,r.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,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,r.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,r.jsxs)(l().Fragment,{children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),s]}),(0,r.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,r.jsx)(f,{}),(0,r.jsxs)("main",{className:"relative",children:[(0,r.jsx)(k,{user:t}),(0,r.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,r.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,r.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,r.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,r.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(0,r.jsx)("span",{className:"opacity-25",children:"|"}),(0,r.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,r.jsx)("span",{className:"opacity-25",children:"|"}),(0,r.jsx)("a",{href:"/docs",children:"Docs"}),(0,r.jsx)("span",{className:"opacity-25",children:"|"}),(0,r.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}t(27550)},2459:(e,s,t)=>{t.d(s,{A:()=>r});let r=(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:()=>r});let r=(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"}]])},41939:(e,s,t)=>{t.d(s,{A:()=>r});function r(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=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=s;e?.userId&&(n+=`user_${e.userId}_`),l&&(n+=`${l}_`),n+=t;let i=s;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=r;let c=s;return e?.userId&&(c+=`user_${e.userId}_`),l&&(c+=`${l}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:c+=a}}},71205:(e,s,t)=>{t.d(s,{A:()=>n});var r=t(55511),a=t(79428),l=t(48243);function n({encryptedString:e,encryptionKey:s,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:c,algorithm:o,bufferAllocSize:d}=(0,l.A)({encryptionKey:s});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,r.scryptSync)(n,i,c),h=a.Buffer.alloc(d,0),p=(0,r.createDecipheriv)(o,u,h);try{let s=p.update(e,"hex","utf8");return s+=p.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},48243:(e,s,t)=>{t.d(s,{A:()=>r});function r(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,s){try{let s=Number(e);if("number"!=typeof s||isNaN(s))return 0;return Math.round(s)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},5583:(e,s,t)=>{t.r(s),t.d(s,{default:()=>l});var r=t(8732);t(82015);var a=t(20883);function l(){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,s)=>{Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6903.js b/dsql-app/.local_dist/server/chunks/6903.js index 243f43f..72d5a01 100644 --- a/dsql-app/.local_dist/server/chunks/6903.js +++ b/dsql-app/.local_dist/server/chunks/6903.js @@ -1 +1 @@ -"use strict";exports.id=6903,exports.ids=[6903],exports.modules={80830:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(8732),n=l(58526);function a({selectOptions:e,name:t,onChangeHandler:l,required:a,setAlert:i,title:r,defaultValue:c,info:o,id:d}){try{function h(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,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[r&&(0,s.jsxs)("label",{htmlFor:t,children:[r,a?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:a,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:l,title:n}=e;return(0,s.jsx)("option",{value:l,selected:!!e.default,children:n},t+1)})}),(0,s.jsx)(n.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(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:h,onMouseLeave:h,onClick:h,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:o})}),(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"})}}l(82015)},59023:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(8732),n=l(23293);function a(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(n.A,{})})}l(82015)},53926:(e,t,l)=>{l.d(t,{A:()=>i});var s=l(8732),n=l(82015),a=l.n(n);function i({confirmedDelegetedUser:e,linksArray:t,user:l}){let[n,i]=a().useState(t||null);return n&&n[1]?(0,s.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:n.map((e,t,l)=>t===n.length-1?(0,s.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,s.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,s.jsx)(a().Fragment,{})}},55904:(e,t,l)=>{l.d(t,{A:()=>i});var s=l(8732),n=l(82015),a=l.n(n);function i({children:e,column:t,className:l}){let n=a().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(l?" "+l:""),ref:n,children:e})}},55016:(e,t,l)=>{l.d(t,{A:()=>k});var s=l(8732),n=l(82015),a=l.n(n),i=l(83155),r=l(16757),c=l(40373),o=l(55904),d=l(96725);function h({targetElement:e,setOpenStyleModal:t}){return e?(0,s.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{t(!1)},children:(0,s.jsx)(d.A,{})})]}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,s.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:t=>{let l=t.target;if(t.key?.match(/enter/i)){let t=l.closest(".add-css-block")?.children[0],s=l.closest(".add-css-block")?.children[1],n=t?.value,a=s?.value;if(!n?.match(/./)||!a?.match(/./))return;e.style[n]=a}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-css-block")?.children[0],n=l.closest(".add-css-block")?.children[1],a=s?.value,i=n?.value;a?.match(/./)&&i?.match(/./)&&(e.style[a]=i)},children:"Add"})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)("button",{onClick:t=>{e.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,s.jsx)("button",{onClick:t=>{e.style.display="flex",e.style.alignItems="center",e.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,s.jsx)("button",{onClick:t=>{e.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.classList.add(t)}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],n=s?.value;n?.match(/./)&&e.classList.add(n)},children:"Add"}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],n=s?.value;n?.match(/./)&&e.classList.remove(n)},className:"outlined",children:"Remove"})]}),e?.nodeName?.match(/^a$/i)?(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add URL"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded href-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".href-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.href=t}},defaultValue:e?.href}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".href-block")?.children[0],n=s?.value;n?.match(/./)&&(e.href=n)},children:"Add"})]})]}):(0,s.jsx)(a().Fragment,{})]}):null}function u({targetElement:e,back:t}){if(!e)return;let l=e.nextElementSibling,s=e.previousElementSibling;!t&&l?l.after(e):t&&s&&s.before(e)}function x({editor:e,node:t,setTargetElement:l}){e.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")});let s=e.getWin(),n=s.getSelection()?.anchorNode?.parentElement,a=t||n||null;a&&(a?.classList?.add("target-node"),l&&l(a))}var m=l(54677);let p=(0,l(82544).A)("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);function g({editorRef:e}){let[t,l]=a().useState(null),[n,i]=a().useState(!1),[r,c]=a().useState(!1);return(0,s.jsxs)("div",{className:"absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end",style:{boxShadow:"0 0 40px rgba(15, 23, 42, 0.2)"},children:[(0,s.jsxs)(o.A,{column:!0,className:"gap-[1px]",children:[(0,s.jsx)("div",{onClick:()=>{x({editor:e.current,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button secondary",children:(0,s.jsx)("span",{children:"Click1"})}),(0,s.jsx)("div",{onClick:()=>{u({targetElement:t,back:!0})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{u({targetElement:t})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{c(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(p,{})}),(0,s.jsx)("div",{onClick:()=>{i(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t)return;let s=t.cloneNode(!0);s.nodeName.match(/html|document|body/i)||(t.insertAdjacentElement("afterend",s),t.classList.remove("target-node"),l(s))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t||t.nodeName.match(/html|document|body/i))return;let s=t.parentElement;s||(l(t),x({editor:e,node:t,setTargetElement:l})),s?.nodeName.match(/html|document|body/i)?(l(t),x({editor:e,node:t,setTargetElement:l})):s&&(l(s),x({editor:e,node:s,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t)return;let s=t.children[0];s?(l(s),x({editor:e,node:s,setTargetElement:l})):(l(t),x({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{className:"rotate-180"})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(!t)return;let s=t.previousElementSibling;s?(l(s),x({editor:e,node:s,setTargetElement:l})):(l(t),x({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(!t)return;let s=t.nextElementSibling;s?(l(s),x({editor:e,node:s,setTargetElement:l})):(l(t),x({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{if(t){let s=t.parentNode;s.removeChild(t),x({editor:e.current,node:s,setTargetElement:l})}},style:{width:"40px",height:"40px"},className:"button bg-red-500",children:(0,s.jsx)(d.A,{})}),(0,s.jsx)("div",{onClick:()=>{e.current.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")}),l(null)},style:{width:"40px",height:"40px"},className:"button white",children:(0,s.jsx)(m.A,{})})]}),(0,s.jsx)("span",{children:(0,s.jsx)(h,{targetElement:t,setOpenStyleModal:i})})]})}function f({user:e,blockObject:t,placeholder:l,editorRef:n,height:i,extend:r}){let[o,d]=a().useState(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(c.Editor,{tinymceScriptSrc:"https://datasquirel.com/tinymce-public/tinymce.min.js",onInit:(e,t)=>{if(r){let e=t.getBody();e.style.padding="40px",e.className="RTE-DOCS"}n&&(n.current=t)},initialValue:t&&t.content?t.content:"",init:{height:i||400,width:"100%",relative_urls:!1,remove_script_host:!1,menubar:!1,plugins:r?["advlist","autolink","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount","codesample"]:["link"],toolbar:r?"undo redo | blocks | bold italic forecolor | codesample link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat":"undo redo | blocks | link",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:18px }",placeholder:l||"Type something ...",content_css:r?"/styles/tiny.css":void 0,statusbar:!!r}}),r&&n&&(0,s.jsx)(g,{editorRef:n})]})}var b=l(46169),y=l(59023),j=l(80830),v=l(53926);function k({data:e,user:t}){let l=!!e?.title,[n,c]=a().useState(!1),[o,d]=a().useState(e?.level),[h,u]=a().useState(e?.page_order),[x,m]=a().useState(null),[p,g]=a().useState(null),k=a().useRef(),N=a().useRef();return(0,s.jsx)(a().Fragment,{children:(0,s.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)(y.A,{}),(0,s.jsx)("h2",{className:"text-xl m-0",children:l?"Update page":"Create a new Docs Page"})]}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(v.A,{user:t})}),(0,s.jsxs)("div",{className:"paper flex-col items-stretch gap-10 w-full relative",children:[n&&(0,s.jsx)(r.A,{}),(0,s.jsxs)("form",{onSubmit:t=>{t.preventDefault(),c(!0);let s=t.target.title,n=N.current?.getDoc(),a=k.current?.getDoc();function i(e){let t=e.href;t?.match(/\~/)&&(e.href=t.replace(/.*?\~\//,"/")),t?.match(/\.\.\//)&&(e.href=t.replace(/.*?\.\.\//,"/"))}n?.querySelectorAll(".target-node").forEach(e=>e.classList.remove("target-node")),n?.querySelectorAll("a").forEach(e=>{i(e)}),a?.querySelectorAll("a").forEach(e=>{i(e)});let r=k.current?.getContent(),d=N.current?.getBody().innerHTML,u=N.current?.getBody().innerText,x={title:s.value,description:r,content:d,text_content:u,level:o,page_order:h};l&&(x.id=e.id),p?.id&&(x.parent_id=p.id),(0,b.A)(`/api/admin/docs/${l?"update-page":"add-page"}`,{method:"post",body:x}).then(e=>{e.success?window.location.reload():(alert("Operation Failed!"),setTimeout(()=>{c(!1)},1e3))})},className:"flex flex-col gap-4 w-full",children:[(0,s.jsx)(i.A,{placeholder:"Enter a title",fontSize:"30px",name:"title",defaultValue:l?e.title:null}),(0,s.jsxs)("div",{className:"card no-hover",children:[(0,s.jsx)(i.A,{numberText:!0,placeholder:"Level",defaultValue:l?o:"1",maxWidth:"140px",minValue:1,maxValue:4,step:1,name:"page-level",title:"Page Level",setValue:d}),(0,s.jsx)(i.A,{numberText:!0,placeholder:"Level",defaultValue:l?h:"1",maxWidth:"140px",minValue:1,step:1,name:"page-order",title:"Page Order",setValue:u}),x&&Array.isArray(x)&&(0,s.jsx)(j.A,{selectOptions:x.map(e=>({title:e.title,payload:e.id,default:p?.id==e.id})),title:"Parent Page",required:!0,onChangeHandler:e=>{let t=x.filter(t=>t.id==e.target.value);t[0]?g(t[0]):window.alert("No Matching parent page!")}})]}),(0,s.jsx)(f,{placeholder:"Describe this page briefly",editorRef:k,blockObject:l?{content:e.description}:null,height:200}),(0,s.jsx)(f,{placeholder:"Page Content",editorRef:N,blockObject:l?{content:e.content}:null,height:600,extend:!0}),(0,s.jsx)("button",{type:"submit",children:l?"Update Page":"Add Page"})]})]})]})})}},23293:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},96725:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(82544).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},54677:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(82544).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},71934:(e,t,l)=>{l.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let l=await t.query(...e);return JSON.parse(JSON.stringify(l))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}}}; \ No newline at end of file +"use strict";exports.id=6903,exports.ids=[6903],exports.modules={80830:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(8732),n=l(58526);function r({selectOptions:e,name:t,onChangeHandler:l,required:r,setAlert:a,title:i,defaultValue:o,info:c,id:d}){try{function u(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,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[i&&(0,s.jsxs)("label",{htmlFor:t,children:[i,r?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:r,onChange:e=>{a&&a(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:o||void 0,children:e.map((e,t)=>{let{payload:l,title:n}=e;return(0,s.jsx)("option",{value:l,selected:!!e.default,children:n},t+1)})}),(0,s.jsx)(n.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"})}}l(82015)},59023:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(8732),n=l(23293);function r(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(n.A,{})})}l(82015)},53926:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(8732),n=l(82015),r=l.n(n);function a({confirmedDelegetedUser:e,linksArray:t,user:l}){let[n,a]=r().useState(t||null);return n&&n[1]?(0,s.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:n.map((e,t,l)=>t===n.length-1?(0,s.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,s.jsxs)(r().Fragment,{children:[(0,s.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,s.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,s.jsx)(r().Fragment,{})}},55904:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(8732),n=l(82015),r=l.n(n);function a({children:e,column:t,className:l}){let n=r().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(l?" "+l:""),ref:n,children:e})}},55016:(e,t,l)=>{l.d(t,{A:()=>N});var s=l(8732),n=l(82015),r=l.n(n),a=l(83155),i=l(16757),o=l(40373),c=l(55904),d=l(96725);function u({targetElement:e,setOpenStyleModal:t}){return e?(0,s.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{t(!1)},children:(0,s.jsx)(d.A,{})})]}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,s.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:t=>{let l=t.target;if(t.key?.match(/enter/i)){let t=l.closest(".add-css-block")?.children[0],s=l.closest(".add-css-block")?.children[1],n=t?.value,r=s?.value;if(!n?.match(/./)||!r?.match(/./))return;e.style[n]=r}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-css-block")?.children[0],n=l.closest(".add-css-block")?.children[1],r=s?.value,a=n?.value;r?.match(/./)&&a?.match(/./)&&(e.style[r]=a)},children:"Add"})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)("button",{onClick:t=>{e.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,s.jsx)("button",{onClick:t=>{e.style.display="flex",e.style.alignItems="center",e.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,s.jsx)("button",{onClick:t=>{e.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.classList.add(t)}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],n=s?.value;n?.match(/./)&&e.classList.add(n)},children:"Add"}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],n=s?.value;n?.match(/./)&&e.classList.remove(n)},className:"outlined",children:"Remove"})]}),e?.nodeName?.match(/^a$/i)?(0,s.jsxs)(r().Fragment,{children:[(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add URL"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded href-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".href-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.href=t}},defaultValue:e?.href}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".href-block")?.children[0],n=s?.value;n?.match(/./)&&(e.href=n)},children:"Add"})]})]}):(0,s.jsx)(r().Fragment,{})]}):null}function h({targetElement:e,back:t}){if(!e)return;let l=e.nextElementSibling,s=e.previousElementSibling;!t&&l?l.after(e):t&&s&&s.before(e)}function x({editor:e,node:t,setTargetElement:l}){e.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")});let s=e.getWin(),n=s.getSelection()?.anchorNode?.parentElement,r=t||n||null;r&&(r?.classList?.add("target-node"),l&&l(r))}var m=l(54677);let p=(0,l(82544).A)("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);function g({editorRef:e}){let[t,l]=r().useState(null),[n,a]=r().useState(!1),[i,o]=r().useState(!1);return(0,s.jsxs)("div",{className:"absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end",style:{boxShadow:"0 0 40px rgba(15, 23, 42, 0.2)"},children:[(0,s.jsxs)(c.A,{column:!0,className:"gap-[1px]",children:[(0,s.jsx)("div",{onClick:()=>{x({editor:e.current,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button secondary",children:(0,s.jsx)("span",{children:"Click1"})}),(0,s.jsx)("div",{onClick:()=>{h({targetElement:t,back:!0})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{h({targetElement:t})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{o(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(p,{})}),(0,s.jsx)("div",{onClick:()=>{a(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t)return;let s=t.cloneNode(!0);s.nodeName.match(/html|document|body/i)||(t.insertAdjacentElement("afterend",s),t.classList.remove("target-node"),l(s))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t||t.nodeName.match(/html|document|body/i))return;let s=t.parentElement;s||(l(t),x({editor:e,node:t,setTargetElement:l})),s?.nodeName.match(/html|document|body/i)?(l(t),x({editor:e,node:t,setTargetElement:l})):s&&(l(s),x({editor:e,node:s,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t)return;let s=t.children[0];s?(l(s),x({editor:e,node:s,setTargetElement:l})):(l(t),x({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{className:"rotate-180"})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(!t)return;let s=t.previousElementSibling;s?(l(s),x({editor:e,node:s,setTargetElement:l})):(l(t),x({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(!t)return;let s=t.nextElementSibling;s?(l(s),x({editor:e,node:s,setTargetElement:l})):(l(t),x({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)("div",{onClick:()=>{if(t){let s=t.parentNode;s.removeChild(t),x({editor:e.current,node:s,setTargetElement:l})}},style:{width:"40px",height:"40px"},className:"button bg-red-500",children:(0,s.jsx)(d.A,{})}),(0,s.jsx)("div",{onClick:()=>{e.current.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")}),l(null)},style:{width:"40px",height:"40px"},className:"button white",children:(0,s.jsx)(m.A,{})})]}),(0,s.jsx)("span",{children:(0,s.jsx)(u,{targetElement:t,setOpenStyleModal:a})})]})}function f({user:e,blockObject:t,placeholder:l,editorRef:n,height:a,extend:i}){let[c,d]=r().useState(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(o.Editor,{tinymceScriptSrc:"https://datasquirel.com/tinymce-public/tinymce.min.js",onInit:(e,t)=>{if(i){let e=t.getBody();e.style.padding="40px",e.className="RTE-DOCS"}n&&(n.current=t)},initialValue:t&&t.content?t.content:"",init:{height:a||400,width:"100%",relative_urls:!1,remove_script_host:!1,menubar:!1,plugins:i?["advlist","autolink","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount","codesample"]:["link"],toolbar:i?"undo redo | blocks | bold italic forecolor | codesample link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat":"undo redo | blocks | link",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:18px }",placeholder:l||"Type something ...",content_css:i?"/styles/tiny.css":void 0,statusbar:!!i}}),i&&n&&(0,s.jsx)(g,{editorRef:n})]})}var b=l(46169),y=l(59023),v=l(80830),j=l(53926);function N({data:e,user:t}){let l=!!e?.title,[n,o]=r().useState(!1),[c,d]=r().useState(e?.level),[u,h]=r().useState(e?.page_order),[x,m]=r().useState(null),[p,g]=r().useState(null),N=r().useRef(),k=r().useRef();return(0,s.jsx)(r().Fragment,{children:(0,s.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)(y.A,{}),(0,s.jsx)("h2",{className:"text-xl m-0",children:l?"Update page":"Create a new Docs Page"})]}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(j.A,{user:t})}),(0,s.jsxs)("div",{className:"paper flex-col items-stretch gap-10 w-full relative",children:[n&&(0,s.jsx)(i.A,{}),(0,s.jsxs)("form",{onSubmit:t=>{t.preventDefault(),o(!0);let s=t.target.title,n=k.current?.getDoc(),r=N.current?.getDoc();function a(e){let t=e.href;t?.match(/\~/)&&(e.href=t.replace(/.*?\~\//,"/")),t?.match(/\.\.\//)&&(e.href=t.replace(/.*?\.\.\//,"/"))}n?.querySelectorAll(".target-node").forEach(e=>e.classList.remove("target-node")),n?.querySelectorAll("a").forEach(e=>{a(e)}),r?.querySelectorAll("a").forEach(e=>{a(e)});let i=N.current?.getContent(),d=k.current?.getBody().innerHTML,h=k.current?.getBody().innerText,x={title:s.value,description:i,content:d,text_content:h,level:c,page_order:u};l&&(x.id=e.id),p?.id&&(x.parent_id=p.id),(0,b.A)(`/api/admin/docs/${l?"update-page":"add-page"}`,{method:"post",body:x}).then(e=>{e.success?window.location.reload():(alert("Operation Failed!"),setTimeout(()=>{o(!1)},1e3))})},className:"flex flex-col gap-4 w-full",children:[(0,s.jsx)(a.A,{placeholder:"Enter a title",fontSize:"30px",name:"title",defaultValue:l?e.title:null}),(0,s.jsxs)("div",{className:"card no-hover",children:[(0,s.jsx)(a.A,{numberText:!0,placeholder:"Level",defaultValue:l?c:"1",maxWidth:"140px",minValue:1,maxValue:4,step:1,name:"page-level",title:"Page Level",setValue:d}),(0,s.jsx)(a.A,{numberText:!0,placeholder:"Level",defaultValue:l?u:"1",maxWidth:"140px",minValue:1,step:1,name:"page-order",title:"Page Order",setValue:h}),x&&Array.isArray(x)&&(0,s.jsx)(v.A,{selectOptions:x.map(e=>({title:e.title,payload:e.id,default:p?.id==e.id})),title:"Parent Page",required:!0,onChangeHandler:e=>{let t=x.filter(t=>t.id==e.target.value);t[0]?g(t[0]):window.alert("No Matching parent page!")}})]}),(0,s.jsx)(f,{placeholder:"Describe this page briefly",editorRef:N,blockObject:l?{content:e.description}:null,height:200}),(0,s.jsx)(f,{placeholder:"Page Content",editorRef:k,blockObject:l?{content:e.content}:null,height:600,extend:!0}),(0,s.jsx)("button",{type:"submit",children:l?"Update Page":"Add Page"})]})]})]})})}},23293:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},96725:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(82544).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},54677:(e,t,l)=>{l.d(t,{A:()=>s});let s=(0,l(82544).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},71934:(e,t,l)=>{l.d(t,{A:()=>n});var s=l(51779);async function n(...e){let t=(0,s.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let l=await t.query(...e);return JSON.parse(JSON.stringify(l))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(9973),n=l.n(s);function r(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/725.js b/dsql-app/.local_dist/server/chunks/725.js index 4fc6882..904fab4 100644 --- a/dsql-app/.local_dist/server/chunks/725.js +++ b/dsql-app/.local_dist/server/chunks/725.js @@ -1 +1 @@ -"use strict";exports.id=725,exports.ids=[725],exports.modules={6748:(e,t,a)=>{a.d(t,{A:()=>E});var r=a(8732),l=a(82015),s=a.n(l),d=a(16757),i=a(40373);function n({editor:e}){navigator.clipboard.writeText(e?.getContent()||"").then(()=>{alert("Html Copied to Clipboard!")})}var o=a(1976),c=a.n(o),u=a(58150);function m({editor:e,rootElement:t}){e.getContent();let a=s().useRef(),l=s().useRef(),[d,i]=s().useState();return(0,r.jsxs)("div",{onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&l.current?.click()},children:[(0,r.jsx)("div",{className:"embed-popup-form-content-wrapper relative flex flex-col items-center justify-center",children:(0,r.jsxs)("div",{className:"max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative",children:[(0,r.jsx)("div",{ref:a,className:"w-full h-[80vh] text-[18px]"}),(0,r.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:l,children:"Save"})]})}),(0,r.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,r.jsx)(u.A,{})})]})}function p({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&&c().createRoot(t).render((0,r.jsx)(m,{editor:e,rootElement:t}))}function f({editor:e,rootElement:t}){return(0,r.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,r.jsxs)("form",{onSubmit:a=>{a.preventDefault();let r=a.target["embed-text-area"].value;if(!r?.match(/./))return alert("Please Enter HTML Text to continue.");e.insertContent(r),document.body.removeChild(t)},className:"w-full flex flex-col items-stretch gap-2",children:[(0,r.jsx)("h3",{className:"m-0 text-center text-lg",children:"Enter HTML code"}),(0,r.jsx)("textarea",{name:"embed-text-area",id:"embed-text-area",cols:30,rows:10,placeholder:"Paste Code here ..."}),(0,r.jsx)("button",{type:"submit",children:"Embed"})]})})}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&&c().createRoot(t).render((0,r.jsx)(f,{editor:e,rootElement:t}))}a(90317);var h=a(17855);function y({fieldObject:e,dataTypeSchema:t,richTextEditors:a,entry:l,currentRichTextEditorForms:o,entryPage:c,formButtonId:u}){let[m,f]=s().useState(!1),y=s().useRef(),g=s().useRef();return(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,r.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,r.jsx)(h.A,{}),(0,r.jsx)("span",{children:e.fieldName})]}),(0,r.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,r.jsx)(d.A,{}),m&&(0,r.jsx)(s().Fragment,{children:(0,r.jsx)(i.Editor,{tinymceScriptSrc:"https://datasquirel.com/tinymce-public/tinymce.min.js",onInit:(e,t)=>{g.current=t},initialValue:e.defaultValue||(l&&e.fieldName&&l[e.fieldName]?l[e.fieldName]:""),init:{height:c?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.",()=>{p({editor:e})}),e.addShortcut("meta+shift+d","Embed Code.",()=>{x({editor:e})}),e.addShortcut("meta+shift+c","Copy Code.",()=>{n({editor:e})}),e.ui.registry.addButton("editCode",{icon:"edit-block",onAction:t=>p({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=>n({editor:e}),tooltip:"Copy HTML"})}({editor:e,formButtonId:u})}}})})]})]})}a(46169),a(6789);var g=a(82544);let b=(0,g.A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),N=(0,g.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:l,COLLAPSED_HEIGHT:s,EXPANDED_HEIGHT:d}){return(0,r.jsxs)("div",{className:"gap-2 w-full",children:[(0,r.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,r.jsx)(h.A,{}),(0,r.jsx)("span",{children:e.fieldName})]}),(0,r.jsx)("div",{className:"px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2",children:(0,r.jsx)("span",{children:t})}),(0,r.jsxs)("div",{className:"ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex",onClick:e=>{a?l(s):l(d)},children:[(0,r.jsx)("span",{className:"font-semibold text-sm",children:a?"Collapse":"Expand"}),a?(0,r.jsx)(b,{size:18,className:"mt-[-1px]"}):(0,r.jsx)(N,{size:18,className:"mt-[-1px]"})]})]})}function j({fieldObject:e,dataTypeSchema:t,entry:a,entryPage:l,jsonTextEditors:d,type:i}){try{let[t,a]=s().useState(0),[l,d]=s().useState(300),n=s().useRef();return s().useRef(),(0,r.jsx)(s().Fragment,{children:(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,r.jsx)(v,{fieldObject:e,isExpanded:300!==l,setHeight:d,typeFinal:i||"json",COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,r.jsx)(w,{height:l,jsonEditorRef:n})]})})}catch(e){return(0,r.jsx)(s().Fragment,{children:(0,r.jsx)("span",{children:"Editor Load Error"})})}}function w({height:e,jsonEditorRef:t}){return(0,r.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,r.jsx)("div",{ref:t,className:"w-full text-[18px] h-full"})})}function E({fieldObject:e,dataTypeSchema:t,richTextEditors:a,jsonTextEditors:l,entry:d,currentRichTextEditorForms:i,confirmedDelegetedUser:n,query:o,entryPage:c,formButtonId:u}){n?.delegated,n?.priviledges?.match(/Edit Tables/i),n?.priviledges?.match(/Delete Tables/i),n?.priviledges?.match(/Create Tables/i),n?.priviledges?.match(/Edit Entries/i),n?.priviledges?.match(/Delete Entries/i);let m=function({fieldObject:e,dataTypeSchema:t,elementRef:a,entry:l}){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,r.jsx)("input",{ref:a,type:"text",name:"def_field_"+e.fieldName,id:"def_field_"+e.fieldName,placeholder:e.fieldName,defaultValue:l&&l[e.fieldName||""]?l[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,r.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:l&&l[e.fieldName||""]?l[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,r.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:l&&l[e.fieldName||""]?l[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),e.dataType?.match(/text$/i)&&(s=(0,r.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,defaultValue:l&&l[e.fieldName||""]?l[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,r.jsxs)("div",{className:"w-full relative",children:[(0,r.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:l&&l[e.fieldName]?l[e.fieldName]:e.defaultValue?e.defaultValue:"",onChange:e=>{}}),(0,r.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,r.jsx)("input",{ref:a,type:"text",name:e.fieldName,id:e.fieldName,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:l&&l[e.fieldName||""]?l[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,r.jsx)(s().Fragment,{children:(0,r.jsx)(y,{fieldObject:e,dataTypeSchema:t,richTextEditors:a,currentRichTextEditorForms:i,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,r.jsx)(j,{fieldObject:e,dataTypeSchema:t,entry:d,entryPage:c,jsonTextEditors:l,type:e.json?"json":e.yaml?"yaml":e.html?"html":e.css?"css":e.javascript?"javascript":e.shell?"shell":"json"}):(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full"+(e.defaultField?" opacity-50":""),children:[(0,r.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,r.jsx)(s().Fragment,{children:(0,r.jsx)(h.A,{})}),(0,r.jsx)("span",{children:e.fieldName}),e.defaultField&&(0,r.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]})}},6789:(e,t,a)=>{a.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:r="javascript",entry:l,jsonTextEditors:s,editorRef:d,readOnly:i,initialContent:n,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/"+r,value:n||(t?.defaultValue?t.defaultValue:t?.fieldName&&l?.[t.fieldName]?(()=>{if("json"!==r)return l[t.fieldName];try{return JSON.stringify(JSON.parse(l[t.fieldName]),null,4)}catch(e){return l[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...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)}}},22873:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(71205);async function l({request:e,databaseSlug:t,user:a,query:l}){try{let s=a.id,d=null;if(!l?.delegated)return{dbUserId:s};let i=l.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=(0,r.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((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:()=>r});let r=(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"}]])},52854:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(71205);let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:t}){let a=[];try{for(let s=0;s",t.message),e}}var d=a(77047),i=a(71934),n=a(43651),o=a(16175);async function c({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:l}){let c;let u=!!l||!!a?.match(/^datasquirel$/),m=l?o.A:u?i.A:n.A;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,d.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&r)try{let e=c;return await s({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,d.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(l(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rs})},16175:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(9973),l=a.n(r),s=a(29021),d=a.n(s);async function i(...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:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!d().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:d().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let a=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}}}; \ No newline at end of file +"use strict";exports.id=725,exports.ids=[725],exports.modules={6748:(e,t,a)=>{a.d(t,{A:()=>E});var l=a(8732),r=a(82015),d=a.n(r),s=a(16757),i=a(40373);function o({editor:e}){navigator.clipboard.writeText(e?.getContent()||"").then(()=>{alert("Html Copied to Clipboard!")})}var n=a(1976),c=a.n(n),u=a(58150);function m({editor:e,rootElement:t}){e.getContent();let a=d().useRef(),r=d().useRef(),[s,i]=d().useState();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(s){let a=s.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)(u.A,{})})]})}function p({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&&c().createRoot(t).render((0,l.jsx)(m,{editor:e,rootElement:t}))}function f({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 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&&c().createRoot(t).render((0,l.jsx)(f,{editor:e,rootElement:t}))}a(90317);var h=a(17855);function y({fieldObject:e,dataTypeSchema:t,richTextEditors:a,entry:r,currentRichTextEditorForms:n,entryPage:c,formButtonId:u}){let[m,f]=d().useState(!1),y=d().useRef(),b=d().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)(s.A,{}),m&&(0,l.jsx)(d().Fragment,{children:(0,l.jsx)(i.Editor,{tinymceScriptSrc:"https://datasquirel.com/tinymce-public/tinymce.min.js",onInit:(e,t)=>{b.current=t},initialValue:e.defaultValue||(r&&e.fieldName&&r[e.fieldName]?r[e.fieldName]:""),init:{height:c?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.",()=>{p({editor:e})}),e.addShortcut("meta+shift+d","Embed Code.",()=>{x({editor:e})}),e.addShortcut("meta+shift+c","Copy Code.",()=>{o({editor:e})}),e.ui.registry.addButton("editCode",{icon:"edit-block",onAction:t=>p({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=>o({editor:e}),tooltip:"Copy HTML"})}({editor:e,formButtonId:u})}}})})]})]})}a(46169),a(6789);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:d,EXPANDED_HEIGHT:s}){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(d):r(s)},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:s,type:i}){try{let[t,a]=d().useState(0),[r,s]=d().useState(300),o=d().useRef();return d().useRef(),(0,l.jsx)(d().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:s,typeFinal:i||"json",COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,l.jsx)(w,{height:r,jsonEditorRef:o})]})})}catch(e){return(0,l.jsx)(d().Fragment,{children:(0,l.jsx)("span",{children:"Editor Load Error"})})}}function w({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 E({fieldObject:e,dataTypeSchema:t,richTextEditors:a,jsonTextEditors:r,entry:s,currentRichTextEditorForms:i,confirmedDelegetedUser:o,query:n,entryPage:c,formButtonId:u}){o?.delegated,o?.priviledges?.match(/Edit Tables/i),o?.priviledges?.match(/Delete Tables/i),o?.priviledges?.match(/Create Tables/i),o?.priviledges?.match(/Edit Entries/i),o?.priviledges?.match(/Delete Entries/i);let m=function({fieldObject:e,dataTypeSchema:t,elementRef:a,entry:r}){let d;let s=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?d=(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)&&(d=(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$/)&&s(t)}})),e.dataType?.match(/int$/i)&&(d=(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)&&(d=(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)&&(d=(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"})]})),d||(d=(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=>{}})),d)}({fieldObject:e,dataTypeSchema:t,elementRef:d().useRef(),entry:s});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)(d().Fragment,{children:(0,l.jsx)(y,{fieldObject:e,dataTypeSchema:t,richTextEditors:a,currentRichTextEditorForms:i,entry:s,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:s,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)(d().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]})}},6789:(e,t,a)=>{a.d(t,{A:()=>l});function l({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:l="javascript",entry:r,jsonTextEditors:d,editorRef:s,readOnly:i,initialContent:o,options:n}){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:o||(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:i,...n}),s&&t?.fieldName&&(d?.current.push({fieldName:t.fieldName,ref:s}),s.current=c);try{ace.require("ace/ext/beautify").beautify(c.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},22873:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(71205);async function r({request:e,databaseSlug:t,user:a,query:r}){try{let d=a.id,s=null;if(!r?.delegated)return{dbUserId:d};let i=r.dbUserId,o=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,n=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;try{if(!e.cookies?.[n])throw Error("Cookie not present");let a=(0,l.A)({encryptedString:e.cookies[n]});if(!a)throw Error("Invalid Token");if((s=JSON.parse(a)).databaseSlug===t)return{dbUserId:d=s.rootUserId,rootUserId:s.rootUserId,rootUserName:s.rootUserName,rootUserEmail:s.rootUserEmail,rootUserImage:s.rootUserImage,databaseFullName:s.databaseFullName,databaseSlug:s.databaseSlug,allowedTables:s.allowedTables,priviledges:s.priviledges,database:s.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:d}}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"}]])},52854:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(71205);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function d({unparsedResults:e,tableSchema:t}){let a=[];try{for(let d=0;d",t.message),e}}var s=a(77047),i=a(51779),o=a(84640);async function n({queryString:e,queryValuesArray:t,database:a,tableSchema:l,useLocal:r,debug:n}){let c=(0,i.A)({fa:!0});r&&(c=(0,i.A)({local:!0})),a?.match(/^datasquirel$/)&&(c=(0,i.A)()),n&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let u=await (0,o.A)(c,e,t);if(n&&console.log("varDatabaseDbHandler:results:",u),u&&l)try{return await d({unparsedResults:u,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},84640:(e,t,a)=>{async function l(e,t,a){try{if("string"==typeof t){let l=await e.query(r(t),a);return JSON.parse(JSON.stringify(l))}if("object"!=typeof t)return null;{let a=[];for(let l=0;ll})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7303.js b/dsql-app/.local_dist/server/chunks/7303.js new file mode 100644 index 0000000..369a384 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7303.js @@ -0,0 +1,16 @@ +"use strict";exports.id=7303,exports.ids=[7303],exports.modules={57660:(e,s,a)=>{let r;a.d(s,{A:()=>u});var l=a(8732),t=a(82015),n=a.n(t),i=a(46169);async function o({e,setLoading:s,user:a,image:r,query:l}){s(!0);let t={first_name:e.target.first_name.value,last_name:e.target.last_name.value,email:a?null:e.target.email_address.value,username:a?null:e.target.username.value,password:a?null:e.target.password.value,image:r||null};l?.invite&&(t.inviteObject=l),(0,i.A)(a?"/api/updateUser":"/api/registerUser",{method:"post",body:t},!!a).then(e=>{console.log(e),!a&&e?.insertId?(localStorage.setItem("id",e.insertId),(0,i.A)("/api/loginUser",{method:"post",body:{email:t.email,password:t.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):a&&e?.user?window.location.reload():e?.msg&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{s(!1)},2e3)})}var c=a(10621),d=a(16757),m=a(96997);function u({user:e,query:s,image:a}){let t=s?.email?s.email:e?.email?e.email:"",[u,p]=n().useState(null),[f,g]=n().useState(!1);return(0,l.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[f&&(0,l.jsx)(d.A,{}),!e&&(0,l.jsxs)(n().Fragment,{children:[(0,l.jsx)("hr",{className:"opacity-0"}),(0,l.jsx)(m.A,{user:null,userType:"admin",setLoading:g}),(0,l.jsxs)("div",{className:"w-full justify-center relative",children:[(0,l.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,l.jsx)("hr",{className:"absolute"})]})]}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:r=>{r.preventDefault(),window.confirm("Update Account Information?")&&o({e:r,setLoading:g,user:e,image:a,query:s})},children:[u&&(0,l.jsx)(c.A,{message:u}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,l.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let s=e.target;s.value.match(/./)?(s.classList.remove("warning"),p(null)):s.classList.add("warning")},defaultValue:e?e.first_name:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let s=e.target;s.value.match(/./)?(s.classList.remove("warning"),p(null)):s.classList.add("warning")},defaultValue:e?e.last_name:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let s=e.target;s.value.match(/./)?(s.classList.remove("warning"),p(null)):s.classList.add("warning"),window.clearTimeout(r),r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${s.value}&tableName=users`).then(e=>{console.log(e),e?.result?(p("Username Already Exists"),s.classList.add("warning")):(p(null),s.classList.remove("warning"))})},300)},defaultValue:e?e.username:"",required:!e,readOnly:!!e})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let s=e.target;window.clearTimeout(r),r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${s.value}&tableName=users`).then(e=>{console.log(e),e?.result?(p("Email Already Exists"),s.classList.add("warning")):(p(null),s.classList.remove("warning"))})},300)},defaultValue:t,required:!0,readOnly:!!e})]}),!e&&(0,l.jsxs)(n().Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let s=e.target;s.closest("form")?.password.value===s.value?s.classList.remove("warning"):s.classList.add("warning")},required:!0})]}),(0,l.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,l.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,l.jsx)("button",{type:"submit",className:"w-full",children:e?(0,l.jsx)("span",{children:"Update Account Info"}):(0,l.jsx)("span",{children:"Create Account"})}),!e&&(0,l.jsx)(n().Fragment,{children:(0,l.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,l.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}},96997:(e,s,a)=>{function r({user:e,userType:s,setLoading:a}){return null}a.d(s,{A:()=>r}),a(8732),a(82015),a(46169)},77047:(e,s,a)=>{a.d(s,{A:()=>t});var r=a(29021),l=a.n(r);async function t({user:e,message:s,component:a,noMail:r,req:t}){let n=new Date,i=(()=>{if(!t)return null;try{let e=t.headers["x-forwarded-for"],s=t.headers["x-real-ip"],a=t.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],l=a||r||s||t.socket.remoteAddress;if(!l)return null;return String(l)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +Error Message: ${s} +Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),t?.url&&(r+=` +URL: ${t.url}`),t?.body&&(r+=` +Request Body: ${JSON.stringify(t.body,null,4)}`),i&&(r+=` +IP: ${i}`),r+=` +Date: ${n.toDateString()} +========================================`,l().existsSync("./.tmp/error.log")||l().writeFileSync("./.tmp/error.log","","utf-8");let o=l().readFileSync("./.tmp/error.log","utf-8");l().writeFileSync("./.tmp/error.log",r),l().appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71934:(e,s,a)=>{a.d(s,{A:()=>l});var r=a(51779);async function l(...e){let s=(0,r.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let a=await s.query(...e);return JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},51779:(e,s,a)=>{a.d(s,{A:()=>t});var r=a(9973),l=a.n(r);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||l()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||l()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||l()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7769.js b/dsql-app/.local_dist/server/chunks/7769.js new file mode 100644 index 0000000..b7c45d5 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7769.js @@ -0,0 +1 @@ +"use strict";exports.id=7769,exports.ids=[7769],exports.modules={59023:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(8732),n=s(23293);function r(){return(0,t.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,t.jsx)(n.A,{})})}s(82015)},73872:(e,a,s)=>{s.a(e,async(e,t)=>{try{s.d(a,{A:()=>o});var n=s(8732);s(82015);var r=s(96089),l=s(75979),i=e([l]);function o({slugText:e,justIcon:a,noIcon:s,title:t,outlined:i,extraClasses:o}){return(0,n.jsxs)("div",{className:(0,l.twMerge)("button small-text hover:!bg-transparent",i?" outlined gray bg-white":" ghost light-gray",o),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:i?void 0:{padding:0},children:[!s&&(0,n.jsx)(r.A,{size:i?15:20}),!a&&(0,n.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:t||"Copy Slug"})]})}l=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},55880:(e,a,s)=>{s.a(e,async(e,t)=>{try{s.d(a,{A:()=>f});var n=s(8732),r=s(82015),l=s.n(r),i=s(73872),o=s(87639),d=s(63025),c=s(46169),m=s(16757),h=s(58526),u=s(98136),b=s(71296),p=s(72935),x=s(25088),g=e([i]);function f({database:e,query:a,confirmedDelegetedUser:s,user:t}){let{active_clone:r,active_clone_parent_db:d}=e,c=s?.delegated;s?.priviledges?.match(/Edit Tables/i),s?.priviledges?.match(/Delete Tables/i);let[m,b]=l().useState(null);return(0,n.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,n.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,n.jsx)("img",{src:e.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),s?.delegated&&(0,n.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,n.jsx)("img",{src:s.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,n.jsx)("span",{className:"text-xs",children:s.rootUserEmail})]})]}),(0,n.jsx)("span",{className:"font-semibold text-base"+(s?.delegated?" -mt-3":""),children:e.db_name})]}),(0,n.jsx)(h.A,{size:20}),(0,n.jsxs)("div",{className:"dropdown p-0",children:[(0,n.jsx)("hr",{className:"m-0"}),(0,n.jsx)("a",{href:`/admin/${t?.id}/databases/${e.db_slug}/edit-database`,className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,n.jsx)("hr",{className:"m-0"}),!r&&(0,n.jsxs)(l().Fragment,{children:[(0,n.jsx)("a",{href:`/admin/${t?.id}/databases/add-database?duplicate=${e.db_full_name}`,className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,n.jsx)("hr",{className:"m-0"})]}),(0,n.jsx)("a",{href:`/admin/${t?.id}/databases/${e.db_slug}/schema`,className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,n.jsx)("hr",{className:"m-0"}),(0,n.jsx)("a",{href:`/admin/${t?.id}/databases/${e.db_slug}/users`,className:"button plain-text more-padding normal-weight",children:"Database Users"}),!c&&(0,n.jsx)(_,{database:e,user:t})]})]}),(0,n.jsx)("hr",{className:"vertical"}),(0,n.jsx)(i.A,{slugText:e.db_slug,title:"Db Slug"}),(0,n.jsx)("div",{className:"-mt-1 gap-1",children:(0,n.jsx)(i.A,{slugText:e.db_full_name,title:"Full DB Name"})}),!c&&(0,n.jsxs)(l().Fragment,{children:[(0,n.jsx)("hr",{className:"vertical"}),(0,n.jsxs)("a",{href:`/admin/${t?.id}/databases/${e.db_slug}/shell`,className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,n.jsx)(u.A,{size:20}),(0,n.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,n.jsx)("hr",{className:"vertical"}),(0,n.jsx)(o.A,{})]})}function _({database:e,user:a}){let[s,t]=l().useState(!1),r=l().useRef();return(0,n.jsxs)(l().Fragment,{children:[s&&(0,n.jsx)(m.A,{width:"20px"}),(0,n.jsx)("hr",{className:"m-0"}),(0,n.jsx)("a",{href:`/admin/${a?.id}/databases/${e.db_slug}/shell`,className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,n.jsx)("hr",{className:"m-0"}),e?.remote_connected==1?(0,n.jsx)(N,{database:e}):(0,n.jsx)("a",{href:`/admin/${a?.id}/databases/${e.db_slug}/connect`,className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,n.jsx)("hr",{className:"m-0"}),(0,n.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:a=>{(0,d.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`})},children:[(0,n.jsx)(b.A,{size:20}),(0,n.jsx)("span",{children:"Export Database"})]}),(0,n.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:r,className:"hidden"}),(0,n.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:a=>{r.current&&(r.current.addEventListener("change",a=>{let s=a.target,n=s.files?.[0];if(!n){alert("No File Selected");return}var r=new FileReader;r.onload=function(a){var s=a.target?.result;s||alert("Invalid File!");try{let a=s?.toString();if(!a)throw Error("Invalid File!");let n=JSON.parse(a);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(t(!0),(0,c.A)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:n,dbId:e.id}},!0).then(e=>{e.success&&window.location.reload()}).finally(()=>{t(!1)}))}catch(e){alert("Invalid File. Please enter a valid JSON file")}},r.readAsText(n)}),r.current?.click())},children:[(0,n.jsx)(p.A,{size:20}),(0,n.jsx)("span",{children:"Update From Schema"})]}),(0,n.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none",onClick:a=>{(0,d.A)({url:`/api/downloadDatabaseSchema?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.json`})},children:[(0,n.jsx)(x.A,{size:20}),(0,n.jsx)("span",{children:"Download Schema"})]})]})}function N({database:e}){return(0,n.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:a=>{window.confirm("Disconnect this Database from the remote host?")&&(0,c.A)("/api/connect/disconnect",{method:"POST",body:{dbId:e.id}},!0).then(e=>{e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))})},children:"Disconnect"})}i=(g.then?(await g)():g)[0],t()}catch(e){t(e)}})},63025:(e,a,s)=>{s.d(a,{A:()=>t});function t({url:e,fileName:a,setLoading:s}){s&&s(!0),fetch(e,{method:"GET",headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.body).then(e=>{let a=e?.getReader();if(a)return new ReadableStream({start:e=>(function s(){return a?.read().then(({done:a,value:t})=>{if(a){e.close();return}return e.enqueue(t),s()})})()})}).then(e=>new Response(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{let t=document.createElement("a");t.href=e,t.download=a,t.style.display="none",document.body.appendChild(t),t.click(),URL.revokeObjectURL(e),document.body.removeChild(t),setTimeout(()=>{s&&s(!1)},1e3)}).catch(e=>{console.log(e),setTimeout(()=>{s&&s(!1)},1e3)})}},71934:(e,a,s)=>{s.d(a,{A:()=>n});var t=s(51779);async function n(...e){let a=(0,t.A)();try{if(!a)throw Error("No Connection provided to DB_HANDLER function!");let s=await a.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await a?.end()}}},51779:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(9973),n=s.n(t);function r(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8760.js b/dsql-app/.local_dist/server/chunks/8760.js deleted file mode 100644 index 481afa7..0000000 --- a/dsql-app/.local_dist/server/chunks/8760.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";exports.id=8760,exports.ids=[8760],exports.modules={57660:(e,a,s)=>{let l;s.d(a,{A:()=>u});var t=s(8732),r=s(82015),n=s.n(r),i=s(46169);async function o({e,setLoading:a,user:s,image:l,query:t}){a(!0);let r={first_name:e.target.first_name.value,last_name:e.target.last_name.value,email:s?null:e.target.email_address.value,username:s?null:e.target.username.value,password:s?null:e.target.password.value,image:l||null};t?.invite&&(r.inviteObject=t),(0,i.A)(s?"/api/updateUser":"/api/registerUser",{method:"post",body:r},!!s).then(e=>{console.log(e),!s&&e?.insertId?(localStorage.setItem("id",e.insertId),(0,i.A)("/api/loginUser",{method:"post",body:{email:r.email,password:r.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):s&&e?.user?window.location.reload():e?.msg&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{a(!1)},2e3)})}var m=s(10621),d=s(16757),c=s(5406);function u({user:e,query:a,image:s}){let r=a?.email?a.email:e?.email?e.email:"",[u,p]=n().useState(null),[g,f]=n().useState(!1);return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[g&&(0,t.jsx)(d.A,{}),!e&&(0,t.jsxs)(n().Fragment,{children:[(0,t.jsx)("hr",{className:"opacity-0"}),(0,t.jsx)(c.A,{user:null,userType:"admin",setLoading:f}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]})]}),(0,t.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:l=>{l.preventDefault(),window.confirm("Update Account Information?")&&o({e:l,setLoading:f,user:e,image:s,query:a})},children:[u&&(0,t.jsx)(m.A,{message:u}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,t.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning")},defaultValue:e?e.first_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,t.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning")},defaultValue:e?e.last_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"username",children:"Username"}),(0,t.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning"),window.clearTimeout(l),l=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${a.value}&tableName=users`).then(e=>{console.log(e),e?.result?(p("Username Already Exists"),a.classList.add("warning")):(p(null),a.classList.remove("warning"))})},300)},defaultValue:e?e.username:"",required:!e,readOnly:!!e})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let a=e.target;window.clearTimeout(l),l=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${a.value}&tableName=users`).then(e=>{console.log(e),e?.result?(p("Email Already Exists"),a.classList.add("warning")):(p(null),a.classList.remove("warning"))})},300)},defaultValue:r,required:!0,readOnly:!!e})]}),!e&&(0,t.jsxs)(n().Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"password",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,t.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let a=e.target;a.closest("form")?.password.value===a.value?a.classList.remove("warning"):a.classList.add("warning")},required:!0})]}),(0,t.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,t.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,t.jsx)("button",{type:"submit",className:"w-full",children:e?(0,t.jsx)("span",{children:"Update Account Info"}):(0,t.jsx)("span",{children:"Create Account"})}),!e&&(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,t.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}},5406:(e,a,s)=>{function l({user:e,userType:a,setLoading:s}){return null}s.d(a,{A:()=>l}),s(8732),s(82015),s(46169),s(45731)},45731:(e,a,s)=>{s.d(a,{A:()=>l});async function l(){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)}}},77047:(e,a,s)=>{s.d(a,{A:()=>r});var l=s(29021),t=s.n(l);async function r({user:e,message:a,component:s,noMail:l,req:r}){let n=new Date,i=(()=>{if(!r)return null;try{let e=r.headers["x-forwarded-for"],a=r.headers["x-real-ip"],s=r.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],t=s||l||a||r.socket.remoteAddress;if(!t)return null;return String(t)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== -Error Message: ${a} -Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` -User Id: ${e?.id} -User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),r?.url&&(l+=` -URL: ${r.url}`),r?.body&&(l+=` -Request Body: ${JSON.stringify(r.body,null,4)}`),i&&(l+=` -IP: ${i}`),l+=` -Date: ${n.toDateString()} -========================================`,t().existsSync("./.tmp/error.log")||t().writeFileSync("./.tmp/error.log","","utf-8");let o=t().readFileSync("./.tmp/error.log","utf-8");t().writeFileSync("./.tmp/error.log",l),t().appendFileSync("./.tmp/error.log",` - - - - -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5839.js b/dsql-app/.local_dist/server/chunks/9136.js similarity index 74% rename from dsql-app/.local_dist/server/chunks/5839.js rename to dsql-app/.local_dist/server/chunks/9136.js index af2c772..2357df9 100644 --- a/dsql-app/.local_dist/server/chunks/5839.js +++ b/dsql-app/.local_dist/server/chunks/9136.js @@ -1 +1 @@ -"use strict";exports.id=5839,exports.ids=[5839],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,t){return t in a?a[t]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,t)):"function"==typeof a&&"default"===t?a:void 0}}})},67325:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(8732);t(82015);var i=t(91140),s=t(83158),n=t(82544);let d=(0,n.A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),r=(0,n.A)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);function o({user:e}){return(0,l.jsx)(i.Ay,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,l.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,l.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,l.jsx)("br",{}),"want to upload?"]}),(0,l.jsx)("span",{children:"Please Select the media type to upload."}),(0,l.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{if(e?.verification_status?.toString().match(/1/)){let e=document.getElementById("upload_image_input");e?.click()}else alert("Please Verify to Add Media");setTimeout(()=>{(0,i.fs)()},500)},children:[(0,l.jsx)(s.A,{size:50,className:"text-primary"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Images"}),(0,l.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{e?.verification_status?.toString().match(/1/)?document.getElementById("upload_file_input")?.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,l.jsx)(d,{size:50,className:"text-secondary"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Files"}),(0,l.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,l.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{e?.verification_status?.toString().match(/1/)?document.getElementById("upload_video_input")?.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,l.jsx)(r,{size:55,className:"text-slate-600"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Videos"}),(0,l.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,l.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},91692:(e,a,t)=>{t.d(a,{A:()=>N});var l=t(8732),i=t(82015),s=t.n(i),n=t(46169),d=t(16757),r=t(82544);let o=(0,r.A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var c=t(58150);function m({folderName:e,folder:a,user:t}){let i=`${a?a+"/":""}${e}`,[r,m]=s().useState(!1);return(0,l.jsxs)("a",{href:`/admin/${t?.id}/media/${i}`,className:"card col items-center justify-center",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[r&&(0,l.jsx)(d.A,{}),(0,l.jsx)(o,{opacity:.5}),(0,l.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,l.jsx)("span",{className:"",children:e}),(0,l.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:e=>{window.confirm("Delete this Folder and all its contents?")&&(m(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,n.A)("/api/deleteMediaFolder",{method:"post",body:{folder:i}},!0).then(e=>{e.success&&window.location.reload()}):m(!1))},children:(0,l.jsx)(c.A,{})})]},e)}var u=t(91140),p=t(55904),h=t(58671);function x({mediaObject:e,staticHost:a}){let t=e.media_thumbnail_path?e?.private?e.media_thumbnail_url:`${a}${e.media_thumbnail_path}`:e.media_thumbnail_url,i=e.media_path?e?.private?e.media_url:`${a}${e.media_path}`:e.media_url;return(0,l.jsx)(s().Fragment,{children:e.media_type?.match(/file/i)?(0,l.jsx)("div",{className:"cursor-pointer hover:opacity-80",children:(0,l.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:e.media_type.replace(/.*\//,"").toUpperCase()})}):e.media_type?.match(/video/i)?(0,l.jsx)("video",{src:i,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,l.jsx)("img",{src:t,alt:e.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:a=>{e?.private||(0,n.A)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:e}},!0).then(e=>{e.success?window.location.reload():(console.log(e),console.log(t),console.log(i))})}})})}var f=t(16230);function g({mediaObject:e,staticHost:a}){return(e.media_thumbnail_path?e.media_thumbnail_path:e.media_thumbnail_url,e.media_path?e.media_path:e.media_url,e?.private)?(0,l.jsx)(s().Fragment,{}):(0,l.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,l.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,l.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,l.jsxs)(p.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,l.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_url||"").then(()=>{alert(`Media url ${e.media_url} Copied to clipboard`)})},children:"Copy Full Link"}),!e?.media_type?.match(/file|video/i)&&(0,l.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_thumbnail_url||"").then(()=>{alert(`Media url ${e.media_thumbnail_url} Copied to clipboard`)})},children:"Copy Thumbnail Link"})]})})]})}var y=t(17855);let w=(0,r.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);function j({mediaObject:e,setLoading:a}){let[t,i]=s().useState(!1);return e?.media_type?.match(/video/i)?null:(0,l.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+(e?.private?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:t=>{let l=e.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(l)&&(a(!0),(0,n.A)("/api/media/addPrivateMedia",{method:"post",body:{...e}},!0).then(e=>{e.success?window.location.reload():window.alert("Action Failed!"),setTimeout(()=>{a(!1)},1e3)}).catch(e=>{console.log(e)}))},children:e?.private?(0,l.jsx)(y.A,{size:20,color:"green"}):(0,l.jsx)(w,{color:"black",size:20})})}function b({mediaObject:e,setTargetMedia:a,folder:t,staticHost:i}){let[n,r]=s().useState(!!e?.private),[o,c]=s().useState(e);o.media_thumbnail_path?o.media_thumbnail_path:o.media_thumbnail_url;let m=o.media_path?`${i}/${o.media_path}`:o.media_url;return(0,l.jsxs)("div",{className:"media-card card col min-h-[200px]",onClick:e=>{if(!(e.target.closest("button")||e.target.closest(".button"))){if(o.media_type?.match(/file/i)&&!o.private){window.open(m,"__blank");return}o.media_type?.match(/file/i)&&o.private||(a(o),(0,u.PB)("target-media-popup"))}},onMouseEnter:e=>{e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:e=>{e.target.closest(".media-card").style.zIndex="0"},style:o?.private?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[n&&(0,l.jsx)(d.A,{}),(0,l.jsx)(x,{mediaObject:o,staticHost:i}),(0,l.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,l.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:o.media_name}),(0,l.jsx)("div",{className:"flex-wrap w-full",children:(0,l.jsxs)(p.A,{className:"flex-wrap w-full items-stretch",children:[(0,l.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:e=>{(0,h.A)({mediaObject:o,fileName:m?.match(/[^\/]+$/)?.[0]||"",setLoading:r})},children:(0,l.jsx)("span",{children:"Download"})}),(0,l.jsx)(g,{mediaObject:o,staticHost:i}),(0,l.jsx)(f.A,{mediaObject:o,setLoading:r})]})})]}),(0,l.jsx)(j,{mediaObject:o,setLoading:r})]})}t(21756);let v=(0,r.A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function N({media:e,setTargetMedia:a,folders:t,folder:i,staticHost:n,user:d}){return(0,l.jsx)(s().Fragment,{children:(0,l.jsxs)("section",{className:"paper overflow-visible",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,l.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[t&&t[0]&&t.map(e=>(0,l.jsx)(m,{folder:i,folderName:e,user:d},e)),e&&e[0]&&e.map(e=>(0,l.jsx)(b,{mediaObject:e,setTargetMedia:a,folder:i,staticHost:n},e.id))]}),!e?.[0]&&(0,l.jsx)(A,{})]})})}function A(){return(0,l.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,u.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,l.jsx)(v,{}),(0,l.jsx)("span",{className:"",children:"Add Media"})]})}},94198:(e,a,t)=>{let l;t.d(a,{A:()=>c});var i=t(8732),s=t(82015),n=t.n(s),d=t(46169),r=t(91140),o=t(16757);function c({folder:e}){let[a,t]=n().useState(!1),[s,c]=n().useState(!1);return(0,i.jsxs)(r.Ay,{title:"add-folder-popoup",children:[(0,i.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,i.jsxs)("div",{className:"flex-col w-full relative",children:[a&&(0,i.jsx)(o.A,{}),(0,i.jsxs)("form",{onSubmit:a=>{a.preventDefault(),window.clearTimeout(l),t(!0);let i=a.target;(0,d.A)("/api/addNewMediaFolder",{method:"post",body:{name:(e?`${e}/`:"")+i["new-folder-name"].value}},!0).then(e=>{e.success?window.location.reload():t(!1)})},className:"w-full flex flex-col items-stretch gap-2",children:[s&&(0,i.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,i.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(s?" warning":""),onChange:a=>{a.target.value=a.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(l),l=setTimeout(()=>{(0,d.A)(`/api/checkExistingFolder?name=${a.target.value}${e?"&folder="+e:""}`).then(e=>{a.target.value?.match(/./)&&e?.success?(c(!0),alert("Folder Already Exists")):c(!1)})},500)}}),(0,i.jsx)("button",{children:"Add New Folder"})]})]})]})}},87081:(e,a,t)=>{t.d(a,{A:()=>f});var l=t(8732),i=t(82015),s=t.n(i),n=t(46169),d=t(72390),r=t(91140),o=t(16757),c=t(17855);let m=(0,t(82544).A)("LockKeyholeOpen",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);function u({mediaObject:e}){let[a,t]=i.useState(!1);return i.useEffect(()=>{e.private=a},[a]),(0,l.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(a?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{t(e=>!e)},children:a?(0,l.jsx)(c.A,{}):(0,l.jsx)(m,{})})}var p=t(58150);function h({imageObject:e,newMedia:a,setNewMedia:t,video:i}){let s=e.imageBase64Full||e.fileBase64Full,n=e.imageName||e.fileName;return(0,l.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[i?(0,l.jsx)("video",{src:s,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,l.jsx)("img",{src:s,alt:n,className:"w-full h-full object-contain"}),(0,l.jsx)("input",{type:"text",defaultValue:n,onInput:a=>{let t=a.target.value?.replace(/ /g,"-");e.fileName&&(e.fileName=t),e.imageName&&(e.imageName=t)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,l.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:l=>{let i=a.findIndex(a=>a.imageBase64===e.imageBase64||a.fileBase64===e.fileBase64);a.splice(i,1),t([...a])},children:(0,l.jsx)(p.A,{size:16})}),!i&&(0,l.jsx)(u,{mediaObject:e})]})}function x({fileObject:e,newFile:a,setNewFile:t}){return(0,l.jsxs)("div",{className:"border border-slate-300 rounded min-h-[100px] flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,l.jsx)("input",{type:"text",defaultValue:e.fileName,onInput:a=>{e.fileName=a.target.value?.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,l.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:l=>{let i=a.findIndex(a=>a.fileBase64===e.fileBase64);a.splice(i,1),t([...a])},children:(0,l.jsx)(p.A,{size:16})}),(0,l.jsx)(u,{mediaObject:e})]})}function f({newMedia:e,setNewMedia:a,newFile:t,setNewFile:i,newVideo:c,setNewVideo:m,folder:u}){let p=e?.[0]?"images":t?.[0]?"files":"videos",f=p?.match(/image/i)?e:p?.match(/file/i)?t:c,g=p?.match(/image/i)?a:p?.match(/file/i)?i:m,[y,w]=s().useState(!1);return(0,l.jsxs)(r.Ay,{title:"new-media-popup",closePopupDispatch:()=>{a(null),i(null),m(null)},children:[y&&(0,l.jsx)(o.A,{screen:!0}),(0,l.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:f&&f[0]&&f.map((e,a)=>p?.match(/image/i)?(0,l.jsx)(h,{imageObject:e,newMedia:f,setNewMedia:g},a+1):p?.match(/video/i)?(0,l.jsx)(h,{imageObject:e,newMedia:f,setNewMedia:g,video:!0},a+1):(0,l.jsx)(x,{fileObject:e,newFile:f,setNewFile:g},a+1))}),f&&f[0]&&(0,l.jsx)("button",{className:"py-3 w-full relative z-50"+(y?" pointer-events-none opacity-40":""),onClick:e=>{w(!0);let a=p?.match(/image/i)?{type:p,folder:u,media:f.map(e=>({imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}))}:{type:p,folder:u,media:f.map(e=>({fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:!!p?.match(/video/i)}))};(0,n.A)("/api/addUserMedia",{method:"post",body:a},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(alert("Image Upload Failed"),console.log(e),setTimeout(()=>{w(!1)},1e3))})},children:"Upload Media"})]})}},14865:(e,a,t)=>{t.d(a,{A:()=>x});var l=t(8732),i=t(82015),s=t.n(i),n=t(46169),d=t(72390),r=t(91140),o=t(16757),c=t(55904),m=t(58671);t(21756);let u=(0,t(82544).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var p=t(6070),h=t(16230);function x({targetMedia:e,staticHost:a,setTargetMedia:t,media:i}){e?.media_thumbnail_path?e?.media_thumbnail_path:e?.media_thumbnail_url;let x=e?.media_path?`${a}/${e?.media_path}`:e?.media_url,f=!!e?.media_type?.match(/video/i),g=e?i.findIndex(a=>a.id==e.id):null,y="number"==typeof g&&g>=0,w=(()=>{if(!y)return null;let e=i[g+1];return e?e?.media_type?.match(/image/i)?e:i.slice(g+1).find(e=>!!e.media_type?.match(/image/i))||null:null})(),j=(()=>{if(!y)return null;let e=i[g-1];return e?e?.media_type?.match(/image/i)?e:i.slice(0,g-1).findLast(e=>!!e.media_type?.match(/image/i))||null:null})(),[b,v]=s().useState(!!e?.private),[N,A]=s().useState(!1),[k,_]=s().useState(x),M=s().useRef();return(0,l.jsxs)(r.Ay,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:()=>{A(!1),t(null)},children:[b&&(0,l.jsx)(o.A,{}),!N&&(0,l.jsx)(o.A,{}),e&&(0,l.jsxs)(s().Fragment,{children:[(0,l.jsxs)("div",{className:"self-center h-screen py-4",children:[k?f?(0,l.jsx)("video",{src:k,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:()=>{A(!0)},style:N?void 0:{display:"none"}}):(0,l.jsx)("img",{src:k,alt:e.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:M,onLoad:e=>{A(!0)},style:N?void 0:{display:"none"}}):(0,l.jsx)(l.Fragment,{}),j&&(0,l.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{t(null),t(j)},children:(0,l.jsx)(u,{color:"white"})}),w&&(0,l.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{t(null),t(w)},children:(0,l.jsx)(p.A,{color:"white"})})]}),(0,l.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:e.media_path?.replace(/.*\//,"")}),(0,l.jsx)("div",{className:"absolute bottom-6 left-6 p-1 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch min-w-[200px]",children:(0,l.jsxs)(c.A,{column:!0,children:[(0,l.jsx)(h.F,{mediaObject:e,setLoading:v}),(0,l.jsx)("button",{className:"outlined secondary more-padding",onClick:a=>{(0,m.A)({mediaObject:e,fileName:e.media_url?.match(/[^\/]+$/)?.[0]||"",setLoading:v})},children:"Download"}),(0,l.jsx)("button",{onClick:a=>{window.confirm("Delete this media?")&&(0,n.A)("/api/deleteUserMedia",{method:"post",body:e},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},className:"more-padding",children:"Delete"}),!e?.private&&(0,l.jsxs)(s().Fragment,{children:[(0,l.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_url||"").then(()=>{alert(`Media url ${e.media_url} Copied to clipboard`)})},children:"Copy Full Image Link"}),(0,l.jsx)("button",{className:"outlined gray w-full more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_thumbnail_url||"").then(()=>{alert(`Media url ${e.media_thumbnail_url} Copied to clipboard`)})},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})]})})]})]})}},16230:(e,a,t)=>{t.d(a,{A:()=>d,F:()=>r});var l=t(8732);t(82015);var i=t(46169),s=t(72390),n=t(55904);function d({mediaObject:e,setLoading:a}){return(0,l.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,l.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,l.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,l.jsxs)(n.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,l.jsx)(r,{mediaObject:e,setLoading:a}),(0,l.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:a=>{window.confirm("Delete this media?")&&(0,i.A)("/api/deleteUserMedia",{method:"post",body:e},!0).then(e=>{e.success?(0,s.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},children:"Delete"})]})})]})}function r({mediaObject:e,setLoading:a}){return(0,l.jsx)("button",{onClick:t=>{let l=window.prompt("Rename media",e.media_name);l&&window.confirm(`Rename "${e.media_name}" to "${l}"`)&&(a(!0),(0,i.A)("/api/renameMedia",{method:"post",body:{mediaObject:e,newName:l.replace(/ /g,"-"),newThumbnailName:l.replace(/ /g,"-")+"_thumbnail"}},!0).then(e=>{e.success?window.location.reload():(window.alert(e.msg),setTimeout(()=>{a(!1)},1e3))}))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},91140:(e,a,t)=>{t.d(a,{Ay:()=>d,PB:()=>r,fs:()=>o});var l=t(8732),i=t(58150),s=t(82015),n=t.n(s);function d({children:e,title:a,data:t,fullPage:s,wrapperClasses:d,closePopupDispatch:r,wrapperStyle:c,noContainer:m}){return s?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":a||null,style:c,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),r&&r()},children:(0,l.jsx)(i.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),r&&r()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),r&&r()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),r&&r()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),r&&r()}})]})}function r(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a?.(t))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},43430:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(83921);function s({setNewFile:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},81145:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(65842);function s({setNewMedia:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_image_input",id:"upload_image_input",className:"hidden",accept:"image/*",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},10839:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(83921);function s({setNewVideo:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_video_input",id:"upload_video_input",className:"hidden",accept:".mp4",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Videos selected")}})})}},66485:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(8732);function i(){return(0,l.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,l.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(82015)},55904:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(8732),i=t(82015),s=t.n(i);function n({children:e,column:a,className:t}){let i=s().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(t?" "+t:""),ref:i,children:e})}},58671:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(21756);async function i({mediaObject:e,fileName:a,setLoading:t}){let i;t&&t(!0);let s=!!(e?.private||e?.media_url?.match(/^\@/));i=s?await (0,l.A)({url:e.media_url||""}):await fetch("/api/fetch-media?url="+e.media_url);let n=s?i:await i.blob(),d=s?i:URL.createObjectURL(n),r=document.createElement("a");r.href=d,r.download=a,r.style.display="none",document.body.appendChild(r),r.click(),URL.revokeObjectURL(d),document.body.removeChild(r),setTimeout(()=>{t&&t(!1)},500)}},21756:(e,a,t)=>{t.d(a,{A:()=>l});async function l({url:e}){return new Promise((a,t)=>{fetch("/api/media/getPrivateMedia",{method:"POST",body:JSON.stringify({path:e}),headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.blob()).then(e=>{a(URL.createObjectURL(e))})})}},65842:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(76102);let i=t.n(l)().media.imageInputFileToBase64},83921:(e,a,t)=>{t.d(a,{A:()=>l});async function l({inputFile:e}){try{let a=e.name.replace(/\..*/,""),t=await new Promise((a,t)=>{var l=new FileReader;l.readAsDataURL(e),l.onload=function(){a(l.result)},l.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:t.replace(/.*?base64,/,""),fileBase64Full:t,fileName:a,fileSize:e.size,fileType:e.type}}catch(a){return console.log("Image Processing Error! =>",a.message),{fileBase64:null,fileBase64Full:null,fileName:e.name,fileSize:null,fileType:null}}}},23293:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},6070:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34637:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},17855:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(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"}]])},66918:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,a,t)=>{t.d(a,{A:()=>l});let l=(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"}]])},58150:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,a)=>{Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file +"use strict";exports.id=9136,exports.ids=[9136],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,t){return t in a?a[t]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,t)):"function"==typeof a&&"default"===t?a:void 0}}})},67325:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(8732);t(82015);var i=t(91140),s=t(83158),n=t(82544);let r=(0,n.A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),o=(0,n.A)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);function d({user:e}){return(0,l.jsx)(i.Ay,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,l.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,l.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,l.jsx)("br",{}),"want to upload?"]}),(0,l.jsx)("span",{children:"Please Select the media type to upload."}),(0,l.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{if(e?.verification_status?.toString().match(/1/)){let e=document.getElementById("upload_image_input");e?.click()}else alert("Please Verify to Add Media");setTimeout(()=>{(0,i.fs)()},500)},children:[(0,l.jsx)(s.A,{size:50,className:"text-primary"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Images"}),(0,l.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{e?.verification_status?.toString().match(/1/)?document.getElementById("upload_file_input")?.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,l.jsx)(r,{size:50,className:"text-secondary"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Files"}),(0,l.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,l.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{e?.verification_status?.toString().match(/1/)?document.getElementById("upload_video_input")?.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,l.jsx)(o,{size:55,className:"text-slate-600"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Videos"}),(0,l.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,l.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},91692:(e,a,t)=>{t.d(a,{A:()=>_});var l=t(8732),i=t(82015),s=t.n(i),n=t(46169),r=t(16757),o=t(82544);let d=(0,o.A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var c=t(58150);function m({folderName:e,folder:a,user:t}){let i=`${a?a+"/":""}${e}`,[o,m]=s().useState(!1);return(0,l.jsxs)("a",{href:`/admin/${t?.id}/media/${i}`,className:"card col items-center justify-center",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[o&&(0,l.jsx)(r.A,{}),(0,l.jsx)(d,{opacity:.5}),(0,l.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,l.jsx)("span",{className:"",children:e}),(0,l.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:e=>{window.confirm("Delete this Folder and all its contents?")&&(m(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,n.A)("/api/deleteMediaFolder",{method:"post",body:{folder:i}},!0).then(e=>{e.success&&window.location.reload()}):m(!1))},children:(0,l.jsx)(c.A,{})})]},e)}var u=t(91140),p=t(55904),h=t(58671);function f({mediaObject:e,staticHost:a}){let t=e.media_thumbnail_path?e?.private?e.media_thumbnail_url:`${a}${e.media_thumbnail_path}`:e.media_thumbnail_url,i=e.media_path?e?.private?e.media_url:`${a}${e.media_path}`:e.media_url;return(0,l.jsx)(s().Fragment,{children:e.media_type?.match(/file/i)?(0,l.jsx)("div",{className:"cursor-pointer hover:opacity-80",children:(0,l.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:e.media_type.replace(/.*\//,"").toUpperCase()})}):e.media_type?.match(/video/i)?(0,l.jsx)("video",{src:i,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,l.jsx)("img",{src:t,alt:e.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:a=>{e?.private||(0,n.A)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:e}},!0).then(e=>{e.success?window.location.reload():(console.log(e),console.log(t),console.log(i))})}})})}var x=t(16230);function g({mediaObject:e,staticHost:a}){return(e.media_thumbnail_path?e.media_thumbnail_path:e.media_thumbnail_url,e.media_path?e.media_path:e.media_url,e?.private)?(0,l.jsx)(s().Fragment,{}):(0,l.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,l.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,l.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,l.jsxs)(p.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,l.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_url||"").then(()=>{alert(`Media url ${e.media_url} Copied to clipboard`)})},children:"Copy Full Link"}),!e?.media_type?.match(/file|video/i)&&(0,l.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_thumbnail_url||"").then(()=>{alert(`Media url ${e.media_thumbnail_url} Copied to clipboard`)})},children:"Copy Thumbnail Link"})]})})]})}var y=t(17855);let w=(0,o.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);function v({mediaObject:e,setLoading:a}){let[t,i]=s().useState(!1);return e?.media_type?.match(/video/i)?null:(0,l.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+(e?.private?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:t=>{let l=e.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(l)&&(a(!0),(0,n.A)("/api/media/addPrivateMedia",{method:"post",body:{...e}},!0).then(e=>{e.success?window.location.reload():window.alert("Action Failed!"),setTimeout(()=>{a(!1)},1e3)}).catch(e=>{console.log(e)}))},children:e?.private?(0,l.jsx)(y.A,{size:20,color:"green"}):(0,l.jsx)(w,{color:"black",size:20})})}function b({mediaObject:e,setTargetMedia:a,folder:t,staticHost:i}){let[n,o]=s().useState(!!e?.private),[d,c]=s().useState(e);d.media_thumbnail_path?d.media_thumbnail_path:d.media_thumbnail_url;let m=d.media_path?`${i}/${d.media_path}`:d.media_url;return(0,l.jsxs)("div",{className:"media-card card col min-h-[200px]",onClick:e=>{if(!(e.target.closest("button")||e.target.closest(".button"))){if(d.media_type?.match(/file/i)&&!d.private){window.open(m,"__blank");return}d.media_type?.match(/file/i)&&d.private||(a(d),(0,u.PB)("target-media-popup"))}},onMouseEnter:e=>{e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:e=>{e.target.closest(".media-card").style.zIndex="0"},style:d?.private?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[n&&(0,l.jsx)(r.A,{}),(0,l.jsx)(f,{mediaObject:d,staticHost:i}),(0,l.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,l.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:d.media_name}),(0,l.jsx)("div",{className:"flex-wrap w-full",children:(0,l.jsxs)(p.A,{className:"flex-wrap w-full items-stretch",children:[(0,l.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:e=>{(0,h.A)({mediaObject:d,fileName:m?.match(/[^\/]+$/)?.[0]||"",setLoading:o})},children:(0,l.jsx)("span",{children:"Download"})}),(0,l.jsx)(g,{mediaObject:d,staticHost:i}),(0,l.jsx)(x.A,{mediaObject:d,setLoading:o})]})})]}),(0,l.jsx)(v,{mediaObject:d,setLoading:o})]})}t(21756);let j=(0,o.A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function _({media:e,setTargetMedia:a,folders:t,folder:i,staticHost:n,user:r}){return(0,l.jsx)(s().Fragment,{children:(0,l.jsxs)("section",{className:"paper overflow-visible",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,l.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[t&&t[0]&&t.map(e=>(0,l.jsx)(m,{folder:i,folderName:e,user:r},e)),e&&e[0]&&e.map(e=>(0,l.jsx)(b,{mediaObject:e,setTargetMedia:a,folder:i,staticHost:n},e.id))]}),!e?.[0]&&(0,l.jsx)(N,{})]})})}function N(){return(0,l.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,u.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,l.jsx)(j,{}),(0,l.jsx)("span",{className:"",children:"Add Media"})]})}},94198:(e,a,t)=>{let l;t.d(a,{A:()=>c});var i=t(8732),s=t(82015),n=t.n(s),r=t(46169),o=t(91140),d=t(16757);function c({folder:e}){let[a,t]=n().useState(!1),[s,c]=n().useState(!1);return(0,i.jsxs)(o.Ay,{title:"add-folder-popoup",children:[(0,i.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,i.jsxs)("div",{className:"flex-col w-full relative",children:[a&&(0,i.jsx)(d.A,{}),(0,i.jsxs)("form",{onSubmit:a=>{a.preventDefault(),window.clearTimeout(l),t(!0);let i=a.target;(0,r.A)("/api/addNewMediaFolder",{method:"post",body:{name:(e?`${e}/`:"")+i["new-folder-name"].value}},!0).then(e=>{e.success?window.location.reload():t(!1)})},className:"w-full flex flex-col items-stretch gap-2",children:[s&&(0,i.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,i.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(s?" warning":""),onChange:a=>{a.target.value=a.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(l),l=setTimeout(()=>{(0,r.A)(`/api/checkExistingFolder?name=${a.target.value}${e?"&folder="+e:""}`).then(e=>{a.target.value?.match(/./)&&e?.success?(c(!0),alert("Folder Already Exists")):c(!1)})},500)}}),(0,i.jsx)("button",{children:"Add New Folder"})]})]})]})}},87081:(e,a,t)=>{t.d(a,{A:()=>x});var l=t(8732),i=t(82015),s=t.n(i),n=t(46169),r=t(72390),o=t(91140),d=t(16757),c=t(17855);let m=(0,t(82544).A)("LockKeyholeOpen",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);function u({mediaObject:e}){let[a,t]=i.useState(!1);return i.useEffect(()=>{e.private=a},[a]),(0,l.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(a?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{t(e=>!e)},children:a?(0,l.jsx)(c.A,{}):(0,l.jsx)(m,{})})}var p=t(58150);function h({imageObject:e,newMedia:a,setNewMedia:t,video:i}){let s=e.imageBase64Full||e.fileBase64Full,n=e.imageName||e.fileName;return(0,l.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[i?(0,l.jsx)("video",{src:s,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,l.jsx)("img",{src:s,alt:n,className:"w-full h-full object-contain"}),(0,l.jsx)("input",{type:"text",defaultValue:n,onInput:a=>{let t=a.target.value?.replace(/ /g,"-");e.fileName&&(e.fileName=t),e.imageName&&(e.imageName=t)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,l.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:l=>{let i=a.findIndex(a=>a.imageBase64===e.imageBase64||a.fileBase64===e.fileBase64);a.splice(i,1),t([...a])},children:(0,l.jsx)(p.A,{size:16})}),!i&&(0,l.jsx)(u,{mediaObject:e})]})}function f({fileObject:e,newFile:a,setNewFile:t}){return(0,l.jsxs)("div",{className:"border border-slate-300 rounded min-h-[100px] flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,l.jsx)("input",{type:"text",defaultValue:e.fileName,onInput:a=>{e.fileName=a.target.value?.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,l.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:l=>{let i=a.findIndex(a=>a.fileBase64===e.fileBase64);a.splice(i,1),t([...a])},children:(0,l.jsx)(p.A,{size:16})}),(0,l.jsx)(u,{mediaObject:e})]})}function x({newMedia:e,setNewMedia:a,newFile:t,setNewFile:i,newVideo:c,setNewVideo:m,folder:u}){let p=e?.[0]?"images":t?.[0]?"files":"videos",x=p?.match(/image/i)?e:p?.match(/file/i)?t:c,g=p?.match(/image/i)?a:p?.match(/file/i)?i:m,[y,w]=s().useState(!1);return(0,l.jsxs)(o.Ay,{title:"new-media-popup",closePopupDispatch:()=>{a(null),i(null),m(null)},children:[y&&(0,l.jsx)(d.A,{screen:!0}),(0,l.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:x&&x[0]&&x.map((e,a)=>p?.match(/image/i)?(0,l.jsx)(h,{imageObject:e,newMedia:x,setNewMedia:g},a+1):p?.match(/video/i)?(0,l.jsx)(h,{imageObject:e,newMedia:x,setNewMedia:g,video:!0},a+1):(0,l.jsx)(f,{fileObject:e,newFile:x,setNewFile:g},a+1))}),x&&x[0]&&(0,l.jsx)("button",{className:"py-3 w-full relative z-50"+(y?" pointer-events-none opacity-40":""),onClick:e=>{w(!0);let a=p?.match(/image/i)?{type:p,folder:u,media:x.map(e=>({imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}))}:{type:p,folder:u,media:x.map(e=>({fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:!!p?.match(/video/i)}))};(0,n.A)("/api/addUserMedia",{method:"post",body:a},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.reload()}):(alert("Image Upload Failed"),console.log(e),setTimeout(()=>{w(!1)},1e3))})},children:"Upload Media"})]})}},14865:(e,a,t)=>{t.d(a,{A:()=>f});var l=t(8732),i=t(82015),s=t.n(i),n=t(46169),r=t(72390),o=t(91140),d=t(16757),c=t(55904),m=t(58671);t(21756);let u=(0,t(82544).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var p=t(6070),h=t(16230);function f({targetMedia:e,staticHost:a,setTargetMedia:t,media:i}){e?.media_thumbnail_path?e?.media_thumbnail_path:e?.media_thumbnail_url;let f=e?.media_path?`${a}/${e?.media_path}`:e?.media_url,x=!!e?.media_type?.match(/video/i),g=e?i.findIndex(a=>a.id==e.id):null,y="number"==typeof g&&g>=0,w=(()=>{if(!y)return null;let e=i[g+1];return e?e?.media_type?.match(/image/i)?e:i.slice(g+1).find(e=>!!e.media_type?.match(/image/i))||null:null})(),v=(()=>{if(!y)return null;let e=i[g-1];return e?e?.media_type?.match(/image/i)?e:i.slice(0,g-1).findLast(e=>!!e.media_type?.match(/image/i))||null:null})(),[b,j]=s().useState(!!e?.private),[_,N]=s().useState(!1),[A,k]=s().useState(f),S=s().useRef();return(0,l.jsxs)(o.Ay,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:()=>{N(!1),t(null)},children:[b&&(0,l.jsx)(d.A,{}),!_&&(0,l.jsx)(d.A,{}),e&&(0,l.jsxs)(s().Fragment,{children:[(0,l.jsxs)("div",{className:"self-center h-screen py-4",children:[A?x?(0,l.jsx)("video",{src:A,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:()=>{N(!0)},style:_?void 0:{display:"none"}}):(0,l.jsx)("img",{src:A,alt:e.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:S,onLoad:e=>{N(!0)},style:_?void 0:{display:"none"}}):(0,l.jsx)(l.Fragment,{}),v&&(0,l.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{t(null),t(v)},children:(0,l.jsx)(u,{color:"white"})}),w&&(0,l.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{t(null),t(w)},children:(0,l.jsx)(p.A,{color:"white"})})]}),(0,l.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:e.media_path?.replace(/.*\//,"")}),(0,l.jsx)("div",{className:"absolute bottom-6 left-6 p-1 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch min-w-[200px]",children:(0,l.jsxs)(c.A,{column:!0,children:[(0,l.jsx)(h.F,{mediaObject:e,setLoading:j}),(0,l.jsx)("button",{className:"outlined secondary more-padding",onClick:a=>{(0,m.A)({mediaObject:e,fileName:e.media_url?.match(/[^\/]+$/)?.[0]||"",setLoading:j})},children:"Download"}),(0,l.jsx)("button",{onClick:a=>{window.confirm("Delete this media?")&&(0,n.A)("/api/deleteUserMedia",{method:"post",body:e},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},className:"more-padding",children:"Delete"}),!e?.private&&(0,l.jsxs)(s().Fragment,{children:[(0,l.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_url||"").then(()=>{alert(`Media url ${e.media_url} Copied to clipboard`)})},children:"Copy Full Image Link"}),(0,l.jsx)("button",{className:"outlined gray w-full more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_thumbnail_url||"").then(()=>{alert(`Media url ${e.media_thumbnail_url} Copied to clipboard`)})},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})]})})]})]})}},16230:(e,a,t)=>{t.d(a,{A:()=>r,F:()=>o});var l=t(8732);t(82015);var i=t(46169),s=t(72390),n=t(55904);function r({mediaObject:e,setLoading:a}){return(0,l.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,l.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,l.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,l.jsxs)(n.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,l.jsx)(o,{mediaObject:e,setLoading:a}),(0,l.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:a=>{window.confirm("Delete this media?")&&(0,i.A)("/api/deleteUserMedia",{method:"post",body:e},!0).then(e=>{e.success?(0,s.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},children:"Delete"})]})})]})}function o({mediaObject:e,setLoading:a}){return(0,l.jsx)("button",{onClick:t=>{let l=window.prompt("Rename media",e.media_name);l&&window.confirm(`Rename "${e.media_name}" to "${l}"`)&&(a(!0),(0,i.A)("/api/renameMedia",{method:"post",body:{mediaObject:e,newName:l.replace(/ /g,"-"),newThumbnailName:l.replace(/ /g,"-")+"_thumbnail"}},!0).then(e=>{e.success?window.location.reload():(window.alert(e.msg),setTimeout(()=>{a(!1)},1e3))}))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},91140:(e,a,t)=>{t.d(a,{Ay:()=>r,PB:()=>o,fs:()=>d});var l=t(8732),i=t(58150),s=t(82015),n=t.n(s);function r({children:e,title:a,data:t,fullPage:s,wrapperClasses:r,closePopupDispatch:o,wrapperStyle:c,noContainer:m}){return s?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:c,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),o&&o()},children:(0,l.jsx)(i.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]})}function o(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a?.(t))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},43430:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(83921);function s({setNewFile:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},81145:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(65842);function s({setNewMedia:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_image_input",id:"upload_image_input",className:"hidden",accept:"image/*",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},10839:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(83921);function s({setNewVideo:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_video_input",id:"upload_video_input",className:"hidden",accept:".mp4",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Videos selected")}})})}},66485:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(8732);function i(){return(0,l.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,l.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(82015)},55904:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(8732),i=t(82015),s=t.n(i);function n({children:e,column:a,className:t}){let i=s().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(t?" "+t:""),ref:i,children:e})}},58671:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(21756);async function i({mediaObject:e,fileName:a,setLoading:t}){let i;t&&t(!0);let s=!!(e?.private||e?.media_url?.match(/^\@/));i=s?await (0,l.A)({url:e.media_url||""}):await fetch("/api/fetch-media?url="+e.media_url);let n=s?i:await i.blob(),r=s?i:URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=a,o.style.display="none",document.body.appendChild(o),o.click(),URL.revokeObjectURL(r),document.body.removeChild(o),setTimeout(()=>{t&&t(!1)},500)}},21756:(e,a,t)=>{t.d(a,{A:()=>l});async function l({url:e}){return new Promise((a,t)=>{fetch("/api/media/getPrivateMedia",{method:"POST",body:JSON.stringify({path:e}),headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.blob()).then(e=>{a(URL.createObjectURL(e))})})}},65842:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(76102);let i=t.n(l)().media.imageInputFileToBase64},83921:(e,a,t)=>{t.d(a,{A:()=>l});async function l({inputFile:e}){try{let a=e.name.replace(/\..*/,""),t=await new Promise((a,t)=>{var l=new FileReader;l.readAsDataURL(e),l.onload=function(){a(l.result)},l.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:t.replace(/.*?base64,/,""),fileBase64Full:t,fileName:a,fileSize:e.size,fileType:e.type}}catch(a){return console.log("Image Processing Error! =>",a.message),{fileBase64:null,fileBase64Full:null,fileName:e.name,fileSize:null,fileType:null}}}},23293:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},6070:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34637:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},17855:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(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"}]])},66918:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,a,t)=>{t.d(a,{A:()=>l});let l=(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"}]])},58150:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71934:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(51779);async function i(...e){let a=(0,l.A)();try{if(!a)throw Error("No Connection provided to DB_HANDLER function!");let t=await a.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await a?.end()}}},51779:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(9973),i=t.n(l);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,a)=>{Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9240.js b/dsql-app/.local_dist/server/chunks/9240.js new file mode 100644 index 0000000..97ade72 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9240.js @@ -0,0 +1 @@ +"use strict";exports.id=9240,exports.ids=[9240],exports.modules={55904:(e,s,t)=>{t.d(s,{A:()=>o});var a=t(8732),r=t(82015),l=t.n(r);function o({children:e,column:s,className:t}){let r=l().useRef();return(0,a.jsx)("div",{className:"items-stretch gap-0"+(s?" flex-col":" flex-wrap xl:flex-nowrap")+(t?" "+t:""),ref:r,children:e})}},93035:(e,s,t)=>{t.d(s,{A:()=>m});var a=t(8732),r=t(82015),l=t.n(r),o=t(46169),n=t(16757),c=t(82544);let i=(0,c.A)("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),d=(0,c.A)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);function p({docPageObject:e}){let[s,t]=l().useState(!1),[r,c]=l().useState([]);return(0,a.jsxs)("div",{className:"card col relative cursor-pointer",onClick:s=>{s.target?.closest(".cancel-link")?s.preventDefault():window.location.pathname=`/su/docs/pages/${e.id}`},children:[s&&(0,a.jsx)(n.A,{width:"20px"}),(0,a.jsxs)("div",{className:"w-full items-start",children:[(0,a.jsx)(i,{}),(0,a.jsxs)("div",{className:"flex-col items-start gap-0 relative z-10",children:[(0,a.jsx)("span",{className:"title",children:e.title}),(0,a.jsx)("span",{className:"-my-3",dangerouslySetInnerHTML:{__html:e.description||""}})]}),(0,a.jsxs)("div",{className:"ml-auto cancel-link",children:[(0,a.jsx)("button",{onClick:()=>{window.location.href=`/su/docs/edit-page?id=${e.id}`},className:"outlined small-text light-gray",children:"Edit Page"}),(0,a.jsx)("button",{onClick:()=>{window.confirm("Delete this page?")&&(t(!0),(0,o.A)("/api/admin/docs/delete-page",{method:"post",body:e}).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{t(!1)},1e3)}))},className:"outlined small-text light-gray",children:"Delete Page"})]})]}),r&&(0,a.jsxs)("div",{className:"-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"text-slate-300 font-semibold",children:"Children Pages"})]}),r.map((e,s)=>(0,a.jsxs)("div",{className:"card w-full",onClick:()=>{window.location.pathname=`/su/docs/pages/${e.id}`},children:[(0,a.jsx)(i,{}),(0,a.jsx)("span",{children:e.title})]},s))]})]})}var u=t(55904);function m({data:e}){let{env:s}=e,t=e.docPages,[r,c]=l().useState(!1);function i(e){window.confirm(e?"Update Docs DB from JSON file?":"Update docs json file?")&&(c(!0),(0,o.A)("/api/admin/docs/persist",{method:"post",body:{pull:e}}).then(s=>{s.success?window.alert(e?"Docs database table Updated Sucessfully!":"JSON data written Successfully!"):window.alert("Operation failed!"),setTimeout(()=>{c(!1)},1e3)}).catch(e=>{setTimeout(()=>{c(!1)},1e3)}))}return(0,a.jsxs)(l().Fragment,{children:[r&&(0,a.jsx)(n.A,{}),(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Documentation Pages"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("a",{href:"/su/docs/create-page",className:"button",children:"Create Page"}),(0,a.jsxs)(u.A,{children:[(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{i(!1)},children:"Push"}),(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{i(!0)},children:"Pull"})]})]})]}),(0,a.jsx)("div",{className:"paper flex-col items-stretch gap-10 w-full",children:t.map((e,s)=>(0,a.jsx)(p,{docPageObject:e},s))})]})]})}},71934:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(51779);async function r(...e){let s=(0,a.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let t=await s.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},51779:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(9973),r=t.n(a);function l(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9796.js b/dsql-app/.local_dist/server/chunks/9796.js index 1c7f5c6..5c63a7f 100644 --- a/dsql-app/.local_dist/server/chunks/9796.js +++ b/dsql-app/.local_dist/server/chunks/9796.js @@ -1 +1 @@ -exports.id=9796,exports.ids=[9796],exports.modules={16757:(e,a,s)=>{"use strict";s.d(a,{A:()=>i});var t=s(8732),l=s(82015),r=s.n(l);function i({width:e,position:a,style:s,borderWidth:l,screen:i,title:n}){return(0,t.jsxs)("div",{className:" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50"+(i?" fixed":" absolute"),style:{...s,position:a,zIndex:2e4},children:[(0,t.jsx)("span",{className:"general_loader",style:e?{width:e,height:e,minWidth:e,borderWidth:l||"4px"}:{}}),n?(0,t.jsx)("span",{children:n}):(0,t.jsx)(r().Fragment,{})]})}},50139:(e,a,s)=>{"use strict";s.d(a,{A:()=>r});var t=s(8732),l=s(66759);function r({size:e,adminAside:a,collapseAsideMobile:s,setCollapseAsideMobile:r}){return(0,t.jsxs)("a",{href:"/",className:"logo",onClick:e=>{let a=e.target;if(a?.closest("button"))return e.preventDefault()},children:[a&&(0,t.jsxs)("button",{className:"flex lg:hidden small-text mr-2 primary-light",onClick:e=>{s&&r?r(!1):r&&r(!0)},children:[(0,t.jsx)("div",{className:"-mt-0.5",children:(0,t.jsx)(l.A,{})}),(0,t.jsx)("span",{className:"dark:text-white",children:"Menu"})]}),(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"dark:hidden -mt-1.5 -mr-1.5"}),(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"hidden dark:flex -mt-1.5 -mr-1.5"}),(0,t.jsx)("span",{className:"text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]",children:"Datasquirel"})]})}s(82015)},81868:(e,a,s)=>{"use strict";s.d(a,{A:()=>i});var t=s(8732),l=s(82015),r=s.n(l);function i(){let[e,a]=r().useState("Light Mode");return(0,t.jsx)("div",{className:"",id:"theme-selector-wrapper",onClick:()=>{let e=document.getElementById("theme-selector-graphic-wrapper"),s=localStorage.getItem("theme"),t=e?.querySelector("img.sun"),l=e?.querySelector("img.moon");!s||s?.match(/light/)?(document.documentElement.className="dark",localStorage.setItem("theme","dark"),s="dark",t?.classList.add("hidden"),l?.classList.remove("hidden"),e?.firstChild?.classList.add("ml-auto"),a("Dark Mode")):s?.match(/dark/)&&(document.documentElement.className="light",localStorage.setItem("theme","light"),s="light",l?.classList.add("hidden"),t?.classList.remove("hidden"),e?.firstChild?.classList.remove("ml-auto"),a("Light Mode"))},children:(0,t.jsx)("div",{className:"p-1 rounded-full w-12 transition-all",id:"theme-selector-graphic-wrapper",children:(0,t.jsxs)("div",{className:"pointer-events-none transition-all dark:ml-auto",children:[(0,t.jsx)("img",{src:"/images/sun.png",alt:"Sun Icon",width:18,className:"sun dark:hidden"}),(0,t.jsx)("img",{src:"/images/new-moon.png",alt:"Sun Icon",width:18,className:"moon hidden dark:flex"})]})})})}},46169:(e,a,s)=>{"use strict";s.d(a,{A:()=>l});var t=s(13893);let l=s.n(t)()},27550:(e,a,s)=>{"use strict";async function t({links:e}){let a=e||document.querySelectorAll("nav a");if(a&&a.forEach(e=>{e.dataset.currentlink===window.location.pathname?e.classList.add("active"):window.location.pathname.match(RegExp(`${e.dataset.currentlink}\\/.*`))&&!e.dataset.strictlink&&e.classList.add("active")}),window.location.pathname.match(/\/databases\/.*/)){let e=document.querySelectorAll("a");e&&window.location.search.match(/delegated=true/)&&e.forEach((e,a)=>{e?.pathname?.match(/databases/)&&(e.href=e.pathname+window.location.search)})}}s.d(a,{A:()=>t})},1013:(e,a,s)=>{"use strict";s.d(a,{A:()=>p});var t=s(8732),l=s(82015),r=s.n(l),i=s(27912),n=s.n(i);s(27550);var c=s(81868),d=s(50139),o=s(192),m=s(58526);function h({user:e,darkBg:a,transparent:s}){let[l,i]=r().useState(e?.logged_in_status?e:null);return(0,t.jsx)("header",{className:"w-full px-4 md:px-8 flex justify-center gap-4 "+(a?" shadow-slate-900/20 dark-content":" shadow-slate-900/5")+(s?"":" bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50")+(e?.logged_in_status?" py-4":" py-6"),style:{zIndex:700},children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("nav",{className:"w-full flex items-center justify-between gap-4 md:gap-10",children:[(0,t.jsx)(d.A,{}),(0,t.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 p-4 xl:p-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto xl:bg-transparent"+(s?" bg-white xl:bg-transparent":" bg-white dark:bg-slate-800"),id:"main-nav-content-wrapper",children:[(0,t.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,t.jsx)("a",{href:"/",children:(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,t.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let a=document.getElementById("main-nav-content-wrapper");a?.classList.toggle("hidden")},style:{border:"none"},children:(0,t.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,t.jsxs)("div",{className:"flex items-center grow flex-col-reverse xl:flex-row mb-10 xl:mb-0",children:[(0,t.jsxs)("div",{className:"flex-col xl:flex-row w-full gap-y-10 gap-x-6",children:[(0,t.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,t.jsxs)("a",{href:"/docs/gui-reference",className:"relative z-10 flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Features"}),(0,t.jsx)(m.A,{size:20})]}),(0,t.jsxs)("div",{className:"dropdown",children:[(0,t.jsx)("a",{href:"/docs/database-reference/data-types",className:"button plain-text more-padding normal-weight",children:"Database Schema"}),(0,t.jsx)("a",{href:"/docs/database-reference/querying-data",className:"button plain-text more-padding normal-weight",children:"Sql Queries"}),(0,t.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"button plain-text more-padding normal-weight",children:"Media Storage"})]})]}),(0,t.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,t.jsxs)("a",{href:"/docs",className:"relative z-10 flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Docs"}),(0,t.jsx)(m.A,{size:20})]}),(0,t.jsxs)("div",{className:"dropdown",children:[(0,t.jsx)("a",{href:"/docs/quick-start",className:"button plain-text more-padding normal-weight",children:"Quick Start"}),(0,t.jsx)("a",{href:"/docs/api-reference",className:"button plain-text more-padding normal-weight",children:"Api Guide"}),(0,t.jsx)("a",{href:"/docs/gui-reference",className:"button plain-text more-padding normal-weight",children:"GUI Interface"})]})]}),(0,t.jsx)("a",{href:"/about",children:"About Us"}),(0,t.jsx)("a",{href:"/contact",children:"Contact Us"})]}),l?.logged_in_status?(0,t.jsx)(o.A,{activeUser:l,noModeSelector:!0}):(0,t.jsxs)("div",{className:"ml-auto w-full xl:w-auto justify-center",children:[(0,t.jsx)("a",{href:"/login",className:"button outlined gray hidden xl:flex"+(a?" light":""),children:"Login"}),(0,t.jsx)("a",{href:"/login",className:"button outlined gray flex xl:hidden",children:"Login"}),(0,t.jsx)("a",{href:"/create-account",className:"button",children:"Get Started"})]})]})]}),(0,t.jsx)("div",{className:"ml-0 xl:-ml-2",children:(0,t.jsx)(c.A,{})}),(0,t.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all",onClick:e=>{let a=document.getElementById("main-nav-content-wrapper");a?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})})}function x(){return(0,t.jsxs)("footer",{className:"p-8 md:p-10 w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"main-container items-start justify-between gap-6 flex-wrap flex-col md:flex-row pt-6",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-6",children:[(0,t.jsx)(d.A,{}),(0,t.jsx)("span",{className:"font-normal max-w-sm text-sm text-left",children:"Datasquirel is a fast efficient cloud-based data store that takes away the entire hassle of data management."})]}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h4",{className:"m-0",children:"Features"}),(0,t.jsx)("a",{href:"/docs/database-reference/data-types",className:"text-slate-600",children:"Database Schema"}),(0,t.jsx)("a",{href:"/docs/database-reference/querying-data",className:"text-slate-600",children:"SQL Queries"}),(0,t.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"text-slate-600",children:"Media Storage"})]}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h4",{className:"m-0",children:"Docs"}),(0,t.jsx)("a",{href:"/docs/quick-start",className:"text-slate-600",children:"Quick Start Guide"}),(0,t.jsx)("a",{href:"/docs/api-reference",className:"text-slate-600",children:"API Guide"}),(0,t.jsx)("a",{href:"/docs/gui-reference",className:"text-slate-600",children:"GUI Interface"})]}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h4",{className:"m-0",children:"Company"}),(0,t.jsx)("a",{href:"/about",className:"text-slate-600",children:"About Us"}),(0,t.jsx)("a",{href:"/terms",className:"text-slate-600",children:"Terms and Conditions"}),(0,t.jsx)("a",{href:"/privacy",className:"text-slate-600",children:"Privacy Policy"})]})]}),(0,t.jsx)("hr",{className:"my-10"}),(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]})})]})}function g(){return(0,t.jsx)(r().Fragment,{})}var u=s(43363);function p({children:e,head:a,user:s,productionEnvironment:l,darkBgHeader:i,transparentHeader:c}){return(0,t.jsxs)(r().Fragment,{children:[(0,t.jsx)(n(),{children:a}),(0,t.jsx)(g,{}),(0,t.jsx)(h,{user:s,darkBg:i,transparent:c}),e,(0,t.jsx)(x,{}),(0,t.jsx)(u.A,{})]})}},192:(e,a,s)=>{"use strict";s.d(a,{A:()=>m});var t=s(8732),l=s(82015),r=s.n(l),i=s(16757),n=s(52070);function c({user:e}){return(0,t.jsxs)("div",{className:"dropdown right-aligned",children:[(0,t.jsxs)("a",{href:"/admin",className:"button outlined gray more-padding relative z-20 mb-2",children:[(0,t.jsx)(n.A,{size:18,className:"mr-1"}),(0,t.jsx)("span",{children:"Dashboard"})]}),null,(0,t.jsx)("a",{href:`/admin/${e?.id}/settings`,className:"button plain-text more-padding normal-weight",children:"Settings"}),(0,t.jsx)("a",{href:"/logout",className:"button plain-text more-padding normal-weight",children:"Logout"})]})}var d=s(81868),o=s(58526);function m({activeUser:e,noModeSelector:a}){return e?.logged_in_status?(0,t.jsxs)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2 whitespace-nowrap",children:[(0,t.jsxs)("div",{className:"ml-auto dropdown-wrapper p-0 xl:p-4 hover:bg-slate-100 hidden",children:[(0,t.jsx)("a",{href:`/admin/${e?.id}/notifications`,className:"flex items-center justify-center",children:(0,t.jsx)("img",{src:"/images/notification-icon.svg",alt:"Notification Icon",width:20,className:"opacity-50"})}),(0,t.jsxs)("div",{className:"dropdown mt-0 xl:-mt-3 gap-2",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"Notifications"}),(0,t.jsx)(i.A,{position:"relative",width:"20px"})]})]}),(0,t.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,t.jsxs)("div",{className:"avatar",style:{width:"36px",height:"36px"},children:[(0,t.jsx)("img",{src:e?.image,alt:"User Image",width:35,className:"w-full h-full object-cover rounded-full"}),e?.social_login?(0,t.jsxs)("div",{className:"sub-img",children:[(0,t.jsx)("img",{src:e?.social_platform?.match(/facebook/i)?"/images/facebook.png":e?.social_platform?.match(/google/i)?"/images/google.png":e?.social_platform?.match(/github/i)?"/images/github.png":"/images/sharing.png",alt:"",className:"flex dark:hidden"}),(0,t.jsx)("img",{src:e?.social_platform?.match(/facebook/i)?"/images/facebook.png":e?.social_platform?.match(/google/i)?"/images/google.png":e?.social_platform?.match(/github/i)?"/images/github-white.png":"/images/sharing.png",alt:"",className:"hidden dark:flex"})]}):(0,t.jsx)(r().Fragment,{})]}),(0,t.jsx)("span",{className:"dark:text-white",children:(0,t.jsxs)("b",{children:[e?.first_name," ",e?.last_name]})}),(0,t.jsx)(o.A,{size:20}),(0,t.jsx)(c,{user:e})]}),!a&&(0,t.jsx)("div",{className:"ml-2",children:(0,t.jsx)(d.A,{})})]}):(0,t.jsx)(r().Fragment,{})}},43363:(e,a,s)=>{"use strict";s.d(a,{A:()=>n});var t=s(8732),l=s(58591),r=s(82015),i=s.n(r);function n({snug:e}){let[a,s]=i().useState(!1);return(0,t.jsx)(i().Fragment,{children:a&&(0,t.jsx)("button",{className:"fixed z-40 w-12 h-12 p-2 rounded-full bg-white dark:bg-slate-600 shadow-xl flex items-center justify-center hover:bg-slate-800 dark:hover:bg-slate-800 text-slate-500 dark:text-slate-200 outline-slate-300 dark:outline-transparent"+(e?" bottom-6 right-4":" bottom-4 md:bottom-10 right-4 md:right-10"),style:{outlineStyle:"solid",outlineWidth:"1px",zIndex:2e3},onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},children:(0,t.jsx)(l.A,{size:20})})})}},19796:(e,a,s)=>{"use strict";s.r(a),s.d(a,{AppContext:()=>x,default:()=>g});var t=s(8732),l=s(82015),r=s.n(l),i=s(28133),n=s.n(i),c=s(27912),d=s.n(c);s(79061),s(44422);var o=s(46169),m=s(1013);class h extends r().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,a){(0,o.A)("/api/admin/clientError",{method:"post",body:{component:"ErrorBoundary-class-component",message:e.message+" ==== Error Info => "+a,user:{}}})}render(){return this.state.hasError?(0,t.jsx)(m.A,{head:this.state.head,user:null,children:(0,t.jsxs)("div",{className:"paper items-center px-20",children:[(0,t.jsx)("h2",{className:"text-base text-slate-400 m-0",children:"Application Error!"}),(0,t.jsx)("h1",{className:"text-2xl m-0 mb-4",children:"Please try again!"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{href:"/",className:"button outlined",children:"Home"}),(0,t.jsx)("button",{onClick:e=>{window.history.back()},children:"Go Back"})]})]})}):this.props.children}}let x=r().createContext({pageProps:{}});function g({Component:e,pageProps:a}){return(0,t.jsxs)(x.Provider,{value:{pageProps:a},children:[(0,t.jsx)(d(),{children:(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,t.jsx)(h,{children:(0,t.jsx)(e,{...a})}),(0,t.jsx)(n(),{src:"/scripts/main.js",strategy:"afterInteractive"})]})}},79061:()=>{},44422:()=>{}}; \ No newline at end of file +exports.id=9796,exports.ids=[9796],exports.modules={16757:(e,a,s)=>{"use strict";s.d(a,{A:()=>i});var t=s(8732),l=s(82015),r=s.n(l);function i({width:e,position:a,style:s,borderWidth:l,screen:i,title:n}){return(0,t.jsxs)("div",{className:" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50"+(i?" fixed":" absolute"),style:{...s,position:a,zIndex:2e4},children:[(0,t.jsx)("span",{className:"general_loader",style:e?{width:e,height:e,minWidth:e,borderWidth:l||"4px"}:{}}),n?(0,t.jsx)("span",{children:n}):(0,t.jsx)(r().Fragment,{})]})}},50139:(e,a,s)=>{"use strict";s.d(a,{A:()=>r});var t=s(8732),l=s(66759);function r({size:e,adminAside:a,collapseAsideMobile:s,setCollapseAsideMobile:r}){return(0,t.jsxs)("a",{href:"/",className:"logo",onClick:e=>{let a=e.target;if(a?.closest("button"))return e.preventDefault()},children:[a&&(0,t.jsxs)("button",{className:"flex lg:hidden small-text mr-2 primary-light",onClick:e=>{s&&r?r(!1):r&&r(!0)},children:[(0,t.jsx)("div",{className:"-mt-0.5",children:(0,t.jsx)(l.A,{})}),(0,t.jsx)("span",{className:"dark:text-white",children:"Menu"})]}),(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"dark:hidden -mt-1.5 -mr-1.5"}),(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"hidden dark:flex -mt-1.5 -mr-1.5"}),(0,t.jsx)("span",{className:"text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]",children:"Datasquirel"})]})}s(82015)},81868:(e,a,s)=>{"use strict";s.d(a,{A:()=>i});var t=s(8732),l=s(82015),r=s.n(l);function i(){let[e,a]=r().useState("Light Mode");return(0,t.jsx)("div",{className:"",id:"theme-selector-wrapper",onClick:()=>{let e=document.getElementById("theme-selector-graphic-wrapper"),s=localStorage.getItem("theme"),t=e?.querySelector("img.sun"),l=e?.querySelector("img.moon");!s||s?.match(/light/)?(document.documentElement.className="dark",localStorage.setItem("theme","dark"),s="dark",t?.classList.add("hidden"),l?.classList.remove("hidden"),e?.firstChild?.classList.add("ml-auto"),a("Dark Mode")):s?.match(/dark/)&&(document.documentElement.className="light",localStorage.setItem("theme","light"),s="light",l?.classList.add("hidden"),t?.classList.remove("hidden"),e?.firstChild?.classList.remove("ml-auto"),a("Light Mode"))},children:(0,t.jsx)("div",{className:"p-1 rounded-full w-12 transition-all",id:"theme-selector-graphic-wrapper",children:(0,t.jsxs)("div",{className:"pointer-events-none transition-all dark:ml-auto",children:[(0,t.jsx)("img",{src:"/images/sun.png",alt:"Sun Icon",width:18,className:"sun dark:hidden"}),(0,t.jsx)("img",{src:"/images/new-moon.png",alt:"Sun Icon",width:18,className:"moon hidden dark:flex"})]})})})}},46169:(e,a,s)=>{"use strict";s.d(a,{A:()=>l});var t=s(13893);let l=s.n(t)()},27550:(e,a,s)=>{"use strict";async function t({links:e}){let a=e||document.querySelectorAll("nav a");if(a&&a.forEach(e=>{e.dataset.currentlink===window.location.pathname?e.classList.add("active"):window.location.pathname.match(RegExp(`${e.dataset.currentlink}\\/.*`))&&!e.dataset.strictlink&&e.classList.add("active")}),window.location.pathname.match(/\/databases\/.*/)){let e=document.querySelectorAll("a");e&&window.location.search.match(/delegated=true/)&&e.forEach((e,a)=>{e?.pathname?.match(/databases/)&&(e.href=e.pathname+window.location.search)})}}s.d(a,{A:()=>t})},26228:(e,a,s)=>{"use strict";s.d(a,{A:()=>p});var t=s(8732),l=s(82015),r=s.n(l),i=s(27912),n=s.n(i);s(27550);var c=s(81868),d=s(50139),o=s(192),m=s(58526);function h({user:e,darkBg:a,transparent:s}){let{user:l}=function(){let[e,a]=r().useState();return{user:e}}(),i=e?.logged_in_status?e:l||null;return(0,t.jsx)("header",{className:"w-full px-4 md:px-8 flex justify-center gap-4 "+(a?" shadow-slate-900/20 dark-content":" shadow-slate-900/5")+(s?"":" bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50")+(e?.logged_in_status?" py-4":" py-6"),style:{zIndex:700},children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("nav",{className:"w-full flex items-center justify-between gap-4 md:gap-10",children:[(0,t.jsx)(d.A,{}),(0,t.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 p-4 xl:p-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto xl:bg-transparent"+(s?" bg-white xl:bg-transparent":" bg-white dark:bg-slate-800"),id:"main-nav-content-wrapper",children:[(0,t.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,t.jsx)("a",{href:"/",children:(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,t.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let a=document.getElementById("main-nav-content-wrapper");a?.classList.toggle("hidden")},style:{border:"none"},children:(0,t.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,t.jsxs)("div",{className:"flex items-center grow flex-col-reverse xl:flex-row mb-10 xl:mb-0",children:[(0,t.jsxs)("div",{className:"flex-col xl:flex-row w-full gap-y-10 gap-x-6",children:[(0,t.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,t.jsxs)("a",{href:"/docs/gui-reference",className:"relative z-10 flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Features"}),(0,t.jsx)(m.A,{size:20})]}),(0,t.jsxs)("div",{className:"dropdown",children:[(0,t.jsx)("a",{href:"/docs/database-reference/data-types",className:"button plain-text more-padding normal-weight",children:"Database Schema"}),(0,t.jsx)("a",{href:"/docs/database-reference/querying-data",className:"button plain-text more-padding normal-weight",children:"Sql Queries"}),(0,t.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"button plain-text more-padding normal-weight",children:"Media Storage"})]})]}),(0,t.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,t.jsxs)("a",{href:"/docs",className:"relative z-10 flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Docs"}),(0,t.jsx)(m.A,{size:20})]}),(0,t.jsxs)("div",{className:"dropdown",children:[(0,t.jsx)("a",{href:"/docs/quick-start",className:"button plain-text more-padding normal-weight",children:"Quick Start"}),(0,t.jsx)("a",{href:"/docs/api-reference",className:"button plain-text more-padding normal-weight",children:"Api Guide"}),(0,t.jsx)("a",{href:"/docs/gui-reference",className:"button plain-text more-padding normal-weight",children:"GUI Interface"})]})]}),(0,t.jsx)("a",{href:"/about",children:"About Us"}),(0,t.jsx)("a",{href:"/contact",children:"Contact Us"})]}),i?.logged_in_status?(0,t.jsx)(o.A,{activeUser:i,noModeSelector:!0}):(0,t.jsxs)("div",{className:"ml-auto w-full xl:w-auto justify-center",children:[(0,t.jsx)("a",{href:"/login",className:"button outlined gray hidden xl:flex"+(a?" light":""),children:"Login"}),(0,t.jsx)("a",{href:"/login",className:"button outlined gray flex xl:hidden",children:"Login"}),(0,t.jsx)("a",{href:"/create-account",className:"button",children:"Get Started"})]})]})]}),(0,t.jsx)("div",{className:"ml-0 xl:-ml-2",children:(0,t.jsx)(c.A,{})}),(0,t.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all",onClick:e=>{let a=document.getElementById("main-nav-content-wrapper");a?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})})}function x(){return(0,t.jsxs)("footer",{className:"p-8 md:p-10 w-full flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"main-container items-start justify-between gap-6 flex-wrap flex-col md:flex-row pt-6",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-6",children:[(0,t.jsx)(d.A,{}),(0,t.jsx)("span",{className:"font-normal max-w-sm text-sm text-left",children:"Datasquirel is a fast efficient cloud-based data store that takes away the entire hassle of data management."})]}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h4",{className:"m-0",children:"Features"}),(0,t.jsx)("a",{href:"/docs/database-reference/data-types",className:"text-slate-600",children:"Database Schema"}),(0,t.jsx)("a",{href:"/docs/database-reference/querying-data",className:"text-slate-600",children:"SQL Queries"}),(0,t.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"text-slate-600",children:"Media Storage"})]}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h4",{className:"m-0",children:"Docs"}),(0,t.jsx)("a",{href:"/docs/quick-start",className:"text-slate-600",children:"Quick Start Guide"}),(0,t.jsx)("a",{href:"/docs/api-reference",className:"text-slate-600",children:"API Guide"}),(0,t.jsx)("a",{href:"/docs/gui-reference",className:"text-slate-600",children:"GUI Interface"})]}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h4",{className:"m-0",children:"Company"}),(0,t.jsx)("a",{href:"/about",className:"text-slate-600",children:"About Us"}),(0,t.jsx)("a",{href:"/terms",className:"text-slate-600",children:"Terms and Conditions"}),(0,t.jsx)("a",{href:"/privacy",className:"text-slate-600",children:"Privacy Policy"})]})]}),(0,t.jsx)("hr",{className:"my-10"}),(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]})})]})}function g(){return(0,t.jsx)(r().Fragment,{})}var u=s(43363);function p({children:e,head:a,user:s,productionEnvironment:l,darkBgHeader:i,transparentHeader:c}){return(0,t.jsxs)(r().Fragment,{children:[(0,t.jsx)(n(),{children:a}),(0,t.jsx)(g,{}),(0,t.jsx)(h,{user:s,darkBg:i,transparent:c}),e,(0,t.jsx)(x,{}),(0,t.jsx)(u.A,{})]})}},192:(e,a,s)=>{"use strict";s.d(a,{A:()=>m});var t=s(8732),l=s(82015),r=s.n(l),i=s(16757),n=s(52070);function c({user:e}){return(0,t.jsxs)("div",{className:"dropdown right-aligned",children:[(0,t.jsxs)("a",{href:"/admin",className:"button outlined gray more-padding relative z-20 mb-2",children:[(0,t.jsx)(n.A,{size:18,className:"mr-1"}),(0,t.jsx)("span",{children:"Dashboard"})]}),null,(0,t.jsx)("a",{href:`/admin/${e?.id}/settings`,className:"button plain-text more-padding normal-weight",children:"Settings"}),(0,t.jsx)("a",{href:"/logout",className:"button plain-text more-padding normal-weight",children:"Logout"})]})}var d=s(81868),o=s(58526);function m({activeUser:e,noModeSelector:a}){return e?.logged_in_status?(0,t.jsxs)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2 whitespace-nowrap",children:[(0,t.jsxs)("div",{className:"ml-auto dropdown-wrapper p-0 xl:p-4 hover:bg-slate-100 hidden",children:[(0,t.jsx)("a",{href:`/admin/${e?.id}/notifications`,className:"flex items-center justify-center",children:(0,t.jsx)("img",{src:"/images/notification-icon.svg",alt:"Notification Icon",width:20,className:"opacity-50"})}),(0,t.jsxs)("div",{className:"dropdown mt-0 xl:-mt-3 gap-2",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"Notifications"}),(0,t.jsx)(i.A,{position:"relative",width:"20px"})]})]}),(0,t.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,t.jsxs)("div",{className:"avatar",style:{width:"36px",height:"36px"},children:[(0,t.jsx)("img",{src:e?.image,alt:"User Image",width:35,className:"w-full h-full object-cover rounded-full"}),e?.social_login?(0,t.jsxs)("div",{className:"sub-img",children:[(0,t.jsx)("img",{src:e?.social_platform?.match(/facebook/i)?"/images/facebook.png":e?.social_platform?.match(/google/i)?"/images/google.png":e?.social_platform?.match(/github/i)?"/images/github.png":"/images/sharing.png",alt:"",className:"flex dark:hidden"}),(0,t.jsx)("img",{src:e?.social_platform?.match(/facebook/i)?"/images/facebook.png":e?.social_platform?.match(/google/i)?"/images/google.png":e?.social_platform?.match(/github/i)?"/images/github-white.png":"/images/sharing.png",alt:"",className:"hidden dark:flex"})]}):(0,t.jsx)(r().Fragment,{})]}),(0,t.jsx)("span",{className:"dark:text-white",children:(0,t.jsxs)("b",{children:[e?.first_name," ",e?.last_name]})}),(0,t.jsx)(o.A,{size:20}),(0,t.jsx)(c,{user:e})]}),!a&&(0,t.jsx)("div",{className:"ml-2",children:(0,t.jsx)(d.A,{})})]}):(0,t.jsx)(r().Fragment,{})}},43363:(e,a,s)=>{"use strict";s.d(a,{A:()=>n});var t=s(8732),l=s(58591),r=s(82015),i=s.n(r);function n({snug:e}){let[a,s]=i().useState(!1);return(0,t.jsx)(i().Fragment,{children:a&&(0,t.jsx)("button",{className:"fixed z-40 w-12 h-12 p-2 rounded-full bg-white dark:bg-slate-600 shadow-xl flex items-center justify-center hover:bg-slate-800 dark:hover:bg-slate-800 text-slate-500 dark:text-slate-200 outline-slate-300 dark:outline-transparent"+(e?" bottom-6 right-4":" bottom-4 md:bottom-10 right-4 md:right-10"),style:{outlineStyle:"solid",outlineWidth:"1px",zIndex:2e3},onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},children:(0,t.jsx)(l.A,{size:20})})})}},19796:(e,a,s)=>{"use strict";s.r(a),s.d(a,{AppContext:()=>x,default:()=>g});var t=s(8732),l=s(82015),r=s.n(l),i=s(28133),n=s.n(i),c=s(27912),d=s.n(c);s(79061),s(44422);var o=s(46169),m=s(26228);class h extends r().Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,a){(0,o.A)("/api/admin/clientError",{method:"post",body:{component:"ErrorBoundary-class-component",message:e.message+" ==== Error Info => "+a,user:{}}})}render(){return this.state.hasError?(0,t.jsx)(m.A,{head:this.state.head,user:null,children:(0,t.jsxs)("div",{className:"paper items-center px-20",children:[(0,t.jsx)("h2",{className:"text-base text-slate-400 m-0",children:"Application Error!"}),(0,t.jsx)("h1",{className:"text-2xl m-0 mb-4",children:"Please try again!"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{href:"/",className:"button outlined",children:"Home"}),(0,t.jsx)("button",{onClick:e=>{window.history.back()},children:"Go Back"})]})]})}):this.props.children}}let x=r().createContext({pageProps:{}});function g({Component:e,pageProps:a}){return(0,t.jsxs)(x.Provider,{value:{pageProps:a},children:[(0,t.jsx)(d(),{children:(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,t.jsx)(h,{children:(0,t.jsx)(e,{...a})}),(0,t.jsx)(n(),{src:"/scripts/main.js",strategy:"afterInteractive"})]})}},79061:()=>{},44422:()=>{}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9814.js b/dsql-app/.local_dist/server/chunks/9814.js new file mode 100644 index 0000000..f706354 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9814.js @@ -0,0 +1,25 @@ +"use strict";exports.id=9814,exports.ids=[9814],exports.modules={67619:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(29021),r=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,d=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||l||a||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== +Error Message: ${a} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(l+=` +URL: ${i.url}`),i?.body&&(l+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),d&&(l+=` +IP: ${d}`),l+=` +Date: ${n.toDateString()} +========================================`,r().existsSync("./.tmp/error.log")||r().writeFileSync("./.tmp/error.log","","utf-8");let u=r().readFileSync("./.tmp/error.log","utf-8");r().writeFileSync("./.tmp/error.log",l),r().appendFileSync("./.tmp/error.log",` + + + + +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},76856:(e,a,t)=>{t.d(a,{A:()=>T});var l=t(33873),r=t.n(l),i=t(29021),n=t.n(i),d=t(66866),u=t(41864);async function s({queryString:e,queryValuesArray:a}){let t;try{t=e&&a&&Array.isArray(a)&&a[0]?await (0,u.A)({query:e,values:a}):await (0,u.A)({query:e})}catch(e){console.log("Shell Vardb Error =>",e.message)}return t}function E({columnData:e,primaryKeySet:a}){let{fieldName:t,dataType:l,nullValue:r,primaryKey:i,autoIncrement:n,defaultValue:d,defaultValueLiteral:u,onUpdateLiteral:s,notNullValue:E}=e,o="";return o+=`\`${t}\` ${l}`,r?o+=" DEFAULT NULL":u?o+=` DEFAULT ${u}`:d?String(d).match(/uuid\(\)/i)?o+=" DEFAULT UUID()":o+=` DEFAULT '${d}'`:E&&(o+=" NOT NULL"),s&&(o+=` ON UPDATE ${s}`),i&&!a&&(o+=" PRIMARY KEY",a=!0),n&&(o+=" AUTO_INCREMENT",a=!0),{fieldEntryText:o,newPrimaryKeySet:a||!1}}async function o({dbFullName:e,tableName:a,tableInfoArray:l,tableSchema:r,recordedDbEntry:i}){let n=function({tableInfoArray:e}){let a=t(95610),l=e.filter(e=>e.primaryKey);return a.forEach(a=>{let t=e.filter(e=>e.fieldName===a.fieldName);t&&t[0]||("id"!==a.fieldName||l[0]?e.push(a):e.unshift(a))}),e}({tableInfoArray:l}),d=[];d.push(`CREATE TABLE IF NOT EXISTS \`${e}\`.\`${a}\` (`);try{if(!i)throw Error("Recorded Db entry not found!");let e=await s({queryString:"SELECT * FROM datasquirel.user_database_tables WHERE db_id = ? AND table_slug = ?",queryValuesArray:[i.id,r?.tableName]}),a=e?.[0];a?.id||await (0,u.A)({query:"INSERT INTO datasquirel.user_database_tables SET ?",values:{user_id:i.user_id,db_id:i.id,db_slug:i.db_slug,table_name:r?.tableFullName,table_slug:r?.tableName,child_table:r?.childTable?"1":null,child_table_parent_database:r?.childTableDbFullName||null,child_table_parent_table:r?.childTableName||null,date_created:Date(),date_created_code:Date.now(),date_updated:Date(),date_updated_code:Date.now()}})}catch(e){}let o=!1,N=[];for(let e=0;e{let l=e.fieldName,r=e.foreignKey?.destinationTableName,i=e.foreignKey?.destinationTableColumnName,n=e.foreignKey?.cascadeDelete,u=e.foreignKey?.cascadeUpdate,s=e.foreignKey?.foreignKeyName,E=a===N.length-1?"":",";d.push(` CONSTRAINT \`${s}\` FOREIGN KEY (\`${l}\`) REFERENCES \`${r}\`(${i})${n?" ON DELETE CASCADE":""}${u?" ON UPDATE CASCADE":""}${E}`)}),d.push(") ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;");let c=d.join("\n");return await s({queryString:c})}let N=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function c({dbFullName:e,tableName:a,tableInfoArray:t,userId:l,dbSchema:r,tableIndexes:i,tableSchema:d,clone:o,childDb:c,tableIndex:f,tableNameFull:T,recordedDbEntry:m}){let A=[],_=t;try{let t=[];if(t.push(`ALTER TABLE \`${e}\`.\`${a}\``),c)try{if(!m)throw Error("Recorded Db entry not found!");let e=await s({queryString:"SELECT * FROM datasquirel.user_database_tables WHERE db_id = ? AND table_slug = ?",queryValuesArray:[m.id,a]}),t=e?.[0];t?.id||await (0,u.A)({query:"INSERT INTO datasquirel.user_database_tables SET ?",values:{user_id:m.user_id,db_id:m.id,db_slug:m.db_slug,table_name:T,table_slug:a,child_table:d?.childTable?"1":null,child_table_parent_database:d?.childTableDbFullName||null,child_table_parent_table:d.childTableName||null,date_created:Date(),date_created_code:Date.now(),date_updated:Date(),date_updated_code:Date.now()}})}catch(e){}let f=await s({queryString:`SHOW INDEXES FROM \`${e}\`.\`${a}\``}),b=await s({queryString:`SHOW COLUMNS FROM \`${e}\`.\`${a}\``}),S=[];for(let t=0;te.fieldName===i||e.originName===i);if(d&&d[0]){if(d[0].updatedField&&d[0].fieldName){S.push(d[0].fieldName),await s({queryString:`ALTER TABLE \`${e}\`.\`${a}\` RENAME COLUMN \`${d[0].originName}\` TO \`${d[0].fieldName}\``}),console.log(`Column Renamed from "${d[0].originName}" to "${d[0].fieldName}"`);try{let t=r.findIndex(a=>a.dbFullName===e),i=r[t].tables.findIndex(e=>e.tableName===a),u=r[t].tables[i].fields.findIndex(e=>e.fieldName===d[0].fieldName);delete r[t].tables[i].fields[u].originName,delete r[t].tables[i].fields[u].updatedField,_=r[t].tables[i].fields,n().writeFileSync(`${String(process.env.DSQL_USER_DB_SCHEMA_PATH)}/user-${l}/main.json`,JSON.stringify(r),"utf8")}catch(e){console.log("Update table error =>",e.message)}}continue}await s({queryString:`ALTER TABLE \`${e}\`.\`${a}\` DROP COLUMN \`${i}\``})}for(let t=0;te.alias===l);if(!e?.[0])throw Error(`This Index(${l}) Has been Deleted!`)}catch(t){await s({queryString:`ALTER TABLE \`${e}\`.\`${a}\` DROP INDEX \`${l}\``})}}if(i&&i[0])for(let t=0;te.Key_name===d)[0])throw Error("This Index Does not Exist")}catch(t){await s({queryString:`CREATE${l?.match(/fullText/i)?" FULLTEXT":""} INDEX \`${d}\` ON \`${e}\`.\`${a}\`(${n?.map(e=>e.value).map(e=>`\`${e}\``).join(",")}) COMMENT 'schema_index'`})}}let y=await s({queryString:`SELECT CONSTRAINT_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA = '${e}' AND TABLE_NAME='${a}' AND CONSTRAINT_TYPE='FOREIGN KEY'`});if(y)for(let t=0;t{if(e.Field===N)return i=a,!0}):null,{fieldEntryText:p}=E({columnData:n});if(h&&h[0]?.Field){let{Field:e,Type:a,Null:t,Key:n,Default:s,Extra:E}=h[0],o=r1)return await s({queryString:$});return"No Changes Made to Table"}catch(e){return console.log('Error in "updateTable" shell function =>',e.message),"Error in Updating Table"}}var f=t(59338);async function T({userId:e,targetDatabase:a,dbSchemaData:t}){let l=e?r().join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`/user-${e}/main.json`):r().resolve(__dirname,"../../jsonData/dbSchemas/main.json"),i=t||f.A.parse(n().readFileSync(l,"utf8"));if(!i){console.log("Schema Not Found!");return}for(let t=0;te.tableName===t)[0]){let a=n.filter(e=>e.tableNameOld&&e.tableNameOld===t);a&&a[0]?(console.log("Renaming Table"),await s({queryString:`RENAME TABLE \`${r}\`.\`${a[0].tableNameOld}\` TO \`${a[0].tableName}\``})):(console.log(`Dropping Table from ${r}`),await s({queryString:`DROP TABLE \`${r}\`.\`${t}\``}),await (0,u.A)({query:"DELETE FROM datasquirel.user_database_tables WHERE user_id = ? AND db_slug = ? AND table_slug = ?",values:[e,N,t]}))}}let _=e?await s({queryString:"SELECT * FROM datasquirel.user_databases WHERE db_full_name = ?",queryValuesArray:[r]}):void 0,b=_?.[0];for(let a=0;a0){if(await c({dbFullName:r,tableName:d,tableNameFull:t.tableFullName,tableInfoArray:u,userId:e,dbSchema:i,tableIndexes:E,tableIndex:a,childDb:l.childDatabase||void 0,recordedDbEntry:b,tableSchema:t}),t.childrenTables&&t.childrenTables[0])for(let a=0;ae.Key_name===i)[0])throw Error("This Index Does not Exist")}catch(e){await s({queryString:`CREATE${a?.match(/fullText/i)?" FULLTEXT":""} INDEX \`${i}\` ON \`${r}\`.\`${d}\`(${l?.map(e=>e.value).map(e=>`\`${e}\``).join(",")}) COMMENT 'schema_index'`})}}}if(f?.[0])for(let a=0;a{t.d(a,{A:()=>u});var l=t(29021),r=t.n(l),i=t(33873),n=t.n(i),d=t(7447);async function u({query:e,values:a}){let t;let l=(0,d.A)();try{t=e&&a?await l.query(e,a):await l.query(e)}catch(e){if(process.env.FIRST_RUN)return null;console.log("ERROR in dbHandler =>",e.message),console.log(e),console.log(l.config()),r().appendFileSync(n().resolve(__dirname,"../.tmp/dbErrorLogs.txt"),JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null}finally{await l?.end()}return t?JSON.parse(JSON.stringify(t)):null}},66866:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(41864);async function r(e){let a;try{a=await (0,l.A)({query:e})}catch(e){console.log("ERROR in noDatabaseDbHandler =>",e.message)}return a||null}},59338:(e,a,t)=>{t.d(a,{A:()=>l});let l={parse:function(e,a){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,a)}catch(e){return}}},stringify:function(e,a,t){try{return JSON.stringify(e,a||void 0,t)}catch(e){return}}}},95610:e=>{e.exports=JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]')}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9901.js b/dsql-app/.local_dist/server/chunks/9901.js deleted file mode 100644 index fdb365a..0000000 --- a/dsql-app/.local_dist/server/chunks/9901.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict";exports.id=9901,exports.ids=[9901],exports.modules={46083:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),i=t.n(s),n=t(32251),r=t(36138),d=t(27825),o=t.n(d);function c({targetField:e,fieldIndex:a,tableFields:s,setTableFields:d,refreshFieldsListRef:c,setActiveEdit:u,database:m,currentTable:x,user:p}){let h=e?.dataType?e.dataType.replace(/\d|\(|\)/g,""):null,f=e?.dataType?e.dataType.replace(/[^\d]/g,""):"200",g=t(94327),y=i().useRef(o().cloneDeep(e)),v=i().useRef(),[j,N]=i().useState(e),[w,b]=i().useState(e?.fieldName),[T,_]=i().useState(h),[F,S]=i().useState(f),[C,A]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[k,D]=i().useState(e?.richText&&!e?.encrypted?"Yes":"No"),V=!!T?.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:v,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{e.preventDefault(),d(e=>(e[a]=j,e)),c.current(e=>e+1);let t=e.target;t.closest(".table-field-wrapper")?.querySelector(".edit-table-field-section")?.classList.toggle("hidden")},children:[(0,l.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_"),N(e=>(e.fieldName=a.value,e.updatedField=!0,e.originName||(e.originName=w),e))},required:!0,defaultValue:w})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:C})})]})]}),(0,l.jsxs)("div",{className:"w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:a=>{let t=a.target;_(t.value),t.childNodes.forEach(e=>{e.value===t.value&&e.dataset.desc&&A(e.dataset.desc),e.value===t.value&&e.dataset.literal?(j.defaultValueLiteral=e.dataset.literal,j.nullValue=!1):delete j.defaultValueLiteral}),e.dataType=t.value+(t.value.match(/VARCHAR/)?`(${F||200})`:"")},defaultValue:T||void 0,children:g.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(F||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),T?.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:F||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:a=>{S(a.target.value),e.dataType=T+`(${a.target.value})`}})]})]}),T?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(r.A,{targetField:e})}),!e.dataType?.match(/text/i)&&!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:e?.notNullValue?"Yes":"No",onChange:a=>{console.log(e),"Yes"===a.target.value?e.notNullValue=!0:(e.notNullValue=!1,delete e.notNullValue)},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!V&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:j?.dataType?.match(/text$/i)?"Can't Set Default for text values":"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:j?.dataType?.match(/text$/i)?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:j?.defaultValue?j.defaultValue:j?.nullValue?"NULL":"",onInput:e=>{let a=e.target;j.dataType?.match(/text$/i)||N(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!V&&(0,l.jsx)(n.A,{database:m,setFieldData:N,setTableFields:d,tableFields:s,targetField:e,user:p,currentTable:x,fieldIndex:a})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:t=>{y.current&&(e=o().cloneDeep(y.current)),d(e=>{let t=o().cloneDeep(e);return a&&y.current&&(t[a]=o().cloneDeep(y.current)),t}),u&&u(!1)},children:"Cancel"})]})]})})}},32251:(e,a,t)=>{t.d(a,{A:()=>g});var l=t(8732),s=t(82015),i=t.n(s),n=t(83155),r=t(58150);function d({targetField:e}){if(!e?.richText)return null;let[a,t]=i().useState(e.cssFiles||[]),s=i().useRef(null);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,l.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,a)=>(0,l.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(r.A,{size:20,onClick:()=>{t(a=>a.filter(a=>a!==e))},className:"cursor-pointer hover:opacity-60 "})]},a+1)),(0,l.jsxs)("div",{className:"row w-full",children:[(0,l.jsx)(n.A,{name:"css-file",placeholder:"CSS file URL",elementRef:s}),(0,l.jsx)("button",{className:"secondary outlined",onClick:()=>{let e=s.current?.value;e?.match(/./)&&t(a=>[...new Set([...a,e])])},children:"Add"})]}),(0,l.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function o({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,l.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:e?.encrypted?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.encrypted=!0:(a.encrypted=!1,delete a.encrypted),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var c=t(93763);function u({targetField:e,setFieldData:a}){return null}function m({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,l.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:a=>{let t=a.target;t?.value?.length>0?e.pattern=t.value:delete e.pattern},defaultValue:e?.pattern}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:a=>{let t=a.target;t?.value?.length>0?e.patternFlags=t.value:delete e.patternFlags},defaultValue:e?.patternFlags})]})}var x=t(27825),p=t.n(x),h=t(84483);function f({targetField:e,setFieldData:a}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,l.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:e?.unique?"Yes":"No",onChange:e=>{a&&a(a=>(e.target.value.match(/yes/i)?a.unique=!0:(a.unique=!1,delete a.unique),a))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g({targetField:e,currentTable:a,database:t,tableFields:s,setTableFields:n,setFieldData:r,user:x,fieldIndex:g}){let[y,v]=i().useState(!1),j=i().useRef(p().cloneDeep(e));return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{v(!0)},children:"More"}),(0,l.jsx)(h.A,{open:y,onClose:()=>{j.current&&(e=p().cloneDeep(j.current)),v(!1)},maxWidth:"600px",children:(0,l.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,l.jsx)("div",{className:"w-full justify-between",children:(0,l.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,l.jsx)(d,{targetField:e}),(0,l.jsx)(f,{targetField:e,setFieldData:r}),(0,l.jsx)(o,{targetField:e,setFieldData:r}),a&&(0,l.jsx)(c.A,{targetField:e,setFieldData:r,database:t,tableFields:s,setTableFields:n,currentTable:a,user:x}),(0,l.jsx)(u,{targetField:e,setFieldData:r}),(0,l.jsx)(m,{targetField:e}),(0,l.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{v(!1)},children:"Done"})]})})]})}},471:(e,a,t)=>{t.d(a,{A:()=>F});var l=t(8732),s=t(82015),i=t.n(s);function n({tableFields:e,setTableFields:a,setRefresh:t,setPageRefresh:l,refreshFieldsListRef:s}){let i=e.findIndex(e=>"date_created"===e.fieldName);e.splice(i,0,{newTempField:!0}),a(e),s?.current&&s.current(e=>e+1)}t(80255);var r=t(51339),d=t(16757),o=t(42960),c=t(93763),u=t(46169);function m({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:m,user:x,isDelegated:p,setLoading:h}){let[f,g]=i().useState(e),[y,v]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(y?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(y?" rounded-t":" rounded")+(f.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(f.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:f.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:f.dataType}),f?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[f.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:f.foreignKey.destinationTableColumnName})," ",")"]})]}),f.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/))||f.foreignKey||d?.active_clone?.toString()?.match(/1/)?!p&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/)&&!d?.active_clone?.toString()?.match(/1/)?(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:a=>{window.confirm("Delete this foreign Key?")&&(delete e.foreignKey,h(!0),(0,u.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:m,database:d.db_full_name,dbSlug:d.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")}))},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,l.jsx)(i().Fragment,{}):(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{y?v(!1):v(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),y&&!p&&(0,l.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,l.jsx)(c.A,{targetField:e,setFieldData:g,tableFields:s,setTableFields:n,database:d,currentTable:m,user:x,setActiveEdit:v,activeClonedTable:!0})})]})}var x=t(32251),p=t(36138);function h({fieldIndex:e,setTableFields:a,database:s,user:n,isNewField:r,setLiteralValue:d,tempFieldData:o,setTempFieldData:c,dataTypeValue:u,setDataTypeValue:m,dataType:h,setDataType:f,dataTypeDesc:g,setDataTypeDesc:y}){let v=t(94327);i().useRef();let j=!!h.match(/uuid/i);return(0,l.jsxs)(i().Fragment,{children:[r&&(0,l.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let a=e.target,t=a.value.toLowerCase().replace(/ /g,"_");a.value=t},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:g})})]})]}),(0,l.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let a=e.target;f(a.value),a.childNodes.forEach(e=>{e.value===a.value&&y(e.dataset.desc),e.value===a.value&&e.dataset.literal&&d(e.dataset.literal)})},children:v.map((e,a)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(u||200)+")"},a+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},a+1))}),h.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:u,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{m(e.target.value)}})]})]}),h?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(p.A,{targetField:o})}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!j&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!j&&(0,l.jsx)(x.A,{database:s,setFieldData:c,targetField:o,user:n,fieldIndex:e})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,l.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:t=>{a(a=>a.filter((a,t)=>t!=e))},children:"Cancel"})]})]})}function f({fieldIndex:e,tableFields:a,setTableFields:t,refreshFieldsListRef:s,database:n,currentTable:r,user:d}){let[o,c]=i().useState("VARCHAR"),[u,m]=i().useState("200"),[x,p]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[f,g]=i().useState({}),y=i().useRef(),[v,j]=i().useState(""),N=!!o.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:y,children:(0,l.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:a=>{a.preventDefault();let l=f.foreignKey;l&&!l.destinationTableName&&delete f.foreignKey;let i=a.target,n=i.new_field_name.value,r=i.new_field_data_type.value,d=i.new_field_required?.value,o=i.new_field_default_value?.value,c=i.encryption_field?.value,m=i.rich_text_option?.value,x=i.foreign_key_field,p=i.foreign_key_destination_table_name,h=i.foreign_key_destination_table_column_name;x?.value;let g={...f,fieldName:n,dataType:f?.dataType&&f?.foreignKey?f.dataType:r?.match(/VARCHAR/)?`${r}(${u})`:r};d?.match(/yes/i)?g.notNullValue=!0:o?.match(/./)||(g.nullValue=!0),o?.match(/./)&&(g.defaultValue=o),c?.match(/yes/i)&&(g.encrypted=!0),h?.value?.match(/./i)&&!h?.value?.match(/^--$/i)&&(g.dataType=h.dataset.dataType,g.foreignKey={foreignKeyName:h.dataset.foreignKeyName,destinationTableName:p.dataset.destinationTableName,destinationTableColumnName:h.dataset.destinationTableColumnName,cascadeDelete:!0}),m?.match(/yes/i)&&(g.richText=!0),N?(g.defaultValueLiteral=v,g.nullValue=!1):delete g.defaultValueLiteral,console.log("newFieldObject",g),function({fieldIndex:e,setTableFields:a,refreshFieldsListRef:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t?.current&&t.current(e=>e+1)}({fieldIndex:e,setTableFields:t,refreshFieldsListRef:s,payload:g})},children:(0,l.jsx)(h,{database:n,fieldIndex:e,isNewField:!0,literalValue:v,refreshFieldsListRef:s,setLiteralValue:j,setTableFields:t,user:d,currentTable:r,tableFields:a,tempFieldData:f,setTempFieldData:g,dataTypeValue:u,setDataTypeValue:m,dataType:o,setDataType:c,dataTypeDesc:x,setDataTypeDesc:p})})})}var g=t(27825),y=t.n(g);function v({tableFields:e,setTableFields:a,refreshFieldsListRef:t,order:l,field:s,e:i}){let n=y().cloneDeep(e),r=n.findIndex(e=>e.fieldName===s.fieldName);if(r<0)return;let d=n[r];if("up"===l&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===l&&r&&r>=n.length-7){console.log("Max Reached =>",r);return}try{let e;let a=i.target.closest(".table-field-wrapper"),t=a.previousElementSibling,s=a.nextElementSibling,n=window.DSQL.Flip,r=n.getState(a);"up"===l?(e=n.getState(t),a.parentNode?.insertBefore(a,t)):s?.nextElementSibling&&(e=n.getState(s),a.parentNode?.insertBefore(a,s.nextElementSibling)),n.from(r,{duration:.3,ease:"power1.inOut"}),n.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}n.splice(r,1),"up"===l?n.splice(r-1,0,d):n.splice(r+1,0,d),setTimeout(()=>{a([...n]),t.current&&t.current(e=>e+1)},500)}var j=t(46083),N=t(55904),w=t(58526);function b({field:e,setTargetField:a,fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,database:d,currentTable:c,confirmedDelegetedUser:u,user:m}){let x=u?.delegated,p=u?.priviledges?.match(/Edit Tables/i);u?.priviledges?.match(/Delete Tables/i),u?.priviledges?.match(/Create Tables/i);let{active_clone:h,active_clone_parent_db:f,remote_connected:g}=d,[y,b]=i().useState(e),[T,_]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(T?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(T?" rounded-t":" rounded")+(y.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(y.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:y.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:y.dataType}),y?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[y.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:y.foreignKey.destinationTableColumnName})," ",")"]})]}),y.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!y.fieldName?.match(o.A)&&!f&&!g&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!x||x&&p)&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)(N.A,{children:[(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{T?_(!1):_(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!f&&!g&&(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:a=>{window.confirm(`Delete "${e.fieldName}"?`)&&n(e=>e.filter((e,a)=>a!=t))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"up",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})}),(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:a=>{v({tableFields:s,setTableFields:n,refreshFieldsListRef:r,order:"down",field:e,e:a})},children:(0,l.jsx)(w.A,{size:20})})]})]})})]}),T&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(j.A,{fieldIndex:t,tableFields:s,setTableFields:n,refreshFieldsListRef:r,targetField:e,setActiveEdit:_,database:d,currentTable:c,user:m})})]})}var T=t(60424);let _=1;function F({user:e,tableFields:a,setTableFields:t,setTargetField:s,refreshFieldsListRef:o,updateTable:c,updateTableAfterFieldsUpdateFunction:u,collapsed:x,database:p,table:h,confirmedDelegetedUser:g,query:y}){h?.childTable&&h.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),"");let v=g?.delegated,j=g?.priviledges?.match(/Edit Tables/i);g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i);let{active_clone:N,active_clone_parent_db:w,remote_connected:F}=p,[S,C]=i().useState(0);o.current=C;let[A,k]=i().useState(!1),[D,V]=i().useState(x||!1);return v&&!j?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper green",children:[A&&(0,l.jsx)(d.A,{}),h?.childTable?(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsx)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:a&&a[0]&&a.map((i,n)=>(_++,(0,l.jsx)(m,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,setLoading:k,currentTable:h,user:e,isDelegated:v},_)))}),x&&(0,l.jsx)(r.A,{collapse:D||!1,setCollapse:V})]}):(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(!v||v&&j)&&!w&&!F&&(0,l.jsxs)("div",{className:"button secondary outlined",onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"JavaScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:a=>{if(!h)return;let t=(0,T.A)({paradigm:"TypeScript",table:h,query:y,user:e});t&&navigator.clipboard.writeText(t).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:[a&&a[0]&&a.map((i,n)=>(_++,i.newTempField)?(0,l.jsx)(f,{fieldIndex:n,tableFields:a,setTableFields:t,refreshFieldsListRef:o,database:p,currentTable:h,user:e},_):(0,l.jsx)(b,{field:i,fieldIndex:n,setTargetField:s,setTableFields:t,refreshFieldsListRef:o,tableFields:a,database:p,currentTable:h,confirmedDelegetedUser:g,user:e},_)),(!v||v&&j)&&!w&&!F&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{D&&V(!1),n({setTableFields:t,tableFields:a,setRefresh:C,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),c&&(0,l.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{window.confirm("Update Table Fields?")&&(k(!0),u&&u(k))},children:"Update Table Fields"})]})]}),x&&(0,l.jsx)(r.A,{collapse:D,setCollapse:V})]})]})}},93763:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(8732),s=t(82015),i=t.n(s),n=t(46169),r=t(16757),d=t(2913);function o({targetField:e,setFieldData:a,tableFields:t,setTableFields:s,database:o,currentTable:c,user:u,setActiveEdit:m,activeClonedTable:x}){let[p,h]=i().useState(!!e?.foreignKey),[f,g]=i().useState(null),[y,v]=i().useState(null),[j,N]=i().useState(null),[w,b]=i().useState(null),[T,_]=i().useState(!1),[F,S]=i().useState("boolean"!=typeof e.foreignKey?.cascadeDelete||e.foreignKey.cascadeDelete),[C,A]=i().useState("boolean"==typeof e.foreignKey?.cascadeUpdate&&e.foreignKey.cascadeUpdate);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[T&&(0,l.jsx)(r.A,{}),(0,l.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,l.jsx)("span",{children:"Foreign Key?"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,l.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:e?.foreignKey?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(h(!0),a&&a(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(h(!1),a&&a(e=>(delete e.foreignKey,e)))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]}),p&&f&&(0,l.jsx)(i().Fragment,{children:(0,l.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableName?e.foreignKey.destinationTableName:void 0,onChange:e=>{let t=e.target;if(e.target.value?.match(/--/)){a?a(e=>{let a=e.foreignKey;return a&&(a.destinationTableName=void 0),e}):t.dataset.destinationTableName=void 0;return}let l=f.filter(a=>a.tableName===e.target.value)[0];v(l),l?.fields&&N(l.fields),a?a(a=>{let t=a.foreignKey;return t&&(t.destinationTableName=e.target.value),a}):e.target.dataset.destinationTableName=e.target.value},children:[(0,l.jsx)("option",{value:"--",children:"--Select Table--"}),f.map((e,a)=>(0,l.jsx)("option",{value:e.tableName,children:e.tableFullName},a+1))]})}),y&&j&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableColumnName?e.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{let t=j.filter(a=>a.fieldName===e.target.value)[0];if(b(t),e.target.value?.match(/--/)){a&&a(e=>{let a=e.foreignKey;return a&&(a.destinationTableColumnName=void 0),e});return}let l=`dsql_${o.user_id}_${o.db_slug}_${Date.now()}`;a?a(e=>{e.dataType=t.dataType;let a=e.foreignKey;return a&&(a.destinationTableColumnName=t.fieldName,a.destinationTableColumnType=t.dataType,a.foreignKeyName=l),e}):(e.target.dataset.dataType=t.dataType,e.target.dataset.destinationTableColumnName=t.fieldName,e.target.dataset.foreignKeyName=l)}catch(e){(0,n.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:u}})}},children:[(0,l.jsx)("option",{value:"--",children:"--Select Column--"}),j.map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,children:e.fieldName},a+1))]}),x&&w&&(0,l.jsx)("button",{className:"secondary w-full",onClick:e=>{_(!0),(0,n.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:o.db_full_name,dbSlug:o.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{m&&m(!1)},1e3)})},children:"Add Foreign Key"}),(0,l.jsx)(d.A,{checkBoxValues:[{title:"Cascade Delete",default:F,name:"cascade-delete",onChangeHandler:e=>{S(e.target.checked)}},{title:"Cascade Update",name:"cascade-update",default:C,onChangeHandler:e=>{A(e.target.checked)}}],smallText:!0})]}),x&&(0,l.jsx)("button",{className:"light-gray w-full",onClick:a=>{delete e.foreignKey,m&&m(!1)},children:"Cancel"})]})}},36138:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,l.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:a=>{switch(delete e.json,delete e.richText,delete e.yaml,delete e.html,delete e.javascript,delete e.shell,a.target.value){case"plain":break;case"rte":e.richText=!0;break;case"json":e.json=!0;break;case"yaml":e.yaml=!0;break;case"html":e.html=!0;break;case"css":e.css=!0;break;case"javascript":e.javascript=!0;break;case"shell":e.shell=!0}},defaultValue:e.richText?"rte":e.json?"json":e.yaml?"yaml":e.html?"html":e.javascript?"javascript":e.shell?"shell":e.css?"css":"plain",children:[(0,l.jsx)("option",{value:"plain",children:"Plain Text"}),(0,l.jsx)("option",{value:"rte",children:"Rich Text"}),(0,l.jsx)("option",{value:"json",children:"JSON"}),(0,l.jsx)("option",{value:"yaml",children:"YAML"}),(0,l.jsx)("option",{value:"html",children:"HTML"}),(0,l.jsx)("option",{value:"css",children:"CSS"}),(0,l.jsx)("option",{value:"javascript",children:"Javascript"}),(0,l.jsx)("option",{value:"shell",children:"Shell"})]})]})}t(82015)},60424:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(42960);function s({paradigm:e,table:a,query:t,user:s}){let i="";try{let s=`DSQL_${t.single}_${t.single_table}`.toUpperCase(),r=a.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let d=[],o=[];d.push(`type ${s} = {`),o.push(`/** - * @typedef {object} ${s}`),r.forEach(e=>{let a=e.nullValue?"?":e.fieldName?.match(l.A)?"?":"";d.push(` ${e.fieldName}${a}: ${n(e.dataType||"")};`),o.push(` * @property {${n(e.dataType||"")}${a}} ${e.fieldName}`)}),d.push("}"),o.push(" */"),e?.match(/javascript/i)&&(i=o.join("\n")),e?.match(/typescript/i)&&(i=d.join("\n"))}catch(e){console.log(e.message),i=null}return i}},2913:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({name:e,checkBoxValues:a,setAlert:t,labelColor:s,flexRow:i,baseText:n,smallText:r,className:d}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:a.map((a,i)=>{let{payload:d,title:o,onChangeHandler:c,fixed:u,jsx:m}=a,x=a.name?`${e}-${a.name}`:d?e+"-"+d:e;return(0,l.jsxs)("div",{className:"flex items-center"+(a.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+(a?.className?a.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!a.default,name:x,id:x,onChange:e=>{t&&t(null),c&&c(e,a)},value:d,style:{minWidth:"20px"},...a.props}),m||(0,l.jsx)("label",{htmlFor:x,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(n||r?" text-base":" text-lg"),children:o})]},i+1)})})}t(82015)},51339:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({collapse:e,setCollapse:a}){return(0,l.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:t=>{e?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:e?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}t(82015)},84483:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({children:e,open:a,setOpen:t,onClose:s,maxWidth:i}){return(0,l.jsx)(l.Fragment,{})}t(82015),t(1976),t(58150)},42960:(e,a,t)=>{t.d(a,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},72272:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(77047),s=t(29021),i=t.n(s),n=t(33873),r=t.n(n);function d({userId:e}){try{let a=r().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(i().readFileSync(a,"utf-8"))}catch(e){return(0,l.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(29021),s=t.n(l);async function i({user:e,message:a,component:t,noMail:l,req:i}){let n=new Date,r=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],a=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||l||a||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== -Error Message: ${a} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` -User Id: ${e?.id} -User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),i?.url&&(l+=` -URL: ${i.url}`),i?.body&&(l+=` -Request Body: ${JSON.stringify(i.body,null,4)}`),r&&(l+=` -IP: ${r}`),l+=` -Date: ${n.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",l),s().appendFileSync("./.tmp/error.log",` - - - - -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}; \ 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 aba85e9..f69b9e6 100644 --- a/dsql-app/.local_dist/server/middleware-build-manifest.js +++ b/dsql-app/.local_dist/server/middleware-build-manifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-d8f75819eb449ffc.js"],"/404":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/404-386ef30594132ecb.js"],"/500":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/500-81f6b715960091f2.js"],"/_app":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/css/40a7197d287e4ac0.css","static/chunks/pages/_app-f20525907c2f070a.js"],"/_error":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/chunks/pages/about-69331c972566352a.js"],"/admin":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js"],"/admin/[user_id]/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/3867-2967250ea22dd40a.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/7287-dadce6acb3d43d67.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/3867-2967250ea22dd40a.js","static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js"],"/admin/[user_id]/media":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"],"/admin/[user_id]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"],"/admin/[user_id]/settings":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js"],"/admin/[user_id]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/7391-b72414be460cf0f0.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js"],"/blog":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/blog-8c70d46c8352664e.js"],"/contact":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/contact-f2a4f3c2e97b25fb.js"],"/create-account":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/pages/create-account-59f89a25241640f4.js"],"/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs-354599f34e0b3ced.js"],"/docs/[page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js"],"/email-verification":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/email-verification-fec9fecfdcb56e8d.js"],"/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/pages/login-f10f3645e54e61fd.js"],"/logout":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/logout-455304f72b658ce6.js"],"/privacy":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/privacy-3a1d5e267140271e.js"],"/redirect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/reset-password-404836a50d6e9e32.js"],"/send-password-reset-link":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js"],"/su":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js","static/chunks/5810-7c3a3c4731750dc7.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js"],"/su/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/servers-d48477ad4489744d.js"],"/su/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js"],"/su/users/new":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/new-8a739402db28044b.js"],"/terms":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/terms-37fb4519d728aa13.js"],"/unsubscribe":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/unsubscribe-e6a608d5b8cea536.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"]; \ No newline at end of file +self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-f4368d8e4e652a17.js"],"/404":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/404-9880de8d6a22dd12.js"],"/500":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/500-3ae265ebb1fb2898.js"],"/_app":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/css/40a7197d287e4ac0.css","static/chunks/pages/_app-d52aa62bd48f175b.js"],"/_error":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/3298-73758aefe44233a6.js","static/chunks/pages/about-54414f59f6957c50.js"],"/admin":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/9950-f96c0c56ed7fb229.js","static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/9950-f96c0c56ed7fb229.js","static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/pages/admin/[user_id]/connect-364ec8656f8ec17d.js"],"/admin/[user_id]/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/9950-f96c0c56ed7fb229.js","static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/pages/admin/[user_id]/databases/[single]-d46a6f8520fb0f98.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-adbc0491ae2ebe2b.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/8319-0fac4a0bd5bb0c06.js","static/chunks/6272-34d9d0c839440fe4.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1fa62e8a98f0558f.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-36ce4fa776487307.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-7f3f6c277320a54e.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-987bf588cbdcec1c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/6460-15d2e5543b20c3c6.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-15d2e5543b20c3c6.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ebcd5c78ed2bf0ee.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/2829-608af754738e12fc.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-8e1a59a792f137ba.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/7287-a0cc766f27863bfc.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-15d2e5543b20c3c6.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/6460-15d2e5543b20c3c6.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-8c51f0fefd294914.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-1eafec6fde026d0e.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-bed64535d8eb2ad5.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d336e424d1e0ebac.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-2f84f689db965c75.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8319-0fac4a0bd5bb0c06.js","static/chunks/6272-34d9d0c839440fe4.js","static/chunks/pages/admin/[user_id]/databases/add-database-2339ca478d7ae04e.js"],"/admin/[user_id]/media":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/9551-762af3f63f78e37c.js","static/chunks/pages/admin/[user_id]/media-f2e686b58b412be8.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/9551-762af3f63f78e37c.js","static/chunks/pages/admin/[user_id]/media/[...folder]-235f83b98f9f8c89.js"],"/admin/[user_id]/schema":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js"],"/admin/[user_id]/settings":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/8319-0fac4a0bd5bb0c06.js","static/chunks/7384-e241cdc2266f0106.js","static/chunks/pages/admin/[user_id]/settings-cda1d1faa0aab729.js"],"/admin/[user_id]/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7391-2cf158002dcd120b.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-01fbcda5d58677e8.js"],"/blog":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/blog-cf9f462c9f1c79b1.js"],"/contact":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/contact-015582f94d67d7a7.js"],"/create-account":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/7384-e241cdc2266f0106.js","static/chunks/pages/create-account-7bb20b64ad6eb40f.js"],"/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs-eb06d9879a01da6a.js"],"/docs/[page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]-21bb67b33655c0e4.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/docs/[page]/[sub-page]-b127761336e2c313.js"],"/email-verification":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/email-verification-b9eba009160729b0.js"],"/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/7384-e241cdc2266f0106.js","static/chunks/pages/login-4d7e5dc8974c6b4f.js"],"/logout":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/pages/logout-5713792f28342582.js"],"/privacy":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/privacy-2af1bbeba3506b4f.js"],"/redirect":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/reset-password-6b15512e80d3b798.js"],"/send-password-reset-link":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/send-password-reset-link-757b50458fb65f03.js"],"/su":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js","static/chunks/5810-7c3a3c4731750dc7.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/6099-150cc189810f2bfd.js","static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/9660-628b42bc1127aefa.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/4261-1181ad7559234ce0.js","static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/load-balancing-795c8e791cf6f943.js"],"/su/login":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/servers-2ebfc87f21d94901.js"],"/su/users":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/[single]":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/[single]-41de29bb2522359b.js"],"/su/users/new":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/pages/su/users/new-8a739402db28044b.js"],"/terms":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/terms-d72b3b55d9844241.js"],"/unsubscribe":["static/chunks/webpack-5381863dc66a9c32.js","static/chunks/framework-5f43af1a76a0211a.js","static/chunks/main-96e9b4333635008a.js","static/chunks/pages/unsubscribe-2c980eb18878b40b.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 3e41cf3..5cd2592 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","/500":"pages/500.html","/404":"pages/404.html","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/addApiKey":"pages/api/addApiKey.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/addSocialLogin":"pages/api/addSocialLogin.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/addUserTable":"pages/api/addUserTable.js","/api/addUsersTableToDatabase":"pages/api/addUsersTableToDatabase.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/docs/[action]":"pages/api/admin/docs/[action].js","/api/admin/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/getUserBackups":"pages/api/admin/getUserBackups.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/grabBackups":"pages/api/admin/grabBackups.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/grabFile":"pages/api/admin/grabFile.js","/api/admin/loginSuUser":"pages/api/admin/loginSuUser.js","/api/admin/runUserDbQuery":"pages/api/admin/runUserDbQuery.js","/api/admin/updateEnv":"pages/api/admin/updateEnv.js","/api/changeDbUserPassword":"pages/api/changeDbUserPassword.js","/api/checkDuplicateData":"pages/api/checkDuplicateData.js","/api/checkExistingFolder":"pages/api/checkExistingFolder.js","/api/clientSideAuth":"pages/api/clientSideAuth.js","/api/connect/disconnect":"pages/api/connect/disconnect.js","/api/connect/handshake":"pages/api/connect/handshake.js","/api/connect":"pages/api/connect.js","/api/connect/verify":"pages/api/connect/verify.js","/api/contact":"pages/api/contact.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/createUserDatabase":"pages/api/createUserDatabase.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/deleteTableEntry":"pages/api/deleteTableEntry.js","/api/deleteUser":"pages/api/deleteUser.js","/api/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/deleteUserUser":"pages/api/deleteUserUser.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/get-authorized-databases":"pages/api/get-authorized-databases.js","/api/getDatabaseTables":"pages/api/getDatabaseTables.js","/api/getDelegatedDatabaseToken":"pages/api/getDelegatedDatabaseToken.js","/api/getDelegatedDatabases":"pages/api/getDelegatedDatabases.js","/api/getDiskUsage":"pages/api/getDiskUsage.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/getUserDatabases":"pages/api/getUserDatabases.js","/api/getUserMedia":"pages/api/getUserMedia.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/healthcheck":"pages/api/healthcheck.js","/api/importDatabase":"pages/api/importDatabase.js","/api/importDatabaseSchema":"pages/api/importDatabaseSchema.js","/api/infiniteScroll":"pages/api/infiniteScroll.js","/api/loginUser":"pages/api/loginUser.js","/api/logoutUser":"pages/api/logoutUser.js","/api/media/addPrivateMedia":"pages/api/media/addPrivateMedia.js","/api/purgeDb":"pages/api/purgeDb.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.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/reAuthenticateUser":"pages/api/reAuthenticateUser.js","/api/query/[user_id]/update-schema-from-single-database":"pages/api/query/[user_id]/update-schema-from-single-database.js","/api/refreshEntry":"pages/api/refreshEntry.js","/api/registerUser":"pages/api/registerUser.js","/api/renameMedia":"pages/api/renameMedia.js","/api/resetDelegatedDatabaseToken":"pages/api/resetDelegatedDatabaseToken.js","/api/resetPassword":"pages/api/resetPassword.js","/api/runUserDbQuery":"pages/api/runUserDbQuery.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/social-login/utils/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/cors":"pages/api/test/cors.js","/api/test/mail":"pages/api/test/mail.js","/api/unsubscribe":"pages/api/unsubscribe.js","/api/updateAdminUserAccess":"pages/api/updateAdminUserAccess.js","/api/updateClonedTableForeignKeys":"pages/api/updateClonedTableForeignKeys.js","/api/updateDbSchemaDataForUser":"pages/api/updateDbSchemaDataForUser.js","/api/updateTableEntry":"pages/api/updateTableEntry.js","/api/updateDbUser":"pages/api/updateDbUser.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]/login-user":"pages/api/user/[user_id]/login-user.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]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/admin/[user_id]/databases/[single]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.js","/admin/[user_id]/databases/[single]/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]/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]/edit-table":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","/admin/[user_id]/databases/[single]/tables/[single_table]/fields":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","/admin/[user_id]/databases/[single]/users/[user]/change-password":"pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","/admin/[user_id]/databases/[single]/tables/add-table":"pages/admin/[user_id]/databases/[single]/tables/add-table.js","/admin/[user_id]/databases/[single]/tables":"pages/admin/[user_id]/databases/[single]/tables.js","/admin/[user_id]/databases/[single]/tables/[single_table]":"pages/admin/[user_id]/databases/[single]/tables/[single_table].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/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/media/[...folder]":"pages/admin/[user_id]/media/[...folder].js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.js","/admin/[user_id]/settings":"pages/admin/[user_id]/settings.js","/admin/[user_id]/media":"pages/admin/[user_id]/media.js","/admin/[user_id]/users/add-user":"pages/admin/[user_id]/users/add-user.js","/admin/[user_id]/users/databases/[database]/[user]":"pages/admin/[user_id]/users/databases/[database]/[user].js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin/[user_id]/users/databases":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users":"pages/admin/[user_id]/users.js","/admin":"pages/admin.js","/api/addUserMedia":"pages/api/addUserMedia.js","/api/exportTableData":"pages/api/exportTableData.js","/api/fetch-media":"pages/api/fetch-media.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/api/query/[user_id]/add-image":"pages/api/query/[user_id]/add-image.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/docs":"pages/docs.js","/create-account":"pages/create-account.js","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/":"pages/index.html","/docs/[page]":"pages/docs/[page].js","/login":"pages/login.js","/email-verification":"pages/email-verification.js","/privacy":"pages/privacy.html","/redirect":"pages/redirect.html","/logout":"pages/logout.js","/send-password-reset-link":"pages/send-password-reset-link.js","/reset-password":"pages/reset-password.js","/su/backups":"pages/su/backups.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","/su/docs":"pages/su/docs.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/docs/pages":"pages/su/docs/pages.js","/su/error-logs":"pages/su/error-logs.js","/su/envar":"pages/su/envar.js","/su":"pages/su.js","/su/load-balancing":"pages/su/load-balancing.js","/su/servers":"pages/su/servers.js","/su/login":"pages/su/login.js","/su/users/[single]":"pages/su/users/[single].js","/su/users":"pages/su/users.js","/su/users/new":"pages/su/users/new.js","/terms":"pages/terms.html","/unsubscribe":"pages/unsubscribe.js"} \ No newline at end of file +{"/_error":"pages/_error.js","/_document":"pages/_document.js","/404":"pages/404.html","/500":"pages/500.html","/api/checkDuplicateData":"pages/api/checkDuplicateData.js","/api/admin/grabBackups":"pages/api/admin/grabBackups.js","/api/getUserDatabases":"pages/api/getUserDatabases.js","/api/changeDbUserPassword":"pages/api/changeDbUserPassword.js","/api/admin/updateEnv":"pages/api/admin/updateEnv.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/runUserDbQuery":"pages/api/admin/runUserDbQuery.js","/api/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/deleteUser":"pages/api/deleteUser.js","/api/admin/loginSuUser":"pages/api/admin/loginSuUser.js","/api/getUserMedia":"pages/api/getUserMedia.js","/api/test/mail":"pages/api/test/mail.js","/api/admin/getUserBackups":"pages/api/admin/getUserBackups.js","/api/getDiskUsage":"pages/api/getDiskUsage.js","/api/loginUser":"pages/api/loginUser.js","/api/logoutUser":"pages/api/logoutUser.js","/api/updateTableEntry":"pages/api/updateTableEntry.js","/api/getDelegatedDatabases":"pages/api/getDelegatedDatabases.js","/api/deleteTableEntry":"pages/api/deleteTableEntry.js","/api/infiniteScroll":"pages/api/infiniteScroll.js","/api/admin/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/grabFile":"pages/api/admin/grabFile.js","/api/test/cors":"pages/api/test/cors.js","/api/user/[user_id]/grab-google-user-from-token":"pages/api/user/[user_id]/grab-google-user-from-token.js","/api/updateDbUser":"pages/api/updateDbUser.js","/api/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/getDelegatedDatabaseToken":"pages/api/getDelegatedDatabaseToken.js","/api/admin/docs/[action]":"pages/api/admin/docs/[action].js","/api/updateUserDatabase":"pages/api/updateUserDatabase.js","/api/updateDbSchemaDataForUser":"pages/api/updateDbSchemaDataForUser.js","/api/getDatabaseTables":"pages/api/getDatabaseTables.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/createNewBackup":"pages/api/admin/createNewBackup.js","/api/updateUserTable":"pages/api/updateUserTable.js","/api/importDatabaseSchema":"pages/api/importDatabaseSchema.js","/api/sync-table-data":"pages/api/sync-table-data.js","/api/updateAdminUserAccess":"pages/api/updateAdminUserAccess.js","/api/get-authorized-databases":"pages/api/get-authorized-databases.js","/api/importDatabase":"pages/api/importDatabase.js","/api/updateUser":"pages/api/updateUser.js","/api/admin/clientError":"pages/api/admin/clientError.js","/api/updateClonedTableForeignKeys":"pages/api/updateClonedTableForeignKeys.js","/api/stream/[path]":"pages/api/stream/[path].js","/api/connect/verify":"pages/api/connect/verify.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/user/[user_id]/google-login":"pages/api/user/[user_id]/google-login.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/healthcheck":"pages/api/healthcheck.js","/api/sql-users/update":"pages/api/sql-users/update.js","/api/unsubscribe":"pages/api/unsubscribe.js","/api/connect":"pages/api/connect.js","/api/admin/clearErrorLogs":"pages/api/admin/clearErrorLogs.js","/api/connect/disconnect":"pages/api/connect/disconnect.js","/api/admin/addUserBackup":"pages/api/admin/addUserBackup.js","/api/user/[user_id]/github-login":"pages/api/user/[user_id]/github-login.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/connect/handshake":"pages/api/connect/handshake.js","/api/clientSideAuth":"pages/api/clientSideAuth.js","/api/user/[user_id]/get-user":"pages/api/user/[user_id]/get-user.js","/api/addUsersTableToDatabase":"pages/api/addUsersTableToDatabase.js","/api/sql-users/delete":"pages/api/sql-users/delete.js","/api/createUserDatabase":"pages/api/createUserDatabase.js","/api/contact":"pages/api/contact.js","/api/checkExistingFolder":"pages/api/checkExistingFolder.js","/api/addUserUser":"pages/api/addUserUser.js","/api/user-schema/replace-database-schema":"pages/api/user-schema/replace-database-schema.js","/api/sql-users/create":"pages/api/sql-users/create.js","/api/user/[user_id]/delete-user":"pages/api/user/[user_id]/delete-user.js","/api/updateUserUser":"pages/api/updateUserUser.js","/api/query/[user_id]/get-schema":"pages/api/query/[user_id]/get-schema.js","/api/query/[user_id]/update-schema-from-single-database":"pages/api/query/[user_id]/update-schema-from-single-database.js","/api/addUserTable":"pages/api/addUserTable.js","/api/refreshEntry":"pages/api/refreshEntry.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/user/[user_id]/add-user":"pages/api/user/[user_id]/add-user.js","/api/media/addPrivateMedia":"pages/api/media/addPrivateMedia.js","/api/query/[user_id]/get":"pages/api/query/[user_id]/get.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/reAuthenticateUser":"pages/api/reAuthenticateUser.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.js","/api/resetDelegatedDatabaseToken":"pages/api/resetDelegatedDatabaseToken.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.js","/api/resetPassword":"pages/api/resetPassword.js","/api/renameMedia":"pages/api/renameMedia.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.js","/api/queryEntriesSearchTerm":"pages/api/queryEntriesSearchTerm.js","/api/runUserDbQuery":"pages/api/runUserDbQuery.js","/api/purgeDb":"pages/api/purgeDb.js","/api/deleteUserUser":"pages/api/deleteUserUser.js","/api/registerUser":"pages/api/registerUser.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/social-login/utils/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/user/[user_id]/reauth-user":"pages/api/user/[user_id]/reauth-user.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/user/[user_id]/login-user":"pages/api/user/[user_id]/login-user.js","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/social-login/utils/getEmailFromSocialId":"pages/api/social-login/utils/getEmailFromSocialId.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/webhooks/github-push":"pages/api/webhooks/github-push.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/addSocialLogin":"pages/api/addSocialLogin.js","/api/addApiKey":"pages/api/addApiKey.js","/_app":"pages/_app.js","/about":"pages/about.html","/admin/[user_id]/api-keys":"pages/admin/[user_id]/api-keys.js","/admin/[user_id]/connect":"pages/admin/[user_id]/connect.js","/admin/[user_id]/databases/[single]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]/databases/[single]/tables/add-table":"pages/admin/[user_id]/databases/[single]/tables/add-table.js","/admin/[user_id]/databases/[single]/users/add-social-logins":"pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.js","/admin/[user_id]/databases/[single]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/users/[user]":"pages/admin/[user_id]/databases/[single]/users/[user].js","/admin/[user_id]/databases/[single]/tables/[single_table]":"pages/admin/[user_id]/databases/[single]/tables/[single_table].js","/admin/[user_id]/settings":"pages/admin/[user_id]/settings.js","/admin/[user_id]/databases/[single]/users/[user]/change-password":"pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","/admin/[user_id]/users/add-user":"pages/admin/[user_id]/users/add-user.js","/admin/[user_id]/databases/add-database":"pages/admin/[user_id]/databases/add-database.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]/databases/[single]/tables/[single_table]/fields":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/users/databases":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users":"pages/admin/[user_id]/users.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/databases/[single]/users/add-user":"pages/admin/[user_id]/databases/[single]/users/add-user.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","/admin/[user_id]/databases/[single]/tables":"pages/admin/[user_id]/databases/[single]/tables.js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin/[user_id]/users/databases/[database]/[user]":"pages/admin/[user_id]/users/databases/[database]/[user].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/[single_entry]":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","/redirect":"pages/redirect.html","/privacy":"pages/privacy.html","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","/reset-password":"pages/reset-password.js","/api/fetch-media":"pages/api/fetch-media.js","/su/users/new":"pages/su/users/new.js","/admin/[user_id]/databases/[single]/shell":"pages/admin/[user_id]/databases/[single]/shell.js","/logout":"pages/logout.js","/unsubscribe":"pages/unsubscribe.js","/terms":"pages/terms.html","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.js","/su/docs/pages":"pages/su/docs/pages.js","/su/envar":"pages/su/envar.js","/login":"pages/login.js","/su/servers":"pages/su/servers.js","/admin/[user_id]/databases/[single]":"pages/admin/[user_id]/databases/[single].js","/":"pages/index.html","/su/console":"pages/su/console.js","/su/docs/create-page":"pages/su/docs/create-page.js","/su/load-balancing":"pages/su/load-balancing.js","/su/users":"pages/su/users.js","/su/login":"pages/su/login.js","/su/users/[single]":"pages/su/users/[single].js","/api/exportTableData":"pages/api/exportTableData.js","/send-password-reset-link":"pages/send-password-reset-link.js","/su/docs":"pages/su/docs.js","/su/backups":"pages/su/backups.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/su/error-logs":"pages/su/error-logs.js","/su":"pages/su.js","/su/docs/edit-page":"pages/su/docs/edit-page.js","/email-verification":"pages/email-verification.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/api/query/[user_id]/add-image":"pages/api/query/[user_id]/add-image.js","/docs":"pages/docs.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/docs/[page]":"pages/docs/[page].js","/api/addUserMedia":"pages/api/addUserMedia.js","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/contact":"pages/contact.html","/create-account":"pages/create-account.js","/admin":"pages/admin.js","/blog":"pages/blog.html"} \ 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 14dcf0b..dba333a 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 0a59c4d..584e31e 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/_app.js.nft.json b/dsql-app/.local_dist/server/pages/_app.js.nft.json index b70702f..25033f8 100644 --- a/dsql-app/.local_dist/server/pages/_app.js.nft.json +++ b/dsql-app/.local_dist/server/pages/_app.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../../pages/_app.tsx","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../../pages/_app.tsx","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_document.js.nft.json b/dsql-app/.local_dist/server/pages/_document.js.nft.json index 5976e55..7978431 100644 --- a/dsql-app/.local_dist/server/pages/_document.js.nft.json +++ b/dsql-app/.local_dist/server/pages/_document.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../../pages/_document.tsx","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../../pages/_document.tsx","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_error.js.nft.json b/dsql-app/.local_dist/server/pages/_error.js.nft.json index 04a1b37..2ae9563 100644 --- a/dsql-app/.local_dist/server/pages/_error.js.nft.json +++ b/dsql-app/.local_dist/server/pages/_error.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ 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 6b0b9e6..33a79d6 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.js b/dsql-app/.local_dist/server/pages/admin.js index 2053f8d..909d86f 100644 --- a/dsql-app/.local_dist/server/pages/admin.js +++ b/dsql-app/.local_dist/server/pages/admin.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=6309,e.ids=[6309],e.modules={13262:(e,t,s)=>{s.r(t),s.d(t,{config:()=>A,default:()=>S,getServerSideProps:()=>f,getStaticPaths:()=>C,getStaticProps:()=>y,reportWebVitals:()=>v,routeModule:()=>k,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>_});var a={};s.r(a),s.d(a,{DashboardContext:()=>g,default:()=>b,getServerSideProps:()=>j});var r=s(63865),i=s(9455),n=s(30671),d=s(5583),l=s(19796),o=s(8732),c=s(82015),u=s.n(c),x=s(25562),m=s(92702),p=s(71192),h=s(70355);let g=u().createContext({});function b({user:e,databases:t,metrics:s}){let a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[r,i]=u().useState(null);return(0,o.jsx)(x.A,{head:a,user:e,children:(0,o.jsxs)(g.Provider,{value:{user:e,databases:t,targetDatabase:r,setTargetDatabase:i,metrics:s},children:[(0,o.jsx)(p.A,{}),(0,o.jsx)(h.A,{targetDatabase:r})]})})}async function j({req:e,res:t,query:s}){let a=await (0,m.A)(e,t);return a?.logged_in_status?{redirect:{destination:`/admin/${a.id}`,permanent:!1}}:{redirect:{destination:"/login",permanent:!1}}}let S=(0,n.M)(a,"default"),y=(0,n.M)(a,"getStaticProps"),C=(0,n.M)(a,"getStaticPaths"),f=(0,n.M)(a,"getServerSideProps"),A=(0,n.M)(a,"config"),v=(0,n.M)(a,"reportWebVitals"),_=(0,n.M)(a,"unstable_getStaticProps"),E=(0,n.M)(a,"unstable_getStaticPaths"),P=(0,n.M)(a,"unstable_getStaticParams"),M=(0,n.M)(a,"unstable_getServerProps"),D=(0,n.M)(a,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin",pathname:"/admin",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:a})},71192:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(8732),r=s(82015),i=s.n(r),n=s(3530),d=s(53926),l=s(66485),o=s(56331);function c(){let{databases:e,setTargetDatabase:t,user:s}=i().useContext(n.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(o.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var u=s(67274),x=s(34637),m=s(93213),p=s(83158);let h=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function g({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function b(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=i().useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(g,{metric:"Databases Created",count:s?.dbCount||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:`/admin/${r?.id}/databases`}),(0,a.jsx)(g,{metric:"Tables Created",count:s?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(g,{metric:"Media Added",count:s?.mediaCount||0,icon:(0,a.jsx)(p.A,{size:20,className:"text-slate-500"}),url:`/admin/${r?.id}/media`}),(0,a.jsx)(g,{metric:"API Keys",count:s?.apiKeysCount||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${r?.id}/api-keys`})]})})}function j(){let{databases:e,user:t}=i().useContext(n.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(d.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(b,{}),(0,a.jsx)(c,{}),(0,a.jsx)(u.A,{user:t})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},3530:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>u,default:()=>x,getServerSideProps:()=>m});var a=s(8732),r=s(82015),i=s.n(r),n=s(25562),d=s(92702),l=s(71192),o=s(70355),c=s(71934);let u=i().createContext({});function x({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,c]=i().useState();return(0,a.jsx)(n.A,{head:r,user:e,children:(0,a.jsxs)(u.Provider,{value:{user:e,databases:t,targetDatabase:d,setTargetDatabase:c,metrics:s},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(o.A,{targetDatabase:d})]})})}async function m({req:e,res:t,query:s}){let a=await (0,d.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await (0,c.A)(` +"use strict";(()=>{var e={};e.id=6309,e.ids=[6309],e.modules={13262:(e,t,s)=>{s.r(t),s.d(t,{config:()=>v,default:()=>S,getServerSideProps:()=>A,getStaticPaths:()=>C,getStaticProps:()=>y,reportWebVitals:()=>f,routeModule:()=>D,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>_});var a={};s.r(a),s.d(a,{DashboardContext:()=>g,default:()=>b,getServerSideProps:()=>j});var r=s(63865),i=s(9455),n=s(30671),d=s(5583),l=s(19796),o=s(8732),c=s(82015),u=s.n(c),x=s(25562),m=s(92702),p=s(71192),h=s(70355);let g=u().createContext({});function b({user:e,databases:t,metrics:s}){let a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[r,i]=u().useState(null);return(0,o.jsx)(x.A,{head:a,user:e,children:(0,o.jsxs)(g.Provider,{value:{user:e,databases:t,targetDatabase:r,setTargetDatabase:i,metrics:s},children:[(0,o.jsx)(p.A,{}),(0,o.jsx)(h.A,{targetDatabase:r})]})})}async function j({req:e,res:t,query:s}){let a=await (0,m.A)(e,t);return a?.logged_in_status?{redirect:{destination:`/admin/${a.id}`,permanent:!1}}:{redirect:{destination:"/login",permanent:!1}}}let S=(0,n.M)(a,"default"),y=(0,n.M)(a,"getStaticProps"),C=(0,n.M)(a,"getStaticPaths"),A=(0,n.M)(a,"getServerSideProps"),v=(0,n.M)(a,"config"),f=(0,n.M)(a,"reportWebVitals"),_=(0,n.M)(a,"unstable_getStaticProps"),E=(0,n.M)(a,"unstable_getStaticPaths"),P=(0,n.M)(a,"unstable_getStaticParams"),M=(0,n.M)(a,"unstable_getServerProps"),q=(0,n.M)(a,"unstable_getServerSideProps"),D=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin",pathname:"/admin",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:a})},71192:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(8732),r=s(82015),i=s.n(r),n=s(3530),d=s(53926),l=s(66485),o=s(56331);function c(){let{databases:e,setTargetDatabase:t,user:s}=i().useContext(n.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(o.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var u=s(67274),x=s(34637),m=s(93213),p=s(83158);let h=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function g({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function b(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=i().useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(g,{metric:"Databases Created",count:s?.dbCount||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:`/admin/${r?.id}/databases`}),(0,a.jsx)(g,{metric:"Tables Created",count:s?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(g,{metric:"Media Added",count:s?.mediaCount||0,icon:(0,a.jsx)(p.A,{size:20,className:"text-slate-500"}),url:`/admin/${r?.id}/media`}),(0,a.jsx)(g,{metric:"API Keys",count:s?.apiKeysCount||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${r?.id}/api-keys`})]})})}function j(){let{databases:e,user:t}=i().useContext(n.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(d.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(b,{}),(0,a.jsx)(c,{}),(0,a.jsx)(u.A,{user:t})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},3530:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>u,default:()=>x,getServerSideProps:()=>m});var a=s(8732),r=s(82015),i=s.n(r),n=s(25562),d=s(92702),l=s(71192),o=s(70355),c=s(71934);let u=i().createContext({});function x({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,c]=i().useState();return(0,a.jsx)(n.A,{head:r,user:e,children:(0,a.jsxs)(u.Provider,{value:{user:e,databases:t,targetDatabase:d,setTargetDatabase:c,metrics:s},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(o.A,{targetDatabase:d})]})})}async function m({req:e,res:t,query:s}){let a=await (0,d.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await (0,c.A)(` SELECT ( SELECT COUNT(id) FROM user_databases WHERE user_id=? ) AS dbCount, @@ -11,4 +11,4 @@ ( SELECT COUNT(id) FROM api_keys WHERE user_id=? ) AS apiKeysCount - `,[a.id,a.id,a.id,a.id]);return{props:{user:a,databases:r,metrics:i&&i[0]?i[0]:{}}}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,6160],()=>s(13262));module.exports=a})(); \ No newline at end of file + `,[a.id,a.id,a.id,a.id]);return{props:{user:a,databases:r,metrics:i&&i[0]?i[0]:{}}}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,5771],()=>s(13262));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin.js.nft.json b/dsql-app/.local_dist/server/pages/admin.js.nft.json index 770e6be..4679e91 100644 --- a/dsql-app/.local_dist/server/pages/admin.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id].js b/dsql-app/.local_dist/server/pages/admin/[user_id].js index 8eacc3e..3c9e6df 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id].js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=531,e.ids=[531],e.modules={65102:(e,t,s)=>{s.r(t),s.d(t,{config:()=>m,default:()=>o,getServerSideProps:()=>x,getStaticPaths:()=>u,getStaticProps:()=>c,reportWebVitals:()=>p,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>h});var a=s(63865),r=s(9455),i=s(30671),n=s(5583),d=s(19796),l=s(3530);let o=(0,i.M)(l,"default"),c=(0,i.M)(l,"getStaticProps"),u=(0,i.M)(l,"getStaticPaths"),x=(0,i.M)(l,"getServerSideProps"),m=(0,i.M)(l,"config"),p=(0,i.M)(l,"reportWebVitals"),h=(0,i.M)(l,"unstable_getStaticProps"),b=(0,i.M)(l,"unstable_getStaticPaths"),g=(0,i.M)(l,"unstable_getStaticParams"),j=(0,i.M)(l,"unstable_getServerProps"),S=(0,i.M)(l,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]",pathname:"/admin/[user_id]",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:l})},71192:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(8732),r=s(82015),i=s.n(r),n=s(3530),d=s(53926),l=s(66485),o=s(56331);function c(){let{databases:e,setTargetDatabase:t,user:s}=i().useContext(n.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(o.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var u=s(67274),x=s(34637),m=s(93213),p=s(83158);let h=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function b({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function g(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=i().useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(b,{metric:"Databases Created",count:s?.dbCount||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:`/admin/${r?.id}/databases`}),(0,a.jsx)(b,{metric:"Tables Created",count:s?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(b,{metric:"Media Added",count:s?.mediaCount||0,icon:(0,a.jsx)(p.A,{size:20,className:"text-slate-500"}),url:`/admin/${r?.id}/media`}),(0,a.jsx)(b,{metric:"API Keys",count:s?.apiKeysCount||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${r?.id}/api-keys`})]})})}function j(){let{databases:e,user:t}=i().useContext(n.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(d.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(g,{}),(0,a.jsx)(c,{}),(0,a.jsx)(u.A,{user:t})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},3530:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>u,default:()=>x,getServerSideProps:()=>m});var a=s(8732),r=s(82015),i=s.n(r),n=s(25562),d=s(92702),l=s(71192),o=s(70355),c=s(71934);let u=i().createContext({});function x({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,c]=i().useState();return(0,a.jsx)(n.A,{head:r,user:e,children:(0,a.jsxs)(u.Provider,{value:{user:e,databases:t,targetDatabase:d,setTargetDatabase:c,metrics:s},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(o.A,{targetDatabase:d})]})})}async function m({req:e,res:t,query:s}){let a=await (0,d.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await (0,c.A)(` +"use strict";(()=>{var e={};e.id=531,e.ids=[531],e.modules={65102:(e,t,s)=>{s.r(t),s.d(t,{config:()=>m,default:()=>o,getServerSideProps:()=>x,getStaticPaths:()=>c,getStaticProps:()=>u,reportWebVitals:()=>p,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>h});var a=s(63865),r=s(9455),i=s(30671),d=s(5583),n=s(19796),l=s(3530);let o=(0,i.M)(l,"default"),u=(0,i.M)(l,"getStaticProps"),c=(0,i.M)(l,"getStaticPaths"),x=(0,i.M)(l,"getServerSideProps"),m=(0,i.M)(l,"config"),p=(0,i.M)(l,"reportWebVitals"),h=(0,i.M)(l,"unstable_getStaticProps"),b=(0,i.M)(l,"unstable_getStaticPaths"),g=(0,i.M)(l,"unstable_getStaticParams"),j=(0,i.M)(l,"unstable_getServerProps"),S=(0,i.M)(l,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]",pathname:"/admin/[user_id]",bundlePath:"",filename:""},components:{App:n.default,Document:d.default},userland:l})},71192:(e,t,s)=>{s.d(t,{A:()=>j});var a=s(8732),r=s(82015),i=s.n(r),d=s(3530),n=s(53926),l=s(66485),o=s(56331);function u(){let{databases:e,setTargetDatabase:t,user:s}=i().useContext(d.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(o.A,{databases:e,setTargetDatabase:t,title:"Recently added Databases",more:!0,user:s})})}var c=s(67274),x=s(34637),m=s(93213),p=s(83158);let h=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function b({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function g(){let{databases:e,setTargetDatabase:t,metrics:s,user:r}=i().useContext(d.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(b,{metric:"Databases Created",count:s?.dbCount||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:`/admin/${r?.id}/databases`}),(0,a.jsx)(b,{metric:"Tables Created",count:s?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(b,{metric:"Media Added",count:s?.mediaCount||0,icon:(0,a.jsx)(p.A,{size:20,className:"text-slate-500"}),url:`/admin/${r?.id}/media`}),(0,a.jsx)(b,{metric:"API Keys",count:s?.apiKeysCount||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${r?.id}/api-keys`})]})})}function j(){let{databases:e,user:t}=i().useContext(d.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(n.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(g,{}),(0,a.jsx)(u,{}),(0,a.jsx)(c.A,{user:t})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},3530:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>c,default:()=>x,getServerSideProps:()=>m});var a=s(8732),r=s(82015),i=s.n(r),d=s(25562),n=s(92702),l=s(71192),o=s(70355),u=s(71934);let c=i().createContext({});function x({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[n,u]=i().useState();return(0,a.jsx)(d.A,{head:r,user:e,children:(0,a.jsxs)(c.Provider,{value:{user:e,databases:t,targetDatabase:n,setTargetDatabase:u,metrics:s},children:[(0,a.jsx)(l.A,{}),(0,a.jsx)(o.A,{targetDatabase:n})]})})}async function m({req:e,res:t,query:s}){let a=await (0,n.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,u.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await (0,u.A)(` SELECT ( SELECT COUNT(id) FROM user_databases WHERE user_id=? ) AS dbCount, @@ -11,4 +11,4 @@ ( SELECT COUNT(id) FROM api_keys WHERE user_id=? ) AS apiKeysCount - `,[a.id,a.id,a.id,a.id]);return{props:{user:a,databases:r,metrics:i&&i[0]?i[0]:{}}}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,6160],()=>s(65102));module.exports=a})(); \ No newline at end of file + `,[a.id,a.id,a.id,a.id]);return{props:{user:a,databases:r,metrics:i&&i[0]?i[0]:{}}}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,5771],()=>s(65102));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json index 0d12e41..dbeb0ee 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js index ed1536d..bc4df49 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9419,e.ids=[9419],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},50665:(e,t,a)=>{a.r(t),a.d(t,{config:()=>D,default:()=>q,getServerSideProps:()=>F,getStaticPaths:()=>E,getStaticProps:()=>T,reportWebVitals:()=>z,routeModule:()=>L,unstable_getServerProps:()=>H,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>G,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>O});var s,l={};a.r(l),a.d(l,{ApiKeysContext:()=>M,default:()=>C,getServerSideProps:()=>K});var i=a(63865),r=a(9455),n=a(30671),c=a(5583),d=a(19796),p=a(8732),o=a(82015),u=a.n(o),x=a(25562),h=a(92702),m=a(53926),y=a(66485),f=a(91140),g=a(46169),j=a(16757),A=a(55904);function v({apiKeyObject:e,setTargetApiKey:t}){let[a,s]=u().useState(!1);return(0,p.jsxs)("div",{className:"card no-hover justify-between items-center"+(e.scope.match(/fullAccess/)?" green":""),onClick:a=>{a.target?.closest("button")||(t(e),(0,f.PB)("target-media-popup"))},children:[a&&(0,p.jsx)(j.A,{width:"20px"}),(0,p.jsxs)("div",{className:"text-sm flex-wrap",children:[(0,p.jsx)("div",{children:e.scope.match(/readOnly/)?(0,p.jsx)("span",{className:"notification"}):e.scope.match(/fullAccess/)?(0,p.jsx)("span",{className:"notification success"}):"No Scope"}),(0,p.jsx)("span",{className:"title text-xl",style:{fontSize:"16px"},children:e.name}),(0,p.jsxs)("span",{className:"text-slate-400 ",children:["Created: ",e.date_created.substring(0,24)]})]}),(0,p.jsxs)(A.A,{children:[(0,p.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{alert(e.apiKeyPayload)},children:"Reveal Api Key"}),(0,p.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{navigator.clipboard.writeText(e.apiKeyPayload).then(()=>{alert("Api Key Copied To Clipboard")})},children:"Copy Api Key"}),(0,p.jsx)("button",{className:"outlined light-gray small-text"+(a?" pointer-events-none opacity-40":""),onClick:t=>{s(!0),window.confirm("Delete this Api Key?")?(0,g.A)("/api/deleteApiKey",{method:"post",body:e},!0).then(e=>{}).finally(()=>{window.location.reload()}):s(!1)},children:"Delete Api Key"})]})]})}function b({user:e,apiKeys:t,setTargetApiKey:a}){return(0,p.jsx)(u().Fragment,{children:(0,p.jsxs)("section",{className:"p-0 items-start gap-4 overflow-visible bg-transparent border-transparent",children:[(0,p.jsx)("div",{className:"w-full flex-col items-stretch gap-4",children:t&&a&&t[0]&&t.map((e,t)=>(0,p.jsx)(v,{apiKeyObject:e,setTargetApiKey:a},t))}),!t||!t[0]&&(0,p.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,f.PB)("add-new-api-key-popup")},children:[(0,p.jsx)("span",{className:"text-slate-400",children:"No Api Keys Added."}),(0,p.jsx)("span",{className:"",children:"Add Api Key"})]})]})})}function k(){let{user:e,apiKeys:t,setApiKeys:a,setTargetApiKey:s}=u().useContext(M);return(0,p.jsxs)(u().Fragment,{children:[(0,p.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,p.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,p.jsx)("h1",{className:"text-3xl m-0",children:"Api Keys"}),(0,p.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,f.PB)("add-new-api-key-popup")},children:[(0,p.jsx)("span",{className:"symbol",children:"+"}),(0,p.jsx)("span",{children:"Add New Api Key"})]})]}),(0,p.jsx)(m.A,{user:e})]}),e?.verification_status?.toString().match(/1/)?(0,p.jsx)(b,{apiKeys:t,setTargetApiKey:s,user:e}):(0,p.jsx)(y.A,{})]})}function _({targetApiKey:e}){let[t,a]=u().useState(!1);return(0,p.jsxs)(f.Ay,{title:"target-api-key-preview-popup",noContainer:!0,fullPage:!0,children:[t&&(0,p.jsx)(j.A,{}),e&&(0,p.jsx)(u().Fragment,{children:(0,p.jsx)("span",{children:"Target Api Key"})})]})}var w=a(24872);function N(){async function e(e){return await (0,w.A)({tableName:"api_keys",columnName:"slug",value:e})}let[t,a]=u().useState(!1),[l,i]=u().useState(null);return(0,p.jsxs)(f.Ay,{title:"add-new-api-key-popup",children:[t&&(0,p.jsx)(j.A,{}),(0,p.jsx)("h4",{className:"m-0",children:"Add New Api Key"}),(0,p.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-2",onSubmit:e=>{e.preventDefault(),a(!0);let t=e.target,s={api_key_name:t.api_key_name.value,api_key_slug:t.api_key_slug.value,api_key_scope:t.api_key_scope.value,target_database:t.target_database?.value||void 0,target_table:t.target_table?.value||void 0};(0,g.A)("/api/addApiKey",{method:"post",body:s},!0).then(e=>{e.success?window.location.reload():setTimeout(()=>{a(!1)},2e3)})},children:[l&&(0,p.jsx)("div",{children:(0,p.jsx)("span",{children:l})}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"api_key_name",children:"Api Key Name"}),(0,p.jsx)("input",{type:"text",name:"api_key_name",id:"api_key_name",placeholder:"Api Key Name",onInput:e=>{let t=e.target;t&&(t.closest("form").api_key_slug.value=t.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,""))},required:!0})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"api_key_slug",children:"Api Key Slug"}),(0,p.jsx)("input",{type:"text",name:"api_key_slug",id:"api_key_slug",placeholder:"Api Key Slug",onInput:t=>{let a=t.target;a?.value.match(/./)?(a?.classList.remove("warning"),i(null)):a?.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{e(a.value).then(e=>{e.result?(a?.classList.add("warning"),i("Duplicate Table Name")):(a?.classList.remove("warning"),i(null))})},300)},required:!0})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsxs)("div",{className:"",children:[(0,p.jsx)("label",{htmlFor:"api_key_scope",children:"Api Scope"}),(0,p.jsxs)("div",{className:"dropdown-wrapper reversed",children:[(0,p.jsx)("span",{className:"px-2 py-1 bg-slate-100 rounded-full text-xs font-semibold",children:"Info"}),(0,p.jsx)("div",{className:"dropdown always left-aligned -ml-10 -mb-2",style:{minWidth:"300px"},children:(0,p.jsxs)("div",{className:"flex-col items-start gap-2 text-sm leading-snug",children:[(0,p.jsx)("span",{children:"Scope is the range of access the API Key can have"}),(0,p.jsxs)("ul",{className:"ml-0 pl-4 flex flex-col gap-2",children:[(0,p.jsx)("li",{children:(0,p.jsxs)("span",{children:[(0,p.jsx)("b",{children:"Read Only:"})," Can only read from databases"]})}),(0,p.jsx)("li",{children:(0,p.jsxs)("span",{children:[(0,p.jsx)("b",{children:"Full Access:"})," Can read and Write to databases"]})})]})]})})]})]}),(0,p.jsxs)("select",{name:"api_key_scope",id:"api_key_scope",children:[(0,p.jsx)("option",{value:"readOnly",children:"Read Only"}),(0,p.jsx)("option",{value:"fullAccess",children:"Full Access"})]})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"target_database",children:"Target Databases"}),(0,p.jsx)("input",{type:"text",name:"target_database",id:"target_database",placeholder:"Target Databases (optional). Comma Separated"})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"target_table",children:"Target Tables"}),(0,p.jsx)("input",{type:"text",name:"target_table",id:"target_table",placeholder:"Target Tables (optional). Comma Separated"})]}),(0,p.jsx)("button",{type:"submit",className:t?" pointer-events-none opacity-40":"",children:"Create New Api Key"})]})]})}var S=a(71934),P=a(71205);let M=u().createContext({});function C({user:e,fetchedApiKeys:t}){let a=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:"Api Keys | Datasquirel"}),(0,p.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,l]=u().useState(t),[i,r]=u().useState(null),[n,c]=u().useState(null);return(0,p.jsx)(M.Provider,{value:{user:e,apiKeys:s,setApiKeys:l,targetApiKey:n,setTargetApiKey:c,newApiKey:i,setNewApiKey:r},children:(0,p.jsxs)(u().Fragment,{children:[(0,p.jsx)(x.A,{head:a,user:e,children:(0,p.jsx)(k,{})}),n&&(0,p.jsx)(_,{targetApiKey:n}),(0,p.jsx)(N,{})]})})}async function K({req:e,res:t,query:a}){let s=await (0,h.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let l=await (0,S.A)(`SELECT * FROM api_keys WHERE user_id='${s.id}'`),i=[];if(l&&l[0])for(let e=0;e{a.d(t,{Ay:()=>n,PB:()=>c,fs:()=>d});var s=a(8732),l=a(58150),i=a(82015),r=a.n(i);function n({children:e,title:t,data:a,fullPage:i,wrapperClasses:n,closePopupDispatch:c,wrapperStyle:p,noContainer:o}){return i?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":t||null,style:p,children:[o?(0,s.jsx)(r().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,s.jsx)(l.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[o?(0,s.jsx)(r().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),o&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function c(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t?.(a))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},66485:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l(){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},55904:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732),l=a(82015),i=a.n(l);function r({children:e,column:t,className:a}){let l=i().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(a?" "+a:""),ref:l,children:e})}},24872:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(46169);async function l({tableName:e,columnName:t,value:a,dbFullName:l,dispatch:i,userId:r,dbId:n}){return await (0,s.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${l?"&dbFullName="+l:""}${r?"&userId="+r:""}${n?"&dbId="+n:""}`)}},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392],()=>a(50665));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9419,e.ids=[9419],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},50665:(e,t,a)=>{a.r(t),a.d(t,{config:()=>R,default:()=>C,getServerSideProps:()=>T,getStaticPaths:()=>M,getStaticProps:()=>O,reportWebVitals:()=>K,routeModule:()=>H,unstable_getServerProps:()=>F,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>Q,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>B});var s,r={};a.r(r),a.d(r,{ApiKeysContext:()=>P,default:()=>L,getServerSideProps:()=>E});var l=a(63865),n=a(9455),i=a(30671),c=a(5583),o=a(19796),d=a(8732),p=a(82015),u=a.n(p),h=a(25562),m=a(92702),y=a(53926),x=a(66485),f=a(91140),g=a(46169),_=a(16757),v=a(55904);function A({apiKeyObject:e,setTargetApiKey:t}){let[a,s]=u().useState(!1);return(0,d.jsxs)("div",{className:"card no-hover justify-between items-center"+(e.scope.match(/fullAccess/)?" green":""),onClick:a=>{a.target?.closest("button")||(t(e),(0,f.PB)("target-media-popup"))},children:[a&&(0,d.jsx)(_.A,{width:"20px"}),(0,d.jsxs)("div",{className:"text-sm flex-wrap",children:[(0,d.jsx)("div",{children:e.scope.match(/readOnly/)?(0,d.jsx)("span",{className:"notification"}):e.scope.match(/fullAccess/)?(0,d.jsx)("span",{className:"notification success"}):"No Scope"}),(0,d.jsx)("span",{className:"title text-xl",style:{fontSize:"16px"},children:e.name}),(0,d.jsxs)("span",{className:"text-slate-400 ",children:["Created: ",e.date_created.substring(0,24)]})]}),(0,d.jsxs)(v.A,{children:[(0,d.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{alert(e.apiKeyPayload)},children:"Reveal Api Key"}),(0,d.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{navigator.clipboard.writeText(e.apiKeyPayload).then(()=>{alert("Api Key Copied To Clipboard")})},children:"Copy Api Key"}),(0,d.jsx)("button",{className:"outlined light-gray small-text"+(a?" pointer-events-none opacity-40":""),onClick:t=>{s(!0),window.confirm("Delete this Api Key?")?(0,g.A)("/api/deleteApiKey",{method:"post",body:e},!0).then(e=>{}).finally(()=>{window.location.reload()}):s(!1)},children:"Delete Api Key"})]})]})}function j({user:e,apiKeys:t,setTargetApiKey:a}){return(0,d.jsx)(u().Fragment,{children:(0,d.jsxs)("section",{className:"p-0 items-start gap-4 overflow-visible bg-transparent border-transparent",children:[(0,d.jsx)("div",{className:"w-full flex-col items-stretch gap-4",children:t&&a&&t[0]&&t.map((e,t)=>(0,d.jsx)(A,{apiKeyObject:e,setTargetApiKey:a},t))}),!t||!t[0]&&(0,d.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,f.PB)("add-new-api-key-popup")},children:[(0,d.jsx)("span",{className:"text-slate-400",children:"No Api Keys Added."}),(0,d.jsx)("span",{className:"",children:"Add Api Key"})]})]})})}function S(){let{user:e,apiKeys:t,setApiKeys:a,setTargetApiKey:s}=u().useContext(P);return(0,d.jsxs)(u().Fragment,{children:[(0,d.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,d.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,d.jsx)("h1",{className:"text-3xl m-0",children:"Api Keys"}),(0,d.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,f.PB)("add-new-api-key-popup")},children:[(0,d.jsx)("span",{className:"symbol",children:"+"}),(0,d.jsx)("span",{children:"Add New Api Key"})]})]}),(0,d.jsx)(y.A,{user:e})]}),e?.verification_status?.toString().match(/1/)?(0,d.jsx)(j,{apiKeys:t,setTargetApiKey:s,user:e}):(0,d.jsx)(x.A,{})]})}function b({targetApiKey:e}){let[t,a]=u().useState(!1);return(0,d.jsxs)(f.Ay,{title:"target-api-key-preview-popup",noContainer:!0,fullPage:!0,children:[t&&(0,d.jsx)(_.A,{}),e&&(0,d.jsx)(u().Fragment,{children:(0,d.jsx)("span",{children:"Target Api Key"})})]})}var N=a(24872);function k(){async function e(e){return await (0,N.A)({tableName:"api_keys",columnName:"slug",value:e})}let[t,a]=u().useState(!1),[r,l]=u().useState(null);return(0,d.jsxs)(f.Ay,{title:"add-new-api-key-popup",children:[t&&(0,d.jsx)(_.A,{}),(0,d.jsx)("h4",{className:"m-0",children:"Add New Api Key"}),(0,d.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-2",onSubmit:e=>{e.preventDefault(),a(!0);let t=e.target,s={api_key_name:t.api_key_name.value,api_key_slug:t.api_key_slug.value,api_key_scope:t.api_key_scope.value,target_database:t.target_database?.value||void 0,target_table:t.target_table?.value||void 0};(0,g.A)("/api/addApiKey",{method:"post",body:s},!0).then(e=>{e.success?window.location.reload():setTimeout(()=>{a(!1)},2e3)})},children:[r&&(0,d.jsx)("div",{children:(0,d.jsx)("span",{children:r})}),(0,d.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,d.jsx)("label",{htmlFor:"api_key_name",children:"Api Key Name"}),(0,d.jsx)("input",{type:"text",name:"api_key_name",id:"api_key_name",placeholder:"Api Key Name",onInput:e=>{let t=e.target;t&&(t.closest("form").api_key_slug.value=t.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,""))},required:!0})]}),(0,d.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,d.jsx)("label",{htmlFor:"api_key_slug",children:"Api Key Slug"}),(0,d.jsx)("input",{type:"text",name:"api_key_slug",id:"api_key_slug",placeholder:"Api Key Slug",onInput:t=>{let a=t.target;a?.value.match(/./)?(a?.classList.remove("warning"),l(null)):a?.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{e(a.value).then(e=>{e.result?(a?.classList.add("warning"),l("Duplicate Table Name")):(a?.classList.remove("warning"),l(null))})},300)},required:!0})]}),(0,d.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,d.jsxs)("div",{className:"",children:[(0,d.jsx)("label",{htmlFor:"api_key_scope",children:"Api Scope"}),(0,d.jsxs)("div",{className:"dropdown-wrapper reversed",children:[(0,d.jsx)("span",{className:"px-2 py-1 bg-slate-100 rounded-full text-xs font-semibold",children:"Info"}),(0,d.jsx)("div",{className:"dropdown always left-aligned -ml-10 -mb-2",style:{minWidth:"300px"},children:(0,d.jsxs)("div",{className:"flex-col items-start gap-2 text-sm leading-snug",children:[(0,d.jsx)("span",{children:"Scope is the range of access the API Key can have"}),(0,d.jsxs)("ul",{className:"ml-0 pl-4 flex flex-col gap-2",children:[(0,d.jsx)("li",{children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{children:"Read Only:"})," Can only read from databases"]})}),(0,d.jsx)("li",{children:(0,d.jsxs)("span",{children:[(0,d.jsx)("b",{children:"Full Access:"})," Can read and Write to databases"]})})]})]})})]})]}),(0,d.jsxs)("select",{name:"api_key_scope",id:"api_key_scope",children:[(0,d.jsx)("option",{value:"readOnly",children:"Read Only"}),(0,d.jsx)("option",{value:"fullAccess",children:"Full Access"})]})]}),(0,d.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,d.jsx)("label",{htmlFor:"target_database",children:"Target Databases"}),(0,d.jsx)("input",{type:"text",name:"target_database",id:"target_database",placeholder:"Target Databases (optional). Comma Separated"})]}),(0,d.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,d.jsx)("label",{htmlFor:"target_table",children:"Target Tables"}),(0,d.jsx)("input",{type:"text",name:"target_table",id:"target_table",placeholder:"Target Tables (optional). Comma Separated"})]}),(0,d.jsx)("button",{type:"submit",className:t?" pointer-events-none opacity-40":"",children:"Create New Api Key"})]})]})}var D=a(71934),w=a(71205);let P=u().createContext({});function L({user:e,fetchedApiKeys:t}){let a=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"Api Keys | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,r]=u().useState(t),[l,n]=u().useState(null),[i,c]=u().useState(null);return(0,d.jsx)(P.Provider,{value:{user:e,apiKeys:s,setApiKeys:r,targetApiKey:i,setTargetApiKey:c,newApiKey:l,setNewApiKey:n},children:(0,d.jsxs)(u().Fragment,{children:[(0,d.jsx)(h.A,{head:a,user:e,children:(0,d.jsx)(S,{})}),i&&(0,d.jsx)(b,{targetApiKey:i}),(0,d.jsx)(k,{})]})})}async function E({req:e,res:t,query:a}){let s=await (0,m.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,D.A)(`SELECT * FROM api_keys WHERE user_id='${s.id}'`),l=[];if(r&&r[0])for(let e=0;e{a.d(t,{Ay:()=>i,PB:()=>c,fs:()=>o});var s=a(8732),r=a(58150),l=a(82015),n=a.n(l);function i({children:e,title:t,data:a,fullPage:l,wrapperClasses:i,closePopupDispatch:c,wrapperStyle:d,noContainer:p}){return l?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":t||null,style:d,children:[p?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),c&&c()},children:(0,s.jsx)(r.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[p?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]})}function c(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t?.(a))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},66485:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r(){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},55904:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n({children:e,column:t,className:a}){let r=l().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(a?" "+a:""),ref:r,children:e})}},24872:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(46169);async function r({tableName:e,columnName:t,value:a,dbFullName:r,dispatch:l,userId:n,dbId:i}){return await (0,s.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${r?"&dbFullName="+r:""}${n?"&userId="+n:""}${i?"&dbId="+i:""}`)}},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71205:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(55511),r=a(79428),l=a(48243);function n({encryptedString:e,encryptionKey:t,encryptionSalt:a}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:c,algorithm:o,bufferAllocSize:d}=(0,l.A)({encryptionKey:t});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 p=(0,s.scryptSync)(n,i,c),u=r.Buffer.alloc(d,0),h=(0,s.createDecipheriv)(o,p,u);try{let t=h.update(e,"hex","utf8");return t+=h.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(51779);async function r(...e){let t=(0,s.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let a=await t.query(...e);return JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(9973),r=a.n(s);function l(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},48243:(e,t,a)=>{a.d(t,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392],()=>a(50665));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json index bdd5bfa..dc20e7b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js index 555c68c..5383fec 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2504,e.ids=[2504],e.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}}})},35987:(e,s,t)=>{t.r(s),t.d(s,{config:()=>O,default:()=>T,getServerSideProps:()=>G,getStaticPaths:()=>U,getStaticProps:()=>q,reportWebVitals:()=>V,routeModule:()=>W,unstable_getServerProps:()=>H,unstable_getServerSideProps:()=>B,unstable_getStaticParams:()=>z,unstable_getStaticPaths:()=>F,unstable_getStaticProps:()=>D});var a={};t.r(a),t.d(a,{ConnectContext:()=>_,default:()=>R,getServerSideProps:()=>I});var r=t(63865),l=t(9455),n=t(30671),i=t(5583),d=t(19796),c=t(8732),o=t(82015),u=t.n(o),h=t(25562),p=t(92702),x=t(71934),m=t(53926),j=t(96089),y=t(25088);function b(){let{user:e,query:s,mariadbUserCred:t}=u().useContext(_);return(0,c.jsx)("section",{className:"paper",children:(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("span",{children:"You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:"}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ul",{className:"m-0",children:[(0,c.jsxs)("li",{children:["Server:"," ",(0,c.jsx)("b",{children:"172.72.0.24"})]}),(0,c.jsxs)("li",{children:["Username: ",(0,c.jsx)("b",{children:t?.mariadb_user})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:t?.mariadb_host})]}),(0,c.jsxs)("li",{children:["Password: ",(0,c.jsx)("b",{children:"*****************"}),(0,c.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText(t?.mariadb_pass||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(j.A,{})})]}),(0,c.jsx)("li",{children:(0,c.jsxs)("div",{className:"flex",children:["SSL Certificate:"," ",(0,c.jsx)("b",{children:(0,c.jsx)("span",{className:"flex items-center gap-2",children:(0,c.jsxs)("a",{href:"https://datasquirel.com/documents/ssl/ca-cert.pem",className:"flex items-center gap-2 border-none hover:opacity-60",target:"_blank",children:[(0,c.jsx)(y.A,{}),"Download"]})})})]})})]})]})})}var f=t(91140),g=t(16757),v=t(46169),A=t(11717),E=t(96725);function S({mariadbUser:e}){let{setTargetMariadbUser:s}=u().useContext(_),t=!!String(e.primary)?.match(/1/),[a,r]=u().useState(!1);return(0,c.jsxs)("div",{className:"card w-full col"+(t?" green":""),children:[a&&(0,c.jsx)(g.A,{width:"25px"}),(0,c.jsxs)("div",{className:"w-full justify-between h-auto md:h-8 flex-wrap",children:[(0,c.jsxs)("span",{className:"title",children:[e.username,"@",e.host]}),(0,c.jsxs)("div",{children:[t&&(0,c.jsx)("span",{className:"info small w-auto",children:"Primary User"}),(0,c.jsx)("button",{className:"ghost",title:"Edit User",onClick:t=>{s?.(e),(0,f.PB)("edit-mariadb-user-popup")},children:(0,c.jsx)(A.A,{size:20})}),!t&&(0,c.jsx)("button",{className:"ghost -ml-6",title:"Edit User",onClick:s=>{window.confirm("Are you sure you want to delete this User?")&&(r(!0),(0,v.A)("/api/sql-users/delete",{method:"POST",body:{id:e.id}},!0).then(e=>{e.success?window.location.reload():e.msg&&window.alert(e.msg)}).finally(()=>{setTimeout(()=>{r(!1)},1e3)}))},children:(0,c.jsx)(E.A,{})})]})]}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ul",{className:"m-0",children:[(0,c.jsxs)("li",{children:["Username: ",(0,c.jsx)("b",{children:e.username})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:e.host}),(0,c.jsx)("span",{className:"info gray font-normal",children:"% is a wildcard. Example: 192.168.1.%"})]}),(0,c.jsxs)("li",{children:["Password: ",(0,c.jsx)("b",{children:"*****************"}),(0,c.jsx)("button",{className:"ghost inline-block -my-4",onClick:s=>{navigator.clipboard.writeText(e.password||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(j.A,{size:20})})]})]})]})}function N(){let{mariadbUsers:e}=u().useContext(_);return(0,c.jsxs)("section",{className:"paper",children:[(0,c.jsxs)("div",{className:"w-full justify-between",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"SQL Users"}),(0,c.jsx)("div",{children:(0,c.jsx)("button",{onClick:e=>{(0,f.PB)("new-mariadb-user-popup")},children:"Add SQL User"})})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("span",{children:"You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)"}),(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"grid w-full grid-cols-1 xl:grid-cols-2 gap-6",children:e?.map((e,s)=>c.jsx(S,{mariadbUser:e},s+1))})]})]})}function w(){let{user:e,query:s,mariadbUserCred:t}=u().useContext(_);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsx)("div",{className:"",children:(0,c.jsx)("h1",{className:"text-3xl m-0",children:"Connect"})}),(0,c.jsx)(m.A,{user:e})]}),(0,c.jsx)(b,{}),(0,c.jsx)(N,{})]})}function k({grants:e,setGrants:s,edit:t}){let{user:a,targetMariadbUser:r}=u().useContext(_),l=!!String(r?.primary).match(/1/)&&t,n=!!e.find(e=>"*"==e.database),i=!!e.find(e=>"*"==e.table),d=!!e.find(e=>e.privileges.includes("ALL PRIVILEGES")),[o,h]=u().useState([]),[p,x]=u().useState(),[m,j]=u().useState([]),[y,b]=u().useState(),[f,g]=u().useState(["ALL PRIVILEGES"]),[v,A]=u().useState("ALL PRIVILEGES"),[E,S]=u().useState(!1);return(0,c.jsxs)("div",{id:"grant-select-block",className:"flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded",children:[(0,c.jsx)("h4",{className:"m-0 text-lg",children:"Grants"}),(0,c.jsx)("span",{children:"This section determines fine grained access of this user to databases and tables"}),(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"flex-wrap",children:e?.[0]?e.map((t,a)=>(0,c.jsxs)("div",{className:"text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative",children:[(0,c.jsx)("span",{children:t.privileges}),(0,c.jsx)("span",{children:"="}),(0,c.jsxs)("span",{children:[" ",t.database.replace(/datasquirel_user_\d+_/,"")]}),(0,c.jsx)("span",{children:"."}),(0,c.jsx)("span",{children:t.table}),!l&&(0,c.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:t=>{let r=[...e];r.splice(a,1),s(r)},children:"x"})]},a)):(0,c.jsx)("span",{className:"text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center",children:"No Grants"})}),(0,c.jsx)("hr",{}),n&&i&&d?(0,c.jsx)("span",{className:"text-sm text-slate-500",children:'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges'}):E?(0,c.jsx)(c.Fragment,{children:l?(0,c.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-database",children:"Database"}),(0,c.jsxs)("select",{name:"grants-database",id:"grants-database",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=o.find(e=>e.db_full_name==s);t&&x(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-DATABASES--"}),o.map((e,s)=>(0,c.jsx)("option",{value:e.db_full_name,children:e.db_name},s+1))]})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-table",children:"Table"}),(0,c.jsxs)("select",{name:"grants-table",id:"grants-table",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=m.find(e=>e.table_slug==s);t&&b(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),m?.[0]&&m.map((e,s)=>(0,c.jsx)("option",{value:e.table_slug,children:e.table_name},s+1))]})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-databases",children:"Permissions"}),(0,c.jsx)("div",{className:"flex-wrap gap-y-2 mb-1",children:f?.[0]?f.map((e,s)=>(0,c.jsxs)("span",{className:"text-xs px-2 py-1 border border-solid border-slate-200 rounded",children:[e,(0,c.jsx)("span",{className:"cursor-pointer p-2 hover:opacity-50",onClick:e=>{let t=[...f];t.splice(s,1),g(t)},children:"x"})]},s)):(0,c.jsx)("span",{className:"text-xs px-3 py-1 bg-slate-100 text-slate-400",children:"No Permissions Selected"})}),(0,c.jsxs)("div",{className:"w-full items-stretch",children:[(0,c.jsx)("select",{name:"grants-databases",id:"grants-databases",className:"text-sm",onChange:e=>{A(e.target.value)},children:["ALL PRIVILEGES","ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","FILE","INDEX","INSERT","LOCK TABLES","PROCESS","REFERENCES","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","SELECT","SHOW VIEW","SUPER","TRIGGER","UPDATE","USAGE"].map((e,s)=>(0,c.jsx)("option",{value:e,children:e},s))}),(0,c.jsx)("div",{className:"button outlined gray text-2xl",onClick:e=>{if(!f.includes(v)){if(f.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}g([...f,v])}},children:"+"})]})]}),!l&&(0,c.jsx)("div",{className:"button outlined secondary",onClick:t=>{if(!f?.[0]){alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list");return}s([...e,{database:p?.db_full_name||"*",privileges:f,table:y?.table_slug||"*"}]),S(!1)},children:"Add"}),(0,c.jsx)("div",{className:"button outlined gray",onClick:()=>{S(!1)},children:"Cancel"})]})}):l?(0,c.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,c.jsxs)("div",{className:"button outlined gray",onClick:e=>{S(!0)},children:[(0,c.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]})]})}function P({mariaDBUser:e,edit:s,username:t}){let{user:a}=u().useContext(_),r=a?.id==Number("1"),l=e?Object.keys(e):["username","host","password"],n=/username|host|password/,i=r?void 0:/username/,d=/host/,o=(()=>{try{if(s&&e?.grants)return JSON.parse(e.grants);return null}catch(e){return null}})(),[h,p]=u().useState(o||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[x,m]=u().useState(!1);return(0,c.jsxs)("form",{onSubmit:t=>{if(t.preventDefault(),!window.confirm(s?"Update this user?":"Create this new User?"))return;let a=Array.from(t.target),l={};if(a.forEach(e=>{"INPUT"==e.nodeName&&(l[e.name]=e.value)}),s&&!r&&delete l.username,!h?.[0]){alert("Please add at least one grant");return}m(!0),(0,v.A)(s?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:l,edit:!!s,prev:e,grants:h}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),m(!1))})},className:"w-full gap-4 flex flex-col",children:[x&&(0,c.jsx)(g.A,{width:"25px"}),l.map((s,t)=>{let r=e?e[s]:"username"==s?`dsql_user_${a?.id}`:null,l=i?.test(s),o=d.test(s);return s.match(n)?(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:s,children:s}),(0,c.jsx)("input",{type:s.match("password")?"password":"text",name:s,id:s,defaultValue:r||void 0,readOnly:l,className:l?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:s,required:o})]},t+1):null}),(0,c.jsx)(k,{grants:h,setGrants:p,edit:s}),(0,c.jsx)("button",{type:"submit",children:s?"Update User":"Create SQL User"})]})}function L(){let{targetMariadbUser:e}=u().useContext(_),[s,t]=u().useState(!1);return(0,c.jsx)(f.Ay,{title:"edit-mariadb-user-popup",children:s&&e?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h3",{children:(0,c.jsxs)("div",{className:"flex",children:[(0,c.jsx)("span",{children:"Edit"}),(0,c.jsxs)("span",{className:"info inline w-auto text-xl green",children:[e.username,"@",e.host]})]})}),(0,c.jsx)("hr",{}),(0,c.jsx)(P,{mariaDBUser:e,edit:!0})]}):(0,c.jsx)("div",{className:"p-20",children:(0,c.jsx)(g.A,{width:"25px"})})})}function C(){return(0,c.jsxs)(f.Ay,{title:"new-mariadb-user-popup",children:[(0,c.jsx)("h3",{children:"New MariaDB User"}),(0,c.jsx)("hr",{}),(0,c.jsx)(P,{})]})}var M=t(71205);let _=u().createContext({});function R({user:e,query:s,mariadbUserCred:t,mariadbUsers:a}){let r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"SQL Connect | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Connect to your database remotely"})]}),[l,n]=u().useState(null),[i,d]=u().useState(0);return(0,c.jsx)(_.Provider,{value:{user:e,query:s,mariadbUserCred:t,mariadbUsers:a,targetMariadbUser:l,setTargetMariadbUser:n,refresh:i,setRefresh:d},children:(0,c.jsxs)(u().Fragment,{children:[(0,c.jsx)(h.A,{head:r,user:e,aceEditor:!0,children:(0,c.jsx)(w,{})}),(0,c.jsx)(L,{}),(0,c.jsx)(C,{})]})})}async function I({req:e,res:s,query:t}){let a=await (0,p.A)(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,x.A)("SELECT mariadb_user, mariadb_host, mariadb_pass FROM users WHERE id = ?",[a.id]),l=r?.[0]||{};l?.mariadb_pass&&(l.mariadb_pass=(0,M.A)({encryptedString:l.mariadb_pass}));let n=await (0,x.A)("SELECT * FROM mariadb_users WHERE user_id = ?",[a.id]);if(n?.[0])for(let e=0;e{t.d(s,{Ay:()=>i,PB:()=>d,fs:()=>c});var a=t(8732),r=t(58150),l=t(82015),n=t.n(l);function i({children:e,title:s,data:t,fullPage:l,wrapperClasses:i,closePopupDispatch:d,wrapperStyle:o,noContainer:u}){return l?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":s||null,style:o,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,a.jsx)(r.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]})}function d(e,s){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",s?.(t))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},23293:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96725:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},96089:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},11717:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},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"}]])},58150:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,s)=>{Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[883,9821,9796,5392],()=>t(35987));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2504,e.ids=[2504],e.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}}})},35987:(e,s,t)=>{t.r(s),t.d(s,{config:()=>q,default:()=>O,getServerSideProps:()=>U,getStaticPaths:()=>I,getStaticProps:()=>M,reportWebVitals:()=>B,routeModule:()=>z,unstable_getServerProps:()=>H,unstable_getServerSideProps:()=>V,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>G,unstable_getStaticProps:()=>Q});var a={};t.r(a),t.d(a,{ConnectContext:()=>D,default:()=>R,getServerSideProps:()=>T});var r=t(63865),l=t(9455),n=t(30671),i=t(5583),c=t(19796),d=t(8732),o=t(82015),u=t.n(o),p=t(25562),h=t(92702),x=t(71934),m=t(53926),f=t(96089),y=t(25088);function j(){let{user:e,query:s,mariadbUserCred:t}=u().useContext(D);return(0,d.jsx)("section",{className:"paper",children:(0,d.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,d.jsx)("span",{children:"You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:"}),(0,d.jsx)("hr",{}),(0,d.jsxs)("ul",{className:"m-0",children:[(0,d.jsxs)("li",{children:["Server:"," ",(0,d.jsx)("b",{children:"172.72.0.24"})]}),(0,d.jsxs)("li",{children:["Username: ",(0,d.jsx)("b",{children:t?.mariadb_user})]}),(0,d.jsxs)("li",{children:["Host: ",(0,d.jsx)("b",{children:t?.mariadb_host})]}),(0,d.jsxs)("li",{children:["Password: ",(0,d.jsx)("b",{children:"*****************"}),(0,d.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText(t?.mariadb_pass||"").then(()=>{window.alert("Copied Password!")})},children:(0,d.jsx)(f.A,{})})]}),(0,d.jsx)("li",{children:(0,d.jsxs)("div",{className:"flex",children:["SSL Certificate:"," ",(0,d.jsx)("b",{children:(0,d.jsx)("span",{className:"flex items-center gap-2",children:(0,d.jsxs)("a",{href:"https://datasquirel.com/documents/ssl/ca-cert.pem",className:"flex items-center gap-2 border-none hover:opacity-60",target:"_blank",children:[(0,d.jsx)(y.A,{}),"Download"]})})})]})})]})]})})}var b=t(91140),v=t(16757),g=t(46169),S=t(11717),A=t(96725);function E({mariadbUser:e}){let{setTargetMariadbUser:s}=u().useContext(D),t=!!String(e.primary)?.match(/1/),[a,r]=u().useState(!1);return(0,d.jsxs)("div",{className:"card w-full col"+(t?" green":""),children:[a&&(0,d.jsx)(v.A,{width:"25px"}),(0,d.jsxs)("div",{className:"w-full justify-between h-auto md:h-8 flex-wrap",children:[(0,d.jsxs)("span",{className:"title",children:[e.username,"@",e.host]}),(0,d.jsxs)("div",{children:[t&&(0,d.jsx)("span",{className:"info small w-auto",children:"Primary User"}),(0,d.jsx)("button",{className:"ghost",title:"Edit User",onClick:t=>{s?.(e),(0,b.PB)("edit-mariadb-user-popup")},children:(0,d.jsx)(S.A,{size:20})}),!t&&(0,d.jsx)("button",{className:"ghost -ml-6",title:"Edit User",onClick:s=>{window.confirm("Are you sure you want to delete this User?")&&(r(!0),(0,g.A)("/api/sql-users/delete",{method:"POST",body:{id:e.id}},!0).then(e=>{e.success?window.location.reload():e.msg&&window.alert(e.msg)}).finally(()=>{setTimeout(()=>{r(!1)},1e3)}))},children:(0,d.jsx)(A.A,{})})]})]}),(0,d.jsx)("hr",{}),(0,d.jsxs)("ul",{className:"m-0",children:[(0,d.jsxs)("li",{children:["Username: ",(0,d.jsx)("b",{children:e.username})]}),(0,d.jsxs)("li",{children:["Host: ",(0,d.jsx)("b",{children:e.host}),(0,d.jsx)("span",{className:"info gray font-normal",children:"% is a wildcard. Example: 192.168.1.%"})]}),(0,d.jsxs)("li",{children:["Password: ",(0,d.jsx)("b",{children:"*****************"}),(0,d.jsx)("button",{className:"ghost inline-block -my-4",onClick:s=>{navigator.clipboard.writeText(e.password||"").then(()=>{window.alert("Copied Password!")})},children:(0,d.jsx)(f.A,{size:20})})]})]})]})}function N(){let{mariadbUsers:e}=u().useContext(D);return(0,d.jsxs)("section",{className:"paper",children:[(0,d.jsxs)("div",{className:"w-full justify-between",children:[(0,d.jsx)("h2",{className:"text-xl m-0",children:"SQL Users"}),(0,d.jsx)("div",{children:(0,d.jsx)("button",{onClick:e=>{(0,b.PB)("new-mariadb-user-popup")},children:"Add SQL User"})})]}),(0,d.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,d.jsx)("span",{children:"You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)"}),(0,d.jsx)("hr",{}),(0,d.jsx)("div",{className:"grid w-full grid-cols-1 xl:grid-cols-2 gap-6",children:e?.map((e,s)=>d.jsx(E,{mariadbUser:e},s+1))})]})]})}function _(){let{user:e,query:s,mariadbUserCred:t}=u().useContext(D);return(0,d.jsxs)(u().Fragment,{children:[(0,d.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,d.jsx)("div",{className:"",children:(0,d.jsx)("h1",{className:"text-3xl m-0",children:"Connect"})}),(0,d.jsx)(m.A,{user:e})]}),(0,d.jsx)(j,{}),(0,d.jsx)(N,{})]})}function L({grants:e,setGrants:s,edit:t}){let{user:a,targetMariadbUser:r}=u().useContext(D),l=!!String(r?.primary).match(/1/)&&t,n=!!e.find(e=>"*"==e.database),i=!!e.find(e=>"*"==e.table),c=!!e.find(e=>e.privileges.includes("ALL PRIVILEGES")),[o,p]=u().useState([]),[h,x]=u().useState(),[m,f]=u().useState([]),[y,j]=u().useState(),[b,v]=u().useState(["ALL PRIVILEGES"]),[g,S]=u().useState("ALL PRIVILEGES"),[A,E]=u().useState(!1);return(0,d.jsxs)("div",{id:"grant-select-block",className:"flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded",children:[(0,d.jsx)("h4",{className:"m-0 text-lg",children:"Grants"}),(0,d.jsx)("span",{children:"This section determines fine grained access of this user to databases and tables"}),(0,d.jsx)("hr",{}),(0,d.jsx)("div",{className:"flex-wrap",children:e?.[0]?e.map((t,a)=>(0,d.jsxs)("div",{className:"text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative",children:[(0,d.jsx)("span",{children:t.privileges}),(0,d.jsx)("span",{children:"="}),(0,d.jsxs)("span",{children:[" ",t.database.replace(/datasquirel_user_\d+_/,"")]}),(0,d.jsx)("span",{children:"."}),(0,d.jsx)("span",{children:t.table}),!l&&(0,d.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:t=>{let r=[...e];r.splice(a,1),s(r)},children:"x"})]},a)):(0,d.jsx)("span",{className:"text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center",children:"No Grants"})}),(0,d.jsx)("hr",{}),n&&i&&c?(0,d.jsx)("span",{className:"text-sm text-slate-500",children:'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges'}):A?(0,d.jsx)(d.Fragment,{children:l?(0,d.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,d.jsx)("label",{htmlFor:"grants-database",children:"Database"}),(0,d.jsxs)("select",{name:"grants-database",id:"grants-database",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=o.find(e=>e.db_full_name==s);t&&x(t)},children:[(0,d.jsx)("option",{value:"*",children:"--ALL-DATABASES--"}),o.map((e,s)=>(0,d.jsx)("option",{value:e.db_full_name,children:e.db_name},s+1))]})]}),(0,d.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,d.jsx)("label",{htmlFor:"grants-table",children:"Table"}),(0,d.jsxs)("select",{name:"grants-table",id:"grants-table",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=m.find(e=>e.table_slug==s);t&&j(t)},children:[(0,d.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),m?.[0]&&m.map((e,s)=>(0,d.jsx)("option",{value:e.table_slug,children:e.table_name},s+1))]})]}),(0,d.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,d.jsx)("label",{htmlFor:"grants-databases",children:"Permissions"}),(0,d.jsx)("div",{className:"flex-wrap gap-y-2 mb-1",children:b?.[0]?b.map((e,s)=>(0,d.jsxs)("span",{className:"text-xs px-2 py-1 border border-solid border-slate-200 rounded",children:[e,(0,d.jsx)("span",{className:"cursor-pointer p-2 hover:opacity-50",onClick:e=>{let t=[...b];t.splice(s,1),v(t)},children:"x"})]},s)):(0,d.jsx)("span",{className:"text-xs px-3 py-1 bg-slate-100 text-slate-400",children:"No Permissions Selected"})}),(0,d.jsxs)("div",{className:"w-full items-stretch",children:[(0,d.jsx)("select",{name:"grants-databases",id:"grants-databases",className:"text-sm",onChange:e=>{S(e.target.value)},children:["ALL PRIVILEGES","ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","FILE","INDEX","INSERT","LOCK TABLES","PROCESS","REFERENCES","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","SELECT","SHOW VIEW","SUPER","TRIGGER","UPDATE","USAGE"].map((e,s)=>(0,d.jsx)("option",{value:e,children:e},s))}),(0,d.jsx)("div",{className:"button outlined gray text-2xl",onClick:e=>{if(!b.includes(g)){if(b.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}v([...b,g])}},children:"+"})]})]}),!l&&(0,d.jsx)("div",{className:"button outlined secondary",onClick:t=>{if(!b?.[0]){alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list");return}s([...e,{database:h?.db_full_name||"*",privileges:b,table:y?.table_slug||"*"}]),E(!1)},children:"Add"}),(0,d.jsx)("div",{className:"button outlined gray",onClick:()=>{E(!1)},children:"Cancel"})]})}):l?(0,d.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,d.jsxs)("div",{className:"button outlined gray",onClick:e=>{E(!0)},children:[(0,d.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]})]})}function P({mariaDBUser:e,edit:s,username:t}){let{user:a}=u().useContext(D),r=a?.id==Number("1"),l=e?Object.keys(e):["username","host","password"],n=/username|host|password/,i=r?void 0:/username/,c=/host/,o=(()=>{try{if(s&&e?.grants)return JSON.parse(e.grants);return null}catch(e){return null}})(),[p,h]=u().useState(o||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[x,m]=u().useState(!1);return(0,d.jsxs)("form",{onSubmit:t=>{if(t.preventDefault(),!window.confirm(s?"Update this user?":"Create this new User?"))return;let a=Array.from(t.target),l={};if(a.forEach(e=>{"INPUT"==e.nodeName&&(l[e.name]=e.value)}),s&&!r&&delete l.username,!p?.[0]){alert("Please add at least one grant");return}m(!0),(0,g.A)(s?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:l,edit:!!s,prev:e,grants:p}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),m(!1))})},className:"w-full gap-4 flex flex-col",children:[x&&(0,d.jsx)(v.A,{width:"25px"}),l.map((s,t)=>{let r=e?e[s]:"username"==s?`dsql_user_${a?.id}`:null,l=i?.test(s),o=c.test(s);return s.match(n)?(0,d.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,d.jsx)("label",{htmlFor:s,children:s}),(0,d.jsx)("input",{type:s.match("password")?"password":"text",name:s,id:s,defaultValue:r||void 0,readOnly:l,className:l?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:s,required:o})]},t+1):null}),(0,d.jsx)(L,{grants:p,setGrants:h,edit:s}),(0,d.jsx)("button",{type:"submit",children:s?"Update User":"Create SQL User"})]})}function w(){let{targetMariadbUser:e}=u().useContext(D),[s,t]=u().useState(!1);return(0,d.jsx)(b.Ay,{title:"edit-mariadb-user-popup",children:s&&e?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("h3",{children:(0,d.jsxs)("div",{className:"flex",children:[(0,d.jsx)("span",{children:"Edit"}),(0,d.jsxs)("span",{className:"info inline w-auto text-xl green",children:[e.username,"@",e.host]})]})}),(0,d.jsx)("hr",{}),(0,d.jsx)(P,{mariaDBUser:e,edit:!0})]}):(0,d.jsx)("div",{className:"p-20",children:(0,d.jsx)(v.A,{width:"25px"})})})}function k(){return(0,d.jsxs)(b.Ay,{title:"new-mariadb-user-popup",children:[(0,d.jsx)("h3",{children:"New MariaDB User"}),(0,d.jsx)("hr",{}),(0,d.jsx)(P,{})]})}var C=t(71205);let D=u().createContext({});function R({user:e,query:s,mariadbUserCred:t,mariadbUsers:a}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"SQL Connect | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Connect to your database remotely"})]}),[l,n]=u().useState(null),[i,c]=u().useState(0);return(0,d.jsx)(D.Provider,{value:{user:e,query:s,mariadbUserCred:t,mariadbUsers:a,targetMariadbUser:l,setTargetMariadbUser:n,refresh:i,setRefresh:c},children:(0,d.jsxs)(u().Fragment,{children:[(0,d.jsx)(p.A,{head:r,user:e,aceEditor:!0,children:(0,d.jsx)(_,{})}),(0,d.jsx)(w,{}),(0,d.jsx)(k,{})]})})}async function T({req:e,res:s,query:t}){let a=await (0,h.A)(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,x.A)("SELECT mariadb_user, mariadb_host, mariadb_pass FROM users WHERE id = ?",[a.id]),l=r?.[0]||{};l?.mariadb_pass&&(l.mariadb_pass=(0,C.A)({encryptedString:l.mariadb_pass}));let n=await (0,x.A)("SELECT * FROM mariadb_users WHERE user_id = ?",[a.id]);if(n?.[0])for(let e=0;e{t.d(s,{Ay:()=>i,PB:()=>c,fs:()=>d});var a=t(8732),r=t(58150),l=t(82015),n=t.n(l);function i({children:e,title:s,data:t,fullPage:l,wrapperClasses:i,closePopupDispatch:c,wrapperStyle:o,noContainer:u}){return l?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":s||null,style:o,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,a.jsx)(r.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function c(e,s){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",s?.(t))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},23293:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96725:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},96089:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},11717:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},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"}]])},58150:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71205:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(55511),r=t(79428),l=t(48243);function n({encryptedString:e,encryptionKey:s,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:c,algorithm:d,bufferAllocSize:o}=(0,l.A)({encryptionKey:s});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,a.scryptSync)(n,i,c),p=r.Buffer.alloc(o,0),h=(0,a.createDecipheriv)(d,u,p);try{let s=h.update(e,"hex","utf8");return s+=h.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},71934:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(51779);async function r(...e){let s=(0,a.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let t=await s.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},51779:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(9973),r=t.n(a);function l(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},48243:(e,s,t)=>{t.d(s,{A:()=>a});function a(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,s){try{let s=Number(e);if("number"!=typeof s||isNaN(s))return 0;return Math.round(s)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},9455:(e,s)=>{Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[883,9821,9796,5392],()=>t(35987));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json index bdd5bfa..dc20e7b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js index f1b6ded..5e1b807 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={25316:(e,t,a)=>{a.r(t),a.d(t,{config:()=>w,default:()=>M,getServerSideProps:()=>D,getStaticPaths:()=>A,getStaticProps:()=>q,reportWebVitals:()=>E,routeModule:()=>W,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>C});var s={};a.r(s),a.d(s,{DatabasesContext:()=>P,default:()=>v,getServerSideProps:()=>_});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),u=a(19796),l=a(8732),o=a(82015),c=a.n(o),p=a(25562),x=a(92702),m=a(53926),g=a(66485),b=a(56331),S=a(67274);function h(){let{databases:e,setTargetDatabase:t,user:a}=c().useContext(P);return(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,l.jsxs)("a",{href:`/admin/${a?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Database"})]})]}),(0,l.jsx)(m.A,{user:a})]}),a?.verification_status?.toString().match(/1/)?(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(b.A,{databases:e,setTargetDatabase:t,user:a}),(0,l.jsx)(S.A,{user:a})]}):(0,l.jsx)(g.A,{})]})}var f=a(70355),j=a(71934);let P=c().createContext({});function v({user:e,databases:t}){let a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Databases | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,r]=c().useState();return(0,l.jsx)(P.Provider,{value:{user:e,databases:t,targetDatabase:s,setTargetDatabase:r},children:(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(p.A,{head:a,user:e,children:(0,l.jsx)(h,{})}),(0,l.jsx)(f.A,{targetDatabase:s})]})})}async function _({req:e,res:t,query:a}){let s=await (0,x.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,j.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,databases:r}}}let M=(0,n.M)(s,"default"),q=(0,n.M)(s,"getStaticProps"),A=(0,n.M)(s,"getStaticPaths"),D=(0,n.M)(s,"getServerSideProps"),w=(0,n.M)(s,"config"),E=(0,n.M)(s,"reportWebVitals"),C=(0,n.M)(s,"unstable_getStaticProps"),y=(0,n.M)(s,"unstable_getStaticPaths"),F=(0,n.M)(s,"unstable_getStaticParams"),N=(0,n.M)(s,"unstable_getServerProps"),R=(0,n.M)(s,"unstable_getServerSideProps"),W=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,6160],()=>a(25316));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={25316:(e,t,s)=>{s.r(t),s.d(t,{config:()=>w,default:()=>q,getServerSideProps:()=>D,getStaticPaths:()=>A,getStaticProps:()=>M,reportWebVitals:()=>E,routeModule:()=>W,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>C});var a={};s.r(a),s.d(a,{DatabasesContext:()=>P,default:()=>v,getServerSideProps:()=>_});var r=s(63865),i=s(9455),n=s(30671),d=s(5583),l=s(19796),u=s(8732),o=s(82015),c=s.n(o),p=s(25562),x=s(92702),m=s(53926),g=s(66485),b=s(56331),h=s(67274);function S(){let{databases:e,setTargetDatabase:t,user:s}=c().useContext(P);return(0,u.jsxs)(c().Fragment,{children:[(0,u.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,u.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,u.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,u.jsxs)("a",{href:`/admin/${s?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,u.jsx)("span",{className:"symbol",children:"+"}),(0,u.jsx)("span",{children:"Add Database"})]})]}),(0,u.jsx)(m.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,u.jsxs)(c().Fragment,{children:[(0,u.jsx)(b.A,{databases:e,setTargetDatabase:t,user:s}),(0,u.jsx)(h.A,{user:s})]}):(0,u.jsx)(g.A,{})]})}var j=s(70355),f=s(71934);let P=c().createContext({});function v({user:e,databases:t}){let s=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:"Databases | Datasquirel"}),(0,u.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[a,r]=c().useState();return(0,u.jsx)(P.Provider,{value:{user:e,databases:t,targetDatabase:a,setTargetDatabase:r},children:(0,u.jsxs)(c().Fragment,{children:[(0,u.jsx)(p.A,{head:s,user:e,children:(0,u.jsx)(S,{})}),(0,u.jsx)(j.A,{targetDatabase:a})]})})}async function _({req:e,res:t,query:s}){let a=await (0,x.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,f.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[a.id]);return{props:{user:a,databases:r}}}let q=(0,n.M)(a,"default"),M=(0,n.M)(a,"getStaticProps"),A=(0,n.M)(a,"getStaticPaths"),D=(0,n.M)(a,"getServerSideProps"),w=(0,n.M)(a,"config"),E=(0,n.M)(a,"reportWebVitals"),C=(0,n.M)(a,"unstable_getStaticProps"),y=(0,n.M)(a,"unstable_getStaticPaths"),F=(0,n.M)(a,"unstable_getStaticParams"),N=(0,n.M)(a,"unstable_getServerProps"),R=(0,n.M)(a,"unstable_getServerSideProps"),W=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,5771],()=>s(25316));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json index bdd5bfa..dc20e7b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js index 6f38349..f964d82 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js @@ -1,8 +1,8 @@ -"use strict";(()=>{var e={};e.id=4123,e.ids=[4123],e.modules={47398:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{config:()=>p,default:()=>u,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>b,reportWebVitals:()=>g,routeModule:()=>S,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>h});var r=t(63865),l=t(9455),d=t(30671),n=t(5583),i=t(19796),o=t(65301),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,d.M)(o,"default"),b=(0,d.M)(o,"getStaticProps"),m=(0,d.M)(o,"getStaticPaths"),x=(0,d.M)(o,"getServerSideProps"),p=(0,d.M)(o,"config"),g=(0,d.M)(o,"reportWebVitals"),h=(0,d.M)(o,"unstable_getStaticProps"),_=(0,d.M)(o,"unstable_getStaticPaths"),j=(0,d.M)(o,"unstable_getStaticParams"),f=(0,d.M)(o,"unstable_getServerProps"),N=(0,d.M)(o,"unstable_getServerSideProps"),S=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]",pathname:"/admin/[user_id]/databases/[single]",bundlePath:"",filename:""},components:{App:i.default,Document:n.default},userland:o});s()}catch(e){s(e)}})},70355:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),d=t(46169),n=t(91140),i=t(16757);function o({targetDatabase:e}){let[a,t]=l().useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(i.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}t(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):t(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},57414:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),d=t(46169),n=t(91140),i=t(16757);function o({targetTable:e,database:a}){let[t,r]=l().useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[t&&(0,s.jsx)(i.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"+(t?" pointer-events-none opacity-40":""),onClick:t=>{r(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},97853:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>_});var r=t(8732),l=t(82015),d=t.n(l),n=t(53926),i=t(65301),o=t(91140),c=t(23791),u=t(59023),b=t(88791),m=t(55904),x=t(16757),p=t(63025),g=t(71296),h=e([i,c]);function _(){let{database:e,tables:a,setTargetTable:t,confirmedDelegetedUser:s,query:l,user:h}=d().useContext(i.SingleDatabaseContext),_=s?.delegated;s?.priviledges?.match(/Edit Tables/i),s?.priviledges?.match(/Delete Tables/i);let{active_clone:j,active_clone_parent_db:f,remote_connected:N}=e,[S,A]=d().useState(!1);return(0,r.jsxs)(d().Fragment,{children:[S&&(0,r.jsx)(x.A,{}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{className:"flex-wrap",children:[(0,r.jsx)(u.A,{}),(0,r.jsxs)("div",{className:"flex-wrap gap-y-0",children:[(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[e.db_name.replace(/ database$/i,"")," ","Database"]}),(0,r.jsx)(b.A,{slugText:e.db_slug,outlined:!0}),!_&&(0,r.jsxs)("button",{className:"button small-text outlined gray",onClick:a=>{(0,p.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`,setLoading:A})},children:[(0,r.jsx)(g.A,{}),(0,r.jsx)("span",{children:"Export"})]})]})]}),(0,r.jsx)("div",{className:"flex-wrap flex-col md:flex-row items-stretch md:items-center w-full md:w-auto",children:(0,r.jsxs)(m.A,{children:[!_&&!f&&!N&&(0,r.jsxs)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/tables/add-table`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Table"})]}),(0,r.jsx)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/tables`,className:"button secondary",children:(0,r.jsx)("span",{children:"All Tables"})}),!_&&(0,r.jsx)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/users`,className:"button dark",children:(0,r.jsx)("span",{children:"Users"})}),!_&&(0,r.jsxs)("div",{className:"dropdown-wrapper my-4 xl:my-0",children:[(0,r.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,r.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2 items-stretch",children:(0,r.jsxs)(m.A,{column:!0,children:[(0,r.jsx)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/edit-database`,className:"button outlined gray more-padding",children:(0,r.jsx)("span",{children:"Edit Database"})}),!f&&!N&&(0,r.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,o.PB)("delete-database-confirmation")},children:(0,r.jsx)("span",{children:"Delete Database"})}),!_&&(0,r.jsx)("button",{className:"outlined gray more-padding",onClick:a=>{(0,p.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`,setLoading:A})},children:(0,r.jsx)("span",{children:"Export Database"})}),(0,r.jsxs)("a",{href:`/admin/${h?.id}/users/add-user?db=${e.db_slug}`,className:"button outlined secondary more-padding",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add User"})]})]})})]})]})})]}),(0,r.jsx)(n.A,{confirmedDelegetedUser:l.delegated,user:h})]}),(0,r.jsx)(c.A,{database:e,tables:a,setTargetTable:t,confirmedDelegetedUser:s,query:l,user:h}),(0,r.jsxs)("section",{className:"paper green",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Triggers"}),(0,r.jsx)("hr",{}),(0,r.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]}),(0,r.jsxs)("section",{className:"paper primary",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Stored Proceedures"}),(0,r.jsx)("hr",{}),(0,r.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]})]})}[i,c]=h.then?(await h)():h,s()}catch(e){s(e)}})},88791:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(8732),r=t(96089);function l({slugText:e,smaller:a,outlined:t,full:l}){return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(t?" outlined gray":"light-gray")+(a?" small-text":""),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`${l?"Database Full name":"Database Slug"} "${e}" Copied to Clipboard. Use this as the database name when querying data`)})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(r.A,{}),(0,s.jsx)("span",{children:e})]})}t(82015)},22873:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(71205);async function r({request:e,databaseSlug:a,user:t,query:r}){try{let l=t.id,d=null;if(!r?.delegated)return{dbUserId:l};let n=r.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${n}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((d=JSON.parse(t)).databaseSlug===a)return{dbUserId:l=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:l}}catch(e){return null}}},65301:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{SingleDatabaseContext:()=>_,default:()=>g,getServerSideProps:()=>h});var r=t(8732),l=t(82015),d=t.n(l),n=t(25562),i=t(92702),o=t(70355),c=t(97853),u=t(57414),b=t(55880),m=t(22873),x=t(71934),p=e([c,b]);[c,b]=p.then?(await p)():p;let _=d().createContext({});function g({user:e,database:a,tables:t,query:s,confirmedDelegetedUser:l}){let i=`${a.db_name} Database | Datasquirel`,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,p]=d().useState(null);return(0,r.jsx)(_.Provider,{value:{user:e,database:a,tables:t,targetTable:x,setTargetTable:p,query:s,confirmedDelegetedUser:l},children:(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(n.A,{head:m,user:e,extraHeaderContent:(0,r.jsx)(b.A,{database:a,query:s,confirmedDelegetedUser:l,user:e}),children:(0,r.jsx)(c.A,{})}),!l?.delegated&&(0,r.jsx)(o.A,{targetDatabase:a}),(!l?.delegated||l?.delegated&&l?.priviledges?.match(/Delete Tables/i))&&(0,r.jsx)(u.A,{targetTable:x,database:a})]})})}async function h({req:e,res:a,query:t}){let s=await (0,i.A)(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,m.A)({request:e,user:s,databaseSlug:t.single||[],query:t});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:d}=r,n=await (0,x.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let o=d?await (0,x.A)(` +"use strict";(()=>{var e={};e.id=4123,e.ids=[4123],e.modules={47398:(e,a,s)=>{s.a(e,async(e,t)=>{try{s.r(a),s.d(a,{config:()=>p,default:()=>u,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>b,reportWebVitals:()=>g,routeModule:()=>S,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>h});var r=s(63865),l=s(9455),d=s(30671),n=s(5583),i=s(19796),o=s(65301),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,d.M)(o,"default"),b=(0,d.M)(o,"getStaticProps"),m=(0,d.M)(o,"getStaticPaths"),x=(0,d.M)(o,"getServerSideProps"),p=(0,d.M)(o,"config"),g=(0,d.M)(o,"reportWebVitals"),h=(0,d.M)(o,"unstable_getStaticProps"),_=(0,d.M)(o,"unstable_getStaticPaths"),j=(0,d.M)(o,"unstable_getStaticParams"),f=(0,d.M)(o,"unstable_getServerProps"),N=(0,d.M)(o,"unstable_getServerSideProps"),S=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]",pathname:"/admin/[user_id]/databases/[single]",bundlePath:"",filename:""},components:{App:i.default,Document:n.default},userland:o});t()}catch(e){t(e)}})},70355:(e,a,s)=>{s.d(a,{A:()=>o});var t=s(8732),r=s(82015),l=s.n(r),d=s(46169),n=s(91140),i=s(16757);function o({targetDatabase:e}){let[a,s]=l().useState(!1);return(0,t.jsxs)(n.Ay,{title:"delete-database-confirmation",children:[a&&(0,t.jsx)(i.A,{width:"20px"}),(0,t.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}s(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):s(!1)},children:(0,t.jsx)("span",{children:"Yes"})}),(0,t.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,t.jsx)("span",{children:"Cancel"})})]})]})}},57414:(e,a,s)=>{s.d(a,{A:()=>o});var t=s(8732),r=s(82015),l=s.n(r),d=s(46169),n=s(91140),i=s(16757);function o({targetTable:e,database:a}){let[s,r]=l().useState(!1);return(0,t.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[s&&(0,t.jsx)(i.A,{width:"20px"}),(0,t.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("button",{className:"outlined"+(s?" pointer-events-none opacity-40":""),onClick:s=>{r(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,t.jsx)("span",{children:"Yes"})}),(0,t.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,t.jsx)("span",{children:"Cancel"})})]})]})}},97853:(e,a,s)=>{s.a(e,async(e,t)=>{try{s.d(a,{A:()=>_});var r=s(8732),l=s(82015),d=s.n(l),n=s(53926),i=s(65301),o=s(91140),c=s(23791),u=s(59023),b=s(88791),m=s(55904),x=s(16757),p=s(63025),g=s(71296),h=e([i,c]);function _(){let{database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:t,query:l,user:h}=d().useContext(i.SingleDatabaseContext),_=t?.delegated;t?.priviledges?.match(/Edit Tables/i),t?.priviledges?.match(/Delete Tables/i);let{active_clone:j,active_clone_parent_db:f,remote_connected:N}=e,[S,A]=d().useState(!1);return(0,r.jsxs)(d().Fragment,{children:[S&&(0,r.jsx)(x.A,{}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{className:"flex-wrap",children:[(0,r.jsx)(u.A,{}),(0,r.jsxs)("div",{className:"flex-wrap gap-y-0",children:[(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[e.db_name.replace(/ database$/i,"")," ","Database"]}),(0,r.jsx)(b.A,{slugText:e.db_slug,outlined:!0}),!_&&(0,r.jsxs)("button",{className:"button small-text outlined gray",onClick:a=>{(0,p.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`,setLoading:A})},children:[(0,r.jsx)(g.A,{}),(0,r.jsx)("span",{children:"Export"})]})]})]}),(0,r.jsx)("div",{className:"flex-wrap flex-col md:flex-row items-stretch md:items-center w-full md:w-auto",children:(0,r.jsxs)(m.A,{children:[!_&&!f&&!N&&(0,r.jsxs)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/tables/add-table`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Table"})]}),(0,r.jsx)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/tables`,className:"button secondary",children:(0,r.jsx)("span",{children:"All Tables"})}),!_&&(0,r.jsx)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/users`,className:"button dark",children:(0,r.jsx)("span",{children:"Users"})}),!_&&(0,r.jsxs)("div",{className:"dropdown-wrapper my-4 xl:my-0",children:[(0,r.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,r.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2 items-stretch",children:(0,r.jsxs)(m.A,{column:!0,children:[(0,r.jsx)("a",{href:`/admin/${h?.id}/databases/${e.db_slug}/edit-database`,className:"button outlined gray more-padding",children:(0,r.jsx)("span",{children:"Edit Database"})}),!f&&!N&&(0,r.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,o.PB)("delete-database-confirmation")},children:(0,r.jsx)("span",{children:"Delete Database"})}),!_&&(0,r.jsx)("button",{className:"outlined gray more-padding",onClick:a=>{(0,p.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`,setLoading:A})},children:(0,r.jsx)("span",{children:"Export Database"})}),(0,r.jsxs)("a",{href:`/admin/${h?.id}/users/add-user?db=${e.db_slug}`,className:"button outlined secondary more-padding",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add User"})]})]})})]})]})})]}),(0,r.jsx)(n.A,{confirmedDelegetedUser:l.delegated,user:h})]}),(0,r.jsx)(c.A,{database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:t,query:l,user:h}),(0,r.jsxs)("section",{className:"paper green",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Triggers"}),(0,r.jsx)("hr",{}),(0,r.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]}),(0,r.jsxs)("section",{className:"paper primary",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Stored Proceedures"}),(0,r.jsx)("hr",{}),(0,r.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]})]})}[i,c]=h.then?(await h)():h,t()}catch(e){t(e)}})},88791:(e,a,s)=>{s.d(a,{A:()=>l});var t=s(8732),r=s(96089);function l({slugText:e,smaller:a,outlined:s,full:l}){return(0,t.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(s?" outlined gray":"light-gray")+(a?" small-text":""),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`${l?"Database Full name":"Database Slug"} "${e}" Copied to Clipboard. Use this as the database name when querying data`)})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,t.jsx)(r.A,{}),(0,t.jsx)("span",{children:e})]})}s(82015)},22873:(e,a,s)=>{s.d(a,{A:()=>r});var t=s(71205);async function r({request:e,databaseSlug:a,user:s,query:r}){try{let l=s.id,d=null;if(!r?.delegated)return{dbUserId:l};let n=r.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${n}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let s=(0,t.A)({encryptedString:e.cookies[o]});if(!s)throw Error("Invalid Token");if((d=JSON.parse(s)).databaseSlug===a)return{dbUserId:l=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:l}}catch(e){return null}}},65301:(e,a,s)=>{s.a(e,async(e,t)=>{try{s.r(a),s.d(a,{SingleDatabaseContext:()=>_,default:()=>g,getServerSideProps:()=>h});var r=s(8732),l=s(82015),d=s.n(l),n=s(25562),i=s(92702),o=s(70355),c=s(97853),u=s(57414),b=s(55880),m=s(22873),x=s(71934),p=e([c,b]);[c,b]=p.then?(await p)():p;let _=d().createContext({});function g({user:e,database:a,tables:s,query:t,confirmedDelegetedUser:l}){let i=`${a.db_name} Database | Datasquirel`,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,p]=d().useState(null);return(0,r.jsx)(_.Provider,{value:{user:e,database:a,tables:s,targetTable:x,setTargetTable:p,query:t,confirmedDelegetedUser:l},children:(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(n.A,{head:m,user:e,extraHeaderContent:(0,r.jsx)(b.A,{database:a,query:t,confirmedDelegetedUser:l,user:e}),children:(0,r.jsx)(c.A,{})}),!l?.delegated&&(0,r.jsx)(o.A,{targetDatabase:a}),(!l?.delegated||l?.delegated&&l?.priviledges?.match(/Delete Tables/i))&&(0,r.jsx)(u.A,{targetTable:x,database:a})]})})}async function h({req:e,res:a,query:s}){let t=await (0,i.A)(e,a);if(!t?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,m.A)({request:e,user:t,databaseSlug:s.single||[],query:s});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:d}=r,n=await (0,x.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${s.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${t?.id}/databases`,permanent:!1}};let o=d?await (0,x.A)(` SELECT delegated_user_tables.database,delegated_user_tables.table,user_database_tables.* FROM delegated_user_tables INNER JOIN user_database_tables ON delegated_user_tables.root_user_id=user_database_tables.user_id AND delegated_user_tables.table=user_database_tables.table_slug AND delegated_user_tables.database=user_database_tables.db_slug WHERE - delegated_user_tables.delegated_user_id='${s.id}' AND delegated_user_tables.root_user_id='${d}' AND delegated_user_tables.database='${n[0].db_slug}' - `):await (0,x.A)(`SELECT * FROM user_database_tables WHERE user_id='${s.id}' AND db_id='${n[0].id}'`);return{props:{user:s,database:n[0]?n[0]:null,tables:o,query:t,confirmedDelegetedUser:r}}}s()}catch(e){s(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[883,9821,6521,9796,5392,3634,3791],()=>t(47398));module.exports=s})(); \ No newline at end of file + delegated_user_tables.delegated_user_id='${t.id}' AND delegated_user_tables.root_user_id='${d}' AND delegated_user_tables.database='${n[0].db_slug}' + `):await (0,x.A)(`SELECT * FROM user_database_tables WHERE user_id='${t.id}' AND db_id='${n[0].id}'`);return{props:{user:t,database:n[0]?n[0]:null,tables:o,query:s,confirmedDelegetedUser:r}}}t()}catch(e){t(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../webpack-runtime.js");a.C(e);var s=e=>a(a.s=e),t=a.X(0,[883,9821,6521,9796,5392,7769,6247],()=>s(47398));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json index f8d36a3..d47a93e 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../node_modules/tailwind-merge/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../node_modules/tailwind-merge/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-runtime.js"]} \ 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 11a1554..6f5afe8 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 @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7552,e.ids=[7552],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},2083:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>y,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>h,reportWebVitals:()=>x,routeModule:()=>S,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),o=a(19796),c=a(99867),d=e([c]);c=(d.then?(await d)():d)[0];let u=(0,l.M)(c,"default"),h=(0,l.M)(c,"getStaticProps"),m=(0,l.M)(c,"getStaticPaths"),p=(0,l.M)(c,"getServerSideProps"),y=(0,l.M)(c,"config"),x=(0,l.M)(c,"reportWebVitals"),f=(0,l.M)(c,"unstable_getStaticProps"),g=(0,l.M)(c,"unstable_getStaticPaths"),b=(0,l.M)(c,"unstable_getStaticParams"),A=(0,l.M)(c,"unstable_getServerProps"),v=(0,l.M)(c,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/connect",pathname:"/admin/[user_id]/databases/[single]/connect",bundlePath:"",filename:""},components:{App:o.default,Document:i.default},userland:c});r()}catch(e){r(e)}})},2057:(e,t,a)=>{a.d(t,{A:()=>u});var r=a(8732),s=a(82015),n=a.n(s),l=a(83155),i=a(16757),o=a(1346),c=a(46169),d=a(80830);function u({database:e,targetDbSchema:t,user:a}){let[s,d]=n().useState(!1),[u,m]=n().useState(!1),[p,y]=n().useState("pull"),[x,f]=n().useState(null);return s&&x?(0,r.jsx)(h,{payload:x,setConnectPayload:f,setIsValid:d,user:a}):(0,r.jsxs)("form",{onSubmit:a=>{(function({e,setLoading:t,database:a,type:r,targetDbSchema:s,setIsValid:n,setConnectPayload:l}){e.preventDefault();let i=e.target;t(!0);let o={url:i["remote-address"].value,key:i["remote-key"].value,database:a,dbSchema:s,type:r};(0,c.A)("/api/connect/verify",{method:"POST",body:o},!0).then(e=>{e.success?(n(!0),l({...o,remoteDbs:e.payload})):(console.log(e),setTimeout(()=>{t(!1)},2e3))}).finally(()=>{setTimeout(()=>{t(!1)},2e3)})})({e:a,setLoading:m,database:e,type:p,targetDbSchema:t,setIsValid:d,setConnectPayload:f})},className:"w-full flex flex-col items-start justify-start gap-4 static",children:[u&&(0,r.jsx)(i.A,{}),p?.match(/pull/)?(0,r.jsx)("div",{className:"info warning",children:"NOTE: This will override your current Database Schema"}):(0,r.jsx)("div",{className:"info green",children:"NOTE: The remote database will be updated with this Database Info"}),(0,r.jsx)("span",{children:"This Feature links this current database to a remote database schema"}),(0,r.jsxs)("div",{className:"flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded",children:[(0,r.jsx)("span",{className:"font-bold",children:"Select the connection type"}),(0,r.jsx)(o.A,{radioValues:[{title:"Pull",payload:"pull",default:!0},{title:"Push",payload:"push",default:!1}],flexRow:!0,onChangeHandler:e=>{y(e.target.value)},name:"type-radio"}),(0,r.jsxs)("div",{children:[p.match(/pull/i)&&(0,r.jsx)("span",{children:"A pull connection imposes the remote database on your current database"}),p.match(/push/i)&&(0,r.jsx)("span",{children:"A push connection imposes your current database to the remote"})]})]}),(0,r.jsx)(l.A,{placeholder:"Eg. https://domain.com",title:"Remote Origin Address",name:"remote-address",required:!0}),(0,r.jsx)(l.A,{placeholder:"Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC",title:"Remote API key (Full Access)",name:"remote-key",required:!0}),(0,r.jsx)("button",{className:"w-full",children:"Verify Remote"})]})}function h({payload:e,setConnectPayload:t,setIsValid:a,user:s}){let[l,o]=n().useState(!1);if(!e?.remoteDbs?.[0])return(0,r.jsx)("span",{children:"No Databases Available on this Remote server."});let u=e.remoteDbs;if(!u?.[0])return(0,r.jsx)("span",{children:"The only Database Available here is this current Database"});let[h,m]=n().useState(u[0]);return(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault(),window.confirm("Connect these Databases?")&&(o(!0),(0,c.A)("/api/connect/handshake",{method:"POST",body:{...e,targetDb:h}},!0).then(t=>{t.success?window.location.pathname=`/admin/${s?.id}/databases/${e.database.db_slug}`:(console.log(t),alert(t?.msg||"Something Went Wrong"))}).finally(()=>{setTimeout(()=>{o(!1)},1e3)}))},className:"w-full gap-4 flex flex-col items-start justify-start",children:[l&&(0,r.jsx)(i.A,{}),(0,r.jsxs)("h2",{className:"text-xl font-normal",children:["Select Database from"," ",(0,r.jsx)("b",{className:"text-black dark:text-white",children:e.url})," ","Remote Server"]}),(0,r.jsx)(d.A,{selectOptions:u.map(e=>({payload:e.dbFullName,title:e.dbName})),onChangeHandler:e=>{let t=e.target.value;if(t){let e=u.find(e=>e.dbFullName==t);e?m(e):alert("Failed to Select Target Database. Please reload the page and try again.")}}}),(0,r.jsxs)("span",{children:["Connection type:"," ",(0,r.jsx)("b",{className:"info inline small "+(e.type?.match(/pull/i)?"warning":"green"),children:e.type})]}),(0,r.jsx)("button",{className:"w-full",children:"Connect Database"}),(0,r.jsx)("div",{className:"button outlined gray w-full",onClick:e=>{a(!1),t(null)},children:"Reset"})]})}},88819:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>h});var s=a(8732),n=a(82015),l=a.n(n),i=a(59023),o=a(53926);a(46169);var c=a(99867),d=a(2057),u=e([c]);function h(){let{database:e,user:t,targetDbSchema:a,query:r}=l().useContext(c.DatabaseConnectContext);if(!t)return null;try{return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[e?.db_name," Database Connect"]})})]}),(0,s.jsx)(o.A,{user:t})]}),(0,s.jsx)("div",{className:"paper w-full",children:(0,s.jsxs)("div",{className:"flex max-w-5xl w-full flex-col items-start gap-4",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Connect External Database Schema"}),(0,s.jsx)(d.A,{database:e,targetDbSchema:a,user:t})]})})]})}catch(a){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e?.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Connect"})]})]}),(0,s.jsx)(o.A,{user:t})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Db connect unavailable at this time."})})]})}}c=(u.then?(await u)():u)[0],r()}catch(e){r(e)}})},1346:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({radioValues:e,name:t,onChangeHandler:a,setAlert:s,flexRow:n,labelColor:l,baseText:i,smallText:o,className:c}){try{return(0,r.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(n?"":" flex-col ")+(c||""),children:e.map((e,n)=>{let{payload:c,title:d,jsx:u}=e,h=!1===c?c:c||d||null;return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("input",{className:"m-0"+(i?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+h,onChange:t=>{s&&s(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof h?h:void 0}),u||(0,r.jsx)("label",{htmlFor:t+"_"+h,className:"text-lg m-0 "+(l||"text-slate-800")+(i?" text-base":o?" text-sm":" text-lg"),children:d})]},n+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,r.jsx)("div",{children:"Form Radio Error"})}}a(82015)},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:o,info:c,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:o||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:c})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},72272:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(77047),s=a(29021),n=a.n(s),l=a(33873),i=a.n(l);function o({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(t,"utf-8"))}catch(e){return(0,r.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(29021),s=a.n(r);async function n({user:e,message:t,component:a,noMail:r,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],a=n.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7552,e.ids=[7552],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},2083:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>y,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>h,reportWebVitals:()=>f,routeModule:()=>S,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>x});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),o=a(19796),d=a(99867),c=e([d]);d=(c.then?(await c)():c)[0];let u=(0,l.M)(d,"default"),h=(0,l.M)(d,"getStaticProps"),p=(0,l.M)(d,"getStaticPaths"),m=(0,l.M)(d,"getServerSideProps"),y=(0,l.M)(d,"config"),f=(0,l.M)(d,"reportWebVitals"),x=(0,l.M)(d,"unstable_getStaticProps"),g=(0,l.M)(d,"unstable_getStaticPaths"),b=(0,l.M)(d,"unstable_getStaticParams"),v=(0,l.M)(d,"unstable_getServerProps"),A=(0,l.M)(d,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/connect",pathname:"/admin/[user_id]/databases/[single]/connect",bundlePath:"",filename:""},components:{App:o.default,Document:i.default},userland:d});r()}catch(e){r(e)}})},2057:(e,t,a)=>{a.d(t,{A:()=>u});var r=a(8732),s=a(82015),n=a.n(s),l=a(83155),i=a(16757),o=a(1346),d=a(46169),c=a(80830);function u({database:e,targetDbSchema:t,user:a}){let[s,c]=n().useState(!1),[u,p]=n().useState(!1),[m,y]=n().useState("pull"),[f,x]=n().useState(null);return s&&f?(0,r.jsx)(h,{payload:f,setConnectPayload:x,setIsValid:c,user:a}):(0,r.jsxs)("form",{onSubmit:a=>{(function({e,setLoading:t,database:a,type:r,targetDbSchema:s,setIsValid:n,setConnectPayload:l}){e.preventDefault();let i=e.target;t(!0);let o={url:i["remote-address"].value,key:i["remote-key"].value,database:a,dbSchema:s,type:r};(0,d.A)("/api/connect/verify",{method:"POST",body:o},!0).then(e=>{e.success?(n(!0),l({...o,remoteDbs:e.payload})):(console.log(e),setTimeout(()=>{t(!1)},2e3))}).finally(()=>{setTimeout(()=>{t(!1)},2e3)})})({e:a,setLoading:p,database:e,type:m,targetDbSchema:t,setIsValid:c,setConnectPayload:x})},className:"w-full flex flex-col items-start justify-start gap-4 static",children:[u&&(0,r.jsx)(i.A,{}),m?.match(/pull/)?(0,r.jsx)("div",{className:"info warning",children:"NOTE: This will override your current Database Schema"}):(0,r.jsx)("div",{className:"info green",children:"NOTE: The remote database will be updated with this Database Info"}),(0,r.jsx)("span",{children:"This Feature links this current database to a remote database schema"}),(0,r.jsxs)("div",{className:"flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded",children:[(0,r.jsx)("span",{className:"font-bold",children:"Select the connection type"}),(0,r.jsx)(o.A,{radioValues:[{title:"Pull",payload:"pull",default:!0},{title:"Push",payload:"push",default:!1}],flexRow:!0,onChangeHandler:e=>{y(e.target.value)},name:"type-radio"}),(0,r.jsxs)("div",{children:[m.match(/pull/i)&&(0,r.jsx)("span",{children:"A pull connection imposes the remote database on your current database"}),m.match(/push/i)&&(0,r.jsx)("span",{children:"A push connection imposes your current database to the remote"})]})]}),(0,r.jsx)(l.A,{placeholder:"Eg. https://domain.com",title:"Remote Origin Address",name:"remote-address",required:!0}),(0,r.jsx)(l.A,{placeholder:"Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC",title:"Remote API key (Full Access)",name:"remote-key",required:!0}),(0,r.jsx)("button",{className:"w-full",children:"Verify Remote"})]})}function h({payload:e,setConnectPayload:t,setIsValid:a,user:s}){let[l,o]=n().useState(!1);if(!e?.remoteDbs?.[0])return(0,r.jsx)("span",{children:"No Databases Available on this Remote server."});let u=e.remoteDbs;if(!u?.[0])return(0,r.jsx)("span",{children:"The only Database Available here is this current Database"});let[h,p]=n().useState(u[0]);return(0,r.jsxs)("form",{onSubmit:t=>{t.preventDefault(),window.confirm("Connect these Databases?")&&(o(!0),(0,d.A)("/api/connect/handshake",{method:"POST",body:{...e,targetDb:h}},!0).then(t=>{t.success?window.location.pathname=`/admin/${s?.id}/databases/${e.database.db_slug}`:(console.log(t),alert(t?.msg||"Something Went Wrong"))}).finally(()=>{setTimeout(()=>{o(!1)},1e3)}))},className:"w-full gap-4 flex flex-col items-start justify-start",children:[l&&(0,r.jsx)(i.A,{}),(0,r.jsxs)("h2",{className:"text-xl font-normal",children:["Select Database from"," ",(0,r.jsx)("b",{className:"text-black dark:text-white",children:e.url})," ","Remote Server"]}),(0,r.jsx)(c.A,{selectOptions:u.map(e=>({payload:e.dbFullName,title:e.dbName})),onChangeHandler:e=>{let t=e.target.value;if(t){let e=u.find(e=>e.dbFullName==t);e?p(e):alert("Failed to Select Target Database. Please reload the page and try again.")}}}),(0,r.jsxs)("span",{children:["Connection type:"," ",(0,r.jsx)("b",{className:"info inline small "+(e.type?.match(/pull/i)?"warning":"green"),children:e.type})]}),(0,r.jsx)("button",{className:"w-full",children:"Connect Database"}),(0,r.jsx)("div",{className:"button outlined gray w-full",onClick:e=>{a(!1),t(null)},children:"Reset"})]})}},88819:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>h});var s=a(8732),n=a(82015),l=a.n(n),i=a(59023),o=a(53926);a(46169);var d=a(99867),c=a(2057),u=e([d]);function h(){let{database:e,user:t,targetDbSchema:a,query:r}=l().useContext(d.DatabaseConnectContext);if(!t)return null;try{return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[e?.db_name," Database Connect"]})})]}),(0,s.jsx)(o.A,{user:t})]}),(0,s.jsx)("div",{className:"paper w-full",children:(0,s.jsxs)("div",{className:"flex max-w-5xl w-full flex-col items-start gap-4",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Connect External Database Schema"}),(0,s.jsx)(c.A,{database:e,targetDbSchema:a,user:t})]})})]})}catch(a){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e?.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Connect"})]})]}),(0,s.jsx)(o.A,{user:t})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Db connect unavailable at this time."})})]})}}d=(u.then?(await u)():u)[0],r()}catch(e){r(e)}})},1346:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({radioValues:e,name:t,onChangeHandler:a,setAlert:s,flexRow:n,labelColor:l,baseText:i,smallText:o,className:d}){try{return(0,r.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(n?"":" flex-col ")+(d||""),children:e.map((e,n)=>{let{payload:d,title:c,jsx:u}=e,h=!1===d?d:d||c||null;return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("input",{className:"m-0"+(i?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+h,onChange:t=>{s&&s(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof h?h:void 0}),u||(0,r.jsx)("label",{htmlFor:t+"_"+h,className:"text-lg m-0 "+(l||"text-slate-800")+(i?" text-base":o?" text-sm":" text-lg"),children:c})]},n+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,r.jsx)("div",{children:"Form Radio Error"})}}a(82015)},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:o,info:d,id:c}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:c||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:o||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},72272:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(77047),s=a(29021),n=a.n(s),l=a(33873),i=a.n(l);function o({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(t,"utf-8"))}catch(e){return(0,r.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(29021),s=a.n(r);async function n({user:e,message:t,component:a,noMail:r,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],a=n.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${l.toDateString()} -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>d});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let a=[];try{for(let n=0;n",t.message),e}}var l=a(77047),i=a(71934),o=a(43651),c=a(16175);async function d({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s}){let d;let u=!!s||!!a?.match(/^datasquirel$/),h=s?c.A:u?i.A:o.A;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await h(e,t):await h({paradigm:"Full Access",queryString:e,queryValues:t}):u?await h(e):await h({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,l.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&r)try{let e=d;return await n({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},43651:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rn})},16175:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(9973),s=a.n(r),n=a(29021),l=a.n(n);async function i(...e){let t=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!l().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let 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}}}},99867:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{DatabaseConnectContext:()=>f,default:()=>y,getServerSideProps:()=>x});var s=a(8732),n=a(82015),l=a.n(n),i=a(25562),o=a(92702),c=a(55880),d=a(88819),u=a(72272),h=a(71934),m=a(52854),p=e([c,d]);[c,d]=p.then?(await p)():p;let f=l().createContext({});function y({user:e,database:t,query:a,targetDbSchema:r}){let n=(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"})]});return(0,s.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,s.jsx)(c.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,s.jsx)(f.Provider,{value:{user:e,database:t,targetDbSchema:r,query:a},children:(0,s.jsx)(d.A,{})})})}async function x({req:e,res:t,query:a}){let r=await (0,o.A)(e,t);if(!r?.logged_in_status||!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,h.A)(`SELECT * FROM user_databases WHERE user_id='${r.id}' AND db_slug='${a.single}'`);if(!s?.[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};if(1==Number(s[0].remote_connected))return{redirect:{destination:`/admin/${r?.id}/databases/${a.single}`,permanent:!1}};await (0,m.A)({queryString:`SHOW TABLES FROM ${s[0].db_full_name}`});let n=(0,u.A)({userId:String(r.id)});if(!n?.[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let l=n.find(e=>e.dbFullName==s[0].db_full_name);return l?{props:{user:r,database:s[0],query:a,targetDbSchema:l}}:{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,3155],()=>a(2083));module.exports=r})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>d});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let a=[];try{for(let n=0;n",t.message),e}}var l=a(77047),i=a(51779),o=a(84640);async function d({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s,debug:d}){let c=(0,i.A)({fa:!0});s&&(c=(0,i.A)({local:!0})),a?.match(/^datasquirel$/)&&(c=(0,i.A)()),d&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let u=await (0,o.A)(c,e,t);if(d&&console.log("varDatabaseDbHandler:results:",u),u&&r)try{return await n({unparsedResults:u,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},71205:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(55511),s=a(79428),n=a(48243);function l({encryptedString:e,encryptionKey:t,encryptionSalt:a}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:l,salt:i,keyLen:o,algorithm:d,bufferAllocSize:c}=(0,n.A)({encryptionKey:t});if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,r.scryptSync)(l,i,o),h=s.Buffer.alloc(c,0),p=(0,r.createDecipheriv)(d,u,h);try{let t=p.update(e,"hex","utf8");return t+=p.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},84640:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rr})},48243:(e,t,a)=>{a.d(t,{A:()=>r});function r(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},99867:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{DatabaseConnectContext:()=>x,default:()=>y,getServerSideProps:()=>f});var s=a(8732),n=a(82015),l=a.n(n),i=a(25562),o=a(92702),d=a(55880),c=a(88819),u=a(72272),h=a(71934),p=a(52854),m=e([d,c]);[d,c]=m.then?(await m)():m;let x=l().createContext({});function y({user:e,database:t,query:a,targetDbSchema:r}){let n=(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"})]});return(0,s.jsx)(i.A,{head:n,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,s.jsx)(x.Provider,{value:{user:e,database:t,targetDbSchema:r,query:a},children:(0,s.jsx)(c.A,{})})})}async function f({req:e,res:t,query:a}){let r=await (0,o.A)(e,t);if(!r?.logged_in_status||!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,h.A)(`SELECT * FROM user_databases WHERE user_id='${r.id}' AND db_slug='${a.single}'`);if(!s?.[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};if(1==Number(s[0].remote_connected))return{redirect:{destination:`/admin/${r?.id}/databases/${a.single}`,permanent:!1}};await (0,p.A)({queryString:`SHOW TABLES FROM ${s[0].db_full_name}`});let n=(0,u.A)({userId:String(r.id)});if(!n?.[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let l=n.find(e=>e.dbFullName==s[0].db_full_name);return l?{props:{user:r,database:s[0],query:a,targetDbSchema:l}}:{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,7769,3155],()=>a(2083));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json index 0815633..d4406f4 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js index 077cef3..1ae5a12 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4076,e.ids=[4076],e.modules={27579:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>m,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>g,routeModule:()=>A,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>b});var r=a(63865),i=a(9455),d=a(30671),n=a(5583),l=a(19796),c=a(38471),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,d.M)(c,"default"),p=(0,d.M)(c,"getStaticProps"),x=(0,d.M)(c,"getStaticPaths"),h=(0,d.M)(c,"getServerSideProps"),m=(0,d.M)(c,"config"),g=(0,d.M)(c,"reportWebVitals"),b=(0,d.M)(c,"unstable_getStaticProps"),j=(0,d.M)(c,"unstable_getStaticPaths"),y=(0,d.M)(c,"unstable_getStaticParams"),f=(0,d.M)(c,"unstable_getServerProps"),v=(0,d.M)(c,"unstable_getServerSideProps"),A=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/edit-database",pathname:"/admin/[user_id]/databases/[single]/edit-database",bundlePath:"",filename:""},components:{App:l.default,Document:n.default},userland:c});s()}catch(e){s(e)}})},93340:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>x});var r=a(8732),i=a(82015),d=a.n(i),n=a(38471),l=a(59023),c=a(53926),o=a(82581),u=a(537),p=e([n,o]);function x(){let{database:e,user:t}=d().useContext(n.EditDatabaseContext);return(0,r.jsxs)(d().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)(l.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:e?.db_name})]})]}),(0,r.jsx)(c.A,{user:t})]}),e?.active_clone&&t?(0,r.jsx)(u.A,{database:e,user:t}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(o.A,{})]})}[n,o]=p.then?(await p)():p,s()}catch(e){s(e)}})},82581:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>p});var r=a(8732),i=a(82015),d=a.n(i),n=a(16757),l=a(38471),c=a(61347),o=a(89088),u=e([l]);function p(){let{user:e,dbImage:t,setDbImage:a,database:s}=d().useContext(l.EditDatabaseContext),[i,u]=d().useState(!1);return d().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:[i&&(0,r.jsx)(n.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"}),e&&t?(0,r.jsx)(c.A,{user:e,dbImage:t,setDbImage:a,database:s,setLoading:u}):(0,r.jsx)("span",{children:"No User and Database Image present"})]}),e&&t&&a?(0,r.jsx)(o.A,{user:e,dbImage:t,setDbImage:a,database:s}):(0,r.jsx)("span",{children:"Database Image could not be rendered"})]})})}l=(u.then?(await u)():u)[0],s()}catch(e){s(e)}})},537:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r({database:e,user:t}){let a=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),r=`/admin/${t?.id}/databases/${a}`;return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:r,target:"_blank",className:"query-url",children:a})})]})})}a(82015)},96089:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},38471:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{EditDatabaseContext:()=>g,default:()=>h,getServerSideProps:()=>m});var r=a(8732),i=a(82015),d=a.n(i),n=a(25562),l=a(92702),c=a(37195),o=a(93340),u=a(55880),p=a(71934),x=e([o,u]);[o,u]=x.then?(await x)():x;let g=d().createContext({});function h({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"})]}),[i,l]=d().useState(t.db_image);return(0,r.jsx)(g.Provider,{value:{user:e,database:t,dbImage:i,setDbImage:l},children:(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(n.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(u.A,{database:t,query:a,user:e}),children:(0,r.jsx)(o.A,{})}),(0,r.jsx)(c.A,{setDbImage:l})]})})}async function m({req:e,res:t,query:a}){let s=await (0,l.A)(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,p.A)(`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)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,3634,1579,194],()=>a(27579));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4076,e.ids=[4076],e.modules={27579:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>m,default:()=>o,getServerSideProps:()=>h,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>g,routeModule:()=>A,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>b});var r=a(63865),d=a(9455),i=a(30671),n=a(5583),l=a(19796),c=a(38471),u=e([c]);c=(u.then?(await u)():u)[0];let o=(0,i.M)(c,"default"),p=(0,i.M)(c,"getStaticProps"),x=(0,i.M)(c,"getStaticPaths"),h=(0,i.M)(c,"getServerSideProps"),m=(0,i.M)(c,"config"),g=(0,i.M)(c,"reportWebVitals"),b=(0,i.M)(c,"unstable_getStaticProps"),j=(0,i.M)(c,"unstable_getStaticPaths"),y=(0,i.M)(c,"unstable_getStaticParams"),v=(0,i.M)(c,"unstable_getServerProps"),f=(0,i.M)(c,"unstable_getServerSideProps"),A=new r.PagesRouteModule({definition:{kind:d.A.PAGES,page:"/admin/[user_id]/databases/[single]/edit-database",pathname:"/admin/[user_id]/databases/[single]/edit-database",bundlePath:"",filename:""},components:{App:l.default,Document:n.default},userland:c});s()}catch(e){s(e)}})},93340:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>x});var r=a(8732),d=a(82015),i=a.n(d),n=a(38471),l=a(59023),c=a(53926),u=a(82581),o=a(537),p=e([n,u]);function x(){let{database:e,user:t}=i().useContext(n.EditDatabaseContext);return(0,r.jsxs)(i().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)(l.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:e?.db_name})]})]}),(0,r.jsx)(c.A,{user:t})]}),e?.active_clone&&t?(0,r.jsx)(o.A,{database:e,user:t}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(u.A,{})]})}[n,u]=p.then?(await p)():p,s()}catch(e){s(e)}})},82581:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>p});var r=a(8732),d=a(82015),i=a.n(d),n=a(16757),l=a(38471),c=a(61347),u=a(89088),o=e([l]);function p(){let{user:e,dbImage:t,setDbImage:a,database:s}=i().useContext(l.EditDatabaseContext),[d,o]=i().useState(!1);return i().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:[d&&(0,r.jsx)(n.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"}),e&&t?(0,r.jsx)(c.A,{user:e,dbImage:t,setDbImage:a,database:s,setLoading:o}):(0,r.jsx)("span",{children:"No User and Database Image present"})]}),e&&t&&a?(0,r.jsx)(u.A,{user:e,dbImage:t,setDbImage:a,database:s}):(0,r.jsx)("span",{children:"Database Image could not be rendered"})]})})}l=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},537:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r({database:e,user:t}){let a=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),r=`/admin/${t?.id}/databases/${a}`;return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:r,target:"_blank",className:"query-url",children:a})})]})})}a(82015)},96089:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},38471:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{EditDatabaseContext:()=>g,default:()=>h,getServerSideProps:()=>m});var r=a(8732),d=a(82015),i=a.n(d),n=a(25562),l=a(92702),c=a(37195),u=a(93340),o=a(55880),p=a(71934),x=e([u,o]);[u,o]=x.then?(await x)():x;let g=i().createContext({});function h({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"})]}),[d,l]=i().useState(t.db_image);return(0,r.jsx)(g.Provider,{value:{user:e,database:t,dbImage:d,setDbImage:l},children:(0,r.jsxs)(i().Fragment,{children:[(0,r.jsx)(n.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(o.A,{database:t,query:a,user:e}),children:(0,r.jsx)(u.A,{})}),(0,r.jsx)(c.A,{setDbImage:l})]})})}async function m({req:e,res:t,query:a}){let s=await (0,l.A)(e,t);if(!s?.logged_in_status||!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,p.A)(`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)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},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,9796,5392,7769,1579,194],()=>a(27579));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json index f7e3f70..6233410 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ 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 5d1dbe2..287feb1 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8295,e.ids=[8295],e.modules={7463:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>f,routeModule:()=>v,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>x});var s=r(63865),n=r(9455),l=r(30671),i=r(5583),c=r(19796),o=r(50436),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,l.M)(o,"default"),m=(0,l.M)(o,"getStaticProps"),p=(0,l.M)(o,"getStaticPaths"),h=(0,l.M)(o,"getServerSideProps"),g=(0,l.M)(o,"config"),f=(0,l.M)(o,"reportWebVitals"),x=(0,l.M)(o,"unstable_getStaticProps"),b=(0,l.M)(o,"unstable_getStaticPaths"),y=(0,l.M)(o,"unstable_getStaticParams"),S=(0,l.M)(o,"unstable_getServerProps"),j=(0,l.M)(o,"unstable_getServerSideProps"),v=new s.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:o});a()}catch(e){a(e)}})},44387:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>x});var s=r(8732),n=r(82015),l=r.n(n),i=r(59023),c=r(53926),o=r(50436),d=r(80830),u=r(97412);r(46169);var m=r(84894),p=r(537),h=r(23791),g=r(60374),f=e([o,u,m,h]);function x(){let{database:e,dbSchemaData:t,tables:r,user:a}=l().useContext(o.DatabaseSchemaContext);try{if(!t)return(0,s.jsx)("span",{children:"No Database Schema Found!"});let r=t.filter(t=>t.dbFullName===e?.db_full_name)[0],[n,o]=l().useState(r.tables),[f,x]=l().useState(null),[b,y]=l().useState(r);if(!e)return(0,s.jsx)("span",{children:"No Database Record Found"});return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(c.A,{user:a})]}),e.active_clone&&a?(0,s.jsx)(p.A,{database:e,user:a}):(0,s.jsx)(s.Fragment,{}),e.remote_connected?(0,s.jsx)(h.p,{database:e}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsx)("div",{children:n&&n[0]&&(0,s.jsx)(d.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...n.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?x(null):x(e.target.value)}})})]}),(0,s.jsx)(m.A,{content:g.A.stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,s.jsx)(u.A,{})]})}catch(t){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e?.db_name||null}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(c.A,{user:a})]}),(0,s.jsx)("section",{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}[o,u,m,h]=f.then?(await f)():f,a()}catch(e){a(e)}})},97412:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>u});var s=r(8732),n=r(82015),l=r.n(n),i=r(59023),c=r(53926),o=r(50436);r(46169);var d=e([o]);function u(e){let{database:t,dbSchemaData:r,tables:a,user:n}=l().useContext(o.DatabaseSchemaContext);try{return(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),a&&a[0]&&a.map((e,t)=>(0,s.jsx)("div",{className:"card light-gray w-full",children:(0,s.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(c.A,{user:n})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}o=(d.then?(await d)():d)[0],a()}catch(e){a(e)}})},6789:(e,t,r)=>{r.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:r,language:a="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{r?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==a)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...o}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(8732),s=r(58526);function n({selectOptions:e,name:t,onChangeHandler:r,required:n,setAlert:l,title:i,defaultValue:c,info:o,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),r=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!r.classList.contains("hidden")){r.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&r.classList.contains("hidden"))){if(!t){r.classList.add("hidden");return}if(r.classList.contains("hidden")){r.classList.remove("hidden");return}r.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:[i&&(0,a.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:r,title:s}=e;return(0,a.jsx)("option",{value:r,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:u,onMouseLeave:u,onClick:u,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"})}}r(82015)},84894:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>o});var s=r(8732);r(46169);var n=r(82015),l=r.n(n);r(6789);var i=r(75979),c=e([i]);function o({editorRef:e,content:t,readOnly:r,language:a="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,r]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},72272:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(77047),s=r(29021),n=r.n(s),l=r(33873),i=r.n(l);function c({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(t,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(29021),s=r.n(a);async function n({user:e,message:t,component:r,noMail:a,req:n}){let l=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],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8295,e.ids=[8295],e.modules={7463:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>h,getStaticProps:()=>m,reportWebVitals:()=>f,routeModule:()=>S,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>g});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),c=a(19796),d=a(50436),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"),f=(0,l.M)(d,"reportWebVitals"),g=(0,l.M)(d,"unstable_getStaticProps"),b=(0,l.M)(d,"unstable_getStaticPaths"),y=(0,l.M)(d,"unstable_getStaticParams"),j=(0,l.M)(d,"unstable_getServerProps"),v=(0,l.M)(d,"unstable_getServerSideProps"),S=new s.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});r()}catch(e){r(e)}})},44387:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>g});var s=a(8732),n=a(82015),l=a.n(n),i=a(59023),c=a(53926),d=a(50436),o=a(80830),u=a(97412);a(46169);var m=a(84894),h=a(537),p=a(23791),x=a(60374),f=e([d,u,m,p]);function g(){let{database:e,dbSchemaData:t,tables:a,user:r}=l().useContext(d.DatabaseSchemaContext);try{if(!t)return(0,s.jsx)("span",{children:"No Database Schema Found!"});let a=t.filter(t=>t.dbFullName===e?.db_full_name)[0],[n,d]=l().useState(a.tables),[f,g]=l().useState(null),[b,y]=l().useState(a);if(!e)return(0,s.jsx)("span",{children:"No Database Record Found"});return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(c.A,{user:r})]}),e.active_clone&&r?(0,s.jsx)(h.A,{database:e,user:r}):(0,s.jsx)(s.Fragment,{}),e.remote_connected?(0,s.jsx)(p.p,{database:e}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsx)("div",{children:n&&n[0]&&(0,s.jsx)(o.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...n.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?g(null):g(e.target.value)}})})]}),(0,s.jsx)(m.A,{content:x.A.stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,s.jsx)(u.A,{})]})}catch(t){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e?.db_name||null}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(c.A,{user:r})]}),(0,s.jsx)("section",{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}[d,u,m,p]=f.then?(await f)():f,r()}catch(e){r(e)}})},97412:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>u});var s=a(8732),n=a(82015),l=a.n(n),i=a(59023),c=a(53926),d=a(50436);a(46169);var o=e([d]);function u(e){let{database:t,dbSchemaData:a,tables:r,user:n}=l().useContext(d.DatabaseSchemaContext);try{return(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),r&&r[0]&&r.map((e,t)=>(0,s.jsx)("div",{className:"card light-gray w-full",children:(0,s.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(c.A,{user:n})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}d=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},6789:(e,t,a)=>{a.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:r="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:d}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let o=ace.edit(e.current);o.setOptions({mode:"ace/mode/"+r,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==r)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...d}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=o);try{ace.require("ace/ext/beautify").beautify(o.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:c,info:d,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},84894:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>d});var s=a(8732);a(46169);var n=a(82015),l=a.n(n);a(6789);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:r="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},72272:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(77047),s=a(29021),n=a.n(s),l=a(33873),i=a.n(l);function c({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(t,"utf-8"))}catch(e){return(0,r.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(29021),s=a.n(r);async function n({user:e,message:t,component:a,noMail:r,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],a=n.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== Error Message: ${t} -Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` -IP: ${i}`),a+=` +User Email: ${e?.email}`),n?.url&&(r+=` +URL: ${n.url}`),n?.body&&(r+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(r+=` +IP: ${i}`),r+=` Date: ${l.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",a),s().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",r),s().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}var l=r(77047),i=r(71934),c=r(43651),o=r(16175);async function d({queryString:e,queryValuesArray:t,database:r,tableSchema:a,useLocal:s}){let d;let u=!!s||!!r?.match(/^datasquirel$/),m=s?o.A:u?i.A:c.A;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,l.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&a)try{let e=d;return await n({unparsedResults:e,tableSchema:a})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},43651:(e,t,r)=>{async function a(e,t,r){try{if("string"==typeof t){let a=await e.query(s(t),r);return JSON.parse(JSON.stringify(a))}if("object"!=typeof t)return null;{let r=[];for(let a=0;an})},16175:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(9973),s=r.n(a),n=r(29021),l=r.n(n);async function i(...e){let t=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!l().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let 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}}}},60374:(e,t,r)=>{r.d(t,{A:()=>a});let a={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,r){try{return JSON.stringify(e,t||void 0,r)}catch(e){return}}}},50436:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseSchemaContext:()=>x,default:()=>g,getServerSideProps:()=>f});var s=r(8732),n=r(82015),l=r.n(n),i=r(25562),c=r(92702),o=r(55880),d=r(44387),u=r(52854),m=r(71934),p=r(72272),h=e([o,d]);[o,d]=h.then?(await h)():h;let x=l().createContext({});function g({user:e,database:t,query:r,dbSchemaData:a,tables:n}){let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[u,m]=l().useState(t.db_image);return(0,s.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(o.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,s.jsx)(x.Provider,{value:{user:e,database:t,dbImage:u,setDbImage:m,dbSchemaData:a,tables:n},children:(0,s.jsx)(d.A,{})})})}async function f({req:e,res:t,query:r}){try{let a=await (0,c.A)(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,m.A)(`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 (0,u.A)({queryString:`SHOW TABLES FROM ${s[0].db_full_name}`}),l=(0,p.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)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,6521,9796,5392,3634,3791],()=>r(7463));module.exports=a})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>d});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let a=[];try{for(let n=0;n",t.message),e}}var l=a(77047),i=a(51779),c=a(84640);async function d({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s,debug:d}){let o=(0,i.A)({fa:!0});s&&(o=(0,i.A)({local:!0})),a?.match(/^datasquirel$/)&&(o=(0,i.A)()),d&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let u=await (0,c.A)(o,e,t);if(d&&console.log("varDatabaseDbHandler:results:",u),u&&r)try{return await n({unparsedResults:u,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},84640:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rr})},60374:(e,t,a)=>{a.d(t,{A:()=>r});let r={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},50436:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{DatabaseSchemaContext:()=>g,default:()=>x,getServerSideProps:()=>f});var s=a(8732),n=a(82015),l=a.n(n),i=a(25562),c=a(92702),d=a(55880),o=a(44387),u=a(52854),m=a(71934),h=a(72272),p=e([d,o]);[d,o]=p.then?(await p)():p;let g=l().createContext({});function x({user:e,database:t,query:a,dbSchemaData:r,tables:n}){let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[u,m]=l().useState(t.db_image);return(0,s.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:a,user:e}),aceEditor:!0,children:(0,s.jsx)(g.Provider,{value:{user:e,database:t,dbImage:u,setDbImage:m,dbSchemaData:r,tables:n},children:(0,s.jsx)(o.A,{})})})}async function f({req:e,res:t,query:a}){try{let r=await (0,c.A)(e,t);if(!r?.logged_in_status||!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,m.A)(`SELECT * FROM user_databases WHERE user_id='${r.id}' AND db_slug='${a.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let n=await (0,u.A)({queryString:`SHOW TABLES FROM ${s[0].db_full_name}`}),l=(0,h.A)({userId:r.id});if(!l)throw Error("User schema data not found!");return{props:{user:r,database:s[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}}}}r()}catch(e){r(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,6521,9796,5392,7769,6247],()=>a(7463));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json index 0815633..d4406f4 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ 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 d7c239e..e721226 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 @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=204,e.ids=[204],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}}})},5375:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>m,default:()=>u,getServerSideProps:()=>y,getStaticPaths:()=>p,getStaticProps:()=>h,reportWebVitals:()=>g,routeModule:()=>v,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>A,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var s=r(63865),n=r(9455),l=r(30671),i=r(5583),c=r(19796),o=r(40519),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,l.M)(o,"default"),h=(0,l.M)(o,"getStaticProps"),p=(0,l.M)(o,"getStaticPaths"),y=(0,l.M)(o,"getServerSideProps"),m=(0,l.M)(o,"config"),g=(0,l.M)(o,"reportWebVitals"),f=(0,l.M)(o,"unstable_getStaticProps"),x=(0,l.M)(o,"unstable_getStaticPaths"),A=(0,l.M)(o,"unstable_getStaticParams"),S=(0,l.M)(o,"unstable_getServerProps"),b=(0,l.M)(o,"unstable_getServerSideProps"),v=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/shell",pathname:"/admin/[user_id]/databases/[single]/shell",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:o});a()}catch(e){a(e)}})},22338:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>y});var s=r(8732),n=r(82015),l=r.n(n),i=r(59023),c=r(53926),o=r(40519),d=r(16757),u=r(46169),h=r(24342),p=e([o,h]);function y(){let{database:e,dbSchemaData:t,tables:r,user:a}=l().useContext(o.DatabaseShellContext);if(!a)return null;try{let t=l().useRef(),n=l().useRef(),[o,p]=l().useState(!1),[y,m]=l().useState(!1),[g,f]=l().useState(0);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[e?.db_name," Database Shell"]})})]}),(0,s.jsx)(c.A,{user:a})]}),(0,s.jsxs)("div",{className:"w-full flex-col relative",children:[(0,s.jsx)("div",{ref:t,id:"ace-editor-wrapper"}),(0,s.jsxs)("button",{className:"absolute right-4 bottom-4"+(o?" pointer-events-none opacity-70":""),onClick:t=>{!function(){p(!0);let t=n.current?n.current.getValue():null;if(!t?.match(/./))return;let a=t.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,u.A)("/api/runUserDbQuery",{method:"post",body:{database:e?.db_slug,query:a,tables:r?.map(e=>e.tableSlug)}},!0).then(e=>{e.success?m(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{p(!1)},500)})}()},children:[o&&(0,s.jsx)(d.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),o?"Running Query ...":"Run Query"]})]}),y&&!o&&(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"w-full flex-col items-start overflow-x-scroll",children:[(0,s.jsx)("h2",{className:"text-xl",children:"Query Results"}),(0,s.jsx)(h.A,{data:y,user:a})]})})]})}catch(t){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e?.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Shell"})]})]}),(0,s.jsx)(c.A,{user:a})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})]})}}[o,h]=p.then?(await p)():p,a()}catch(e){a(e)}})},24342:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),l=r.n(n);r(46169);var i=r(84894),c=e([i]);function o({data:e,user:t}){try{return Object.keys(e[0]),(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,s.jsx)(i.A,{content:JSON.stringify(e,null,4)})})})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("span",{children:"No results"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},6789:(e,t,r)=>{r.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:r,language:a="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{r?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==a)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...o}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},84894:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>o});var s=r(8732);r(46169);var n=r(82015),l=r.n(n);r(6789);var i=r(75979),c=e([i]);function o({editorRef:e,content:t,readOnly:r,language:a="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,r]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},23293:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(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"}]])},72272:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(77047),s=r(29021),n=r.n(s),l=r(33873),i=r.n(l);function c({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(t,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(29021),s=r.n(a);async function n({user:e,message:t,component:r,noMail:a,req:n}){let l=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],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=204,e.ids=[204],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}}})},5375:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>m,default:()=>u,getServerSideProps:()=>y,getStaticPaths:()=>h,getStaticProps:()=>p,reportWebVitals:()=>f,routeModule:()=>S,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>A,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>g});var s=r(63865),l=r(9455),n=r(30671),i=r(5583),c=r(19796),d=r(40519),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,n.M)(d,"default"),p=(0,n.M)(d,"getStaticProps"),h=(0,n.M)(d,"getStaticPaths"),y=(0,n.M)(d,"getServerSideProps"),m=(0,n.M)(d,"config"),f=(0,n.M)(d,"reportWebVitals"),g=(0,n.M)(d,"unstable_getStaticProps"),x=(0,n.M)(d,"unstable_getStaticPaths"),A=(0,n.M)(d,"unstable_getStaticParams"),b=(0,n.M)(d,"unstable_getServerProps"),v=(0,n.M)(d,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/shell",pathname:"/admin/[user_id]/databases/[single]/shell",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});a()}catch(e){a(e)}})},22338:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>y});var s=r(8732),l=r(82015),n=r.n(l),i=r(59023),c=r(53926),d=r(40519),o=r(16757),u=r(46169),p=r(24342),h=e([d,p]);function y(){let{database:e,dbSchemaData:t,tables:r,user:a}=n().useContext(d.DatabaseShellContext);if(!a)return null;try{let t=n().useRef(),l=n().useRef(),[d,h]=n().useState(!1),[y,m]=n().useState(!1),[f,g]=n().useState(0);return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[e?.db_name," Database Shell"]})})]}),(0,s.jsx)(c.A,{user:a})]}),(0,s.jsxs)("div",{className:"w-full flex-col relative",children:[(0,s.jsx)("div",{ref:t,id:"ace-editor-wrapper"}),(0,s.jsxs)("button",{className:"absolute right-4 bottom-4"+(d?" pointer-events-none opacity-70":""),onClick:t=>{!function(){h(!0);let t=l.current?l.current.getValue():null;if(!t?.match(/./))return;let a=t.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,u.A)("/api/runUserDbQuery",{method:"post",body:{database:e?.db_slug,query:a,tables:r?.map(e=>e.tableSlug)}},!0).then(e=>{e.success?m(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{h(!1)},500)})}()},children:[d&&(0,s.jsx)(o.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),d?"Running Query ...":"Run Query"]})]}),y&&!d&&(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"w-full flex-col items-start overflow-x-scroll",children:[(0,s.jsx)("h2",{className:"text-xl",children:"Query Results"}),(0,s.jsx)(p.A,{data:y,user:a})]})})]})}catch(t){return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e?.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Shell"})]})]}),(0,s.jsx)(c.A,{user:a})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})]})}}[d,p]=h.then?(await h)():h,a()}catch(e){a(e)}})},24342:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>d});var s=r(8732),l=r(82015),n=r.n(l);r(46169);var i=r(84894),c=e([i]);function d({data:e,user:t}){try{return Object.keys(e[0]),(0,s.jsx)(n().Fragment,{children:(0,s.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,s.jsx)(i.A,{content:JSON.stringify(e,null,4)})})})}catch(e){return(0,s.jsx)(n().Fragment,{children:(0,s.jsx)("span",{children:"No results"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},6789:(e,t,r)=>{r.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:r,language:a="javascript",entry:s,jsonTextEditors:l,editorRef:n,readOnly:i,initialContent:c,options:d}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{r?.(e=>e+1)},1e3);return}let o=ace.edit(e.current);o.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==a)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...d}),n&&t?.fieldName&&(l?.current.push({fieldName:t.fieldName,ref:n}),n.current=o);try{ace.require("ace/ext/beautify").beautify(o.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},84894:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>d});var s=r(8732);r(46169);var l=r(82015),n=r.n(l);r(6789);var i=r(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:r,language:a="javascript",options:l,wrapperProps:c}){try{let e=n().useRef(),[t,r]=n().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(n().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},23293:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(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"}]])},72272:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(77047),s=r(29021),l=r.n(s),n=r(33873),i=r.n(n);function c({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(t,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},77047:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(29021),s=r.n(a);async function l({user:e,message:t,component:r,noMail:a,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 a=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +User Email: ${e?.email}`),l?.url&&(a+=` +URL: ${l.url}`),l?.body&&(a+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),i&&(a+=` IP: ${i}`),a+=` -Date: ${l.toDateString()} +Date: ${n.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",a),s().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}var l=r(77047),i=r(71934),c=r(43651),o=r(16175);async function d({queryString:e,queryValuesArray:t,database:r,tableSchema:a,useLocal:s}){let d;let u=!!s||!!r?.match(/^datasquirel$/),h=s?o.A:u?i.A:c.A;try{d=e&&t&&Array.isArray(t)&&t[0]?u?await h(e,t):await h({paradigm:"Full Access",queryString:e,queryValues:t}):u?await h(e):await h({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,l.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&a)try{let e=d;return await n({unparsedResults:e,tableSchema:a})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},43651:(e,t,r)=>{async function a(e,t,r){try{if("string"==typeof t){let a=await e.query(s(t),r);return JSON.parse(JSON.stringify(a))}if("object"!=typeof t)return null;{let r=[];for(let a=0;an})},16175:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(9973),s=r.n(a),n=r(29021),l=r.n(n);async function i(...e){let t=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!l().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let 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}}}},40519:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseShellContext:()=>f,default:()=>m,getServerSideProps:()=>g});var s=r(8732),n=r(82015),l=r.n(n),i=r(25562),c=r(92702),o=r(55880),d=r(52854),u=r(22338),h=r(71934),p=r(72272),y=e([o,u]);[o,u]=y.then?(await y)():y;let f=l().createContext({});function m({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"})]}),[d,h]=l().useState(t.db_image);return(0,s.jsx)(i.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(o.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,s.jsx)(f.Provider,{value:{user:e,database:t,dbImage:d,setDbImage:h,dbSchemaData:a,tables:n},children:(0,s.jsx)(u.A,{})})})}async function g({req:e,res:t,query:r}){try{let a=await (0,c.A)(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,h.A)(`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 (0,d.A)({queryString:`SHOW TABLES FROM ${s[0].db_full_name}`}),l=(0,p.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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},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,9796,5392,3634],()=>r(5375));module.exports=a})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}var n=r(77047),i=r(51779),c=r(84640);async function d({queryString:e,queryValuesArray:t,database:r,tableSchema:a,useLocal:s,debug:d}){let o=(0,i.A)({fa:!0});s&&(o=(0,i.A)({local:!0})),r?.match(/^datasquirel$/)&&(o=(0,i.A)()),d&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let u=await (0,c.A)(o,e,t);if(d&&console.log("varDatabaseDbHandler:results:",u),u&&a)try{return await l({unparsedResults:u,tableSchema:a})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(55511),s=r(79428),l=r(48243);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:c,algorithm:d,bufferAllocSize:o}=(0,l.A)({encryptionKey:t});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,a.scryptSync)(n,i,c),p=s.Buffer.alloc(o,0),h=(0,a.createDecipheriv)(d,u,p);try{let t=h.update(e,"hex","utf8");return t+=h.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},84640:(e,t,r)=>{async function a(e,t,r){try{if("string"==typeof t){let a=await e.query(s(t),r);return JSON.parse(JSON.stringify(a))}if("object"!=typeof t)return null;{let r=[];for(let a=0;aa})},48243:(e,t,r)=>{r.d(t,{A:()=>a});function a(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},40519:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseShellContext:()=>g,default:()=>m,getServerSideProps:()=>f});var s=r(8732),l=r(82015),n=r.n(l),i=r(25562),c=r(92702),d=r(55880),o=r(52854),u=r(22338),p=r(71934),h=r(72272),y=e([d,u]);[d,u]=y.then?(await y)():y;let g=n().createContext({});function m({user:e,database:t,query:r,dbSchemaData:a,tables:l}){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,p]=n().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)(g.Provider,{value:{user:e,database:t,dbImage:o,setDbImage:p,dbSchemaData:a,tables:l},children:(0,s.jsx)(u.A,{})})})}async function f({req:e,res:t,query:r}){try{let a=await (0,c.A)(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,p.A)(`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 l=await (0,o.A)({queryString:`SHOW TABLES FROM ${s[0].db_full_name}`}),n=(0,h.A)({userId:a.id});if(!n)throw Error("User schema data not found!");return{props:{user:a,database:s[0],query:r,dbSchemaData:n||[],tables:l&&l[0]?l.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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,7769],()=>r(5375));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json index 0815633..d4406f4 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js index ab62baa..77caeee 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js @@ -1,8 +1,8 @@ -"use strict";(()=>{var e={};e.id=5405,e.ids=[5405],e.modules={24454:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{config:()=>m,default:()=>c,getServerSideProps:()=>p,getStaticPaths:()=>g,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>v,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>_});var r=t(63865),l=t(9455),d=t(30671),i=t(5583),n=t(19796),o=t(35503),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,d.M)(o,"default"),b=(0,d.M)(o,"getStaticProps"),g=(0,d.M)(o,"getStaticPaths"),p=(0,d.M)(o,"getServerSideProps"),m=(0,d.M)(o,"config"),x=(0,d.M)(o,"reportWebVitals"),_=(0,d.M)(o,"unstable_getStaticProps"),h=(0,d.M)(o,"unstable_getStaticPaths"),j=(0,d.M)(o,"unstable_getStaticParams"),f=(0,d.M)(o,"unstable_getServerProps"),S=(0,d.M)(o,"unstable_getServerSideProps"),v=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables",pathname:"/admin/[user_id]/databases/[single]/tables",bundlePath:"",filename:""},components:{App:n.default,Document:i.default},userland:o});s()}catch(e){s(e)}})},70355:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),d=t(46169),i=t(91140),n=t(16757);function o({targetDatabase:e}){let[a,t]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(n.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}t(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):t(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},57414:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),d=t(46169),i=t(91140),n=t(16757);function o({targetTable:e,database:a}){let[t,r]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[t&&(0,s.jsx)(n.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"+(t?" pointer-events-none opacity-40":""),onClick:t=>{r(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:a,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"})})]})]})}},36940:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>x});var r=t(8732),l=t(82015),d=t.n(l),i=t(35503),n=t(59023),o=t(53926),u=t(73872),c=t(23791),b=t(6803),g=t(55904),p=t(537),m=e([i,u,c,b]);function x(){let{tables:e,setTargetTable:a,database:t,query:s,confirmedDelegetedUser:l,user:m}=d().useContext(i.TablesContext),x=l?.delegated;l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i);let _=l?.priviledges?.match(/Create Tables/i),{active_clone:h,active_clone_parent_db:j,remote_connected:f}=t;return(0,r.jsxs)(d().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-2 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap gap-6",children:[(0,r.jsxs)("div",{className:"flex-wrap",children:[(0,r.jsx)(n.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0 flex flex-wrap gap-2",children:[(0,r.jsx)("span",{className:"inline",children:"All Tables in"}),(0,r.jsx)("span",{className:"inline relative",children:(0,r.jsxs)("a",{href:`/admin/${m?.id}/databases/${t.db_slug}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 text-primary hover:text-primary_dark relative inline",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},style:{wordBreak:"break-all"},children:[t.db_name,(0,r.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,r.jsx)(u.A,{slugText:t.db_slug,justIcon:!0})})]})})]})]}),(0,r.jsx)("div",{className:"w-full md:w-auto",children:(0,r.jsxs)(g.A,{children:[(!x||x&&_)&&!j&&!f&&(0,r.jsxs)("a",{href:`/admin/${m?.id}/databases/${t.db_slug}/tables/add-table`,className:"button flex items-center gap-2 w-full",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Table"})]}),!x&&(0,r.jsx)("a",{href:`/admin/${m?.id}/databases/${t.db_slug}/users`,className:"button dark",children:"Users"})]})})]}),(0,r.jsx)(o.A,{confirmedDelegetedUser:s?.delegated,user:m})]}),t.active_clone?(0,r.jsx)(p.A,{database:t,user:m}):(0,r.jsx)(r.Fragment,{}),t.remote_connected?(0,r.jsx)(c.p,{database:t}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(b.A,{database:t,tables:e,setTargetTable:a,confirmedDelegetedUser:l,query:s,user:m})]})}[i,u,c,b]=m.then?(await m)():m,s()}catch(e){s(e)}})},22873:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(71205);async function r({request:e,databaseSlug:a,user:t,query:r}){try{let l=t.id,d=null;if(!r?.delegated)return{dbUserId:l};let i=r.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${i}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((d=JSON.parse(t)).databaseSlug===a)return{dbUserId:l=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:l}}catch(e){return null}}},35503:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{TablesContext:()=>h,default:()=>x,getServerSideProps:()=>_});var r=t(8732),l=t(82015),d=t.n(l),i=t(92702),n=t(25562),o=t(70355),u=t(36940),c=t(57414),b=t(55880),g=t(22873),p=t(71934),m=e([u,b]);[u,b]=m.then?(await m)():m;let h=d().createContext({});function x({user:e,database:a,tables:t,query:s,confirmedDelegetedUser:l}){let i=`Tables For ${a.db_name} Database | Datasquirel`,g=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=d().useState(null);return(0,r.jsx)(h.Provider,{value:{user:e,database:a,tables:t,targetTable:p,setTargetTable:m,query:s,confirmedDelegetedUser:l},children:(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(n.A,{head:g,user:e,extraHeaderContent:(0,r.jsx)(b.A,{database:a,query:s,confirmedDelegetedUser:l,user:e}),children:(0,r.jsx)(u.A,{})}),(0,r.jsx)(o.A,{targetDatabase:a}),(0,r.jsx)(c.A,{database:a,targetTable:p})]})})}async function _({req:e,res:a,query:t}){let s=await (0,i.A)(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,g.A)({request:e,user:s,databaseSlug:t.single?.toString()||"",query:t});if(!r)return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let{dbUserId:l,rootUserId:d}=r,n=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let o=d?await (0,p.A)(` +"use strict";(()=>{var e={};e.id=5405,e.ids=[5405],e.modules={24454:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{config:()=>p,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>g,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>S,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>_});var r=t(63865),l=t(9455),d=t(30671),i=t(5583),n=t(19796),o=t(35503),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,d.M)(o,"default"),b=(0,d.M)(o,"getStaticProps"),g=(0,d.M)(o,"getStaticPaths"),m=(0,d.M)(o,"getServerSideProps"),p=(0,d.M)(o,"config"),x=(0,d.M)(o,"reportWebVitals"),_=(0,d.M)(o,"unstable_getStaticProps"),h=(0,d.M)(o,"unstable_getStaticPaths"),j=(0,d.M)(o,"unstable_getStaticParams"),f=(0,d.M)(o,"unstable_getServerProps"),v=(0,d.M)(o,"unstable_getServerSideProps"),S=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables",pathname:"/admin/[user_id]/databases/[single]/tables",bundlePath:"",filename:""},components:{App:n.default,Document:i.default},userland:o});s()}catch(e){s(e)}})},70355:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),d=t(46169),i=t(91140),n=t(16757);function o({targetDatabase:e}){let[a,t]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(n.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}t(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):t(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},57414:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),d=t(46169),i=t(91140),n=t(16757);function o({targetTable:e,database:a}){let[t,r]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[t&&(0,s.jsx)(n.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"+(t?" pointer-events-none opacity-40":""),onClick:t=>{r(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:a,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"})})]})]})}},36940:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>x});var r=t(8732),l=t(82015),d=t.n(l),i=t(35503),n=t(59023),o=t(53926),u=t(73872),c=t(23791),b=t(6803),g=t(55904),m=t(537),p=e([i,u,c,b]);function x(){let{tables:e,setTargetTable:a,database:t,query:s,confirmedDelegetedUser:l,user:p}=d().useContext(i.TablesContext),x=l?.delegated;l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i);let _=l?.priviledges?.match(/Create Tables/i),{active_clone:h,active_clone_parent_db:j,remote_connected:f}=t;return(0,r.jsxs)(d().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-2 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap gap-6",children:[(0,r.jsxs)("div",{className:"flex-wrap",children:[(0,r.jsx)(n.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0 flex flex-wrap gap-2",children:[(0,r.jsx)("span",{className:"inline",children:"All Tables in"}),(0,r.jsx)("span",{className:"inline relative",children:(0,r.jsxs)("a",{href:`/admin/${p?.id}/databases/${t.db_slug}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 text-primary hover:text-primary_dark relative inline",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},style:{wordBreak:"break-all"},children:[t.db_name,(0,r.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,r.jsx)(u.A,{slugText:t.db_slug,justIcon:!0})})]})})]})]}),(0,r.jsx)("div",{className:"w-full md:w-auto",children:(0,r.jsxs)(g.A,{children:[(!x||x&&_)&&!j&&!f&&(0,r.jsxs)("a",{href:`/admin/${p?.id}/databases/${t.db_slug}/tables/add-table`,className:"button flex items-center gap-2 w-full",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Table"})]}),!x&&(0,r.jsx)("a",{href:`/admin/${p?.id}/databases/${t.db_slug}/users`,className:"button dark",children:"Users"})]})})]}),(0,r.jsx)(o.A,{confirmedDelegetedUser:s?.delegated,user:p})]}),t.active_clone?(0,r.jsx)(m.A,{database:t,user:p}):(0,r.jsx)(r.Fragment,{}),t.remote_connected?(0,r.jsx)(c.p,{database:t}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(b.A,{database:t,tables:e,setTargetTable:a,confirmedDelegetedUser:l,query:s,user:p})]})}[i,u,c,b]=p.then?(await p)():p,s()}catch(e){s(e)}})},22873:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(71205);async function r({request:e,databaseSlug:a,user:t,query:r}){try{let l=t.id,d=null;if(!r?.delegated)return{dbUserId:l};let i=r.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${i}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((d=JSON.parse(t)).databaseSlug===a)return{dbUserId:l=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:l}}catch(e){return null}}},35503:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{TablesContext:()=>h,default:()=>x,getServerSideProps:()=>_});var r=t(8732),l=t(82015),d=t.n(l),i=t(92702),n=t(25562),o=t(70355),u=t(36940),c=t(57414),b=t(55880),g=t(22873),m=t(71934),p=e([u,b]);[u,b]=p.then?(await p)():p;let h=d().createContext({});function x({user:e,database:a,tables:t,query:s,confirmedDelegetedUser:l}){let i=`Tables For ${a.db_name} Database | Datasquirel`,g=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:i}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[m,p]=d().useState(null);return(0,r.jsx)(h.Provider,{value:{user:e,database:a,tables:t,targetTable:m,setTargetTable:p,query:s,confirmedDelegetedUser:l},children:(0,r.jsxs)(d().Fragment,{children:[(0,r.jsx)(n.A,{head:g,user:e,extraHeaderContent:(0,r.jsx)(b.A,{database:a,query:s,confirmedDelegetedUser:l,user:e}),children:(0,r.jsx)(u.A,{})}),(0,r.jsx)(o.A,{targetDatabase:a}),(0,r.jsx)(c.A,{database:a,targetTable:m})]})})}async function _({req:e,res:a,query:t}){let s=await (0,i.A)(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,g.A)({request:e,user:s,databaseSlug:t.single?.toString()||"",query:t});if(!r)return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let{dbUserId:l,rootUserId:d}=r,n=await (0,m.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let o=d?await (0,m.A)(` SELECT delegated_user_tables.database,delegated_user_tables.table,user_database_tables.* FROM delegated_user_tables INNER JOIN user_database_tables ON delegated_user_tables.root_user_id=user_database_tables.user_id AND delegated_user_tables.table=user_database_tables.table_slug AND delegated_user_tables.database=user_database_tables.db_slug WHERE delegated_user_tables.delegated_user_id='${s.id}' AND delegated_user_tables.root_user_id='${d}' AND delegated_user_tables.database='${n[0].db_slug}' - `):await (0,p.A)(`SELECT * FROM user_database_tables WHERE user_id='${s.id}' AND db_id='${n[0].id}'`);return o&&o[0]?{props:{user:s,database:n[0],tables:o,query:t,confirmedDelegetedUser:r}}:{redirect:{destination:`/admin/${s?.id}/databases/${n[0].db_slug}`,permanent:!1}}}s()}catch(e){s(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[883,9821,6521,9796,5392,3634,3791],()=>t(24454));module.exports=s})(); \ No newline at end of file + `):await (0,m.A)(`SELECT * FROM user_database_tables WHERE user_id='${s.id}' AND db_id='${n[0].id}'`);return o&&o[0]?{props:{user:s,database:n[0],tables:o,query:t,confirmedDelegetedUser:r}}:{redirect:{destination:`/admin/${s?.id}/databases/${n[0].db_slug}`,permanent:!1}}}s()}catch(e){s(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[883,9821,6521,9796,5392,7769,6247],()=>t(24454));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json index 6aa02dd..79849f2 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js index 31959b5..6bb5520 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5271,e.ids=[5271],e.modules={82654:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{config:()=>f,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>x,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>b});var s=t(63865),r=t(9455),n=t(30671),i=t(5583),d=t(19796),c=t(74561),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,n.M)(c,"default"),x=(0,n.M)(c,"getStaticProps"),m=(0,n.M)(c,"getStaticPaths"),p=(0,n.M)(c,"getServerSideProps"),f=(0,n.M)(c,"config"),h=(0,n.M)(c,"reportWebVitals"),b=(0,n.M)(c,"unstable_getStaticProps"),g=(0,n.M)(c,"unstable_getStaticPaths"),w=(0,n.M)(c,"unstable_getStaticParams"),j=(0,n.M)(c,"unstable_getServerProps"),v=(0,n.M)(c,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:c});l()}catch(e){l(e)}})},57414:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),r=t.n(s),n=t(46169),i=t(91140),d=t(16757);function c({targetTable:e,database:a}){let[t,s]=r().useState(!1);return(0,l.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[t&&(0,l.jsx)(d.A,{width:"20px"}),(0,l.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:t=>{s(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,l.jsx)("span",{children:"Yes"})}),(0,l.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,l.jsx)("span",{children:"Cancel"})})]})]})}},54187:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.d(a,{A:()=>v});var s=t(8732),r=t(82015),n=t.n(r),i=t(46169),d=t(74561),c=t(59023),o=t(53926),u=t(73872),x=t(16757),m=t(70468),p=t(471),f=t(32262),h=t(55904),b=t(537),g=t(51275),w=t(23791),j=e([d,u,m,w]);function v(){let{user:e,database:a,table:l,tableRecord:r,dbSchemaData:j,targetField:v,setTargetField:y,refreshFieldsListRef:N,setTableFields:_,tableFields:T,tableIndexes:S,setTableIndexes:A,updateTableAfterFieldsUpdateFunction:F,entries:C,targetEntry:E,setTargetEntry:I,richTextEditors:q,jsonTextEditors:$,query:D,confirmedDelegetedUser:k,entriesCount:P}=n().useContext(d.SingleTableContext);if(!a||!e||!r||!l)return;let R=t(94327),U=k?.delegated,M=k?.priviledges?.match(/Edit Tables/i),L=k?.priviledges?.match(/Delete Tables/i);k?.priviledges?.match(/Create Tables/i);let{active_clone:O,active_clone_parent_db:W,remote_connected:B}=a,H=`dsql${e.id}${a.id}${r.id}`,[V,X]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[V&&(0,s.jsx)(x.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start gap-4 xl: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)(c.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[l.tableFullName.replace(/ table/i,"")," ","Table"]})}),(0,s.jsx)(u.A,{slugText:l.tableName,outlined:!0})]}),(0,s.jsx)("div",{className:"flex-wrap flex-col md:flex-row w-full md:w-auto items-stretch md:items-center",children:(0,s.jsxs)(h.A,{children:[(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Table Entry"})]}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/entries`,className:"button secondary flex items-center gap-2",children:(0,s.jsx)("span",{children:"Entries"})}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/fields`,className:"button outlined secondary flex items-center gap-2",children:(0,s.jsx)("span",{children:"All Fields"})}),(!U||U&&(M||L))&&!W&&!B&&(0,s.jsxs)("div",{className:"dropdown-wrapper mt-4 xl:mt-0",children:[(0,s.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,s.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2",children:(0,s.jsxs)(h.A,{column:!0,className:"w-full",children:[(!U||U&&M)&&!W&&!B&&(0,s.jsx)("a",{className:"button outlined-gray more-padding w-full",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/edit-table`,children:"Edit Table"}),(!U||U&&L)&&!W&&!B&&(0,s.jsx)("button",{className:"outlined-gray more-padding w-full",onClick:e=>{window.confirm(`Delete "${l.tableFullName}" table?`)&&(X(!0),(0,i.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:{table_slug:l.tableName}}},!0).then(e=>{e.success&&window.location.reload()}))},children:"Delete Table"})]})})]})]})})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:D?.delegated,user:e})]}),a.active_clone?(0,s.jsx)(b.A,{database:a,user:e}):(0,s.jsx)(s.Fragment,{}),a.remote_connected?(0,s.jsx)(w.p,{database:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(g.A,{table:l,database:a,user:e}),(0,s.jsx)(p.A,{user:e,tableFields:T,setTableFields:_,setTargetField:y,refreshFieldsListRef:N,updateTable:!0,updateTableAfterFieldsUpdateFunction:F,collapsed:!0,database:a,table:l,confirmedDelegetedUser:k,query:D}),(0,s.jsx)(f.A,{user:e,table:l,tableUniqueId:H,tableIndexes:S,setTableIndexes:A,database:a,tableFields:T,updateTableAfterFieldsUpdateFunction:F,confirmedDelegetedUser:k}),C&&j&&q&&$&&(0,s.jsx)(m.A,{user:e,entries:C,database:a,table:l,setTargetEntry:I,dbSchemaData:j,richTextEditors:q,dataTypes:R,title:"Entries",query:D,confirmedDelegetedUser:k,jsonTextEditors:$,entriesCount:P})]})}[d,u,m,w]=j.then?(await j)():j,l()}catch(e){l(e)}})},32262:(e,a,t)=>{t.d(a,{A:()=>b});var l=t(8732),s=t(82015),r=t.n(s);function n({tableIndexes:e,setTableIndexes:a,setRefresh:t,setPageRefresh:l}){let s=e&&e[0]?e:[];s.push({newTempIndex:!0}),a(s),t&&t(e=>e+1)}var i=t(16757),d=t(46169),c=t(27825),o=t.n(c);function u({tableIndex:e,fieldIndex:a,currentTable:t,tableFields:s,tableIndexes:n,setTableIndexes:i,setRefresh:c,user:u,tableUniqueId:x}){let[m,p]=r().useState("regular"),[f,h]=r().useState([]),b=r().useRef();return(0,l.jsx)("div",{className:"w-full mt-1 xl:flex-nowrap flex-wrap",ref:b,children:(0,l.jsxs)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-700/40 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:e=>{e.preventDefault();let t=e.target.new_index_name.value.replace(/_index/,"").replace(/_{1,}$/,"")+"_index";if(!f||!f[0]){alert("Please Select at least 1 table column name");return}!function({fieldIndex:e,setTableIndexes:a,setRefresh:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t&&t(e=>e+1)}({fieldIndex:a,setTableIndexes:i,payload:{indexType:m,indexName:t,indexTableFields:f,alias:x+"_"+t},setRefresh:c})},children:[(0,l.jsx)("span",{className:"absolute -top-2 text-sm bg-fuchsia-600 text-white px-2 rounded-full",children:"New Index"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Type"}),(0,l.jsx)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",onChange:e=>{p(e.target.value)},children:m?.match(/regular/i)?(0,l.jsx)("option",{value:"regular",children:"Default"}):(0,l.jsx)("option",{value:"fullText",children:"Full Text"})})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_index_name",children:"Index Name"}),(0,l.jsx)("input",{type:"text",name:"new_index_name",id:"new_index_name",placeholder:"Eg. title_index",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Table Column(s)"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Select Columns to be indexed. NB the order matters"})})]})]}),(0,l.jsxs)("div",{className:"w-auto flex flex-row items-stretch gap-4",children:[(0,l.jsxs)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{if(e.target.value.match(/--/))return;let a=Array.from(e.target.options).filter(a=>a.value===e.target.value)[0].dataset.type;if(a?.match(/text/i))p("fullText"),h([{value:e.target.value,dataType:a}]);else{try{if(f.filter(e=>e.dataType.match(/text/i))[0])throw Error("TEXT type exists");if(f.findIndex(a=>a.value===e.target.value)>=0||e.target.value.match(/^--$/))return;a?(f.push({value:e.target.value,dataType:a}),h([...f])):window.alert("Datatype not provided. Please recheck fields.")}catch(t){(0,d.A)("/api/admin/clientError",{method:"post",body:{component:"NewIndexFieldTemp/lines-177-190",message:t.message,user:u}}),a?h([{value:e.target.value,dataType:a}]):window.alert("Couldn't set Index Fields")}p("regular")}},children:[(0,l.jsx)("option",{value:"--",children:"--"}),s.filter(e=>!e?.fieldName?.match(/^id$|^date_/)&&!e.foreignKey).map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,"data-type":e.dataType,children:e.fieldName},a+1))]}),f&&f[0]&&(0,l.jsx)("div",{className:"px-3 py-1 bg-slate-100 dark:bg-slate-500/10 rounded",children:f.map((e,a)=>(0,l.jsxs)("span",{className:"text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)("span",{className:"font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 dark:bg-slate-600 text-xs hover:bg-slate-400",onClick:a=>{h([...f.filter(a=>!a.value.match(RegExp(`^${o().escapeRegExp(e.value)}$`)))])},children:"✖"})]},a+1))})]})]})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Index"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:e=>{i(e=>e.filter((e,t)=>t!=a))},children:"Cancel"})]})]})})}var x=t(42960);function m({targetIndexObject:e,fieldIndex:a,tableFields:t,refreshFieldsListRef:s,setTableIndexes:n,setRefresh:i,setActiveEdit:c,user:u,tableUniqueId:x}){let[m,p]=r().useState(e),[f,h]=r().useState(m.indexType||"regular"),[b,g]=r().useState(m.indexTableFields?[...m.indexTableFields]:[]),w=r().useRef();return(0,l.jsx)("div",{className:"w-full -mt-3 flex-wrap",ref:w,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between p-4 relative xl:flex-nowrap flex-wrap border border-t-0 border-slate-200 dark:border-slate-600 border-solid rounded-b",onSubmit:e=>{e.preventDefault();let t=e.target.new_index_name.value.replace(/_index/,"").replace(/_{1,}$/,"")+"_index";m.indexName=t,m.alias=x+"_"+t,m.indexTableFields=b,n(e=>(e[a]=m,e)),c(!1),i(e=>e+1)},children:[(0,l.jsxs)("div",{className:"gap-4 xl:flex-nowrap flex-wrap flex-col xl:flex-row items-stretch w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Type"}),(0,l.jsx)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",onChange:e=>{h(e.target.value),p(a=>(a.indexType=e.target.value,a))},defaultValue:f,children:f?.match(/regular/i)?(0,l.jsx)("option",{value:"regular",children:"Default"}):(0,l.jsx)("option",{value:"fullText",children:"Full Text"})})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_index_name",children:"Index Name"}),(0,l.jsx)("input",{type:"text",name:"new_index_name",id:"new_index_name",placeholder:"Eg. title_index",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_")},required:!0,defaultValue:m.indexName})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Table Column(s)"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Select Columns to be indexed. NB the order matters"})})]})]}),(0,l.jsxs)("div",{className:"w-auto flex flex-row items-stretch gap-4",children:[(0,l.jsxs)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{!function({e,indexTableFields:a,setIndexTableFields:t,setIndexType:l,user:s}){if(e.target.value.match(/--/))return;let r=Array.from(e.target.options).filter(a=>a.value===e.target.value)[0].dataset.type;if(r.match(/text/i))l("fullText"),t([{value:e.target.value,dataType:r}]);else{try{if(a.filter(e=>e.dataType.match(/text/i))[0])throw Error("TEXT type exists");if(a.findIndex(a=>a.value===e.target.value)>=0||e.target.value.match(/^--$/))return;a.push({value:e.target.value,dataType:r}),t([...a])}catch(a){(0,d.A)("/api/admin/clientError",{method:"post",body:{component:"ExistingIndexEdit/lines-184-197",message:a.message,user:s}}),t([{value:e.target.value,dataType:r}])}l("regular")}}({e,indexTableFields:b,setIndexTableFields:g,setIndexType:h,user:u})},children:[(0,l.jsx)("option",{value:"--",children:"--"}),t.filter(e=>!e?.fieldName?.match(/^id$|^date_/)&&!e.foreignKey).map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,"data-type":e.dataType,children:e.fieldName},a+1))]}),b&&b[0]&&(0,l.jsx)("div",{className:"card no-hover px-3 py-1 items-center",children:b.map((e,a)=>(0,l.jsxs)("span",{className:"text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)("span",{className:"font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 text-xs hover:bg-slate-400",onClick:a=>{g([...b.filter(a=>!a.value.match(RegExp(`^${o().escapeRegExp(e.value)}$`)))])},children:"✖"})]},a+1))})]})]})]}),(0,l.jsxs)("div",{className:"secondary mt-auto xl:flex-nowrap flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:e=>{c(!1)},children:"Cancel"})]})]})})}var p=t(55904);function f({tableIndex:e,fieldIndex:a,tableIndexes:t,setTableIndexes:s,refreshFieldsListRef:n,database:i,currentTable:d,tableFields:c,setRefresh:o,confirmedDelegetedUser:u,user:f,tableUniqueId:h}){let b=u?.delegated,g=u?.priviledges?.match(/Edit Tables/i);u?.priviledges?.match(/Delete Tables/i),u?.priviledges?.match(/Create Tables/i);let{active_clone:w,active_clone_parent_db:j,remote_connected:v}=i,[y,N]=r().useState(e),[_,T]=r().useState(!1),[S,A]=r().useState(0);return(0,l.jsxs)("div",{className:"flex-col w-full"+(_?" shadow-xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(_?" rounded-t":" rounded")+(y.indexName?.match(x.A)?" text-slate-400 pointer-events-none border-slate-200 border":""),onClick:e=>{},children:[(0,l.jsx)("span",{className:"font-bold dark:text-white",children:y.indexName}),!y.indexName?.match(x.A)&&!j&&!v&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!b||b&&g)&&(0,l.jsx)(r().Fragment,{children:(0,l.jsx)(p.A,{children:(0,l.jsx)("div",{className:"button outlined gray smallest",onClick:t=>{window.confirm(`Delete "${e.indexName}"?`)&&s(e=>e.filter((e,t)=>t!=a))},style:{color:"var(--slate-500)"},children:"Delete"})})})})]}),_&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(m,{fieldIndex:a,setTableIndexes:s,refreshFieldsListRef:n,setActiveEdit:T,tableFields:c,targetIndexObject:y,setRefresh:o,user:f,tableUniqueId:h})})]})}let h=1;function b({user:e,table:a,tableUniqueId:t,tableIndexes:s,setTableIndexes:d,tableFields:c,updateTableAfterFieldsUpdateFunction:o,confirmedDelegetedUser:x,database:m}){a.indexes;let p=x?.delegated,b=x?.priviledges?.match(/Edit Tables/i);x?.priviledges?.match(/Delete Tables/i),x?.priviledges?.match(/Create Tables/i);let{active_clone:g,active_clone_parent_db:w,remote_connected:j}=m,[v,y]=r().useState(0),[N,_]=r().useState(!1),[T,S]=r().useState(!1);return p&&!b?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper blue",children:[N&&(0,l.jsx)(i.A,{}),a.childTable?(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Indexes"}),(0,l.jsx)("span",{children:"Table indexes are inherited from parent table"}),s&&s[0]&&s.map((e,a)=>(0,l.jsxs)("div",{className:"card w-full light-gray py-4 no-hover items-center",children:[(0,l.jsx)("b",{children:e.indexName}),(0,l.jsxs)("span",{className:"info small gray grow-0 ml-auto w-auto",children:[e.indexType," index"]})]},a))]}):(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Indexes"}),(!p||p&&b)&&!w&&!j&&(0,l.jsxs)("div",{className:"button secondary outlined flex items-center gap-2",onClick:e=>{T&&S(!1),n({tableIndexes:s,setTableIndexes:d,setRefresh:y})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Index"})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:T?{maxHeight:"200px"}:{},children:[s&&s[0]&&s.map((r,n)=>(h++,r.newTempIndex)?(0,l.jsx)(u,{fieldIndex:n,tableIndex:r,currentTable:a,tableIndexes:s,setTableIndexes:d,tableFields:c,setRefresh:y,user:e,tableUniqueId:t},h):(0,l.jsx)(f,{fieldIndex:n,tableIndex:r,database:m,currentTable:a,tableIndexes:s,setTableIndexes:d,tableFields:c,setRefresh:y,confirmedDelegetedUser:x,user:e,tableUniqueId:t},h)),(!p||p&&b)&&!w&&!j&&(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full justify-center more-padding",style:{borderStyle:"dashed"},onClick:e=>{n({tableIndexes:s,setTableIndexes:d,setRefresh:y})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Index"})]}),(0,l.jsx)("div",{className:"button w-full blue",onClick:e=>{_(!0),o&&o(_)},children:(0,l.jsx)("span",{children:"Update Table Indexes"})})]})]})]})]})}},41494:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(77047),s=t(71934),r=t(22873),n=t(72272),i=t(52854);async function d({req:e,user:a,query:t}){try{let l=await (0,r.A)({request:e,user:a,databaseSlug:t.single,query:t});if(!l)return null;let{dbUserId:d}=l,c=await (0,s.A)(`SELECT * FROM user_databases WHERE user_id='${d}' AND db_slug='${t.single}'`);if(!c?.[0])return null;let o=(0,n.A)({userId:Number(d)});if(!o)throw Error("DB Schema not found!");let u=o.filter(e=>e.dbFullName===c[0].db_full_name)[0]?.tables,x=u?.filter(e=>e.tableName===t.single_table)[0],m=await (0,s.A)(`SELECT * FROM user_database_tables WHERE user_id='${d}' AND db_id='${c[0].id}' AND table_slug='${t.single_table}'`),p=await (0,i.A)({database:c[0].db_full_name,queryString:`SELECT * FROM ${c[0].db_full_name}.${x?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:x}),f=await (0,i.A)({database:c[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${c[0].db_full_name}.${x?.tableName}`,tableSchema:x});if(l.rootUserId){let e=o.filter(e=>e.dbFullName==c[0].db_full_name)[0],a=e.tables.filter(e=>e.tableName===x?.tableName);e.tables=a,o=[e]}return{confirmedDelegetedUser:l||null,database:c[0]||null,dbSchemaData:o||null,entries:p||null,entriesCount:f?.[0]?.count||0,query:t,table:x,tableRecord:m[0]||{}}}catch(e){return(0,l.A)({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:a}),{}}}},7143:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(27825),s=t(46169);function r({query:e,table:a,database:t,dbSchemaData:r,tableFields:n,tableIndexes:i,setLoading:d}){let c=[...r];try{let r=c.findIndex(e=>e.dbFullName===t.db_full_name),o=c[r].tables.findIndex(e=>e.tableName===a.tableName);if(c[r].tables[o].fields=n?l.cloneDeep(n):[],c[r].tables[o].indexes=i?l.cloneDeep(i):[],c[r].tables[o].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,s.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:c,database:t.db_slug,table:a,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}}},74561:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{SingleTableContext:()=>w,default:()=>b,getServerSideProps:()=>g});var s=t(8732),r=t(82015),n=t.n(r),i=t(92702),d=t(25562),c=t(57414),o=t(54187),u=t(55880),x=t(7143),m=t(77047),p=t(41494),f=t(43363),h=e([o,u]);[o,u]=h.then?(await h)():h;let w=n().createContext({});function b({user:e,database:a,table:t,tableRecord:l,dbSchemaData:r,entries:i,query:m,confirmedDelegetedUser:p,entriesCount:h}){let b=`${t.tableFullName} Table | Datasquirel`,g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:b}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[j,v]=n().useState(t.fields),[y,N]=n().useState(t.indexes),[_,T]=n().useState(null),[S,A]=n().useState(null),F=n().useRef(null),C=n().useRef([]),E=n().useRef([]);return(0,s.jsx)(w.Provider,{value:{user:e,database:a,table:t,tableRecord:l,dbSchemaData:r,targetField:_,setTargetField:T,refreshFieldsListRef:F,tableFields:j,setTableFields:v,tableIndexes:y,setTableIndexes:N,updateTableAfterFieldsUpdateFunction:function(e){(0,x.A)({query:m,table:t,database:a,dbSchemaData:r,tableFields:j,tableIndexes:y,setLoading:e})},entries:i,targetEntry:S,setTargetEntry:A,richTextEditors:C,jsonTextEditors:E,query:m,confirmedDelegetedUser:p,entriesCount:h},children:(0,s.jsx)(d.A,{head:g,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:a,query:m,confirmedDelegetedUser:p,user:e}),children:(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)(o.A,{}),(0,s.jsx)(f.A,{snug:!0}),(0,s.jsx)(c.A,{database:a,targetTable:l})]})})})}async function g({req:e,res:a,query:t}){let l=await (0,i.A)(e,a);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let a=await (0,p.A)({req:e,query:t,user:l});if(!a?.table)throw Error("Data Fetching Error!");return{props:{user:l,...a}}}catch(a){return(0,m.A)({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:a.message,user:l}),{redirect:{destination:e.url?e.url.replace(/\/[^\/]+$/,"")+(t?.delegated?"?delegated=true":""):"/",permanent:!1}}}}l()}catch(e){l(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),l=a.X(0,[883,9821,6521,9796,5392,3634,3155,3791,9901,725,4627,8704],()=>t(82654));module.exports=l})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5271,e.ids=[5271],e.modules={82654:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{config:()=>f,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>x,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>b});var s=t(63865),r=t(9455),n=t(30671),i=t(5583),d=t(19796),c=t(74561),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,n.M)(c,"default"),x=(0,n.M)(c,"getStaticProps"),m=(0,n.M)(c,"getStaticPaths"),p=(0,n.M)(c,"getServerSideProps"),f=(0,n.M)(c,"config"),h=(0,n.M)(c,"reportWebVitals"),b=(0,n.M)(c,"unstable_getStaticProps"),g=(0,n.M)(c,"unstable_getStaticPaths"),w=(0,n.M)(c,"unstable_getStaticParams"),j=(0,n.M)(c,"unstable_getServerProps"),v=(0,n.M)(c,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:c});l()}catch(e){l(e)}})},57414:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(8732),s=t(82015),r=t.n(s),n=t(46169),i=t(91140),d=t(16757);function c({targetTable:e,database:a}){let[t,s]=r().useState(!1);return(0,l.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[t&&(0,l.jsx)(d.A,{width:"20px"}),(0,l.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:t=>{s(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,l.jsx)("span",{children:"Yes"})}),(0,l.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,l.jsx)("span",{children:"Cancel"})})]})]})}},54187:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.d(a,{A:()=>v});var s=t(8732),r=t(82015),n=t.n(r),i=t(46169),d=t(74561),c=t(59023),o=t(53926),u=t(73872),x=t(16757),m=t(70468),p=t(471),f=t(32262),h=t(55904),b=t(537),g=t(51275),w=t(23791),j=e([d,u,m,w]);function v(){let{user:e,database:a,table:l,tableRecord:r,dbSchemaData:j,targetField:v,setTargetField:y,refreshFieldsListRef:N,setTableFields:_,tableFields:T,tableIndexes:S,setTableIndexes:A,updateTableAfterFieldsUpdateFunction:F,entries:q,targetEntry:C,setTargetEntry:E,richTextEditors:I,jsonTextEditors:$,query:D,confirmedDelegetedUser:k,entriesCount:P}=n().useContext(d.SingleTableContext);if(!a||!e||!r||!l)return;let R=t(94327),U=k?.delegated,M=k?.priviledges?.match(/Edit Tables/i),L=k?.priviledges?.match(/Delete Tables/i);k?.priviledges?.match(/Create Tables/i);let{active_clone:O,active_clone_parent_db:W,remote_connected:B}=a,H=`dsql${e.id}${a.id}${r.id}`,[V,X]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[V&&(0,s.jsx)(x.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start gap-4 xl: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)(c.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[l.tableFullName.replace(/ table/i,"")," ","Table"]})}),(0,s.jsx)(u.A,{slugText:l.tableName,outlined:!0})]}),(0,s.jsx)("div",{className:"flex-wrap flex-col md:flex-row w-full md:w-auto items-stretch md:items-center",children:(0,s.jsxs)(h.A,{children:[(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Table Entry"})]}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/entries`,className:"button secondary flex items-center gap-2",children:(0,s.jsx)("span",{children:"Entries"})}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/fields`,className:"button outlined secondary flex items-center gap-2",children:(0,s.jsx)("span",{children:"All Fields"})}),(!U||U&&(M||L))&&!W&&!B&&(0,s.jsxs)("div",{className:"dropdown-wrapper mt-4 xl:mt-0",children:[(0,s.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,s.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2",children:(0,s.jsxs)(h.A,{column:!0,className:"w-full",children:[(!U||U&&M)&&!W&&!B&&(0,s.jsx)("a",{className:"button outlined-gray more-padding w-full",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${l.tableName}/edit-table`,children:"Edit Table"}),(!U||U&&L)&&!W&&!B&&(0,s.jsx)("button",{className:"outlined-gray more-padding w-full",onClick:e=>{window.confirm(`Delete "${l.tableFullName}" table?`)&&(X(!0),(0,i.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:{table_slug:l.tableName}}},!0).then(e=>{e.success&&window.location.reload()}))},children:"Delete Table"})]})})]})]})})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:D?.delegated,user:e})]}),a.active_clone?(0,s.jsx)(b.A,{database:a,user:e}):(0,s.jsx)(s.Fragment,{}),a.remote_connected?(0,s.jsx)(w.p,{database:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(g.A,{table:l,database:a,user:e}),(0,s.jsx)(p.A,{user:e,tableFields:T,setTableFields:_,setTargetField:y,refreshFieldsListRef:N,updateTable:!0,updateTableAfterFieldsUpdateFunction:F,collapsed:!0,database:a,table:l,confirmedDelegetedUser:k,query:D}),(0,s.jsx)(f.A,{user:e,table:l,tableUniqueId:H,tableIndexes:S,setTableIndexes:A,database:a,tableFields:T,updateTableAfterFieldsUpdateFunction:F,confirmedDelegetedUser:k}),q&&j&&I&&$&&(0,s.jsx)(m.A,{user:e,entries:q,database:a,table:l,setTargetEntry:E,dbSchemaData:j,richTextEditors:I,dataTypes:R,title:"Entries",query:D,confirmedDelegetedUser:k,jsonTextEditors:$,entriesCount:P})]})}[d,u,m,w]=j.then?(await j)():j,l()}catch(e){l(e)}})},32262:(e,a,t)=>{t.d(a,{A:()=>b});var l=t(8732),s=t(82015),r=t.n(s);function n({tableIndexes:e,setTableIndexes:a,setRefresh:t,setPageRefresh:l}){let s=e&&e[0]?e:[];s.push({newTempIndex:!0}),a(s),t&&t(e=>e+1)}var i=t(16757),d=t(46169),c=t(27825),o=t.n(c);function u({tableIndex:e,fieldIndex:a,currentTable:t,tableFields:s,tableIndexes:n,setTableIndexes:i,setRefresh:c,user:u,tableUniqueId:x}){let[m,p]=r().useState("regular"),[f,h]=r().useState([]),b=r().useRef();return(0,l.jsx)("div",{className:"w-full mt-1 xl:flex-nowrap flex-wrap",ref:b,children:(0,l.jsxs)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-700/40 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:e=>{e.preventDefault();let t=e.target.new_index_name.value.replace(/_index/,"").replace(/_{1,}$/,"")+"_index";if(!f||!f[0]){alert("Please Select at least 1 table column name");return}!function({fieldIndex:e,setTableIndexes:a,setRefresh:t,payload:l}){a(a=>(a.splice(e,1,l),a)),t&&t(e=>e+1)}({fieldIndex:a,setTableIndexes:i,payload:{indexType:m,indexName:t,indexTableFields:f,alias:x+"_"+t},setRefresh:c})},children:[(0,l.jsx)("span",{className:"absolute -top-2 text-sm bg-fuchsia-600 text-white px-2 rounded-full",children:"New Index"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Type"}),(0,l.jsx)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",onChange:e=>{p(e.target.value)},children:m?.match(/regular/i)?(0,l.jsx)("option",{value:"regular",children:"Default"}):(0,l.jsx)("option",{value:"fullText",children:"Full Text"})})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_index_name",children:"Index Name"}),(0,l.jsx)("input",{type:"text",name:"new_index_name",id:"new_index_name",placeholder:"Eg. title_index",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Table Column(s)"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Select Columns to be indexed. NB the order matters"})})]})]}),(0,l.jsxs)("div",{className:"w-auto flex flex-row items-stretch gap-4",children:[(0,l.jsxs)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{if(e.target.value.match(/--/))return;let a=Array.from(e.target.options).filter(a=>a.value===e.target.value)[0].dataset.type;if(a?.match(/text/i))p("fullText"),h([{value:e.target.value,dataType:a}]);else{try{if(f.filter(e=>e.dataType.match(/text/i))[0])throw Error("TEXT type exists");if(f.findIndex(a=>a.value===e.target.value)>=0||e.target.value.match(/^--$/))return;a?(f.push({value:e.target.value,dataType:a}),h([...f])):window.alert("Datatype not provided. Please recheck fields.")}catch(t){(0,d.A)("/api/admin/clientError",{method:"post",body:{component:"NewIndexFieldTemp/lines-177-190",message:t.message,user:u}}),a?h([{value:e.target.value,dataType:a}]):window.alert("Couldn't set Index Fields")}p("regular")}},children:[(0,l.jsx)("option",{value:"--",children:"--"}),s.filter(e=>!e?.fieldName?.match(/^id$|^date_/)&&!e.foreignKey).map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,"data-type":e.dataType,children:e.fieldName},a+1))]}),f&&f[0]&&(0,l.jsx)("div",{className:"px-3 py-1 bg-slate-100 dark:bg-slate-500/10 rounded",children:f.map((e,a)=>(0,l.jsxs)("span",{className:"text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)("span",{className:"font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 dark:bg-slate-600 text-xs hover:bg-slate-400",onClick:a=>{h([...f.filter(a=>!a.value.match(RegExp(`^${o().escapeRegExp(e.value)}$`)))])},children:"✖"})]},a+1))})]})]})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Index"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:e=>{i(e=>e.filter((e,t)=>t!=a))},children:"Cancel"})]})]})})}var x=t(42960);function m({targetIndexObject:e,fieldIndex:a,tableFields:t,refreshFieldsListRef:s,setTableIndexes:n,setRefresh:i,setActiveEdit:c,user:u,tableUniqueId:x}){let[m,p]=r().useState(e),[f,h]=r().useState(m.indexType||"regular"),[b,g]=r().useState(m.indexTableFields?[...m.indexTableFields]:[]),w=r().useRef();return(0,l.jsx)("div",{className:"w-full -mt-3 flex-wrap",ref:w,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between p-4 relative xl:flex-nowrap flex-wrap border border-t-0 border-slate-200 dark:border-slate-600 border-solid rounded-b",onSubmit:e=>{e.preventDefault();let t=e.target.new_index_name.value.replace(/_index/,"").replace(/_{1,}$/,"")+"_index";m.indexName=t,m.alias=x+"_"+t,m.indexTableFields=b,n(e=>(e[a]=m,e)),c(!1),i(e=>e+1)},children:[(0,l.jsxs)("div",{className:"gap-4 xl:flex-nowrap flex-wrap flex-col xl:flex-row items-stretch w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Type"}),(0,l.jsx)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",onChange:e=>{h(e.target.value),p(a=>(a.indexType=e.target.value,a))},defaultValue:f,children:f?.match(/regular/i)?(0,l.jsx)("option",{value:"regular",children:"Default"}):(0,l.jsx)("option",{value:"fullText",children:"Full Text"})})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_index_name",children:"Index Name"}),(0,l.jsx)("input",{type:"text",name:"new_index_name",id:"new_index_name",placeholder:"Eg. title_index",onInput:async e=>{let a=e.target;a.value=a.value.toLowerCase().replace(/ /g,"_")},required:!0,defaultValue:m.indexName})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Table Column(s)"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Select Columns to be indexed. NB the order matters"})})]})]}),(0,l.jsxs)("div",{className:"w-auto flex flex-row items-stretch gap-4",children:[(0,l.jsxs)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{!function({e,indexTableFields:a,setIndexTableFields:t,setIndexType:l,user:s}){if(e.target.value.match(/--/))return;let r=Array.from(e.target.options).filter(a=>a.value===e.target.value)[0].dataset.type;if(r.match(/text/i))l("fullText"),t([{value:e.target.value,dataType:r}]);else{try{if(a.filter(e=>e.dataType.match(/text/i))[0])throw Error("TEXT type exists");if(a.findIndex(a=>a.value===e.target.value)>=0||e.target.value.match(/^--$/))return;a.push({value:e.target.value,dataType:r}),t([...a])}catch(a){(0,d.A)("/api/admin/clientError",{method:"post",body:{component:"ExistingIndexEdit/lines-184-197",message:a.message,user:s}}),t([{value:e.target.value,dataType:r}])}l("regular")}}({e,indexTableFields:b,setIndexTableFields:g,setIndexType:h,user:u})},children:[(0,l.jsx)("option",{value:"--",children:"--"}),t.filter(e=>!e?.fieldName?.match(/^id$|^date_/)&&!e.foreignKey).map((e,a)=>(0,l.jsx)("option",{value:e.fieldName,"data-type":e.dataType,children:e.fieldName},a+1))]}),b&&b[0]&&(0,l.jsx)("div",{className:"card no-hover px-3 py-1 items-center",children:b.map((e,a)=>(0,l.jsxs)("span",{className:"text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)("span",{className:"font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 text-xs hover:bg-slate-400",onClick:a=>{g([...b.filter(a=>!a.value.match(RegExp(`^${o().escapeRegExp(e.value)}$`)))])},children:"✖"})]},a+1))})]})]})]}),(0,l.jsxs)("div",{className:"secondary mt-auto xl:flex-nowrap flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:e=>{c(!1)},children:"Cancel"})]})]})})}var p=t(55904);function f({tableIndex:e,fieldIndex:a,tableIndexes:t,setTableIndexes:s,refreshFieldsListRef:n,database:i,currentTable:d,tableFields:c,setRefresh:o,confirmedDelegetedUser:u,user:f,tableUniqueId:h}){let b=u?.delegated,g=u?.priviledges?.match(/Edit Tables/i);u?.priviledges?.match(/Delete Tables/i),u?.priviledges?.match(/Create Tables/i);let{active_clone:w,active_clone_parent_db:j,remote_connected:v}=i,[y,N]=r().useState(e),[_,T]=r().useState(!1),[S,A]=r().useState(0);return(0,l.jsxs)("div",{className:"flex-col w-full"+(_?" shadow-xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(_?" rounded-t":" rounded")+(y.indexName?.match(x.A)?" text-slate-400 pointer-events-none border-slate-200 border":""),onClick:e=>{},children:[(0,l.jsx)("span",{className:"font-bold dark:text-white",children:y.indexName}),!y.indexName?.match(x.A)&&!j&&!v&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!b||b&&g)&&(0,l.jsx)(r().Fragment,{children:(0,l.jsx)(p.A,{children:(0,l.jsx)("div",{className:"button outlined gray smallest",onClick:t=>{window.confirm(`Delete "${e.indexName}"?`)&&s(e=>e.filter((e,t)=>t!=a))},style:{color:"var(--slate-500)"},children:"Delete"})})})})]}),_&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(m,{fieldIndex:a,setTableIndexes:s,refreshFieldsListRef:n,setActiveEdit:T,tableFields:c,targetIndexObject:y,setRefresh:o,user:f,tableUniqueId:h})})]})}let h=1;function b({user:e,table:a,tableUniqueId:t,tableIndexes:s,setTableIndexes:d,tableFields:c,updateTableAfterFieldsUpdateFunction:o,confirmedDelegetedUser:x,database:m}){a.indexes;let p=x?.delegated,b=x?.priviledges?.match(/Edit Tables/i);x?.priviledges?.match(/Delete Tables/i),x?.priviledges?.match(/Create Tables/i);let{active_clone:g,active_clone_parent_db:w,remote_connected:j}=m,[v,y]=r().useState(0),[N,_]=r().useState(!1),[T,S]=r().useState(!1);return p&&!b?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper blue",children:[N&&(0,l.jsx)(i.A,{}),a.childTable?(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Indexes"}),(0,l.jsx)("span",{children:"Table indexes are inherited from parent table"}),s&&s[0]&&s.map((e,a)=>(0,l.jsxs)("div",{className:"card w-full light-gray py-4 no-hover items-center",children:[(0,l.jsx)("b",{children:e.indexName}),(0,l.jsxs)("span",{className:"info small gray grow-0 ml-auto w-auto",children:[e.indexType," index"]})]},a))]}):(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Indexes"}),(!p||p&&b)&&!w&&!j&&(0,l.jsxs)("div",{className:"button secondary outlined flex items-center gap-2",onClick:e=>{T&&S(!1),n({tableIndexes:s,setTableIndexes:d,setRefresh:y})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Index"})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:T?{maxHeight:"200px"}:{},children:[s&&s[0]&&s.map((r,n)=>(h++,r.newTempIndex)?(0,l.jsx)(u,{fieldIndex:n,tableIndex:r,currentTable:a,tableIndexes:s,setTableIndexes:d,tableFields:c,setRefresh:y,user:e,tableUniqueId:t},h):(0,l.jsx)(f,{fieldIndex:n,tableIndex:r,database:m,currentTable:a,tableIndexes:s,setTableIndexes:d,tableFields:c,setRefresh:y,confirmedDelegetedUser:x,user:e,tableUniqueId:t},h)),(!p||p&&b)&&!w&&!j&&(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full justify-center more-padding",style:{borderStyle:"dashed"},onClick:e=>{n({tableIndexes:s,setTableIndexes:d,setRefresh:y})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Index"})]}),(0,l.jsx)("div",{className:"button w-full blue",onClick:e=>{_(!0),o&&o(_)},children:(0,l.jsx)("span",{children:"Update Table Indexes"})})]})]})]})]})}},41494:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(77047),s=t(71934),r=t(22873),n=t(72272),i=t(52854);async function d({req:e,user:a,query:t}){try{let l=await (0,r.A)({request:e,user:a,databaseSlug:t.single,query:t});if(!l)return null;let{dbUserId:d}=l,c=await (0,s.A)(`SELECT * FROM user_databases WHERE user_id='${d}' AND db_slug='${t.single}'`);if(!c?.[0])return null;let o=(0,n.A)({userId:Number(d)});if(!o)throw Error("DB Schema not found!");let u=o.filter(e=>e.dbFullName===c[0].db_full_name)[0]?.tables,x=u?.filter(e=>e.tableName===t.single_table)[0],m=await (0,s.A)(`SELECT * FROM user_database_tables WHERE user_id='${d}' AND db_id='${c[0].id}' AND table_slug='${t.single_table}'`),p=await (0,i.A)({database:c[0].db_full_name,queryString:`SELECT * FROM ${c[0].db_full_name}.${x?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:x}),f=await (0,i.A)({database:c[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${c[0].db_full_name}.${x?.tableName}`,tableSchema:x});if(l.rootUserId){let e=o.filter(e=>e.dbFullName==c[0].db_full_name)[0],a=e.tables.filter(e=>e.tableName===x?.tableName);e.tables=a,o=[e]}return{confirmedDelegetedUser:l||null,database:c[0]||null,dbSchemaData:o||null,entries:p||null,entriesCount:f?.[0]?.count||0,query:t,table:x,tableRecord:m[0]||{}}}catch(e){return(0,l.A)({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:a}),{}}}},7143:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(27825),s=t(46169);function r({query:e,table:a,database:t,dbSchemaData:r,tableFields:n,tableIndexes:i,setLoading:d}){let c=[...r];try{let r=c.findIndex(e=>e.dbFullName===t.db_full_name),o=c[r].tables.findIndex(e=>e.tableName===a.tableName);if(c[r].tables[o].fields=n?l.cloneDeep(n):[],c[r].tables[o].indexes=i?l.cloneDeep(i):[],c[r].tables[o].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,s.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:c,database:t.db_slug,table:a,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}}},74561:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{SingleTableContext:()=>w,default:()=>b,getServerSideProps:()=>g});var s=t(8732),r=t(82015),n=t.n(r),i=t(92702),d=t(25562),c=t(57414),o=t(54187),u=t(55880),x=t(7143),m=t(77047),p=t(41494),f=t(43363),h=e([o,u]);[o,u]=h.then?(await h)():h;let w=n().createContext({});function b({user:e,database:a,table:t,tableRecord:l,dbSchemaData:r,entries:i,query:m,confirmedDelegetedUser:p,entriesCount:h}){let b=`${t.tableFullName} Table | Datasquirel`,g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:b}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[j,v]=n().useState(t.fields),[y,N]=n().useState(t.indexes),[_,T]=n().useState(null),[S,A]=n().useState(null),F=n().useRef(null),q=n().useRef([]),C=n().useRef([]);return(0,s.jsx)(w.Provider,{value:{user:e,database:a,table:t,tableRecord:l,dbSchemaData:r,targetField:_,setTargetField:T,refreshFieldsListRef:F,tableFields:j,setTableFields:v,tableIndexes:y,setTableIndexes:N,updateTableAfterFieldsUpdateFunction:function(e){(0,x.A)({query:m,table:t,database:a,dbSchemaData:r,tableFields:j,tableIndexes:y,setLoading:e})},entries:i,targetEntry:S,setTargetEntry:A,richTextEditors:q,jsonTextEditors:C,query:m,confirmedDelegetedUser:p,entriesCount:h},children:(0,s.jsx)(d.A,{head:g,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:a,query:m,confirmedDelegetedUser:p,user:e}),children:(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)(o.A,{}),(0,s.jsx)(f.A,{snug:!0}),(0,s.jsx)(c.A,{database:a,targetTable:l})]})})})}async function g({req:e,res:a,query:t}){let l=await (0,i.A)(e,a);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let a=await (0,p.A)({req:e,query:t,user:l});if(!a?.table)throw Error("Data Fetching Error!");return{props:{user:l,...a}}}catch(a){return(0,m.A)({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:a.message,user:l}),{redirect:{destination:e.url?e.url.replace(/\/[^\/]+$/,"")+(t?.delegated?"?delegated=true":""):"/",permanent:!1}}}}l()}catch(e){l(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),l=a.X(0,[883,9821,6521,9796,5392,7769,3155,6247,2282,725,4627,8704],()=>t(82654));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json index 51e6c36..77ce02b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3704.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5771.js","../../../../../../chunks/5954.js","../../../../../../chunks/6133.js","../../../../../../chunks/6202.js","../../../../../../chunks/6247.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/7303.js","../../../../../../chunks/7769.js","../../../../../../chunks/8704.js","../../../../../../chunks/883.js","../../../../../../chunks/9136.js","../../../../../../chunks/9240.js","../../../../../../chunks/9796.js","../../../../../../chunks/9814.js","../../../../../../chunks/9821.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js index 29c064d..33cb4f0 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7181,e.ids=[7181],e.modules={98347:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{config:()=>g,default:()=>c,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>h});var s=t(63865),r=t(9455),i=t(30671),n=t(5583),d=t(19796),o=t(83690),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,i.M)(o,"default"),b=(0,i.M)(o,"getStaticProps"),m=(0,i.M)(o,"getStaticPaths"),p=(0,i.M)(o,"getServerSideProps"),g=(0,i.M)(o,"config"),x=(0,i.M)(o,"reportWebVitals"),h=(0,i.M)(o,"unstable_getStaticProps"),f=(0,i.M)(o,"unstable_getStaticPaths"),_=(0,i.M)(o,"unstable_getStaticParams"),v=(0,i.M)(o,"unstable_getServerProps"),w=(0,i.M)(o,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:o});l()}catch(e){l(e)}})},9723:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.d(a,{A:()=>h});var s=t(8732),r=t(82015),i=t.n(r),n=t(83690),d=t(59023),o=t(53926),u=t(15028),c=t(471),b=t(7143),m=t(537),p=t(51275),g=t(23791),x=e([n,u,g]);function h(){let{user:e,database:a,table:t,tableFields:l,setTableFields:r,setTargetField:x,refreshFieldsListRef:h,dbSchemaData:f,query:_,confirmedDelegetedUser:v}=i().useContext(n.EditTableContext);return v?.delegated,v?.priviledges?.match(/Edit Tables/i),v?.priviledges?.match(/Delete Tables/i),v?.priviledges?.match(/Create Tables/i),(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{children:"Edit"}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${t.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",children:t.tableFullName}),(0,s.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:_?.delegated,user:e})]}),a.active_clone?(0,s.jsx)(m.A,{database:a,user:e}):(0,s.jsx)(s.Fragment,{}),a.remote_connected?(0,s.jsx)(g.p,{database:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.A,{table:t,database:a,user:e}),(0,s.jsxs)("div",{className:"w-full flex-col",children:[(0,s.jsx)(u.A,{}),(0,s.jsx)(c.A,{user:e,tableFields:l,setTableFields:r,setTargetField:x,refreshFieldsListRef:h,updateTable:!0,database:a,updateTableAfterFieldsUpdateFunction:function(){(0,b.A)({query:_,table:t,database:a,dbSchemaData:f,tableFields:l,tableIndexes:t.indexes})},confirmedDelegetedUser:v,query:_,table:t})]})]})}[n,u,g]=x.then?(await x)():x,l()}catch(e){l(e)}})},15028:(e,a,t)=>{t.a(e,async(e,l)=>{try{let p;t.d(a,{A:()=>m});var s=t(8732),r=t(82015),i=t.n(r),n=t(16757),d=t(24872),o=t(46169),u=t(83690),c=t(10621),b=e([u]);function m(){let{user:e,table:a,tableFields:t,database:l,query:r,confirmedDelegetedUser:b}=i().useContext(u.EditTableContext);async function m(a){return await (0,d.A)({tableName:"user_database_tables",columnName:"table_slug",value:a,userId:e.id})}let g=b?.delegated,x=b?.priviledges?.match(/Edit Tables/i);b?.priviledges?.match(/Delete Tables/i),b?.priviledges?.match(/Create Tables/i);let[h,f]=i().useState(null),[_,v]=i().useState(!1);return(0,s.jsx)(i().Fragment,{children:(!g||g&&x)&&(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Table Information"}),_&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:t=>{t.preventDefault(),v(!0);let s=t.target,i=s.table_name.value,n=s.table_slug.value,d=s.table_description.value;(0,o.A)("/api/updateUserTable",{method:"post",body:{dbFullName:l.db_full_name,dbSlug:l.db_slug,dbId:l.id,tableNameOld:a.tableName,payload:{tableName:n,tableFullName:i,tableDescription:d},delegated:r?.delegated}},!0).then(a=>{a.success?window.location.pathname=`/admin/${e?.id}/databases/${l.db_slug}/tables`+window.location.search:(window.alert("Failed to update Table! Please Try again."),window.location.reload())})},children:[h&&(0,s.jsx)(c.A,{message:h}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"table_name",id:"table_name",placeholder:"Table Name",onInput:async e=>{let t=e.target,l=t.closest("form");t.value.match(/./)?(t.classList.remove("warning"),f(null)):t.classList.add("warning"),l.table_slug.value=t.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let s=l.table_slug.value;window.clearTimeout(p),p=setTimeout(()=>{m(s).then(e=>{e.result&&s!==a.tableName?(l.table_slug.classList.add("warning"),f("Duplicate Table Name")):(l.table_slug.classList.remove("warning"),f(null))})},300)},required:!0,defaultValue:a.tableFullName})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"table_slug",id:"table_slug",placeholder:"Table Slug",onInput:e=>{let a=e.target;a.closest("form"),a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning"),window.clearTimeout(p),p=setTimeout(()=>{m(a.value).then(e=>{e.result?(a.classList.add("warning"),f("Duplicate Table Slug")):(a.classList.remove("warning"),f(null))})},300)},required:!0,defaultValue:a.tableName})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"table_description",id:"table_description",placeholder:"Short Description of Table",defaultValue:a.tableDescription})]}),(0,s.jsx)("button",{type:"submit",className:"w-full"+(_?" pointer-events-none opacity-40":""),id:"create-new-table-form-submit-button",children:"Update Table Info"})]})]})})}u=(b.then?(await b)():b)[0],l()}catch(e){l(e)}})},51275:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(8732),s=t(82015),r=t.n(s);function i({table:e,database:a,user:t,activeDbClone:s}){let i=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===a.db_full_name;return i?(0,l.jsxs)("span",{className:"info small green gap-1"+(a?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,l.jsx)("a",{href:`/admin/${t?.id}/databases/${i}/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:a.db_name}),")."]}):(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${t?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:i})}),(0,l.jsx)("span",{children:"database."})]})," ",a?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,l.jsx)(r().Fragment,{})}},10621:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({message:e}){return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:e})]})}t(82015)},22873:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(71205);async function s({request:e,databaseSlug:a,user:t,query:s}){try{let r=t.id,i=null;if(!s?.delegated)return{dbUserId:r};let n=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${n}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,l.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((i=JSON.parse(t)).databaseSlug===a)return{dbUserId:r=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:r}}catch(e){return null}}},24872:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(46169);async function s({tableName:e,columnName:a,value:t,dbFullName:s,dispatch:r,userId:i,dbId:n}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${a}&value=${t}${s?"&dbFullName="+s:""}${i?"&userId="+i:""}${n?"&dbId="+n:""}`)}},7143:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(27825),s=t(46169);function r({query:e,table:a,database:t,dbSchemaData:r,tableFields:i,tableIndexes:n,setLoading:d}){let o=[...r];try{let r=o.findIndex(e=>e.dbFullName===t.db_full_name),u=o[r].tables.findIndex(e=>e.tableName===a.tableName);if(o[r].tables[u].fields=i?l.cloneDeep(i):[],o[r].tables[u].indexes=n?l.cloneDeep(n):[],o[r].tables[u].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,s.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:o,database:t.db_slug,table:a,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}}},83690:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{EditTableContext:()=>h,default:()=>g,getServerSideProps:()=>x});var s=t(8732),r=t(82015),i=t.n(r),n=t(25562),d=t(92702),o=t(55880),u=t(9723),c=t(22873),b=t(71934),m=t(72272),p=e([o,u]);[o,u]=p.then?(await p)():p;let h=i().createContext({});function g({user:e,database:a,table:t,dbSchemaData:l,query:r,confirmedDelegetedUser:d}){let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Edit Table | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Edit Table"})]}),[b,m]=i().useState(t.fields),[p,g]=i().useState(null),[x,f]=i().useState(0),_=i().useRef();return(0,s.jsx)(n.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(o.A,{database:a,query:r,confirmedDelegetedUser:d,user:e}),children:(0,s.jsx)(h.Provider,{value:{user:e,database:a,table:t,tableFields:b,setTableFields:m,targetField:p,setTargetField:g,pageRefresh:x,setPageRefresh:f,refreshFieldsListRef:_,dbSchemaData:l,query:r,confirmedDelegetedUser:d},children:(0,s.jsx)(u.A,{})})})}async function x({req:e,res:a,query:t}){try{let l=await (0,d.A)(e,a);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,c.A)({request:e,user:l,databaseSlug:t.single,query:t});if(!s)throw Error("No Db Object Found!");let{dbUserId:r,rootUserId:i}=s,n=await (0,b.A)(`SELECT * FROM user_databases WHERE user_id='${r}' AND db_slug='${t.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};let o=(0,m.A)({userId:Number(r)});if(!o)throw Error("User schema data not found!");let u=o.filter(e=>e.dbFullName===n[0].db_full_name)?.[0]?.tables,p=u?.filter(e=>e.tableName===t.single_table)[0];if(!u||!p)return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};return{props:{user:l,database:n[0],dbSchemaData:o,table:p,query:t,confirmedDelegetedUser:s}}}catch(e){return{redirect:{destination:"/",permanent:!1}}}}l()}catch(e){l(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),l=a.X(0,[883,9821,6521,9796,5392,3634,3155,3791,9901],()=>t(98347));module.exports=l})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7181,e.ids=[7181],e.modules={98347:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{config:()=>g,default:()=>c,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>h});var s=t(63865),r=t(9455),i=t(30671),n=t(5583),d=t(19796),o=t(83690),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,i.M)(o,"default"),b=(0,i.M)(o,"getStaticProps"),m=(0,i.M)(o,"getStaticPaths"),p=(0,i.M)(o,"getServerSideProps"),g=(0,i.M)(o,"config"),x=(0,i.M)(o,"reportWebVitals"),h=(0,i.M)(o,"unstable_getStaticProps"),f=(0,i.M)(o,"unstable_getStaticPaths"),_=(0,i.M)(o,"unstable_getStaticParams"),v=(0,i.M)(o,"unstable_getServerProps"),w=(0,i.M)(o,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:o});l()}catch(e){l(e)}})},9723:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.d(a,{A:()=>h});var s=t(8732),r=t(82015),i=t.n(r),n=t(83690),d=t(59023),o=t(53926),u=t(15028),c=t(471),b=t(7143),m=t(537),p=t(51275),g=t(23791),x=e([n,u,g]);function h(){let{user:e,database:a,table:t,tableFields:l,setTableFields:r,setTargetField:x,refreshFieldsListRef:h,dbSchemaData:f,query:_,confirmedDelegetedUser:v}=i().useContext(n.EditTableContext);return v?.delegated,v?.priviledges?.match(/Edit Tables/i),v?.priviledges?.match(/Delete Tables/i),v?.priviledges?.match(/Create Tables/i),(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{children:"Edit"}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${t.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",children:t.tableFullName}),(0,s.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:_?.delegated,user:e})]}),a.active_clone?(0,s.jsx)(m.A,{database:a,user:e}):(0,s.jsx)(s.Fragment,{}),a.remote_connected?(0,s.jsx)(g.p,{database:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.A,{table:t,database:a,user:e}),(0,s.jsxs)("div",{className:"w-full flex-col",children:[(0,s.jsx)(u.A,{}),(0,s.jsx)(c.A,{user:e,tableFields:l,setTableFields:r,setTargetField:x,refreshFieldsListRef:h,updateTable:!0,database:a,updateTableAfterFieldsUpdateFunction:function(){(0,b.A)({query:_,table:t,database:a,dbSchemaData:f,tableFields:l,tableIndexes:t.indexes})},confirmedDelegetedUser:v,query:_,table:t})]})]})}[n,u,g]=x.then?(await x)():x,l()}catch(e){l(e)}})},15028:(e,a,t)=>{t.a(e,async(e,l)=>{try{let p;t.d(a,{A:()=>m});var s=t(8732),r=t(82015),i=t.n(r),n=t(16757),d=t(24872),o=t(46169),u=t(83690),c=t(10621),b=e([u]);function m(){let{user:e,table:a,tableFields:t,database:l,query:r,confirmedDelegetedUser:b}=i().useContext(u.EditTableContext);async function m(a){return await (0,d.A)({tableName:"user_database_tables",columnName:"table_slug",value:a,userId:e.id})}let g=b?.delegated,x=b?.priviledges?.match(/Edit Tables/i);b?.priviledges?.match(/Delete Tables/i),b?.priviledges?.match(/Create Tables/i);let[h,f]=i().useState(null),[_,v]=i().useState(!1);return(0,s.jsx)(i().Fragment,{children:(!g||g&&x)&&(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Table Information"}),_&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:t=>{t.preventDefault(),v(!0);let s=t.target,i=s.table_name.value,n=s.table_slug.value,d=s.table_description.value;(0,o.A)("/api/updateUserTable",{method:"post",body:{dbFullName:l.db_full_name,dbSlug:l.db_slug,dbId:l.id,tableNameOld:a.tableName,payload:{tableName:n,tableFullName:i,tableDescription:d},delegated:r?.delegated}},!0).then(a=>{a.success?window.location.pathname=`/admin/${e?.id}/databases/${l.db_slug}/tables`+window.location.search:(window.alert("Failed to update Table! Please Try again."),window.location.reload())})},children:[h&&(0,s.jsx)(c.A,{message:h}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"table_name",id:"table_name",placeholder:"Table Name",onInput:async e=>{let t=e.target,l=t.closest("form");t.value.match(/./)?(t.classList.remove("warning"),f(null)):t.classList.add("warning"),l.table_slug.value=t.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let s=l.table_slug.value;window.clearTimeout(p),p=setTimeout(()=>{m(s).then(e=>{e.result&&s!==a.tableName?(l.table_slug.classList.add("warning"),f("Duplicate Table Name")):(l.table_slug.classList.remove("warning"),f(null))})},300)},required:!0,defaultValue:a.tableFullName})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"table_slug",id:"table_slug",placeholder:"Table Slug",onInput:e=>{let a=e.target;a.closest("form"),a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning"),window.clearTimeout(p),p=setTimeout(()=>{m(a.value).then(e=>{e.result?(a.classList.add("warning"),f("Duplicate Table Slug")):(a.classList.remove("warning"),f(null))})},300)},required:!0,defaultValue:a.tableName})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"table_description",id:"table_description",placeholder:"Short Description of Table",defaultValue:a.tableDescription})]}),(0,s.jsx)("button",{type:"submit",className:"w-full"+(_?" pointer-events-none opacity-40":""),id:"create-new-table-form-submit-button",children:"Update Table Info"})]})]})})}u=(b.then?(await b)():b)[0],l()}catch(e){l(e)}})},51275:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(8732),s=t(82015),r=t.n(s);function i({table:e,database:a,user:t,activeDbClone:s}){let i=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===a.db_full_name;return i?(0,l.jsxs)("span",{className:"info small green gap-1"+(a?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,l.jsx)("a",{href:`/admin/${t?.id}/databases/${i}/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:a.db_name}),")."]}):(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${t?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:i})}),(0,l.jsx)("span",{children:"database."})]})," ",a?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,l.jsx)(r().Fragment,{})}},10621:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);function s({message:e}){return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:e})]})}t(82015)},22873:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(71205);async function s({request:e,databaseSlug:a,user:t,query:s}){try{let r=t.id,i=null;if(!s?.delegated)return{dbUserId:r};let n=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${n}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,l.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((i=JSON.parse(t)).databaseSlug===a)return{dbUserId:r=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:r}}catch(e){return null}}},24872:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(46169);async function s({tableName:e,columnName:a,value:t,dbFullName:s,dispatch:r,userId:i,dbId:n}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${a}&value=${t}${s?"&dbFullName="+s:""}${i?"&userId="+i:""}${n?"&dbId="+n:""}`)}},7143:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(27825),s=t(46169);function r({query:e,table:a,database:t,dbSchemaData:r,tableFields:i,tableIndexes:n,setLoading:d}){let o=[...r];try{let r=o.findIndex(e=>e.dbFullName===t.db_full_name),u=o[r].tables.findIndex(e=>e.tableName===a.tableName);if(o[r].tables[u].fields=i?l.cloneDeep(i):[],o[r].tables[u].indexes=n?l.cloneDeep(n):[],o[r].tables[u].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,s.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:o,database:t.db_slug,table:a,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}}},83690:(e,a,t)=>{t.a(e,async(e,l)=>{try{t.r(a),t.d(a,{EditTableContext:()=>h,default:()=>g,getServerSideProps:()=>x});var s=t(8732),r=t(82015),i=t.n(r),n=t(25562),d=t(92702),o=t(55880),u=t(9723),c=t(22873),b=t(71934),m=t(72272),p=e([o,u]);[o,u]=p.then?(await p)():p;let h=i().createContext({});function g({user:e,database:a,table:t,dbSchemaData:l,query:r,confirmedDelegetedUser:d}){let c=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Edit Table | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Edit Table"})]}),[b,m]=i().useState(t.fields),[p,g]=i().useState(null),[x,f]=i().useState(0),_=i().useRef();return(0,s.jsx)(n.A,{head:c,user:e,extraHeaderContent:(0,s.jsx)(o.A,{database:a,query:r,confirmedDelegetedUser:d,user:e}),children:(0,s.jsx)(h.Provider,{value:{user:e,database:a,table:t,tableFields:b,setTableFields:m,targetField:p,setTargetField:g,pageRefresh:x,setPageRefresh:f,refreshFieldsListRef:_,dbSchemaData:l,query:r,confirmedDelegetedUser:d},children:(0,s.jsx)(u.A,{})})})}async function x({req:e,res:a,query:t}){try{let l=await (0,d.A)(e,a);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,c.A)({request:e,user:l,databaseSlug:t.single,query:t});if(!s)throw Error("No Db Object Found!");let{dbUserId:r,rootUserId:i}=s,n=await (0,b.A)(`SELECT * FROM user_databases WHERE user_id='${r}' AND db_slug='${t.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};let o=(0,m.A)({userId:Number(r)});if(!o)throw Error("User schema data not found!");let u=o.filter(e=>e.dbFullName===n[0].db_full_name)?.[0]?.tables,p=u?.filter(e=>e.tableName===t.single_table)[0];if(!u||!p)return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};return{props:{user:l,database:n[0],dbSchemaData:o,table:p,query:t,confirmedDelegetedUser:s}}}catch(e){return{redirect:{destination:"/",permanent:!1}}}}l()}catch(e){l(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),l=a.X(0,[883,9821,6521,9796,5392,7769,3155,6247,2282],()=>t(98347));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json index e0063dc..44082cd 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3496.js","../../../../../../../chunks/3634.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/3791.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5839.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6160.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/8760.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9821.js","../../../../../../../chunks/9901.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5771.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6133.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6247.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/7303.js","../../../../../../../chunks/7769.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9136.js","../../../../../../../chunks/9240.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9814.js","../../../../../../../chunks/9821.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js index 96a4977..b6d2bf8 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js @@ -1,17 +1,17 @@ -"use strict";(()=>{var e={};e.id=6930,e.ids=[6930],e.modules={52738:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>g,getStaticPaths:()=>c,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>T});var i=r(63865),s=r(9455),n=r(30671),l=r(5583),o=r(19796),u=r(78704),d=e([u]);u=(d.then?(await d)():d)[0];let p=(0,n.M)(u,"default"),m=(0,n.M)(u,"getStaticProps"),c=(0,n.M)(u,"getStaticPaths"),g=(0,n.M)(u,"getServerSideProps"),x=(0,n.M)(u,"config"),h=(0,n.M)(u,"reportWebVitals"),T=(0,n.M)(u,"unstable_getStaticProps"),I=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),f=(0,n.M)(u,"unstable_getServerProps"),v=(0,n.M)(u,"unstable_getServerSideProps"),y=new i.PagesRouteModule({definition:{kind:s.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:u});a()}catch(e){a(e)}})},60424:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(42960);function i({paradigm:e,table:t,query:r,user:i}){let s="";try{let i=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),l=t.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let o=[],u=[];o.push(`type ${i} = {`),u.push(`/** - * @typedef {object} ${i}`),l.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(a.A)?"?":"";o.push(` ${e.fieldName}${t}: ${n(e.dataType||"")};`),u.push(` * @property {${n(e.dataType||"")}${t}} ${e.fieldName}`)}),o.push("}"),u.push(" */"),e?.match(/javascript/i)&&(s=u.join("\n")),e?.match(/typescript/i)&&(s=o.join("\n"))}catch(e){console.log(e.message),s=null}return s}},51339:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(8732);function i({collapse:e,setCollapse:t}){return(0,a.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,a.jsx)("span",{children:e?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},84483:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(8732);function i({children:e,open:t,setOpen:r,onClose:i,maxWidth:s}){return(0,a.jsx)(a.Fragment,{})}r(82015),r(1976),r(58150)},42960:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},77047:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(29021),i=r.n(a);async function s({user:e,message:t,component:r,noMail:a,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],t=s.headers["x-real-ip"],r=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=r||a||t||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6930,e.ids=[6930],e.modules={52738:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>g,getStaticPaths:()=>c,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>T});var s=r(63865),i=r(9455),n=r(30671),l=r(5583),o=r(19796),u=r(78704),d=e([u]);u=(d.then?(await d)():d)[0];let p=(0,n.M)(u,"default"),m=(0,n.M)(u,"getStaticProps"),c=(0,n.M)(u,"getStaticPaths"),g=(0,n.M)(u,"getServerSideProps"),x=(0,n.M)(u,"config"),h=(0,n.M)(u,"reportWebVitals"),T=(0,n.M)(u,"unstable_getStaticProps"),I=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),f=(0,n.M)(u,"unstable_getServerProps"),v=(0,n.M)(u,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:u});a()}catch(e){a(e)}})},60424:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(42960);function s({paradigm:e,table:t,query:r,user:s}){let i="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),l=t.fields;function n(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let o=[],u=[];o.push(`type ${s} = {`),u.push(`/** + * @typedef {object} ${s}`),l.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(a.A)?"?":"";o.push(` ${e.fieldName}${t}: ${n(e.dataType||"")};`),u.push(` * @property {${n(e.dataType||"")}${t}} ${e.fieldName}`)}),o.push("}"),u.push(" */"),e?.match(/javascript/i)&&(i=u.join("\n")),e?.match(/typescript/i)&&(i=o.join("\n"))}catch(e){console.log(e.message),i=null}return i}},51339:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({collapse:e,setCollapse:t}){return(0,a.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,a.jsx)("span",{children:e?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},84483:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:i}){return(0,a.jsx)(a.Fragment,{})}r(82015),r(1976),r(58150)},42960:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},77047:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(29021),s=r.n(a);async function i({user:e,message:t,component:r,noMail:a,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||i.socket.remoteAddress;if(!s)return null;return String(s)}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} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(a+=` -URL: ${s.url}`),s?.body&&(a+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` +User Email: ${e?.email}`),i?.url&&(a+=` +URL: ${i.url}`),i?.body&&(a+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),l&&(a+=` IP: ${l}`),a+=` Date: ${n.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let o=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let o=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,6521,9796,5392,3634,3155,3791,725,4627,8704],()=>r(52738));module.exports=a})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,6521,9796,5392,7769,3155,6247,725,4627,8704],()=>r(52738));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]/entries.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json index a9f91f9..1a3db7e 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3496.js","../../../../../../../chunks/3634.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/3791.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5839.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6160.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/8760.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9821.js","../../../../../../../chunks/9901.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5771.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6133.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6247.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/7303.js","../../../../../../../chunks/7769.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9136.js","../../../../../../../chunks/9240.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9814.js","../../../../../../../chunks/9821.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js index 885a06d..619bf87 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js @@ -1,17 +1,17 @@ -"use strict";(()=>{var e={};e.id=794,e.ids=[794],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},7213:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>y,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>x,routeModule:()=>E,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>A,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>g});var s=a(63865),l=a(9455),i=a(30671),n=a(5583),d=a(19796),c=a(51325),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,i.M)(c,"default"),p=(0,i.M)(c,"getStaticProps"),m=(0,i.M)(c,"getStaticPaths"),h=(0,i.M)(c,"getServerSideProps"),y=(0,i.M)(c,"config"),x=(0,i.M)(c,"reportWebVitals"),g=(0,i.M)(c,"unstable_getStaticProps"),b=(0,i.M)(c,"unstable_getStaticPaths"),A=(0,i.M)(c,"unstable_getStaticParams"),f=(0,i.M)(c,"unstable_getServerProps"),v=(0,i.M)(c,"unstable_getServerSideProps"),E=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:c});r()}catch(e){r(e)}})},47198:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>o});var s=a(8732),l=a(82015),i=a.n(l),n=a(51325);a(46169);var d=a(80830),c=e([n]);function o(){let{entry:e,targetEntry:t,database:a,table:r,user:l}=i().useContext(n.SingleEntryContext),[c,o]=i().useState([]),u=(()=>{let t=Object.keys(e);return t[1].match(/uuid/i)?t[2]:t[1]})();return c?.[0]?(0,s.jsx)("div",{className:"row gap-3 flex-wrap min-w-[80px]",children:(0,s.jsx)(d.A,{selectOptions:c.map(t=>({title:t.title||t.slug||t.full_name||t[u]||t.id,payload:t.id,default:e.id==t.id})),onChangeHandler:e=>{let t=`/admin/${l?.id}/databases/${a.db_slug}/tables/${r.tableName}/entries/${e.target.value}`;window.location.href=`${t}${window.location.search}`}})}):null}n=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},15:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>x});var s=a(8732),l=a(82015),i=a.n(l),n=a(51325),d=a(59023),c=a(53926),o=a(73872),u=a(23180),p=a(537),m=a(12254),h=a(47198),y=e([n,o,m,h]);function x(){let{user:e,database:t,table:r,dbSchemaData:l,entry:y,setTargetEntry:x,richTextEditors:g,jsonTextEditors:b,query:A,confirmedDelegetedUser:f}=i().useContext(n.SingleEntryContext),v=a(94327);return f?.delegated,f?.priviledges?.match(/Edit Tables/i),f?.priviledges?.match(/Delete Tables/i),f?.priviledges?.match(/Create Tables/i),f?.priviledges?.match(/Edit Entries/i),f?.priviledges?.match(/Delete Entries/i),(0,s.jsxs)(i().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",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsxs)("span",{className:"inline-block",children:[(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:[r?.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:r?.tableName&&(0,s.jsx)(o.A,{slugText:r.tableName,justIcon:!0})})]})," ","Table Entry #"]}),(0,s.jsx)("span",{children:y.id})]})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[t&&r?(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${r.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}):(0,s.jsx)("span",{children:"No Db and Table"}),(0,s.jsx)(m.A,{}),(0,s.jsx)(h.A,{})]})]}),(0,s.jsx)(c.A,{confirmedDelegetedUser:A?.delegated,user:e})]}),t?.active_clone?(0,s.jsx)(p.A,{database:t,user:e}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(u.A,{user:e,database:t,table:r,dbSchemaData:l,richTextEditors:g,dataTypes:v,entry:y,entryPage:!0,query:A,confirmedDelegetedUser:f,jsonTextEditors:b})]})}[n,o,m,h]=y.then?(await y)():y,r()}catch(e){r(e)}})},12254:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>c});var s=a(8732),l=a(82015),i=a.n(l),n=a(51325),d=e([n]);function c(){let{prevEntry:e,nextEntry:t,database:a,table:r,user:l}=i().useContext(n.SingleEntryContext);return(0,s.jsxs)("div",{className:"row gap-3 flex-wrap",children:[e&&(0,s.jsx)("a",{href:`/admin/${l?.id}/databases/${a.db_slug}/tables/${r.tableName}/entries/${e.id}`,className:"button outlined gray",children:"Prev"}),t&&(0,s.jsx)("a",{href:`/admin/${l?.id}/databases/${a.db_slug}/tables/${r.tableName}/entries/${t.id}`,className:"button outlined gray",children:"Next"})]})}n=(d.then?(await d)():d)[0],r()}catch(e){r(e)}})},60424:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(42960);function s({paradigm:e,table:t,query:a,user:s}){let l="";try{let s=`DSQL_${a.single}_${a.single_table}`.toUpperCase(),n=t.fields;function i(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let d=[],c=[];d.push(`type ${s} = {`),c.push(`/** - * @typedef {object} ${s}`),n.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(r.A)?"?":"";d.push(` ${e.fieldName}${t}: ${i(e.dataType||"")};`),c.push(` * @property {${i(e.dataType||"")}${t}} ${e.fieldName}`)}),d.push("}"),c.push(" */"),e?.match(/javascript/i)&&(l=c.join("\n")),e?.match(/typescript/i)&&(l=d.join("\n"))}catch(e){console.log(e.message),l=null}return l}},537:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({database:e,user:t}){let a=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),s=`/admin/${t?.id}/databases/${a}`;return(0,r.jsx)("div",{className:"info green",children:(0,r.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,r.jsx)("b",{children:(0,r.jsx)("a",{href:s,target:"_blank",className:"query-url",children:a})})]})})}a(82015)},51339:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({collapse:e,setCollapse:t}){return(0,r.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:a=>{e?t(!1):t(!0)},children:[(0,r.jsx)("span",{children:e?"Expand":"Collapse"}),(0,r.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,r.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}a(82015)},42960:(e,t,a)=>{a.d(t,{A:()=>r});let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let i=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=794,e.ids=[794],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},7213:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>y,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>g,routeModule:()=>E,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>x});var s=a(63865),n=a(9455),i=a(30671),l=a(5583),d=a(19796),c=a(51325),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,i.M)(c,"default"),p=(0,i.M)(c,"getStaticProps"),m=(0,i.M)(c,"getStaticPaths"),h=(0,i.M)(c,"getServerSideProps"),y=(0,i.M)(c,"config"),g=(0,i.M)(c,"reportWebVitals"),x=(0,i.M)(c,"unstable_getStaticProps"),b=(0,i.M)(c,"unstable_getStaticPaths"),f=(0,i.M)(c,"unstable_getStaticParams"),A=(0,i.M)(c,"unstable_getServerProps"),v=(0,i.M)(c,"unstable_getServerSideProps"),E=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",bundlePath:"",filename:""},components:{App:d.default,Document:l.default},userland:c});r()}catch(e){r(e)}})},47198:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>o});var s=a(8732),n=a(82015),i=a.n(n),l=a(51325);a(46169);var d=a(80830),c=e([l]);function o(){let{entry:e,targetEntry:t,database:a,table:r,user:n}=i().useContext(l.SingleEntryContext),[c,o]=i().useState([]),u=(()=>{let t=Object.keys(e);return t[1].match(/uuid/i)?t[2]:t[1]})();return c?.[0]?(0,s.jsx)("div",{className:"row gap-3 flex-wrap min-w-[80px]",children:(0,s.jsx)(d.A,{selectOptions:c.map(t=>({title:t.title||t.slug||t.full_name||t[u]||t.id,payload:t.id,default:e.id==t.id})),onChangeHandler:e=>{let t=`/admin/${n?.id}/databases/${a.db_slug}/tables/${r.tableName}/entries/${e.target.value}`;window.location.href=`${t}${window.location.search}`}})}):null}l=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},15:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>g});var s=a(8732),n=a(82015),i=a.n(n),l=a(51325),d=a(59023),c=a(53926),o=a(73872),u=a(23180),p=a(537),m=a(12254),h=a(47198),y=e([l,o,m,h]);function g(){let{user:e,database:t,table:r,dbSchemaData:n,entry:y,setTargetEntry:g,richTextEditors:x,jsonTextEditors:b,query:f,confirmedDelegetedUser:A}=i().useContext(l.SingleEntryContext),v=a(94327);return A?.delegated,A?.priviledges?.match(/Edit Tables/i),A?.priviledges?.match(/Delete Tables/i),A?.priviledges?.match(/Create Tables/i),A?.priviledges?.match(/Edit Entries/i),A?.priviledges?.match(/Delete Entries/i),(0,s.jsxs)(i().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",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsxs)("span",{className:"inline-block",children:[(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:[r?.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:r?.tableName&&(0,s.jsx)(o.A,{slugText:r.tableName,justIcon:!0})})]})," ","Table Entry #"]}),(0,s.jsx)("span",{children:y.id})]})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[t&&r?(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${r.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}):(0,s.jsx)("span",{children:"No Db and Table"}),(0,s.jsx)(m.A,{}),(0,s.jsx)(h.A,{})]})]}),(0,s.jsx)(c.A,{confirmedDelegetedUser:f?.delegated,user:e})]}),t?.active_clone?(0,s.jsx)(p.A,{database:t,user:e}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(u.A,{user:e,database:t,table:r,dbSchemaData:n,richTextEditors:x,dataTypes:v,entry:y,entryPage:!0,query:f,confirmedDelegetedUser:A,jsonTextEditors:b})]})}[l,o,m,h]=y.then?(await y)():y,r()}catch(e){r(e)}})},12254:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>c});var s=a(8732),n=a(82015),i=a.n(n),l=a(51325),d=e([l]);function c(){let{prevEntry:e,nextEntry:t,database:a,table:r,user:n}=i().useContext(l.SingleEntryContext);return(0,s.jsxs)("div",{className:"row gap-3 flex-wrap",children:[e&&(0,s.jsx)("a",{href:`/admin/${n?.id}/databases/${a.db_slug}/tables/${r.tableName}/entries/${e.id}`,className:"button outlined gray",children:"Prev"}),t&&(0,s.jsx)("a",{href:`/admin/${n?.id}/databases/${a.db_slug}/tables/${r.tableName}/entries/${t.id}`,className:"button outlined gray",children:"Next"})]})}l=(d.then?(await d)():d)[0],r()}catch(e){r(e)}})},60424:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(42960);function s({paradigm:e,table:t,query:a,user:s}){let n="";try{let s=`DSQL_${a.single}_${a.single_table}`.toUpperCase(),l=t.fields;function i(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let d=[],c=[];d.push(`type ${s} = {`),c.push(`/** + * @typedef {object} ${s}`),l.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(r.A)?"?":"";d.push(` ${e.fieldName}${t}: ${i(e.dataType||"")};`),c.push(` * @property {${i(e.dataType||"")}${t}} ${e.fieldName}`)}),d.push("}"),c.push(" */"),e?.match(/javascript/i)&&(n=c.join("\n")),e?.match(/typescript/i)&&(n=d.join("\n"))}catch(e){console.log(e.message),n=null}return n}},537:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({database:e,user:t}){let a=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),s=`/admin/${t?.id}/databases/${a}`;return(0,r.jsx)("div",{className:"info green",children:(0,r.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,r.jsx)("b",{children:(0,r.jsx)("a",{href:s,target:"_blank",className:"query-url",children:a})})]})})}a(82015)},51339:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({collapse:e,setCollapse:t}){return(0,r.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:a=>{e?t(!1):t(!0)},children:[(0,r.jsx)("span",{children:e?"Expand":"Collapse"}),(0,r.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,r.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}a(82015)},42960:(e,t,a)=>{a.d(t,{A:()=>r});let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},77047:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(29021),s=a.n(r);async function n({user:e,message:t,component:a,noMail:r,req:n}){let i=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],a=n.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),l?.url&&(r+=` -URL: ${l.url}`),l?.body&&(r+=` -Request Body: ${JSON.stringify(l.body,null,4)}`),n&&(r+=` -IP: ${n}`),r+=` +User Email: ${e?.email}`),n?.url&&(r+=` +URL: ${n.url}`),n?.body&&(r+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(r+=` +IP: ${l}`),r+=` Date: ${i.toDateString()} ========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",r),s().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},51325:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{SingleEntryContext:()=>v,default:()=>A,getServerSideProps:()=>f});var s=a(8732),l=a(82015),i=a.n(l),n=a(29021),d=a.n(n),c=a(92702),o=a(25562),u=a(55880),p=a(52854),m=a(15),h=a(22873),y=a(77047),x=a(71934),g=a(43363),b=e([u,m]);[u,m]=b.then?(await b)():b;let v=i().createContext({});function A({user:e,database:t,table:a,dbSchemaData:r,entry:l,query:n,confirmedDelegetedUser:d,prevEntry:c,nextEntry:p}){let h=`${a.tableFullName} Table | Datasquirel`,y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[x,b]=i().useState(l),A=i().useRef([]),f=i().useRef([]);return(0,s.jsx)(o.A,{head:y,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:t,query:n,confirmedDelegetedUser:d,user:e}),aceEditor:!0,children:(0,s.jsxs)(v.Provider,{value:{user:e,database:t,table:a,dbSchemaData:r,entry:l,richTextEditors:A,jsonTextEditors:f,targetEntry:x,setTargetEntry:b,query:n,confirmedDelegetedUser:d,prevEntry:c,nextEntry:p},children:[(0,s.jsx)(m.A,{}),(0,s.jsx)(g.A,{snug:!0})]})})}async function f({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,s=await (0,h.A)({request:e,user:r,databaseSlug:t,query:a});if(!s)throw Error("No Db Object Found!");let{dbUserId:l,rootUserId:i}=s,n=await (0,x.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let c=n[0].db_full_name,o=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],m=await (0,p.A)({database:c,queryString:`SELECT * FROM ${c}.${u.tableName} WHERE id='${a.single_entry}'`,tableSchema:u});if(!m?.[0])return{redirect:{destination:`/admin/${r?.id}/databases/${n[0].db_slug}/tables/${u.tableName}/entries`,permanent:!1}};let y=m[0],g=await (0,p.A)({database:c,queryString:`SELECT id FROM ${c}.${u.tableName} WHERE id > '${a.single_entry}' LIMIT 1`,tableSchema:u}),b=await (0,p.A)({database:c,queryString:`SELECT id FROM ${c}.${u.tableName} WHERE id < '${a.single_entry}' ORDER BY id DESC LIMIT 1`,tableSchema:u});return{props:{user:r,database:n[0],table:u,dbSchemaData:o,entry:y,query:a,confirmedDelegetedUser:s,nextEntry:g?.[0]||null,prevEntry:b?.[0]||null}}}catch(e){return(0,y.A)({component:"[single_entry]-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null,entry:null}}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,725,4627],()=>a(7213));module.exports=r})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(55511),s=a(79428),n=a(48243);function i({encryptedString:e,encryptionKey:t,encryptionSalt:a}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:l,keyLen:d,algorithm:c,bufferAllocSize:o}=(0,n.A)({encryptionKey:t});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 u=(0,r.scryptSync)(i,l,d),p=s.Buffer.alloc(o,0),m=(0,r.createDecipheriv)(c,u,p);try{let t=m.update(e,"hex","utf8");return t+=m.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},48243:(e,t,a)=>{a.d(t,{A:()=>r});function r(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},51325:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{SingleEntryContext:()=>v,default:()=>f,getServerSideProps:()=>A});var s=a(8732),n=a(82015),i=a.n(n),l=a(29021),d=a.n(l),c=a(92702),o=a(25562),u=a(55880),p=a(52854),m=a(15),h=a(22873),y=a(77047),g=a(71934),x=a(43363),b=e([u,m]);[u,m]=b.then?(await b)():b;let v=i().createContext({});function f({user:e,database:t,table:a,dbSchemaData:r,entry:n,query:l,confirmedDelegetedUser:d,prevEntry:c,nextEntry:p}){let h=`${a.tableFullName} Table | Datasquirel`,y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[g,b]=i().useState(n),f=i().useRef([]),A=i().useRef([]);return(0,s.jsx)(o.A,{head:y,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:t,query:l,confirmedDelegetedUser:d,user:e}),aceEditor:!0,children:(0,s.jsxs)(v.Provider,{value:{user:e,database:t,table:a,dbSchemaData:r,entry:n,richTextEditors:f,jsonTextEditors:A,targetEntry:g,setTargetEntry:b,query:l,confirmedDelegetedUser:d,prevEntry:c,nextEntry:p},children:[(0,s.jsx)(m.A,{}),(0,s.jsx)(x.A,{snug:!0})]})})}async function A({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,s=await (0,h.A)({request:e,user:r,databaseSlug:t,query:a});if(!s)throw Error("No Db Object Found!");let{dbUserId:n,rootUserId:i}=s,l=await (0,g.A)(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${a.single}'`);if(!l||!l[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let c=l[0].db_full_name,o=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],m=await (0,p.A)({database:c,queryString:`SELECT * FROM ${c}.${u.tableName} WHERE id='${a.single_entry}'`,tableSchema:u});if(!m?.[0])return{redirect:{destination:`/admin/${r?.id}/databases/${l[0].db_slug}/tables/${u.tableName}/entries`,permanent:!1}};let y=m[0],x=await (0,p.A)({database:c,queryString:`SELECT id FROM ${c}.${u.tableName} WHERE id > '${a.single_entry}' LIMIT 1`,tableSchema:u}),b=await (0,p.A)({database:c,queryString:`SELECT id FROM ${c}.${u.tableName} WHERE id < '${a.single_entry}' ORDER BY id DESC LIMIT 1`,tableSchema:u});return{props:{user:r,database:l[0],table:u,dbSchemaData:o,entry:y,query:a,confirmedDelegetedUser:s,nextEntry:x?.[0]||null,prevEntry:b?.[0]||null}}}catch(e){return(0,y.A)({component:"[single_entry]-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null,entry:null}}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,7769,725,4627],()=>a(7213));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json index defb87e..4b0c073 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1251.js","../../../../../../../../chunks/1579.js","../../../../../../../../chunks/194.js","../../../../../../../../chunks/2282.js","../../../../../../../../chunks/3155.js","../../../../../../../../chunks/3474.js","../../../../../../../../chunks/3496.js","../../../../../../../../chunks/3634.js","../../../../../../../../chunks/3704.js","../../../../../../../../chunks/3791.js","../../../../../../../../chunks/4627.js","../../../../../../../../chunks/5392.js","../../../../../../../../chunks/5839.js","../../../../../../../../chunks/5954.js","../../../../../../../../chunks/6160.js","../../../../../../../../chunks/6202.js","../../../../../../../../chunks/6521.js","../../../../../../../../chunks/6622.js","../../../../../../../../chunks/6903.js","../../../../../../../../chunks/725.js","../../../../../../../../chunks/8704.js","../../../../../../../../chunks/8760.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/9796.js","../../../../../../../../chunks/9821.js","../../../../../../../../chunks/9901.js","../../../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1251.js","../../../../../../../../chunks/1579.js","../../../../../../../../chunks/194.js","../../../../../../../../chunks/2282.js","../../../../../../../../chunks/3155.js","../../../../../../../../chunks/3474.js","../../../../../../../../chunks/3704.js","../../../../../../../../chunks/4627.js","../../../../../../../../chunks/5392.js","../../../../../../../../chunks/5771.js","../../../../../../../../chunks/5954.js","../../../../../../../../chunks/6133.js","../../../../../../../../chunks/6202.js","../../../../../../../../chunks/6247.js","../../../../../../../../chunks/6521.js","../../../../../../../../chunks/6622.js","../../../../../../../../chunks/6903.js","../../../../../../../../chunks/725.js","../../../../../../../../chunks/7303.js","../../../../../../../../chunks/7769.js","../../../../../../../../chunks/8704.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/9136.js","../../../../../../../../chunks/9240.js","../../../../../../../../chunks/9796.js","../../../../../../../../chunks/9814.js","../../../../../../../../chunks/9821.js","../../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js index 3b4cae2..6a84946 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2405,e.ids=[2405],e.modules={17723:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>b,default:()=>o,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>x,routeModule:()=>E,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>T,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>h});var s=a(63865),l=a(9455),i=a(30671),n=a(5583),d=a(19796),c=a(62130),u=e([c]);c=(u.then?(await u)():u)[0];let o=(0,i.M)(c,"default"),m=(0,i.M)(c,"getStaticProps"),p=(0,i.M)(c,"getStaticPaths"),g=(0,i.M)(c,"getServerSideProps"),b=(0,i.M)(c,"config"),x=(0,i.M)(c,"reportWebVitals"),h=(0,i.M)(c,"unstable_getStaticProps"),f=(0,i.M)(c,"unstable_getStaticPaths"),T=(0,i.M)(c,"unstable_getStaticParams"),y=(0,i.M)(c,"unstable_getServerProps"),N=(0,i.M)(c,"unstable_getServerSideProps"),E=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:c});r()}catch(e){r(e)}})},20356:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>x});var s=a(8732),l=a(82015),i=a.n(l),n=a(62130),d=a(59023),c=a(53926),u=a(73872),o=a(79130),m=a(537),p=a(51275),g=a(23791),b=e([n,u,o,g]);function x(){let{user:e,database:t,table:a,dbSchemaData:r,query:l,confirmedDelegetedUser:b}=i().useContext(n.AddTableEntryContext);return b?.delegated,b?.priviledges?.match(/Edit Tables/i),b?.priviledges?.match(/Delete Tables/i),b?.priviledges?.match(/Create Tables/i),b?.priviledges?.match(/Edit Entries/i),b?.priviledges?.match(/Delete Entries/i),(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsx)("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 gap-y-2 flex-wrap gap-x-2 items-center",children:["Add New Entry To"," ",(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:[a?.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(u.A,{slugText:a?.tableName||"",justIcon:!0})})]})," ","Table"]})})]})}),(0,s.jsx)(c.A,{confirmedDelegetedUser:l?.delegated,user:e})]}),t?.active_clone?(0,s.jsx)(m.A,{database:t,user:e}):(0,s.jsx)(s.Fragment,{}),t?.remote_connected?(0,s.jsx)(g.p,{database:t}):(0,s.jsx)(s.Fragment,{}),a&&t&&e&&(0,s.jsx)(p.A,{table:a,database:t,user:e}),(0,s.jsx)(o.A,{})]})}[n,u,o,g]=b.then?(await b)():b,r()}catch(e){r(e)}})},79130:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>p});var s=a(8732),l=a(82015),i=a.n(l),n=a(42960),d=a(62130),c=a(16757),u=a(6748),o=a(19391),m=e([d]);function p({}){let{user:e,database:t,table:r,dbSchemaData:l,richTextEditors:m,query:p,confirmedDelegetedUser:g,jsonTextEditors:b,duplicateEntry:x}=i().useContext(d.AddTableEntryContext),h=r?.fields.filter(e=>!e.fieldName?.match(n.A)),f=a(94327);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[T,y]=i().useState(!1),N=i().useRef([]),[E,v]=i().useState(x||null);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 mb-4",children:"Form Fields"}),p?.duplicate&&x&&(0,s.jsxs)("span",{className:"info gray",children:["This post is a duplicate of"," ",(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${r.tableName}/entries/${x.id}`,target:"_blank",children:x.title||`Entry #${x.id}`})]}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8",onSubmit:e=>{(0,o.A)({e,currentRichTextEditorForms:N,database:t,filteredFields:h,jsonTextEditors:b,query:p,setLoading:y,table:r})},onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&window.confirm("Add this Entry?")&&document.getElementById("add-entry-button")?.click()},children:[T&&(0,s.jsx)(c.A,{}),h.map((e,t)=>{let a=f.filter(t=>t.name===e.dataType?.replace(/\d|\(|\)/g,""));return(E&&e.fieldName&&(e.defaultValue=E[e.fieldName],e.defaultValueLiteral=E[e.fieldName]),e.defaultValueLiteral&&!E)?(0,s.jsx)(i().Fragment,{},t+1):(0,s.jsx)(u.A,{fieldObject:e,dataTypeSchema:a[0],richTextEditors:m,currentRichTextEditorForms:N,query:p,confirmedDelegetedUser:g,jsonTextEditors:b},t+1)}),(0,s.jsx)("button",{type:"submit",className:T?" pointer-events-none opacity-40":"",id:"add-entry-button",children:"Add Entry"})]})]})}d=(m.then?(await m)():m)[0],r()}catch(e){r(e)}})},51275:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(8732),s=a(82015),l=a.n(s);function i({table:e,database:t,user:a,activeDbClone:s}){let i=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===t.db_full_name;return i?(0,r.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,r.jsx)("a",{href:`/admin/${a?.id}/databases/${i}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,r.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,r.jsxs)("span",{children:["this current database(",(0,r.jsx)("b",{children:t.db_name}),")."]}):(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("a",{href:`/admin/${a?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,r.jsx)("b",{children:i})}),(0,r.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,r.jsx)(l().Fragment,{})}},42960:(e,t,a)=>{a.d(t,{A:()=>r});let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},19391:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(46169),s=a(72390);function l({e,setLoading:t,filteredFields:a,currentRichTextEditorForms:l,jsonTextEditors:i,database:n,table:d,query:c}){e.preventDefault(),t(!0);let u=e.target,o={};a.forEach(e=>{e?.fieldName&&u[e.fieldName]?.value&&(o[e.fieldName]=u[e.fieldName].value)}),l.current[0]&&l.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(o[e.fieldName]=e.ref.current.getContent())}),i.current[0]&&i.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(o[e.fieldName]=e.ref.current.getValue())});let m={dbSlug:n.db_slug,dbId:n.id,tableName:d.tableName,payload:o,tableSchema:d,delegated:c?.delegated};(0,r.A)("/api/addTableEntry",{method:"post",body:m},!0).then(e=>{e.success?(0,s.A)().then(()=>{window.location.pathname=window.location.pathname.replace(/\/add-entry.*?/,"")}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{t(!1)},500))})}},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let i=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2405,e.ids=[2405],e.modules={17723:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>o,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>b,routeModule:()=>E,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>T,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>h});var s=a(63865),l=a(9455),i=a(30671),n=a(5583),d=a(19796),c=a(62130),u=e([c]);c=(u.then?(await u)():u)[0];let o=(0,i.M)(c,"default"),m=(0,i.M)(c,"getStaticProps"),p=(0,i.M)(c,"getStaticPaths"),g=(0,i.M)(c,"getServerSideProps"),x=(0,i.M)(c,"config"),b=(0,i.M)(c,"reportWebVitals"),h=(0,i.M)(c,"unstable_getStaticProps"),f=(0,i.M)(c,"unstable_getStaticPaths"),T=(0,i.M)(c,"unstable_getStaticParams"),y=(0,i.M)(c,"unstable_getServerProps"),N=(0,i.M)(c,"unstable_getServerSideProps"),E=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:c});r()}catch(e){r(e)}})},20356:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>b});var s=a(8732),l=a(82015),i=a.n(l),n=a(62130),d=a(59023),c=a(53926),u=a(73872),o=a(79130),m=a(537),p=a(51275),g=a(23791),x=e([n,u,o,g]);function b(){let{user:e,database:t,table:a,dbSchemaData:r,query:l,confirmedDelegetedUser:x}=i().useContext(n.AddTableEntryContext);return x?.delegated,x?.priviledges?.match(/Edit Tables/i),x?.priviledges?.match(/Delete Tables/i),x?.priviledges?.match(/Create Tables/i),x?.priviledges?.match(/Edit Entries/i),x?.priviledges?.match(/Delete Entries/i),(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsx)("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 gap-y-2 flex-wrap gap-x-2 items-center",children:["Add New Entry To"," ",(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:[a?.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(u.A,{slugText:a?.tableName||"",justIcon:!0})})]})," ","Table"]})})]})}),(0,s.jsx)(c.A,{confirmedDelegetedUser:l?.delegated,user:e})]}),t?.active_clone?(0,s.jsx)(m.A,{database:t,user:e}):(0,s.jsx)(s.Fragment,{}),t?.remote_connected?(0,s.jsx)(g.p,{database:t}):(0,s.jsx)(s.Fragment,{}),a&&t&&e&&(0,s.jsx)(p.A,{table:a,database:t,user:e}),(0,s.jsx)(o.A,{})]})}[n,u,o,g]=x.then?(await x)():x,r()}catch(e){r(e)}})},79130:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>p});var s=a(8732),l=a(82015),i=a.n(l),n=a(42960),d=a(62130),c=a(16757),u=a(6748),o=a(19391),m=e([d]);function p({}){let{user:e,database:t,table:r,dbSchemaData:l,richTextEditors:m,query:p,confirmedDelegetedUser:g,jsonTextEditors:x,duplicateEntry:b}=i().useContext(d.AddTableEntryContext),h=r?.fields.filter(e=>!e.fieldName?.match(n.A)),f=a(94327);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[T,y]=i().useState(!1),N=i().useRef([]),[E,v]=i().useState(b||null);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 mb-4",children:"Form Fields"}),p?.duplicate&&b&&(0,s.jsxs)("span",{className:"info gray",children:["This post is a duplicate of"," ",(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${r.tableName}/entries/${b.id}`,target:"_blank",children:b.title||`Entry #${b.id}`})]}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8",onSubmit:e=>{(0,o.A)({e,currentRichTextEditorForms:N,database:t,filteredFields:h,jsonTextEditors:x,query:p,setLoading:y,table:r})},onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&window.confirm("Add this Entry?")&&document.getElementById("add-entry-button")?.click()},children:[T&&(0,s.jsx)(c.A,{}),h.map((e,t)=>{let a=f.filter(t=>t.name===e.dataType?.replace(/\d|\(|\)/g,""));return(E&&e.fieldName&&(e.defaultValue=E[e.fieldName],e.defaultValueLiteral=E[e.fieldName]),e.defaultValueLiteral&&!E)?(0,s.jsx)(i().Fragment,{},t+1):(0,s.jsx)(u.A,{fieldObject:e,dataTypeSchema:a[0],richTextEditors:m,currentRichTextEditorForms:N,query:p,confirmedDelegetedUser:g,jsonTextEditors:x},t+1)}),(0,s.jsx)("button",{type:"submit",className:T?" pointer-events-none opacity-40":"",id:"add-entry-button",children:"Add Entry"})]})]})}d=(m.then?(await m)():m)[0],r()}catch(e){r(e)}})},51275:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(8732),s=a(82015),l=a.n(s);function i({table:e,database:t,user:a,activeDbClone:s}){let i=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===t.db_full_name;return i?(0,r.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,r.jsx)("a",{href:`/admin/${a?.id}/databases/${i}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,r.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,r.jsxs)("span",{children:["this current database(",(0,r.jsx)("b",{children:t.db_name}),")."]}):(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("a",{href:`/admin/${a?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,r.jsx)("b",{children:i})}),(0,r.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,r.jsx)(l().Fragment,{})}},42960:(e,t,a)=>{a.d(t,{A:()=>r});let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},19391:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(46169),s=a(72390);function l({e,setLoading:t,filteredFields:a,currentRichTextEditorForms:l,jsonTextEditors:i,database:n,table:d,query:c}){e.preventDefault(),t(!0);let u=e.target,o={};a.forEach(e=>{e?.fieldName&&u[e.fieldName]?.value&&(o[e.fieldName]=u[e.fieldName].value)}),l.current[0]&&l.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(o[e.fieldName]=e.ref.current.getContent())}),i.current[0]&&i.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(o[e.fieldName]=e.ref.current.getValue())});let m={dbSlug:n.db_slug,dbId:n.id,tableName:d.tableName,payload:o,tableSchema:d,delegated:c?.delegated};(0,r.A)("/api/addTableEntry",{method:"post",body:m},!0).then(e=>{e.success?(0,s.A)().then(()=>{window.location.pathname=window.location.pathname.replace(/\/add-entry.*?/,"")}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{t(!1)},500))})}},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let i=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},62130:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{AddTableEntryContext:()=>y,default:()=>f,getServerSideProps:()=>T});var s=a(8732),l=a(82015),i=a.n(l),n=a(29021),d=a.n(n),c=a(92702),u=a(25562),o=a(20356),m=a(55880),p=a(22873),g=a(77047),b=a(71934),x=a(52854),h=e([o,m]);[o,m]=h.then?(await h)():h;let y=i().createContext({});function f({user:e,database:t,table:a,dbSchemaData:r,query:l,confirmedDelegetedUser:n,duplicateEntry:d}){let c=`${a.tableFullName} Table New Entry | Datasquirel`,p=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:c}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),g=i().useRef([]),b=i().useRef([]);return(0,s.jsx)(u.A,{head:p,user:e,extraHeaderContent:(0,s.jsx)(m.A,{database:t,query:l,confirmedDelegetedUser:n,user:e}),children:(0,s.jsx)(y.Provider,{value:{user:e,database:t,table:a,dbSchemaData:r,richTextEditors:g,jsonTextEditors:b,query:l,confirmedDelegetedUser:n,duplicateEntry:d},children:(0,s.jsx)(o.A,{})})})}async function T({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t;let s=a.single,l=await (0,p.A)({request:e,user:r,databaseSlug:s,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:i}=l,n=await (0,b.A)(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${a.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let c=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),u=(c.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0];if(a.duplicate&&a.id){let e=n[0].db_full_name,r=u.tableName,s=await (0,x.A)({database:e,queryString:`SELECT * FROM ${e}.${r} WHERE id='${a.id}'`,tableSchema:u});t=s?.[0]}return{props:{user:r,database:n[0],table:u,dbSchemaData:c,query:a,confirmedDelegetedUser:l,duplicateEntry:t||null}}}catch(e){return(0,g.A)({component:"add-entry-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null}}}}r()}catch(e){r(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,6521,9796,5392,3634,3791,725],()=>a(17723));module.exports=r})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},62130:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{AddTableEntryContext:()=>y,default:()=>f,getServerSideProps:()=>T});var s=a(8732),l=a(82015),i=a.n(l),n=a(29021),d=a.n(n),c=a(92702),u=a(25562),o=a(20356),m=a(55880),p=a(22873),g=a(77047),x=a(71934),b=a(52854),h=e([o,m]);[o,m]=h.then?(await h)():h;let y=i().createContext({});function f({user:e,database:t,table:a,dbSchemaData:r,query:l,confirmedDelegetedUser:n,duplicateEntry:d}){let c=`${a.tableFullName} Table New Entry | Datasquirel`,p=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:c}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),g=i().useRef([]),x=i().useRef([]);return(0,s.jsx)(u.A,{head:p,user:e,extraHeaderContent:(0,s.jsx)(m.A,{database:t,query:l,confirmedDelegetedUser:n,user:e}),children:(0,s.jsx)(y.Provider,{value:{user:e,database:t,table:a,dbSchemaData:r,richTextEditors:g,jsonTextEditors:x,query:l,confirmedDelegetedUser:n,duplicateEntry:d},children:(0,s.jsx)(o.A,{})})})}async function T({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t;let s=a.single,l=await (0,p.A)({request:e,user:r,databaseSlug:s,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:i}=l,n=await (0,x.A)(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${a.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let c=JSON.parse(d().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),u=(c.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0];if(a.duplicate&&a.id){let e=n[0].db_full_name,r=u.tableName,s=await (0,b.A)({database:e,queryString:`SELECT * FROM ${e}.${r} WHERE id='${a.id}'`,tableSchema:u});t=s?.[0]}return{props:{user:r,database:n[0],table:u,dbSchemaData:c,query:a,confirmedDelegetedUser:l,duplicateEntry:t||null}}}catch(e){return(0,g.A)({component:"add-entry-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null}}}}r()}catch(e){r(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},90317:e=>{e.exports=require("html-prettify")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,6521,9796,5392,7769,6247,725],()=>a(17723));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json index bf01dd4..b9b0206 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1251.js","../../../../../../../../chunks/1579.js","../../../../../../../../chunks/194.js","../../../../../../../../chunks/2282.js","../../../../../../../../chunks/3155.js","../../../../../../../../chunks/3474.js","../../../../../../../../chunks/3496.js","../../../../../../../../chunks/3634.js","../../../../../../../../chunks/3704.js","../../../../../../../../chunks/3791.js","../../../../../../../../chunks/4627.js","../../../../../../../../chunks/5392.js","../../../../../../../../chunks/5839.js","../../../../../../../../chunks/5954.js","../../../../../../../../chunks/6160.js","../../../../../../../../chunks/6202.js","../../../../../../../../chunks/6521.js","../../../../../../../../chunks/6622.js","../../../../../../../../chunks/6903.js","../../../../../../../../chunks/725.js","../../../../../../../../chunks/8704.js","../../../../../../../../chunks/8760.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/9796.js","../../../../../../../../chunks/9821.js","../../../../../../../../chunks/9901.js","../../../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1251.js","../../../../../../../../chunks/1579.js","../../../../../../../../chunks/194.js","../../../../../../../../chunks/2282.js","../../../../../../../../chunks/3155.js","../../../../../../../../chunks/3474.js","../../../../../../../../chunks/3704.js","../../../../../../../../chunks/4627.js","../../../../../../../../chunks/5392.js","../../../../../../../../chunks/5771.js","../../../../../../../../chunks/5954.js","../../../../../../../../chunks/6133.js","../../../../../../../../chunks/6202.js","../../../../../../../../chunks/6247.js","../../../../../../../../chunks/6521.js","../../../../../../../../chunks/6622.js","../../../../../../../../chunks/6903.js","../../../../../../../../chunks/725.js","../../../../../../../../chunks/7303.js","../../../../../../../../chunks/7769.js","../../../../../../../../chunks/8704.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/9136.js","../../../../../../../../chunks/9240.js","../../../../../../../../chunks/9796.js","../../../../../../../../chunks/9814.js","../../../../../../../../chunks/9821.js","../../../../../../../../webpack-runtime.js"]} \ 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 dee3149..8e28b54 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={86191:(e,a,t)=>{t.a(e,async(e,r)=>{try{t.r(a),t.d(a,{config:()=>g,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>b,reportWebVitals:()=>h,routeModule:()=>v,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>x,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>f});var s=t(63865),l=t(9455),n=t(30671),i=t(5583),d=t(19796),o=t(12310),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,n.M)(o,"default"),b=(0,n.M)(o,"getStaticProps"),m=(0,n.M)(o,"getStaticPaths"),p=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),h=(0,n.M)(o,"reportWebVitals"),f=(0,n.M)(o,"unstable_getStaticProps"),_=(0,n.M)(o,"unstable_getStaticPaths"),x=(0,n.M)(o,"unstable_getStaticParams"),S=(0,n.M)(o,"unstable_getServerProps"),y=(0,n.M)(o,"unstable_getServerSideProps"),v=new s.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});r()}catch(e){r(e)}})},57414:(e,a,t)=>{t.d(a,{A:()=>o});var r=t(8732),s=t(82015),l=t.n(s),n=t(46169),i=t(91140),d=t(16757);function o({targetTable:e,database:a}){let[t,s]=l().useState(!1);return(0,r.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[t&&(0,r.jsx)(d.A,{width:"20px"}),(0,r.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:t=>{s(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,r.jsx)("span",{children:"Yes"})}),(0,r.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,r.jsx)("span",{children:"Cancel"})})]})]})}},23862:(e,a,t)=>{t.a(e,async(e,r)=>{try{t.d(a,{A:()=>h});var s=t(8732),l=t(82015),n=t.n(l),i=t(12310),d=t(59023),o=t(53926),c=t(73872),u=t(471),b=t(537),m=t(51275),p=t(23791),g=e([i,c,p]);function h(){let{user:e,database:a,table:t,tableFields:r,setTableFields:l,setTargetField:g,refreshFieldsListRef:h,updateTableAfterFieldsUpdateFunction:f,query:_,confirmedDelegetedUser:x}=n().useContext(i.TableFieldsContext);return x?.delegated,x?.priviledges?.match(/Edit Tables/i),x?.priviledges?.match(/Delete Tables/i),x?.priviledges?.match(/Create Tables/i),t?.childTable&&t.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),""),(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{children:"All Fields in"}),(0,s.jsx)("div",{className:"inline relative",children:(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${t.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:[t.tableFullName,(0,s.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,s.jsx)(c.A,{slugText:t.tableName,justIcon:!0})})]})}),(0,s.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,s.jsx)("div",{children:(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${t.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Table Entry"})]})})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:_?.delegated,user:e})]}),a.active_clone?(0,s.jsx)(b.A,{database:a,user:e}):(0,s.jsx)(s.Fragment,{}),a.remote_connected?(0,s.jsx)(p.p,{database:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(m.A,{table:t,database:a,user:e}),(0,s.jsx)(u.A,{user:e,tableFields:r,setTableFields:l,setTargetField:g,refreshFieldsListRef:h,updateTable:!0,updateTableAfterFieldsUpdateFunction:f,database:a,confirmedDelegetedUser:x,query:_,table:t})]})}[i,c,p]=g.then?(await g)():g,r()}catch(e){r(e)}})},51275:(e,a,t)=>{t.d(a,{A:()=>n});var r=t(8732),s=t(82015),l=t.n(s);function n({table:e,database:a,user:t,activeDbClone:s}){let n=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===a.db_full_name;return n?(0,r.jsxs)("span",{className:"info small green gap-1"+(a?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,r.jsx)("a",{href:`/admin/${t?.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,r.jsx)("b",{children:e.childTableName})})," ","in"," ",i?(0,r.jsxs)("span",{children:["this current database(",(0,r.jsx)("b",{children:a.db_name}),")."]}):(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("a",{href:`/admin/${t?.id}/databases/${n}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,r.jsx)("b",{children:n})}),(0,r.jsx)("span",{children:"database."})]})," ",a?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,r.jsx)(l().Fragment,{})}},22873:(e,a,t)=>{t.d(a,{A:()=>s});var r=t(71205);async function s({request:e,databaseSlug:a,user:t,query:s}){try{let l=t.id,n=null;if(!s?.delegated)return{dbUserId:l};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,r.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===a)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}}},41494:(e,a,t)=>{t.d(a,{A:()=>d});var r=t(77047),s=t(71934),l=t(22873),n=t(72272),i=t(52854);async function d({req:e,user:a,query:t}){try{let r=await (0,l.A)({request:e,user:a,databaseSlug:t.single,query:t});if(!r)return null;let{dbUserId:d}=r,o=await (0,s.A)(`SELECT * FROM user_databases WHERE user_id='${d}' AND db_slug='${t.single}'`);if(!o?.[0])return null;let c=(0,n.A)({userId:Number(d)});if(!c)throw Error("DB Schema not found!");let u=c.filter(e=>e.dbFullName===o[0].db_full_name)[0]?.tables,b=u?.filter(e=>e.tableName===t.single_table)[0],m=await (0,s.A)(`SELECT * FROM user_database_tables WHERE user_id='${d}' AND db_id='${o[0].id}' AND table_slug='${t.single_table}'`),p=await (0,i.A)({database:o[0].db_full_name,queryString:`SELECT * FROM ${o[0].db_full_name}.${b?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:b}),g=await (0,i.A)({database:o[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${o[0].db_full_name}.${b?.tableName}`,tableSchema:b});if(r.rootUserId){let e=c.filter(e=>e.dbFullName==o[0].db_full_name)[0],a=e.tables.filter(e=>e.tableName===b?.tableName);e.tables=a,c=[e]}return{confirmedDelegetedUser:r||null,database:o[0]||null,dbSchemaData:c||null,entries:p||null,entriesCount:g?.[0]?.count||0,query:t,table:b,tableRecord:m[0]||{}}}catch(e){return(0,r.A)({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:a}),{}}}},7143:(e,a,t)=>{t.d(a,{A:()=>l});var r=t(27825),s=t(46169);function l({query:e,table:a,database:t,dbSchemaData:l,tableFields:n,tableIndexes:i,setLoading:d}){let o=[...l];try{let l=o.findIndex(e=>e.dbFullName===t.db_full_name),c=o[l].tables.findIndex(e=>e.tableName===a.tableName);if(o[l].tables[c].fields=n?r.cloneDeep(n):[],o[l].tables[c].indexes=i?r.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,s.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:o,database:t.db_slug,table:a,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}}},52854:(e,a,t)=>{t.d(a,{A:()=>c});var r=t(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}var n=t(77047),i=t(71934),d=t(43651),o=t(16175);async function c({queryString:e,queryValuesArray:a,database:t,tableSchema:r,useLocal:s}){let c;let u=!!s||!!t?.match(/^datasquirel$/),b=s?o.A:u?i.A:d.A;try{c=e&&a&&Array.isArray(a)&&a[0]?u?await b(e,a):await b({paradigm:"Full Access",queryString:e,queryValues:a}):u?await b(e):await b({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&r)try{let e=c;return await l({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,a,t)=>{async function r(e,a,t){try{if("string"==typeof a){let r=await e.query(s(a),t);return JSON.parse(JSON.stringify(r))}if("object"!=typeof a)return null;{let t=[];for(let r=0;rl})},16175:(e,a,t)=>{t.d(a,{A:()=>i});var r=t(9973),s=t.n(r),l=t(29021),n=t.n(l);async function i(...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:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let a=`${e}/ca-cert.pem`;if(!n().existsSync(a)){console.log(`${a} does not exist`);return}return{ca:n().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let 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}}}},12310:(e,a,t)=>{t.a(e,async(e,r)=>{try{t.r(a),t.d(a,{TableFieldsContext:()=>_,default:()=>h,getServerSideProps:()=>f});var s=t(8732),l=t(82015),n=t.n(l),i=t(92702),d=t(25562),o=t(57414),c=t(55880),u=t(23862),b=t(7143),m=t(77047),p=t(41494),g=e([c,u]);[c,u]=g.then?(await g)():g;let _=n().createContext({});function h({user:e,database:a,table:t,dbSchemaData:r,query:l,confirmedDelegetedUser:i}){let m=`${t.tableFullName} Table | Datasquirel`,p=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[g,h]=n().useState(t.fields),[f,x]=n().useState(null),S=n().useRef();return(0,s.jsx)(_.Provider,{value:{user:e,database:a,table:t,dbSchemaData:r,targetField:f,setTargetField:x,refreshFieldsListRef:S,tableFields:g,setTableFields:h,updateTableAfterFieldsUpdateFunction:function(e){(0,b.A)({query:l,table:t,database:a,dbSchemaData:r,tableFields:g,tableIndexes:t.indexes,setLoading:e})},query:l,confirmedDelegetedUser:i},children:(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)(d.A,{head:p,user:e,extraHeaderContent:(0,s.jsx)(c.A,{database:a,query:l,confirmedDelegetedUser:i,user:e}),children:(0,s.jsx)(u.A,{})}),(0,s.jsx)(o.A,{database:a})]})})}async function f({req:e,res:a,query:t}){let r=await (0,i.A)(e,a);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let a=await (0,p.A)({req:e,query:t,user:r});if(!a||!a?.table)throw Error("Data Fetching Error!");return{props:{user:r,...a}}}catch(e){return(0,m.A)({component:"fields-page-component/getServerSideProps/catch-error",message:e.message,user:r}),{props:{user:r,database:null,table:null}}}}r()}catch(e){r(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),r=a.X(0,[883,9821,6521,9796,5392,3634,3155,3791,9901],()=>t(86191));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6569,e.ids=[6569],e.modules={86191:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{config:()=>g,default:()=>c,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>b,reportWebVitals:()=>h,routeModule:()=>v,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var r=t(63865),l=t(9455),n=t(30671),i=t(5583),d=t(19796),o=t(12310),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,n.M)(o,"default"),b=(0,n.M)(o,"getStaticProps"),m=(0,n.M)(o,"getStaticPaths"),p=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),h=(0,n.M)(o,"reportWebVitals"),f=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),_=(0,n.M)(o,"unstable_getStaticParams"),y=(0,n.M)(o,"unstable_getServerProps"),S=(0,n.M)(o,"unstable_getServerSideProps"),v=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)}})},57414:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),r=t(82015),l=t.n(r),n=t(46169),i=t(91140),d=t(16757);function o({targetTable:e,database:a}){let[t,r]=l().useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[t&&(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"+(t?" pointer-events-none opacity-40":""),onClick:t=>{r(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:a,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"})})]})]})}},23862:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>h});var r=t(8732),l=t(82015),n=t.n(l),i=t(12310),d=t(59023),o=t(53926),u=t(73872),c=t(471),b=t(537),m=t(51275),p=t(23791),g=e([i,u,p]);function h(){let{user:e,database:a,table:t,tableFields:s,setTableFields:l,setTargetField:g,refreshFieldsListRef:h,updateTableAfterFieldsUpdateFunction:f,query:x,confirmedDelegetedUser:_}=n().useContext(i.TableFieldsContext);return _?.delegated,_?.priviledges?.match(/Edit Tables/i),_?.priviledges?.match(/Delete Tables/i),_?.priviledges?.match(/Create Tables/i),t?.childTable&&t.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/${e?.id}/databases/${a.db_slug}/tables/${t.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:[t.tableFullName,(0,r.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,r.jsx)(u.A,{slugText:t.tableName,justIcon:!0})})]})}),(0,r.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${t.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:x?.delegated,user:e})]}),a.active_clone?(0,r.jsx)(b.A,{database:a,user:e}):(0,r.jsx)(r.Fragment,{}),a.remote_connected?(0,r.jsx)(p.p,{database:a}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(m.A,{table:t,database:a,user:e}),(0,r.jsx)(c.A,{user:e,tableFields:s,setTableFields:l,setTargetField:g,refreshFieldsListRef:h,updateTable:!0,updateTableAfterFieldsUpdateFunction:f,database:a,confirmedDelegetedUser:_,query:x,table:t})]})}[i,u,p]=g.then?(await g)():g,s()}catch(e){s(e)}})},51275:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(8732),r=t(82015),l=t.n(r);function n({table:e,database:a,user:t,activeDbClone:r}){let n=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===a.db_full_name;return n?(0,s.jsxs)("span",{className:"info small green gap-1"+(a?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,s.jsx)("a",{href:`/admin/${t?.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:a.db_name}),")."]}):(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${t?.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."})]})," ",a?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(l().Fragment,{})}},22873:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(71205);async function r({request:e,databaseSlug:a,user:t,query:r}){try{let l=t.id,n=null;if(!r?.delegated)return{dbUserId:l};let i=r.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[o]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===a)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}}},41494:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(77047),r=t(71934),l=t(22873),n=t(72272),i=t(52854);async function d({req:e,user:a,query:t}){try{let s=await (0,l.A)({request:e,user:a,databaseSlug:t.single,query:t});if(!s)return null;let{dbUserId:d}=s,o=await (0,r.A)(`SELECT * FROM user_databases WHERE user_id='${d}' AND db_slug='${t.single}'`);if(!o?.[0])return null;let u=(0,n.A)({userId:Number(d)});if(!u)throw Error("DB Schema not found!");let c=u.filter(e=>e.dbFullName===o[0].db_full_name)[0]?.tables,b=c?.filter(e=>e.tableName===t.single_table)[0],m=await (0,r.A)(`SELECT * FROM user_database_tables WHERE user_id='${d}' AND db_id='${o[0].id}' AND table_slug='${t.single_table}'`),p=await (0,i.A)({database:o[0].db_full_name,queryString:`SELECT * FROM ${o[0].db_full_name}.${b?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:b}),g=await (0,i.A)({database:o[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${o[0].db_full_name}.${b?.tableName}`,tableSchema:b});if(s.rootUserId){let e=u.filter(e=>e.dbFullName==o[0].db_full_name)[0],a=e.tables.filter(e=>e.tableName===b?.tableName);e.tables=a,u=[e]}return{confirmedDelegetedUser:s||null,database:o[0]||null,dbSchemaData:u||null,entries:p||null,entriesCount:g?.[0]?.count||0,query:t,table:b,tableRecord:m[0]||{}}}catch(e){return(0,s.A)({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:a}),{}}}},7143:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(27825),r=t(46169);function l({query:e,table:a,database:t,dbSchemaData:l,tableFields:n,tableIndexes:i,setLoading:d}){let o=[...l];try{let l=o.findIndex(e=>e.dbFullName===t.db_full_name),u=o[l].tables.findIndex(e=>e.tableName===a.tableName);if(o[l].tables[u].fields=n?s.cloneDeep(n):[],o[l].tables[u].indexes=i?s.cloneDeep(i):[],o[l].tables[u].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:t.db_slug,table:a,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}}},52854:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(71205);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}var n=t(77047),i=t(51779),d=t(84640);async function o({queryString:e,queryValuesArray:a,database:t,tableSchema:s,useLocal:r,debug:o}){let u=(0,i.A)({fa:!0});r&&(u=(0,i.A)({local:!0})),t?.match(/^datasquirel$/)&&(u=(0,i.A)()),o&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",a));let c=await (0,d.A)(u,e,a);if(o&&console.log("varDatabaseDbHandler:results:",c),c&&s)try{return await l({unparsedResults:c,tableSchema:s})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},84640:(e,a,t)=>{async function s(e,a,t){try{if("string"==typeof a){let s=await e.query(r(a),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof a)return null;{let t=[];for(let s=0;ss})},12310:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{TableFieldsContext:()=>x,default:()=>h,getServerSideProps:()=>f});var r=t(8732),l=t(82015),n=t.n(l),i=t(92702),d=t(25562),o=t(57414),u=t(55880),c=t(23862),b=t(7143),m=t(77047),p=t(41494),g=e([u,c]);[u,c]=g.then?(await g)():g;let x=n().createContext({});function h({user:e,database:a,table:t,dbSchemaData:s,query:l,confirmedDelegetedUser:i}){let m=`${t.tableFullName} Table | Datasquirel`,p=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:m}),(0,r.jsx)("meta",{name:"description",content:"Single Table"})]}),[g,h]=n().useState(t.fields),[f,_]=n().useState(null),y=n().useRef();return(0,r.jsx)(x.Provider,{value:{user:e,database:a,table:t,dbSchemaData:s,targetField:f,setTargetField:_,refreshFieldsListRef:y,tableFields:g,setTableFields:h,updateTableAfterFieldsUpdateFunction:function(e){(0,b.A)({query:l,table:t,database:a,dbSchemaData:s,tableFields:g,tableIndexes:t.indexes,setLoading:e})},query:l,confirmedDelegetedUser:i},children:(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)(d.A,{head:p,user:e,extraHeaderContent:(0,r.jsx)(u.A,{database:a,query:l,confirmedDelegetedUser:i,user:e}),children:(0,r.jsx)(c.A,{})}),(0,r.jsx)(o.A,{database:a})]})})}async function f({req:e,res:a,query:t}){let s=await (0,i.A)(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let a=await (0,p.A)({req:e,query:t,user:s});if(!a||!a?.table)throw Error("Data Fetching Error!");return{props:{user:s,...a}}}catch(e){return(0,m.A)({component:"fields-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null}}}}s()}catch(e){s(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var a=require("../../../../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[883,9821,6521,9796,5392,7769,3155,6247,2282],()=>t(86191));module.exports=s})(); \ 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.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json index 8b5e3bf..44082cd 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3496.js","../../../../../../../chunks/3634.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/3791.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5839.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6160.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/8760.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9821.js","../../../../../../../chunks/9901.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5771.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6133.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6247.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/7303.js","../../../../../../../chunks/7769.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9136.js","../../../../../../../chunks/9240.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9814.js","../../../../../../../chunks/9821.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js index 53f4340..d632b7b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6778,e.ids=[6778],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},56501:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>h,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>b,getStaticProps:()=>p,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>f});var s=a(63865),r=a(9455),d=a(30671),n=a(5583),i=a(19796),c=a(83101),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,d.M)(c,"default"),p=(0,d.M)(c,"getStaticProps"),b=(0,d.M)(c,"getStaticPaths"),m=(0,d.M)(c,"getServerSideProps"),h=(0,d.M)(c,"config"),x=(0,d.M)(c,"reportWebVitals"),f=(0,d.M)(c,"unstable_getStaticProps"),y=(0,d.M)(c,"unstable_getStaticPaths"),g=(0,d.M)(c,"unstable_getStaticParams"),A=(0,d.M)(c,"unstable_getServerProps"),v=(0,d.M)(c,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/add-table",pathname:"/admin/[user_id]/databases/[single]/tables/add-table",bundlePath:"",filename:""},components:{App:i.default,Document:n.default},userland:c});l()}catch(e){l(e)}})},62864:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>p});var s=a(8732),r=a(82015),d=a.n(r),n=a(83101),i=a(59023),c=a(53926),o=a(95545),u=e([n,o]);function p(){let{database:e,user:t}=d().useContext(n.AddTableContext);return e?(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{children:"Add A New Table To"}),(0,s.jsx)("a",{href:`/admin/${t?.id}/databases/${e.db_slug}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-700 ml-2 text-primary hover:text-primary_dark",children:e.db_name})]})]}),(0,s.jsx)(c.A,{user:t})]}),(0,s.jsx)("div",{className:"w-full flex-col",children:(0,s.jsx)(o.A,{})})]}):null}[n,o]=u.then?(await u)():u,l()}catch(e){l(e)}})},95545:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>u});var s=a(8732),r=a(82015),d=a.n(r),n=a(83101),i=a(85196),c=a(2215),o=e([n,i,c]);function u(){let{database:e,query:t}=d().useContext(n.AddTableContext),a=t?.clone;t?.clone_db,t?.clone_table;let[l,r]=d().useState(!!a);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsxs)("div",{className:"gap-1 w-full bg-blue-100 dark:bg-blue-100/10 text-white p-2 rounded",children:[(0,s.jsx)("input",{type:"checkbox",name:"toggle-clone-table",id:"toggle-clone-table",className:"w-5 h-5",onChange:e=>{e.target.checked?r(!0):r(!1)},defaultChecked:l}),(0,s.jsx)("label",{htmlFor:"toggle-clone-table",className:"text-base text-slate-600",children:"Clone Another Table"})]}),l?(0,s.jsx)(c.A,{}):(0,s.jsx)(i.A,{})]})}[n,i,c]=o.then?(await o)():o,l()}catch(e){l(e)}})},2215:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>b});var s=a(8732),r=a(82015),d=a.n(r),n=a(16757),i=a(83101),c=a(46169),o=a(10621),u=a(97635),p=e([i,u]);function b(){let{user:e,tableFields:t,database:a,dbSchemaData:l,query:r}=d().useContext(i.AddTableContext);if(!l)return null;r?.clone;let p=r?.clone_db,b=r?.clone_table,m=p?l.find(e=>e.dbSlug===p):null,h=m?m.tables:null,[x,f]=d().useState(null),[y,g]=d().useState(!1),[A,v]=d().useState(!1),[j,N]=d().useState(m||{...l[0]}),[w,_]=d().useState(h||[...l[0].tables]),[k,T]=d().useState(h?h.find(e=>e.tableName===b):l[0].tables[0]?{...l[0].tables[0]}:null);return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Clone Existing Table"}),y&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:t=>{if(t.preventDefault(),g(!0),!k){window.alert("No Table Selected!"),g(!1);return}let l=t.target,s=l.table_name.value,r=l.table_slug.value,d=l.table_description?.value?.match(/./)?l.table_description.value:null,n={...k};n.tableName=r,n.tableFullName=s,A&&(n.childTable=!0,n.childTableName=k.tableName,n.childTableDbFullName=j.dbFullName),d&&(n.tableDescription=d),n.fields.forEach(e=>{delete e.foreignKey}),delete n.childrenTables,a?(0,c.A)("/api/addUserTable",{method:"post",body:{dbFullName:a.db_full_name,dbId:a.id,dbSlug:a.db_slug,parentDatabase:j.dbFullName,parentTable:k.tableName,payload:n}},!0).then(t=>{t.success?window.location.pathname=`/admin/${e?.id}/databases/${a.db_slug}/tables`:window.alert("Table Clonning Failed! Please Try again.")}).finally(()=>{setTimeout(()=>{g(!1)},1e3)}):window.alert("Database record data not found!")},id:"create-new-table-form",children:[x&&(0,s.jsx)(o.A,{message:x}),(0,s.jsx)("hr",{className:"w-full opacity-40"}),(0,s.jsx)("h3",{className:"text-base m-0 font-semibold text-slate-600",children:"Enter New Table Info"}),(0,s.jsx)(u.A,{setAlert:f}),(0,s.jsx)("hr",{className:"w-full opacity-40"}),(0,s.jsx)("h3",{className:"text-base m-0 font-semibold text-slate-600",children:"Select Existing Table To Clone"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"select_root_database",children:"Database"}),(0,s.jsx)("select",{name:"select_root_database",id:"select_root_database",onChange:e=>{let t=l.filter(t=>t.dbName===e.target.value)[0];N({...t}),_([...t.tables]),t.tables[0]?T({...t.tables[0]}):T(null)},children:l.filter(e=>!e.childDatabase).map((e,t)=>(0,s.jsx)("option",{value:e.dbName,selected:!!p&&p==e.dbSlug||void 0,children:e.dbName},t+1))})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"select_root_table",children:"Table"}),(0,s.jsx)("select",{name:"select_root_table",id:"select_root_table",onChange:e=>{T({...w.filter(t=>t.tableName===e.target.value)[0]})},children:w&&w[0]?w.filter(e=>!e.childTable).map((e,t)=>(0,s.jsx)("option",{value:e.tableName,selected:!!b&&b==e.tableName||void 0,children:e.tableFullName},t+1)):(0,s.jsx)("option",{value:"null",children:"-- No Tables --"})})]}),(0,s.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,s.jsxs)("div",{className:"gap-1",children:[(0,s.jsx)("input",{type:"checkbox",name:"toggle-update-table",id:"toggle-update-table",className:"w-4 h-4",onChange:e=>{e.target.checked?v(!0):v(!1)}}),(0,s.jsx)("label",{htmlFor:"toggle-update-table",className:"text-base text-slate-600 dark:text-slate-100",children:"Keep New Table Updated?"})]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-400",children:"By checking this box the new Table stays up to date with changes to the structure of the parent Table"})]}),(0,s.jsx)("button",{className:"w-full p-4"+(y?" pointer-events-none opacity-40":""),onClick:e=>{document.getElementById("create-new-table-form-submit-button")?.click()},children:"Clone Table"})]})]})}[i,u]=p.then?(await p)():p,l()}catch(e){l(e)}})},29802:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(8732),s=a(82015),r=a.n(s),d=a(91140),n=a(16757),i=a(46083);function c({targetField:e,fieldIndex:t,tableFields:a,setTableFields:s,refreshFieldsListRef:c,database:o,user:u}){let[p,b]=r().useState(!1);return(0,l.jsxs)(d.Ay,{title:"edit-field-popup",children:[p&&(0,l.jsx)(n.A,{width:"20px"}),(0,l.jsxs)("span",{children:["Edit"," ",(0,l.jsx)("b",{className:"bg-slate-100 px-3 py-1.5 rounded-full border border-slate-300 border-solid",children:e?.fieldName})]}),(0,l.jsx)(i.A,{fieldIndex:t,tableFields:a,setTableFields:s,refreshFieldsListRef:c,targetField:e,database:o,user:u})]})}},85196:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>m});var s=a(8732),r=a(82015),d=a.n(r),n=a(16757),i=a(83101),c=a(471),o=a(46169),u=a(10621),p=a(97635),b=e([i,p]);function m(){let{user:e,tableFields:t,database:a,setTableFields:l,setTargetField:r,refreshFieldsListRef:b,query:m}=d().useContext(i.AddTableContext),[h,x]=d().useState(null),[f,y]=d().useState(!1),[g,A]=d().useState(!1);return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Table Information"}),g&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:l=>{l.preventDefault(),A(!0);let s=l.target,r=s.table_name.value,d=s.table_slug.value,n=s.table_description?.value?.match(/./)?s.table_description.value:null,i={tableName:d,tableFullName:r,fields:t};n&&(i.description=n),(0,o.A)("/api/addUserTable",{method:"post",body:{dbFullName:a?.db_full_name,dbId:a?.id,dbSlug:a?.db_slug,payload:i}},!0).then(t=>{t.success?window.location.pathname=`/admin/${e?.id}/databases/${a?.db_slug}/tables`:(window.alert("Table Creation Failed! Please Try again."),window.location.reload())})},id:"create-new-table-form",children:[h&&(0,s.jsx)(u.A,{message:h}),(0,s.jsx)(p.A,{setAlert:x}),(0,s.jsx)("button",{type:"submit",className:"w-full hidden",id:"create-new-table-form-submit-button",children:"Create Table"})]}),e&&t&&l&&r&&a&&b&&(0,s.jsx)(c.A,{user:e,tableFields:t,setTableFields:l,setTargetField:r,refreshFieldsListRef:b,database:a,query:m}),(0,s.jsx)("button",{className:"w-full p-4"+(g?" pointer-events-none opacity-40":""),onClick:e=>{document.getElementById("create-new-table-form-submit-button")?.click()},children:"Create Table"})]})}[i,p]=b.then?(await b)():b,l()}catch(e){l(e)}})},97635:(e,t,a)=>{a.a(e,async(e,l)=>{try{let u;a.d(t,{A:()=>o});var s=a(8732),r=a(82015),d=a.n(r),n=a(24872),i=a(83101),c=e([i]);function o({setAlert:e}){let{user:t,database:a}=d().useContext(i.AddTableContext);async function l(e){return await (0,n.A)({tableName:"user_database_tables",columnName:"table_slug",value:e,dbId:a?.id,userId:t?.id})}return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"table_name",id:"table_name",placeholder:"Table Name",onInput:async t=>{let a=t.target,s=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),e(null)):a.classList.add("warning"),s){s.table_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let t=s.table_slug.value;window.clearTimeout(u),u=setTimeout(()=>{l(t).then(t=>{t.result?(s?.table_slug.classList.add("warning"),e("Duplicate Table Name")):(s.table_slug.classList.remove("warning"),e(null))})},300)}},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"table_slug",id:"table_slug",placeholder:"Table Slug",onInput:t=>{let a=t.target;a.closest("form"),a.value.match(/./)?(a.classList.remove("warning"),e(null)):a.classList.add("warning"),window.clearTimeout(u),u=setTimeout(()=>{l(a.value).then(t=>{t.result?(a.classList.add("warning"),e("Duplicate Table Name")):(a.classList.remove("warning"),e(null))})},300)},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"table_description",id:"table_description",placeholder:"Short Description of Table"})]})]})}i=(c.then?(await c)():c)[0],l()}catch(e){l(e)}})},10621:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({message:e}){return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:e})]})}a(82015)},91140:(e,t,a)=>{a.d(t,{Ay:()=>n,PB:()=>i,fs:()=>c});var l=a(8732),s=a(58150),r=a(82015),d=a.n(r);function n({children:e,title:t,data:a,fullPage:r,wrapperClasses:n,closePopupDispatch:i,wrapperStyle:o,noContainer:u}){return r?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":t||null,style:o,children:[u?(0,l.jsx)(d().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),i&&i()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,l.jsx)(d().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]})}function i(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t?.(a))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(8732),s=a(82015),r=a.n(s);function d({children:e,column:t,className:a}){let s=r().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(a?" "+a:""),ref:s,children:e})}},24872:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(46169);async function s({tableName:e,columnName:t,value:a,dbFullName:s,dispatch:r,userId:d,dbId:n}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${s?"&dbFullName="+s:""}${d?"&userId="+d:""}${n?"&dbId="+n:""}`)}},23293:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},83101:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddTableContext:()=>f,default:()=>h,getServerSideProps:()=>x});var s=a(8732),r=a(82015),d=a.n(r),n=a(25562),i=a(92702),c=a(62864),o=a(29802),u=a(55880),p=a(71934),b=a(72272),m=e([c,u]);[c,u]=m.then?(await m)():m;let f=d().createContext({});function h({user:e,database:t,tables:l,dbSchemaData:r,query:i}){let p=`Add Table To ${t.db_name}| Datasquirel`,b=a(45478),m=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:p}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[h,x]=d().useState(b),[y,g]=d().useState(null),[A,v]=d().useState(0),j=d().useRef(),N=y&&h?h.findIndex(e=>e.fieldName===y.fieldName):1;return(0,s.jsx)(f.Provider,{value:{user:e,dbSchemaData:r,database:t,tables:l,tableFields:h,setTableFields:x,targetField:y,setTargetField:g,pageRefresh:A,setPageRefresh:v,refreshFieldsListRef:j,query:i},children:(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)(n.A,{head:m,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:t,query:i,user:e}),children:(0,s.jsx)(c.A,{})}),y&&h&&(0,s.jsx)(o.A,{targetField:y,fieldIndex:N,tableFields:h,setTableFields:x,refreshFieldsListRef:j,database:t,user:e})]})})}async function x({req:e,res:t,query:a}){try{let l=await (0,i.A)(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};let r=await (0,p.A)(`SELECT * FROM user_database_tables WHERE user_id='${l.id}' AND db_id='${s[0].id}'`),d=(0,b.A)({userId:l.id});if(!d)throw Error("User schema data not found!");return{props:{user:l,database:s[0],tables:r,dbSchemaData:d,query:a}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},45478:e=>{e.exports=JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]')}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[883,9821,9796,5392,3634,3155,9901],()=>a(56501));module.exports=l})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6778,e.ids=[6778],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},56501:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>h,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>b,getStaticProps:()=>p,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>f});var s=a(63865),r=a(9455),d=a(30671),n=a(5583),i=a(19796),c=a(83101),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,d.M)(c,"default"),p=(0,d.M)(c,"getStaticProps"),b=(0,d.M)(c,"getStaticPaths"),m=(0,d.M)(c,"getServerSideProps"),h=(0,d.M)(c,"config"),x=(0,d.M)(c,"reportWebVitals"),f=(0,d.M)(c,"unstable_getStaticProps"),y=(0,d.M)(c,"unstable_getStaticPaths"),g=(0,d.M)(c,"unstable_getStaticParams"),A=(0,d.M)(c,"unstable_getServerProps"),v=(0,d.M)(c,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/add-table",pathname:"/admin/[user_id]/databases/[single]/tables/add-table",bundlePath:"",filename:""},components:{App:i.default,Document:n.default},userland:c});l()}catch(e){l(e)}})},62864:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>p});var s=a(8732),r=a(82015),d=a.n(r),n=a(83101),i=a(59023),c=a(53926),o=a(95545),u=e([n,o]);function p(){let{database:e,user:t}=d().useContext(n.AddTableContext);return e?(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{children:"Add A New Table To"}),(0,s.jsx)("a",{href:`/admin/${t?.id}/databases/${e.db_slug}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-700 ml-2 text-primary hover:text-primary_dark",children:e.db_name})]})]}),(0,s.jsx)(c.A,{user:t})]}),(0,s.jsx)("div",{className:"w-full flex-col",children:(0,s.jsx)(o.A,{})})]}):null}[n,o]=u.then?(await u)():u,l()}catch(e){l(e)}})},95545:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>u});var s=a(8732),r=a(82015),d=a.n(r),n=a(83101),i=a(85196),c=a(2215),o=e([n,i,c]);function u(){let{database:e,query:t}=d().useContext(n.AddTableContext),a=t?.clone;t?.clone_db,t?.clone_table;let[l,r]=d().useState(!!a);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsxs)("div",{className:"gap-1 w-full bg-blue-100 dark:bg-blue-100/10 text-white p-2 rounded",children:[(0,s.jsx)("input",{type:"checkbox",name:"toggle-clone-table",id:"toggle-clone-table",className:"w-5 h-5",onChange:e=>{e.target.checked?r(!0):r(!1)},defaultChecked:l}),(0,s.jsx)("label",{htmlFor:"toggle-clone-table",className:"text-base text-slate-600",children:"Clone Another Table"})]}),l?(0,s.jsx)(c.A,{}):(0,s.jsx)(i.A,{})]})}[n,i,c]=o.then?(await o)():o,l()}catch(e){l(e)}})},2215:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>b});var s=a(8732),r=a(82015),d=a.n(r),n=a(16757),i=a(83101),c=a(46169),o=a(10621),u=a(97635),p=e([i,u]);function b(){let{user:e,tableFields:t,database:a,dbSchemaData:l,query:r}=d().useContext(i.AddTableContext);if(!l)return null;r?.clone;let p=r?.clone_db,b=r?.clone_table,m=p?l.find(e=>e.dbSlug===p):null,h=m?m.tables:null,[x,f]=d().useState(null),[y,g]=d().useState(!1),[A,v]=d().useState(!1),[j,N]=d().useState(m||{...l[0]}),[w,_]=d().useState(h||[...l[0].tables]),[k,T]=d().useState(h?h.find(e=>e.tableName===b):l[0].tables[0]?{...l[0].tables[0]}:null);return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Clone Existing Table"}),y&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:t=>{if(t.preventDefault(),g(!0),!k){window.alert("No Table Selected!"),g(!1);return}let l=t.target,s=l.table_name.value,r=l.table_slug.value,d=l.table_description?.value?.match(/./)?l.table_description.value:null,n={...k};n.tableName=r,n.tableFullName=s,A&&(n.childTable=!0,n.childTableName=k.tableName,n.childTableDbFullName=j.dbFullName),d&&(n.tableDescription=d),n.fields.forEach(e=>{delete e.foreignKey}),delete n.childrenTables,a?(0,c.A)("/api/addUserTable",{method:"post",body:{dbFullName:a.db_full_name,dbId:a.id,dbSlug:a.db_slug,parentDatabase:j.dbFullName,parentTable:k.tableName,payload:n}},!0).then(t=>{t.success?window.location.pathname=`/admin/${e?.id}/databases/${a.db_slug}/tables`:window.alert("Table Clonning Failed! Please Try again.")}).finally(()=>{setTimeout(()=>{g(!1)},1e3)}):window.alert("Database record data not found!")},id:"create-new-table-form",children:[x&&(0,s.jsx)(o.A,{message:x}),(0,s.jsx)("hr",{className:"w-full opacity-40"}),(0,s.jsx)("h3",{className:"text-base m-0 font-semibold text-slate-600",children:"Enter New Table Info"}),(0,s.jsx)(u.A,{setAlert:f}),(0,s.jsx)("hr",{className:"w-full opacity-40"}),(0,s.jsx)("h3",{className:"text-base m-0 font-semibold text-slate-600",children:"Select Existing Table To Clone"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"select_root_database",children:"Database"}),(0,s.jsx)("select",{name:"select_root_database",id:"select_root_database",onChange:e=>{let t=l.filter(t=>t.dbName===e.target.value)[0];N({...t}),_([...t.tables]),t.tables[0]?T({...t.tables[0]}):T(null)},children:l.filter(e=>!e.childDatabase).map((e,t)=>(0,s.jsx)("option",{value:e.dbName,selected:!!p&&p==e.dbSlug||void 0,children:e.dbName},t+1))})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"select_root_table",children:"Table"}),(0,s.jsx)("select",{name:"select_root_table",id:"select_root_table",onChange:e=>{T({...w.filter(t=>t.tableName===e.target.value)[0]})},children:w&&w[0]?w.filter(e=>!e.childTable).map((e,t)=>(0,s.jsx)("option",{value:e.tableName,selected:!!b&&b==e.tableName||void 0,children:e.tableFullName},t+1)):(0,s.jsx)("option",{value:"null",children:"-- No Tables --"})})]}),(0,s.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,s.jsxs)("div",{className:"gap-1",children:[(0,s.jsx)("input",{type:"checkbox",name:"toggle-update-table",id:"toggle-update-table",className:"w-4 h-4",onChange:e=>{e.target.checked?v(!0):v(!1)}}),(0,s.jsx)("label",{htmlFor:"toggle-update-table",className:"text-base text-slate-600 dark:text-slate-100",children:"Keep New Table Updated?"})]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-400",children:"By checking this box the new Table stays up to date with changes to the structure of the parent Table"})]}),(0,s.jsx)("button",{className:"w-full p-4"+(y?" pointer-events-none opacity-40":""),onClick:e=>{document.getElementById("create-new-table-form-submit-button")?.click()},children:"Clone Table"})]})]})}[i,u]=p.then?(await p)():p,l()}catch(e){l(e)}})},29802:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(8732),s=a(82015),r=a.n(s),d=a(91140),n=a(16757),i=a(46083);function c({targetField:e,fieldIndex:t,tableFields:a,setTableFields:s,refreshFieldsListRef:c,database:o,user:u}){let[p,b]=r().useState(!1);return(0,l.jsxs)(d.Ay,{title:"edit-field-popup",children:[p&&(0,l.jsx)(n.A,{width:"20px"}),(0,l.jsxs)("span",{children:["Edit"," ",(0,l.jsx)("b",{className:"bg-slate-100 px-3 py-1.5 rounded-full border border-slate-300 border-solid",children:e?.fieldName})]}),(0,l.jsx)(i.A,{fieldIndex:t,tableFields:a,setTableFields:s,refreshFieldsListRef:c,targetField:e,database:o,user:u})]})}},85196:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>m});var s=a(8732),r=a(82015),d=a.n(r),n=a(16757),i=a(83101),c=a(471),o=a(46169),u=a(10621),p=a(97635),b=e([i,p]);function m(){let{user:e,tableFields:t,database:a,setTableFields:l,setTargetField:r,refreshFieldsListRef:b,query:m}=d().useContext(i.AddTableContext),[h,x]=d().useState(null),[f,y]=d().useState(!1),[g,A]=d().useState(!1);return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Table Information"}),g&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:l=>{l.preventDefault(),A(!0);let s=l.target,r=s.table_name.value,d=s.table_slug.value,n=s.table_description?.value?.match(/./)?s.table_description.value:null,i={tableName:d,tableFullName:r,fields:t};n&&(i.description=n),(0,o.A)("/api/addUserTable",{method:"post",body:{dbFullName:a?.db_full_name,dbId:a?.id,dbSlug:a?.db_slug,payload:i}},!0).then(t=>{t.success?window.location.pathname=`/admin/${e?.id}/databases/${a?.db_slug}/tables`:(window.alert("Table Creation Failed! Please Try again."),window.location.reload())})},id:"create-new-table-form",children:[h&&(0,s.jsx)(u.A,{message:h}),(0,s.jsx)(p.A,{setAlert:x}),(0,s.jsx)("button",{type:"submit",className:"w-full hidden",id:"create-new-table-form-submit-button",children:"Create Table"})]}),e&&t&&l&&r&&a&&b&&(0,s.jsx)(c.A,{user:e,tableFields:t,setTableFields:l,setTargetField:r,refreshFieldsListRef:b,database:a,query:m}),(0,s.jsx)("button",{className:"w-full p-4"+(g?" pointer-events-none opacity-40":""),onClick:e=>{document.getElementById("create-new-table-form-submit-button")?.click()},children:"Create Table"})]})}[i,p]=b.then?(await b)():b,l()}catch(e){l(e)}})},97635:(e,t,a)=>{a.a(e,async(e,l)=>{try{let u;a.d(t,{A:()=>o});var s=a(8732),r=a(82015),d=a.n(r),n=a(24872),i=a(83101),c=e([i]);function o({setAlert:e}){let{user:t,database:a}=d().useContext(i.AddTableContext);async function l(e){return await (0,n.A)({tableName:"user_database_tables",columnName:"table_slug",value:e,dbId:a?.id,userId:t?.id})}return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"table_name",id:"table_name",placeholder:"Table Name",onInput:async t=>{let a=t.target,s=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),e(null)):a.classList.add("warning"),s){s.table_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let t=s.table_slug.value;window.clearTimeout(u),u=setTimeout(()=>{l(t).then(t=>{t.result?(s?.table_slug.classList.add("warning"),e("Duplicate Table Name")):(s.table_slug.classList.remove("warning"),e(null))})},300)}},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"table_slug",id:"table_slug",placeholder:"Table Slug",onInput:t=>{let a=t.target;a.closest("form"),a.value.match(/./)?(a.classList.remove("warning"),e(null)):a.classList.add("warning"),window.clearTimeout(u),u=setTimeout(()=>{l(a.value).then(t=>{t.result?(a.classList.add("warning"),e("Duplicate Table Name")):(a.classList.remove("warning"),e(null))})},300)},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"table_description",id:"table_description",placeholder:"Short Description of Table"})]})]})}i=(c.then?(await c)():c)[0],l()}catch(e){l(e)}})},10621:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({message:e}){return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:e})]})}a(82015)},91140:(e,t,a)=>{a.d(t,{Ay:()=>n,PB:()=>i,fs:()=>c});var l=a(8732),s=a(58150),r=a(82015),d=a.n(r);function n({children:e,title:t,data:a,fullPage:r,wrapperClasses:n,closePopupDispatch:i,wrapperStyle:o,noContainer:u}){return r?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":t||null,style:o,children:[u?(0,l.jsx)(d().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),i&&i()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,l.jsx)(d().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]})}function i(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t?.(a))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(8732),s=a(82015),r=a.n(s);function d({children:e,column:t,className:a}){let s=r().useRef();return(0,l.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(a?" "+a:""),ref:s,children:e})}},24872:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(46169);async function s({tableName:e,columnName:t,value:a,dbFullName:s,dispatch:r,userId:d,dbId:n}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${s?"&dbFullName="+s:""}${d?"&userId="+d:""}${n?"&dbId="+n:""}`)}},23293:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},83101:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddTableContext:()=>f,default:()=>h,getServerSideProps:()=>x});var s=a(8732),r=a(82015),d=a.n(r),n=a(25562),i=a(92702),c=a(62864),o=a(29802),u=a(55880),p=a(71934),b=a(72272),m=e([c,u]);[c,u]=m.then?(await m)():m;let f=d().createContext({});function h({user:e,database:t,tables:l,dbSchemaData:r,query:i}){let p=`Add Table To ${t.db_name}| Datasquirel`,b=a(45478),m=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:p}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[h,x]=d().useState(b),[y,g]=d().useState(null),[A,v]=d().useState(0),j=d().useRef(),N=y&&h?h.findIndex(e=>e.fieldName===y.fieldName):1;return(0,s.jsx)(f.Provider,{value:{user:e,dbSchemaData:r,database:t,tables:l,tableFields:h,setTableFields:x,targetField:y,setTargetField:g,pageRefresh:A,setPageRefresh:v,refreshFieldsListRef:j,query:i},children:(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)(n.A,{head:m,user:e,extraHeaderContent:(0,s.jsx)(u.A,{database:t,query:i,user:e}),children:(0,s.jsx)(c.A,{})}),y&&h&&(0,s.jsx)(o.A,{targetField:y,fieldIndex:N,tableFields:h,setTableFields:x,refreshFieldsListRef:j,database:t,user:e})]})})}async function x({req:e,res:t,query:a}){try{let l=await (0,i.A)(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await (0,p.A)(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};let r=await (0,p.A)(`SELECT * FROM user_database_tables WHERE user_id='${l.id}' AND db_id='${s[0].id}'`),d=(0,b.A)({userId:l.id});if(!d)throw Error("User schema data not found!");return{props:{user:l,database:s[0],tables:r,dbSchemaData:d,query:a}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},45478:e=>{e.exports=JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]')}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[883,9821,9796,5392,7769,3155,2282],()=>a(56501));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json index 4d51459..0023f03 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../package-shared/data/defaultFields.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package-shared/data/dataTypes.json","../../../../../../../../package-shared/data/defaultFields.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3704.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5771.js","../../../../../../chunks/5954.js","../../../../../../chunks/6133.js","../../../../../../chunks/6202.js","../../../../../../chunks/6247.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/7303.js","../../../../../../chunks/7769.js","../../../../../../chunks/8704.js","../../../../../../chunks/883.js","../../../../../../chunks/9136.js","../../../../../../chunks/9240.js","../../../../../../chunks/9796.js","../../../../../../chunks/9814.js","../../../../../../chunks/9821.js","../../../../../../webpack-runtime.js"]} \ 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 682bd50..9b69c94 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 @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=9974,e.ids=[9974],e.modules={66234:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>b,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>g,getStaticProps:()=>m,reportWebVitals:()=>f,routeModule:()=>j,unstable_getServerProps:()=>x,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>h});var a=r(63865),n=r(9455),l=r(30671),i=r(5583),o=r(19796),d=r(41972),c=e([d]);d=(c.then?(await c)():c)[0];let u=(0,l.M)(d,"default"),m=(0,l.M)(d,"getStaticProps"),g=(0,l.M)(d,"getStaticPaths"),p=(0,l.M)(d,"getServerSideProps"),b=(0,l.M)(d,"config"),f=(0,l.M)(d,"reportWebVitals"),h=(0,l.M)(d,"unstable_getStaticProps"),S=(0,l.M)(d,"unstable_getStaticPaths"),_=(0,l.M)(d,"unstable_getStaticParams"),x=(0,l.M)(d,"unstable_getServerProps"),y=(0,l.M)(d,"unstable_getServerSideProps"),j=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/users",pathname:"/admin/[user_id]/databases/[single]/users",bundlePath:"",filename:""},components:{App:o.default,Document:i.default},userland:d});s()}catch(e){s(e)}})},61235:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{A:()=>b});var a=r(8732),n=r(82015),l=r.n(n),i=r(41972),o=r(53926),d=r(82722),c=r(537),u=r(59023),m=r(55904),g=r(23791),p=e([i,g]);function b(){let{user:e,users:t,table:r,setTargetUser:s,database:n}=l().useContext(i.UsersContext),[p,b]=l().useState(!1);return(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(u.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Users in ",n.db_name]})]}),r?.tableName&&(0,a.jsxs)(m.A,{children:[(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases/${n.db_slug}/users/add-user`,className:"gap-2 button",children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New User"})]}),(0,a.jsx)("a",{href:`/admin/${e?.id}/databases/${n.db_slug}/users/add-social-logins`,className:"gap-2 button outlined",children:(0,a.jsx)("span",{children:"Social Logins"})})]})]}),(0,a.jsx)(o.A,{user:e})]}),n.active_clone?(0,a.jsx)(c.A,{database:n,user:e}):(0,a.jsx)(a.Fragment,{}),n.remote_connected?(0,a.jsx)(g.p,{database:n}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:(0,a.jsx)("div",{className:"flex-col items-stretch justify-start",children:(0,a.jsx)(d.A,{setTargetUser:s,user:e,users:t,table:r,database:n})})})]})}[i,g]=p.then?(await p)():p,s()}catch(e){s(e)}})},82722:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),a=r(82015),n=r.n(a),l=r(46169),i=r(16757);function o({user:e,table:t,setTargetUser:r,users:a,database:o}){let{active_clone:d,active_clone_parent_db:c,remote_connected:u}=o,[m,g]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[m&&(0,s.jsx)(i.A,{}),a&&a[0]?(0,s.jsx)(n().Fragment,{children:a.map((t,r)=>(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${o.db_slug}/users/${t.id}`,className:"card",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,s.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,s.jsxs)("span",{className:"font-bold",children:[t.first_name," ",t.last_name]}),(0,s.jsx)("span",{className:"text-xs text-slate-500",children:t.date_created?.substring(0,16)})]}),(0,s.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]},r+1))}):t?.tableName?(0,s.jsx)("section",{className:"paper",children:(0,s.jsx)("span",{children:"No Users Added Yet"})}):(0,s.jsx)("section",{className:"paper",children:(0,s.jsx)("span",{children:"No User Table Present"})}),!t?.tableName&&!c&&!u&&(0,s.jsxs)("button",{className:"gap-4 py-3",onClick:e=>{window.confirm(`Add users table to ${o.db_name}?`)&&(g(!0),(0,l.A)("/api/addUsersTableToDatabase",{method:"post",body:{dbFullName:o.db_full_name,dbSlug:o.db_slug,dbId:o.id}},!0).then(e=>{console.log(e),e.success&&window.location.reload(),setTimeout(()=>{g(!1)},500)}))},children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add User Table"})]})]})}},22873:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(71205);async function a({request:e,databaseSlug:t,user:r,query:a}){try{let n=r.id,l=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,o=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let r=(0,s.A)({encryptedString:e.cookies[d]});if(!r)throw Error("Invalid Token");if((l=JSON.parse(r)).databaseSlug===t)return{dbUserId:n=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(29021),a=r.n(s);async function n({user:e,message:t,component:r,noMail:s,req:n}){let l=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"],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 s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9974,e.ids=[9974],e.modules={66234:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>b,default:()=>c,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>j,unstable_getServerProps:()=>_,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var s=r(63865),n=r(9455),l=r(30671),i=r(5583),d=r(19796),o=r(41972),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,l.M)(o,"default"),m=(0,l.M)(o,"getStaticProps"),p=(0,l.M)(o,"getStaticPaths"),g=(0,l.M)(o,"getServerSideProps"),b=(0,l.M)(o,"config"),h=(0,l.M)(o,"reportWebVitals"),f=(0,l.M)(o,"unstable_getStaticProps"),x=(0,l.M)(o,"unstable_getStaticPaths"),S=(0,l.M)(o,"unstable_getStaticParams"),_=(0,l.M)(o,"unstable_getServerProps"),y=(0,l.M)(o,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/[single]/users",pathname:"/admin/[user_id]/databases/[single]/users",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});a()}catch(e){a(e)}})},61235:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>b});var s=r(8732),n=r(82015),l=r.n(n),i=r(41972),d=r(53926),o=r(82722),u=r(537),c=r(59023),m=r(55904),p=r(23791),g=e([i,p]);function b(){let{user:e,users:t,table:r,setTargetUser:a,database:n}=l().useContext(i.UsersContext),[g,b]=l().useState(!1);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Users in ",n.db_name]})]}),r?.tableName&&(0,s.jsxs)(m.A,{children:[(0,s.jsxs)("a",{href:`/admin/${e?.id}/databases/${n.db_slug}/users/add-user`,className:"gap-2 button",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New User"})]}),(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${n.db_slug}/users/add-social-logins`,className:"gap-2 button outlined",children:(0,s.jsx)("span",{children:"Social Logins"})})]})]}),(0,s.jsx)(d.A,{user:e})]}),n.active_clone?(0,s.jsx)(u.A,{database:n,user:e}):(0,s.jsx)(s.Fragment,{}),n.remote_connected?(0,s.jsx)(p.p,{database:n}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:(0,s.jsx)("div",{className:"flex-col items-stretch justify-start",children:(0,s.jsx)(o.A,{setTargetUser:a,user:e,users:t,table:r,database:n})})})]})}[i,p]=g.then?(await g)():g,a()}catch(e){a(e)}})},82722:(e,t,r)=>{r.d(t,{A:()=>d});var a=r(8732),s=r(82015),n=r.n(s),l=r(46169),i=r(16757);function d({user:e,table:t,setTargetUser:r,users:s,database:d}){let{active_clone:o,active_clone_parent_db:u,remote_connected:c}=d,[m,p]=n().useState(!1);return(0,a.jsxs)(n().Fragment,{children:[m&&(0,a.jsx)(i.A,{}),s&&s[0]?(0,a.jsx)(n().Fragment,{children:s.map((t,r)=>(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases/${d.db_slug}/users/${t.id}`,className:"card",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,a.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,a.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,a.jsxs)("span",{className:"font-bold",children:[t.first_name," ",t.last_name]}),(0,a.jsx)("span",{className:"text-xs text-slate-500",children:t.date_created?.substring(0,16)})]}),(0,a.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]},r+1))}):t?.tableName?(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("span",{children:"No Users Added Yet"})}):(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("span",{children:"No User Table Present"})}),!t?.tableName&&!u&&!c&&(0,a.jsxs)("button",{className:"gap-4 py-3",onClick:e=>{window.confirm(`Add users table to ${d.db_name}?`)&&(p(!0),(0,l.A)("/api/addUsersTableToDatabase",{method:"post",body:{dbFullName:d.db_full_name,dbSlug:d.db_slug,dbId:d.id}},!0).then(e=>{console.log(e),e.success&&window.location.reload(),setTimeout(()=>{p(!1)},500)}))},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add User Table"})]})]})}},22873:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(71205);async function s({request:e,databaseSlug:t,user:r,query:s}){try{let n=r.id,l=null;if(!s?.delegated)return{dbUserId:n};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let r=(0,a.A)({encryptedString:e.cookies[o]});if(!r)throw Error("Invalid Token");if((l=JSON.parse(r)).databaseSlug===t)return{dbUserId:n=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(29021),s=r.n(a);async function n({user:e,message:t,component:r,noMail:a,req:n}){let l=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],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${t} -Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(s+=` -URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +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+=` Date: ${l.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let o=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71205);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}var l=r(77047),i=r(71934),o=r(43651),d=r(16175);async function c({queryString:e,queryValuesArray:t,database:r,tableSchema:s,useLocal:a}){let c;let u=!!a||!!r?.match(/^datasquirel$/),m=a?d.A:u?i.A:o.A;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,l.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&s)try{let e=c;return await n({unparsedResults:e,tableSchema:s})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,t,r)=>{async function s(e,t,r){try{if("string"==typeof t){let s=await e.query(a(t),r);return JSON.parse(JSON.stringify(s))}if("object"!=typeof t)return null;{let r=[];for(let s=0;sn})},16175:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(9973),a=r.n(s),n=r(29021),l=r.n(n);async function i(...e){let t=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!l().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let 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}}}},41972:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{UsersContext:()=>x,default:()=>S,getServerSideProps:()=>_});var a=r(8732),n=r(29021),l=r.n(n),i=r(82015),o=r.n(i),d=r(25562),c=r(92702),u=r(55954),m=r(52854),g=r(61235),p=r(55880),b=r(22873),f=r(71934),h=e([g,p]);[g,p]=h.then?(await h)():h;let x=o().createContext({});function S({user:e,database:t,table:r,dbSchemaData:s,users:n,query:l,confirmedDelegetedUser:i}){let c=(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]=o().useState(null),[f,h]=o().useState();return(0,a.jsx)(x.Provider,{value:{user:e,users:n,targetUser:f,setTargetUser:h,database:t,table:r,dbSchemaData:s,query:l,confirmedDelegetedUser:i},children:(0,a.jsxs)(o().Fragment,{children:[(0,a.jsx)(d.A,{head:c,user:e,extraHeaderContent:(0,a.jsx)(p.A,{database:t,query:l,confirmedDelegetedUser:i,user:e}),children:(0,a.jsx)(g.A,{})}),f&&(0,a.jsx)(u.A,{targetUser:f,user:e,setTargetUser:h})]})})}async function _({req:e,res:t,query:r}){try{let s=await (0,c.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await (0,b.A)({request:e,user:s,databaseSlug:r.single,query:r});if(!a)throw Error("No Db Object Found!");let{dbUserId:n,rootUserId:i}=a,o=await (0,f.A)(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${r.single}'`);if(!o||!o[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let d=JSON.parse(l().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),u=(d.filter(e=>e.dbFullName===o[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],g=await (0,m.A)({database:o[0].db_full_name,queryString:`SELECT * FROM ${o[0].db_full_name}.users LIMIT 20`,tableSchema:u});return{props:{user:s,database:o[0],table:u||{},dbSchemaData:d,users:g?.error?[]:g,query:r,confirmedDelegetedUser:a}}}catch(e){return console.log("Db Users Error =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}s()}catch(e){s(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,6521,9796,5392,3634,3791,5954],()=>r(66234));module.exports=s})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}var l=r(77047),i=r(51779),d=r(84640);async function o({queryString:e,queryValuesArray:t,database:r,tableSchema:a,useLocal:s,debug:o}){let u=(0,i.A)({fa:!0});s&&(u=(0,i.A)({local:!0})),r?.match(/^datasquirel$/)&&(u=(0,i.A)()),o&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let c=await (0,d.A)(u,e,t);if(o&&console.log("varDatabaseDbHandler:results:",c),c&&a)try{return await n({unparsedResults:c,tableSchema:a})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),(0,l.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},84640:(e,t,r)=>{async function a(e,t,r){try{if("string"==typeof t){let a=await e.query(s(t),r);return JSON.parse(JSON.stringify(a))}if("object"!=typeof t)return null;{let r=[];for(let a=0;aa})},41972:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{UsersContext:()=>_,default:()=>x,getServerSideProps:()=>S});var s=r(8732),n=r(29021),l=r.n(n),i=r(82015),d=r.n(i),o=r(25562),u=r(92702),c=r(55954),m=r(52854),p=r(61235),g=r(55880),b=r(22873),h=r(71934),f=e([p,g]);[p,g]=f.then?(await f)():f;let _=d().createContext({});function x({user:e,database:t,table:r,dbSchemaData:a,users:n,query:l,confirmedDelegetedUser:i}){let u=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Users | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[m,b]=d().useState(null),[h,f]=d().useState();return(0,s.jsx)(_.Provider,{value:{user:e,users:n,targetUser:h,setTargetUser:f,database:t,table:r,dbSchemaData:a,query:l,confirmedDelegetedUser:i},children:(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)(o.A,{head:u,user:e,extraHeaderContent:(0,s.jsx)(g.A,{database:t,query:l,confirmedDelegetedUser:i,user:e}),children:(0,s.jsx)(p.A,{})}),h&&(0,s.jsx)(c.A,{targetUser:h,user:e,setTargetUser:f})]})})}async function S({req:e,res:t,query:r}){try{let a=await (0,u.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let s=await (0,b.A)({request:e,user:a,databaseSlug:r.single,query:r});if(!s)throw Error("No Db Object Found!");let{dbUserId:n,rootUserId:i}=s,d=await (0,h.A)(`SELECT * FROM user_databases WHERE user_id='${n}' AND db_slug='${r.single}'`);if(!d||!d[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let o=JSON.parse(l().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/main.json`,"utf-8")),c=(o.filter(e=>e.dbFullName===d[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],p=await (0,m.A)({database:d[0].db_full_name,queryString:`SELECT * FROM ${d[0].db_full_name}.users LIMIT 20`,tableSchema:c});return{props:{user:a,database:d[0],table:c||{},dbSchemaData:o,users:p?.error?[]:p,query:r,confirmedDelegetedUser:s}}}catch(e){return console.log("Db Users Error =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}a()}catch(e){a(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,6521,9796,5392,7769,6247,5954],()=>r(66234));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json index 9811f08..d815099 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../jsonData/userPriviledges.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/userPriviledges.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js index 3a57f95..3c51055 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2602,e.ids=[2602],e.modules={82960:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>m,default:()=>l,getServerSideProps:()=>S,getStaticPaths:()=>g,getStaticProps:()=>c,reportWebVitals:()=>P,routeModule:()=>v,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>x});var a=r(63865),i=r(9455),u=r(30671),o=r(5583),n=r(19796),p=r(50264),d=e([p]);p=(d.then?(await d)():d)[0];let l=(0,u.M)(p,"default"),c=(0,u.M)(p,"getStaticProps"),g=(0,u.M)(p,"getStaticPaths"),S=(0,u.M)(p,"getServerSideProps"),m=(0,u.M)(p,"config"),P=(0,u.M)(p,"reportWebVitals"),x=(0,u.M)(p,"unstable_getStaticProps"),b=(0,u.M)(p,"unstable_getStaticPaths"),q=(0,u.M)(p,"unstable_getStaticParams"),M=(0,u.M)(p,"unstable_getServerProps"),f=(0,u.M)(p,"unstable_getServerSideProps"),v=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]",pathname:"/admin/[user_id]/databases/[single]/users/[user]",bundlePath:"",filename:""},components:{App:n.default,Document:o.default},userland:p});s()}catch(e){s(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,3634,3474],()=>r(82960));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2602,e.ids=[2602],e.modules={82960:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>S,default:()=>n,getServerSideProps:()=>m,getStaticPaths:()=>g,getStaticProps:()=>c,reportWebVitals:()=>x,routeModule:()=>h,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>P});var a=r(63865),i=r(9455),u=r(30671),o=r(5583),d=r(19796),p=r(50264),l=e([p]);p=(l.then?(await l)():l)[0];let n=(0,u.M)(p,"default"),c=(0,u.M)(p,"getStaticProps"),g=(0,u.M)(p,"getStaticPaths"),m=(0,u.M)(p,"getServerSideProps"),S=(0,u.M)(p,"config"),x=(0,u.M)(p,"reportWebVitals"),P=(0,u.M)(p,"unstable_getStaticProps"),q=(0,u.M)(p,"unstable_getStaticPaths"),b=(0,u.M)(p,"unstable_getStaticParams"),M=(0,u.M)(p,"unstable_getServerProps"),f=(0,u.M)(p,"unstable_getServerSideProps"),h=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]",pathname:"/admin/[user_id]/databases/[single]/users/[user]",bundlePath:"",filename:""},components:{App:d.default,Document:o.default},userland:p});s()}catch(e){s(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,7769,3474],()=>r(82960));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json index b4b1506..bf36b37 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3704.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5771.js","../../../../../../chunks/5954.js","../../../../../../chunks/6133.js","../../../../../../chunks/6202.js","../../../../../../chunks/6247.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/7303.js","../../../../../../chunks/7769.js","../../../../../../chunks/8704.js","../../../../../../chunks/883.js","../../../../../../chunks/9136.js","../../../../../../chunks/9240.js","../../../../../../chunks/9796.js","../../../../../../chunks/9814.js","../../../../../../chunks/9821.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js index db0792e..942a256 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6377,e.ids=[6377],e.modules={6231:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{config:()=>g,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>b,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>w});var a=t(63865),i=t(9455),d=t(30671),n=t(5583),l=t(19796),o=t(58262),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,d.M)(o,"default"),p=(0,d.M)(o,"getStaticProps"),m=(0,d.M)(o,"getStaticPaths"),x=(0,d.M)(o,"getServerSideProps"),g=(0,d.M)(o,"config"),h=(0,d.M)(o,"reportWebVitals"),w=(0,d.M)(o,"unstable_getStaticProps"),f=(0,d.M)(o,"unstable_getStaticPaths"),v=(0,d.M)(o,"unstable_getStaticParams"),P=(0,d.M)(o,"unstable_getServerProps"),S=(0,d.M)(o,"unstable_getServerSideProps"),b=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]/change-password",pathname:"/admin/[user_id]/databases/[single]/users/[user]/change-password",bundlePath:"",filename:""},components:{App:l.default,Document:n.default},userland:o});r()}catch(e){r(e)}})},63378:(e,s,t)=>{t.d(s,{A:()=>u});var r=t(8732),a=t(82015),i=t.n(a),d=t(53926),n=t(59023),l=t(46169),o=t(16757);function u({singleUser:e,database:s,user:t}){let[a,u]=i().useState(!1);return(0,r.jsxs)(i().Fragment,{children:[a&&(0,r.jsx)(o.A,{width:"20px"}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(n.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,r.jsxs)("u",{children:[e.first_name," ",e.last_name]})]})]})}),(0,r.jsx)(d.A,{user:t})]}),(0,r.jsx)("section",{className:"paper",children:(0,r.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,r.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:r=>{r.preventDefault(),u(!0);let a=document.getElementById("password"),i=document.getElementById("password-repeat"),d=RegExp(`${a.value}`);if(!i?.value?.match(d)){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){u(!1);return}(0,l.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:e.id,password:a.value,dbId:s.id}},!0).then(r=>{r.success&&(window.location.pathname=`/admin/${t?.id}/databases/${s.db_slug}/users/${e.id}`)}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{u(!1)},2e3)})},children:[(0,r.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{let s=document.getElementById("password"),t=document.getElementById("password-repeat"),r=s?.value?RegExp(`${s.value}`):null;r&&(t?.value?.match(r)?t.classList.remove("warning"):t.classList.add("warning"))},required:!0}),(0,r.jsx)("button",{children:"Change Password"})]})})})]})}},58262:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{default:()=>u,getServerSideProps:()=>c});var a=t(8732);t(82015);var i=t(25562),d=t(55880),n=t(50264),l=t(63378),o=e([d,n]);function u({user:e,database:s,table:t,dbSchemaData:r,singleUser:n,query:o,confirmedDelegetedUser:u}){let c=`${n.first_name} ${n.last_name} Users | Datasquirel"`,p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:c}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,a.jsx)(i.A,{head:p,user:e,extraHeaderContent:(0,a.jsx)(d.A,{database:s,query:o,confirmedDelegetedUser:u,user:e}),children:(0,a.jsx)(l.A,{singleUser:n,database:s,user:e})})}[d,n]=o.then?(await o)():o;let c=n.getServerSideProps;r()}catch(e){r(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[883,9821,9796,5392,3634,3474],()=>t(6231));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6377,e.ids=[6377],e.modules={6231:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{config:()=>g,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>b,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>w});var a=t(63865),i=t(9455),d=t(30671),n=t(5583),l=t(19796),o=t(58262),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,d.M)(o,"default"),p=(0,d.M)(o,"getStaticProps"),m=(0,d.M)(o,"getStaticPaths"),x=(0,d.M)(o,"getServerSideProps"),g=(0,d.M)(o,"config"),h=(0,d.M)(o,"reportWebVitals"),w=(0,d.M)(o,"unstable_getStaticProps"),f=(0,d.M)(o,"unstable_getStaticPaths"),v=(0,d.M)(o,"unstable_getStaticParams"),P=(0,d.M)(o,"unstable_getServerProps"),S=(0,d.M)(o,"unstable_getServerSideProps"),b=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]/change-password",pathname:"/admin/[user_id]/databases/[single]/users/[user]/change-password",bundlePath:"",filename:""},components:{App:l.default,Document:n.default},userland:o});r()}catch(e){r(e)}})},63378:(e,s,t)=>{t.d(s,{A:()=>u});var r=t(8732),a=t(82015),i=t.n(a),d=t(53926),n=t(59023),l=t(46169),o=t(16757);function u({singleUser:e,database:s,user:t}){let[a,u]=i().useState(!1);return(0,r.jsxs)(i().Fragment,{children:[a&&(0,r.jsx)(o.A,{width:"20px"}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(n.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,r.jsxs)("u",{children:[e.first_name," ",e.last_name]})]})]})}),(0,r.jsx)(d.A,{user:t})]}),(0,r.jsx)("section",{className:"paper",children:(0,r.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,r.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:r=>{r.preventDefault(),u(!0);let a=document.getElementById("password"),i=document.getElementById("password-repeat"),d=RegExp(`${a.value}`);if(!i?.value?.match(d)){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){u(!1);return}(0,l.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:e.id,password:a.value,dbId:s.id}},!0).then(r=>{r.success&&(window.location.pathname=`/admin/${t?.id}/databases/${s.db_slug}/users/${e.id}`)}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{u(!1)},2e3)})},children:[(0,r.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{let s=document.getElementById("password"),t=document.getElementById("password-repeat"),r=s?.value?RegExp(`${s.value}`):null;r&&(t?.value?.match(r)?t.classList.remove("warning"):t.classList.add("warning"))},required:!0}),(0,r.jsx)("button",{children:"Change Password"})]})})})]})}},58262:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{default:()=>u,getServerSideProps:()=>c});var a=t(8732);t(82015);var i=t(25562),d=t(55880),n=t(50264),l=t(63378),o=e([d,n]);function u({user:e,database:s,table:t,dbSchemaData:r,singleUser:n,query:o,confirmedDelegetedUser:u}){let c=`${n.first_name} ${n.last_name} Users | Datasquirel"`,p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:c}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,a.jsx)(i.A,{head:p,user:e,extraHeaderContent:(0,a.jsx)(d.A,{database:s,query:o,confirmedDelegetedUser:u,user:e}),children:(0,a.jsx)(l.A,{singleUser:n,database:s,user:e})})}[d,n]=o.then?(await o)():o;let c=n.getServerSideProps;r()}catch(e){r(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[883,9821,9796,5392,7769,3474],()=>t(6231));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json index 4c9f378..928897e 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3496.js","../../../../../../../chunks/3634.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/3791.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5839.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6160.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/8760.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9821.js","../../../../../../../chunks/9901.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1251.js","../../../../../../../chunks/1579.js","../../../../../../../chunks/194.js","../../../../../../../chunks/2282.js","../../../../../../../chunks/3155.js","../../../../../../../chunks/3474.js","../../../../../../../chunks/3704.js","../../../../../../../chunks/4627.js","../../../../../../../chunks/5392.js","../../../../../../../chunks/5771.js","../../../../../../../chunks/5954.js","../../../../../../../chunks/6133.js","../../../../../../../chunks/6202.js","../../../../../../../chunks/6247.js","../../../../../../../chunks/6521.js","../../../../../../../chunks/6622.js","../../../../../../../chunks/6903.js","../../../../../../../chunks/725.js","../../../../../../../chunks/7303.js","../../../../../../../chunks/7769.js","../../../../../../../chunks/8704.js","../../../../../../../chunks/883.js","../../../../../../../chunks/9136.js","../../../../../../../chunks/9240.js","../../../../../../../chunks/9796.js","../../../../../../../chunks/9814.js","../../../../../../../chunks/9821.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js index 869cee5..f0bcfc6 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=201,e.ids=[201],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},20291:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>u,reportWebVitals:()=>y,routeModule:()=>k,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var r=a(63865),s=a(9455),i=a(30671),n=a(5583),o=a(19796),d=a(80390),c=e([d]);d=(c.then?(await c)():c)[0];let p=(0,i.M)(d,"default"),u=(0,i.M)(d,"getStaticProps"),m=(0,i.M)(d,"getStaticPaths"),h=(0,i.M)(d,"getServerSideProps"),x=(0,i.M)(d,"config"),y=(0,i.M)(d,"reportWebVitals"),f=(0,i.M)(d,"unstable_getStaticProps"),g=(0,i.M)(d,"unstable_getStaticPaths"),v=(0,i.M)(d,"unstable_getStaticParams"),A=(0,i.M)(d,"unstable_getServerProps"),w=(0,i.M)(d,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:s.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-social-logins",pathname:"/admin/[user_id]/databases/[single]/users/add-social-logins",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:d});l()}catch(e){l(e)}})},95598:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>x});var r=a(8732),s=a(82015),i=a.n(s),n=a(53926),o=a(59023),d=a(46169),c=a(16757),p=a(80390),u=a(1346),m=a(2913),h=e([p]);function x(){let{user:e,database:t,socialLogins:a}=i().useContext(p.AddSocialLoginsContext),[l,s]=i().useState(!1),[h,x]=i().useState(a&&a[0]?.paradigm?.match(/personal/i)?"personal":"datasquirel"),[y,f]=i().useState(a&&a[0]?a:[]),g=h?.match(/datasquirel/i)?(0,r.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,r.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):h?.match(/personal/i)?(0,r.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,r.jsxs)(i().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",t?.db_name]})]})}),(0,r.jsx)(n.A,{user:e})]}),(0,r.jsxs)("section",{className:"paper",children:[l&&(0,r.jsx)(c.A,{screen:!0}),(0,r.jsx)(u.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:!!h?.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:!!h?.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{x(null),setTimeout(()=>{x(e.target.value)},500)}}),(0,r.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,r.jsx)("div",{className:"info gray font-normal mb-4",children:g}),h?(0,r.jsx)(m.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let l=a?.filter(t=>t.platform===e.toLocaleLowerCase()),s=l&&l[0]?l[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,r.jsxs)("div",{className:"card grow",children:[(0,r.jsx)("img",{src:`/images/${e.toLowerCase()}.png`,alt:`${e} icon`,className:"avatar small"}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)("span",{className:"title",children:e}),h?.match(/personal/)?(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-id`,id:`${e.toLowerCase()}-client-id`,placeholder:"Client Id",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientId=a.value)},defaultValue:s?.clientId?s.clientId:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-secret`,id:`${e.toLowerCase()}-client-secret`,placeholder:"Client Secret",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientSecret=a.value)},defaultValue:s?.clientSecret?s.clientSecret:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-callback-url`,id:`${e.toLowerCase()}-callback-url`,placeholder:"Callback URL",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].callbackUrl=a.value)},defaultValue:s?.callbackUrl?s.callbackUrl:void 0})]}):(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-1`,id:`${e.toLowerCase()}-domain-1`,placeholder:"Domain 1",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain1=a.value)},defaultValue:s?.domain1?s.domain1:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-2`,id:`${e.toLowerCase()}-domain-2`,placeholder:"Domain 2",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain2=a.value)},defaultValue:s?.domain2?s.domain2:void 0})]})]})]}),onChangeHandler:t=>{let a=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-id']`),l=a?.value,r=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-secret']`)?.value,s=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-callback-url']`)?.value,i=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain-1']`)?.value,n=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain2']`)?.value,o={platform:e.toLowerCase(),clientId:l,clientSecret:r,callbackUrl:s,domain1:i,domain2:n};t.target.checked?f(e=>[...e,o]):f(e=>e.filter(e=>e.platform!==o.platform))},default:!!s}}),name:"social-platforms",className:"w-full"}):(0,r.jsx)("div",{className:"w-full p-10",children:(0,r.jsx)(c.A,{position:"relative",width:"20px"})}),y&&y[0]&&(0,r.jsx)("button",{className:"w-full more-padding",onClick:e=>{s(!0);let a={dbFullName:t?.db_full_name,dbSlug:t?.db_slug,paradigm:h,platforms:y};(0,d.A)("/api/addSocialLogin",{method:"post",body:a},!0).then(e=>{e?.success?window.location.reload():window.alert(e.msg),setTimeout(()=>{s(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}p=(h.then?(await h)():h)[0],l()}catch(e){l(e)}})},2913:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:s,baseText:i,smallText:n,className:o}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((t,s)=>{let{payload:o,title:d,onChangeHandler:c,fixed:p,jsx:u}=t,m=t.name?`${e}-${t.name}`:o?e+"-"+o:e;return(0,l.jsxs)("div",{className:"flex items-center"+(t.default&&p?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:m,id:m,onChange:e=>{a&&a(null),c&&c(e,t)},value:o,style:{minWidth:"20px"},...t.props}),u||(0,l.jsx)("label",{htmlFor:m,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(i||n?" text-base":" text-lg"),children:d})]},s+1)})})}a(82015)},1346:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({radioValues:e,name:t,onChangeHandler:a,setAlert:r,flexRow:s,labelColor:i,baseText:n,smallText:o,className:d}){try{return(0,l.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(d||""),children:e.map((e,s)=>{let{payload:d,title:c,jsx:p}=e,u=!1===d?d:d||c||null;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+u,onChange:t=>{r&&r(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof u?u:void 0}),p||(0,l.jsx)("label",{htmlFor:t+"_"+u,className:"text-lg m-0 "+(i||"text-slate-800")+(n?" text-base":o?" text-sm":" text-lg"),children:c})]},s+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,l.jsx)("div",{children:"Form Radio Error"})}}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},80390:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddSocialLoginsContext:()=>f,default:()=>x,getServerSideProps:()=>y});var r=a(8732),s=a(29021),i=a.n(s),n=a(82015),o=a.n(n),d=a(25562),c=a(92702),p=a(55880),u=a(95598),m=a(71934),h=e([p,u]);[p,u]=h.then?(await h)():h;let f=o().createContext({});function x({user:e,database:t,query:a,socialLogins:l}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(d.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(p.A,{database:t,query:a,user:e}),children:(0,r.jsx)(f.Provider,{value:{user:e,database:t,query:a,socialLogins:l},children:(0,r.jsx)(u.A,{})})})}async function y({req:e,res:t,query:a}){let l=await (0,c.A)(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};try{let e=await (0,m.A)(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!e||!e[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};JSON.parse(i().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/main.json`,"utf-8"));let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/env.json`;i().existsSync(t)||i().writeFileSync(t,"{}","utf-8");let r=JSON.parse(i().readFileSync(t,"utf-8"))[e[0].db_full_name]?.social;return{props:{user:l,database:e[0],socialLogins:r||[],query:a}}}catch(e){return console.log("Error in 'add-social-logins; page component =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[883,9821,9796,5392,3634],()=>a(20291));module.exports=l})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=201,e.ids=[201],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},20291:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>y,routeModule:()=>k,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var r=a(63865),s=a(9455),i=a(30671),n=a(5583),o=a(19796),d=a(80390),c=e([d]);d=(c.then?(await c)():c)[0];let u=(0,i.M)(d,"default"),p=(0,i.M)(d,"getStaticProps"),m=(0,i.M)(d,"getStaticPaths"),h=(0,i.M)(d,"getServerSideProps"),x=(0,i.M)(d,"config"),y=(0,i.M)(d,"reportWebVitals"),f=(0,i.M)(d,"unstable_getStaticProps"),g=(0,i.M)(d,"unstable_getStaticPaths"),v=(0,i.M)(d,"unstable_getStaticParams"),A=(0,i.M)(d,"unstable_getServerProps"),w=(0,i.M)(d,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:s.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-social-logins",pathname:"/admin/[user_id]/databases/[single]/users/add-social-logins",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:d});l()}catch(e){l(e)}})},95598:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>x});var r=a(8732),s=a(82015),i=a.n(s),n=a(53926),o=a(59023),d=a(46169),c=a(16757),u=a(80390),p=a(1346),m=a(2913),h=e([u]);function x(){let{user:e,database:t,socialLogins:a}=i().useContext(u.AddSocialLoginsContext),[l,s]=i().useState(!1),[h,x]=i().useState(a&&a[0]?.paradigm?.match(/personal/i)?"personal":"datasquirel"),[y,f]=i().useState(a&&a[0]?a:[]),g=h?.match(/datasquirel/i)?(0,r.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,r.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):h?.match(/personal/i)?(0,r.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,r.jsxs)(i().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,r.jsxs)("div",{children:[(0,r.jsx)(o.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",t?.db_name]})]})}),(0,r.jsx)(n.A,{user:e})]}),(0,r.jsxs)("section",{className:"paper",children:[l&&(0,r.jsx)(c.A,{screen:!0}),(0,r.jsx)(p.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:!!h?.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:!!h?.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{x(null),setTimeout(()=>{x(e.target.value)},500)}}),(0,r.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,r.jsx)("div",{className:"info gray font-normal mb-4",children:g}),h?(0,r.jsx)(m.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let l=a?.filter(t=>t.platform===e.toLocaleLowerCase()),s=l&&l[0]?l[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,r.jsxs)("div",{className:"card grow",children:[(0,r.jsx)("img",{src:`/images/${e.toLowerCase()}.png`,alt:`${e} icon`,className:"avatar small"}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)("span",{className:"title",children:e}),h?.match(/personal/)?(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-id`,id:`${e.toLowerCase()}-client-id`,placeholder:"Client Id",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientId=a.value)},defaultValue:s?.clientId?s.clientId:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-secret`,id:`${e.toLowerCase()}-client-secret`,placeholder:"Client Secret",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientSecret=a.value)},defaultValue:s?.clientSecret?s.clientSecret:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-callback-url`,id:`${e.toLowerCase()}-callback-url`,placeholder:"Callback URL",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].callbackUrl=a.value)},defaultValue:s?.callbackUrl?s.callbackUrl:void 0})]}):(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-1`,id:`${e.toLowerCase()}-domain-1`,placeholder:"Domain 1",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain1=a.value)},defaultValue:s?.domain1?s.domain1:void 0}),(0,r.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-2`,id:`${e.toLowerCase()}-domain-2`,placeholder:"Domain 2",onInput:t=>{let a=t.target,l=y.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain2=a.value)},defaultValue:s?.domain2?s.domain2:void 0})]})]})]}),onChangeHandler:t=>{let a=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-id']`),l=a?.value,r=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-client-secret']`)?.value,s=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-callback-url']`)?.value,i=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain-1']`)?.value,n=t.target.parentNode?.querySelector(`input[name='${e.toLowerCase()}-domain2']`)?.value,o={platform:e.toLowerCase(),clientId:l,clientSecret:r,callbackUrl:s,domain1:i,domain2:n};t.target.checked?f(e=>[...e,o]):f(e=>e.filter(e=>e.platform!==o.platform))},default:!!s}}),name:"social-platforms",className:"w-full"}):(0,r.jsx)("div",{className:"w-full p-10",children:(0,r.jsx)(c.A,{position:"relative",width:"20px"})}),y&&y[0]&&(0,r.jsx)("button",{className:"w-full more-padding",onClick:e=>{s(!0);let a={dbFullName:t?.db_full_name,dbSlug:t?.db_slug,paradigm:h,platforms:y};(0,d.A)("/api/addSocialLogin",{method:"post",body:a},!0).then(e=>{e?.success?window.location.reload():window.alert(e.msg),setTimeout(()=>{s(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}u=(h.then?(await h)():h)[0],l()}catch(e){l(e)}})},2913:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:s,baseText:i,smallText:n,className:o}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((t,s)=>{let{payload:o,title:d,onChangeHandler:c,fixed:u,jsx:p}=t,m=t.name?`${e}-${t.name}`:o?e+"-"+o:e;return(0,l.jsxs)("div",{className:"flex items-center"+(t.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:m,id:m,onChange:e=>{a&&a(null),c&&c(e,t)},value:o,style:{minWidth:"20px"},...t.props}),p||(0,l.jsx)("label",{htmlFor:m,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(i||n?" text-base":" text-lg"),children:d})]},s+1)})})}a(82015)},1346:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(8732);function r({radioValues:e,name:t,onChangeHandler:a,setAlert:r,flexRow:s,labelColor:i,baseText:n,smallText:o,className:d}){try{return(0,l.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(d||""),children:e.map((e,s)=>{let{payload:d,title:c,jsx:u}=e,p=!1===d?d:d||c||null;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+p,onChange:t=>{r&&r(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof p?p:void 0}),u||(0,l.jsx)("label",{htmlFor:t+"_"+p,className:"text-lg m-0 "+(i||"text-slate-800")+(n?" text-base":o?" text-sm":" text-lg"),children:c})]},s+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,l.jsx)("div",{children:"Form Radio Error"})}}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},80390:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddSocialLoginsContext:()=>f,default:()=>x,getServerSideProps:()=>y});var r=a(8732),s=a(29021),i=a.n(s),n=a(82015),o=a.n(n),d=a(25562),c=a(92702),u=a(55880),p=a(95598),m=a(71934),h=e([u,p]);[u,p]=h.then?(await h)():h;let f=o().createContext({});function x({user:e,database:t,query:a,socialLogins:l}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(d.A,{head:s,user:e,extraHeaderContent:(0,r.jsx)(u.A,{database:t,query:a,user:e}),children:(0,r.jsx)(f.Provider,{value:{user:e,database:t,query:a,socialLogins:l},children:(0,r.jsx)(p.A,{})})})}async function y({req:e,res:t,query:a}){let l=await (0,c.A)(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};try{let e=await (0,m.A)(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!e||!e[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};JSON.parse(i().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/main.json`,"utf-8"));let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/env.json`;i().existsSync(t)||i().writeFileSync(t,"{}","utf-8");let r=JSON.parse(i().readFileSync(t,"utf-8"))[e[0].db_full_name]?.social;return{props:{user:l,database:e[0],socialLogins:r||[],query:a}}}catch(e){return console.log("Error in 'add-social-logins; page component =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[883,9821,9796,5392,7769],()=>a(20291));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json index a664e21..5631358 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3704.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5771.js","../../../../../../chunks/5954.js","../../../../../../chunks/6133.js","../../../../../../chunks/6202.js","../../../../../../chunks/6247.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/7303.js","../../../../../../chunks/7769.js","../../../../../../chunks/8704.js","../../../../../../chunks/883.js","../../../../../../chunks/9136.js","../../../../../../chunks/9240.js","../../../../../../chunks/9796.js","../../../../../../chunks/9814.js","../../../../../../chunks/9821.js","../../../../../../webpack-runtime.js"]} \ 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 1670917..7f940cc 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=9582,e.ids=[9582],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},5621:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>y,routeModule:()=>w,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var s=a(63865),l=a(9455),n=a(30671),i=a(5583),d=a(19796),o=a(70193),c=e([o]);o=(c.then?(await c)():c)[0];let u=(0,n.M)(o,"default"),m=(0,n.M)(o,"getStaticProps"),p=(0,n.M)(o,"getStaticPaths"),h=(0,n.M)(o,"getServerSideProps"),g=(0,n.M)(o,"config"),y=(0,n.M)(o,"reportWebVitals"),f=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),b=(0,n.M)(o,"unstable_getStaticParams"),A=(0,n.M)(o,"unstable_getServerProps"),v=(0,n.M)(o,"unstable_getServerSideProps"),w=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-user",pathname:"/admin/[user_id]/databases/[single]/users/add-user",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});r()}catch(e){r(e)}})},30565:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>h});var s=a(8732),l=a(82015),n=a.n(l),i=a(53926),d=a(59023),o=a(46169),c=a(16757),u=a(49585),m=a(70193),p=e([m]);function h(){let{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}=n().useContext(m.AddNewDbUserContext),[p,h]=n().useState("invitation"),[g,y]=n().useState(!1),[f,x]=n().useState(!1),[b,A]=n().useState(["Edit"]),[v,w]=n().useState(t.db_slug),[_,S]=n().useState(null),[j,k]=n().useState(null),[D,N]=n().useState([]),[E,M]=n().useState([]);return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",t.db_name]})]})}),(0,s.jsx)(i.A,{user:e})]}),(0,s.jsxs)("section",{className:"paper",children:[g&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("form",{onSubmit:a=>{a.preventDefault(),y(!0);let r=a.target,s=Array.from(r),l={};s.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(l[e.name]=e.value)});let n={payload:l,dbFullName:t.db_full_name,dbId:t.id};(0,o.A)("/api/addDbUser",{method:"post",body:n},!0).then(a=>{a.success?j?(j.imageName=`${v}-user-${a.newUserId}`,j.mimeType="jpeg",delete j.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[j],folder:v.replace(/_/g,"-"),type:"image"}},!0).then(r=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:t.db_full_name,payload:{id:a.newUserId,image:r.mediaData[0].media_url,image_thumbnail:r.mediaData[0].media_thumbnail_url}}},!0).then(a=>{a.success&&(window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`),setTimeout(()=>{y(!1)},500)})})):window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`:setTimeout(()=>{y(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,s.jsx)(u.A,{user:e,targetDb:t.db_full_name,database:t,userImage:j,setUserImage:k}),(0,s.jsx)("button",{children:"Add User"})]})]})]})}m=(p.then?(await p)():p)[0],r()}catch(e){r(e)}})},49585:(e,t,a)=>{let r;a.d(t,{A:()=>m});var s=a(8732),l=a(82015),n=a.n(l),i=a(46169),d=a(10621),o=a(16757),c=a(83155),u=a(20136);function m({targetDb:e,database:t,user:a,userImage:l,setUserImage:m}){let[p,h]=n().useState(null),[g,y]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[g&&(0,s.jsx)(o.A,{}),p&&(0,s.jsx)(d.A,{message:p}),(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,s.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,s.jsx)(c.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,s.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"username",children:"Username"}),(0,s.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:t=>{let a=t.target;a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning"),window.clearTimeout(r),r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Username Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)}})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,s.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:t=>{window.clearTimeout(r);let a=t.target;r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Email Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)},required:!0})]}),(0,s.jsx)(c.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,s.jsx)(c.A,{title:"Address",name:"address",autoComplete:"address"}),(0,s.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,s.jsx)(c.A,{title:"City",name:"city",autoComplete:"city"}),(0,s.jsx)(c.A,{title:"State",name:"state",autoComplete:"state"}),(0,s.jsx)(c.A,{title:"Country",name:"country",autoComplete:"country"}),(0,s.jsx)(c.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"password",children:"Password"}),(0,s.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,s.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let t=e.target;t.closest("form")?.password.value===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"paper",children:[(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,s.jsx)(u.A,{userImage:l,setUserImage:m})]})]})}},20136:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(8732),s=a(82015),l=a.n(s),n=a(65842);function i({user:e,userImage:t,setUserImage:a,database:s,className:i}){let d=l().useRef();return(0,r.jsxs)("div",{className:"card no-hover col"+(i?" "+i:""),children:[(0,r.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,r.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:d,"data-imagepreview":"image"})}),(0,r.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,r.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,r.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let t=e.target.files?.[0];if(t){let e=await (0,n.A)({imageInputFile:t,maxWidth:400});a?.(e)}else window.alert("No File Provided!")}})]})]})}},10621:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({message:e}){return(0,r.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}a(82015)},22873:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(71205);async function s({request:e,databaseSlug:t,user:a,query:s}){try{let l=a.id,n=null;if(!s?.delegated)return{dbUserId:l};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=(0,r.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((n=JSON.parse(a)).databaseSlug===t)return{dbUserId:l=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},65842:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(76102);let s=a.n(r)().media.imageInputFileToBase64},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9582,e.ids=[9582],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},5621:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>y,default:()=>c,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>g,routeModule:()=>_,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>f});var s=a(63865),l=a(9455),n=a(30671),i=a(5583),d=a(19796),o=a(70193),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,n.M)(o,"default"),m=(0,n.M)(o,"getStaticProps"),p=(0,n.M)(o,"getStaticPaths"),h=(0,n.M)(o,"getServerSideProps"),y=(0,n.M)(o,"config"),g=(0,n.M)(o,"reportWebVitals"),f=(0,n.M)(o,"unstable_getStaticProps"),x=(0,n.M)(o,"unstable_getStaticPaths"),b=(0,n.M)(o,"unstable_getStaticParams"),A=(0,n.M)(o,"unstable_getServerProps"),v=(0,n.M)(o,"unstable_getServerSideProps"),_=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-user",pathname:"/admin/[user_id]/databases/[single]/users/add-user",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:o});r()}catch(e){r(e)}})},30565:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>h});var s=a(8732),l=a(82015),n=a.n(l),i=a(53926),d=a(59023),o=a(46169),u=a(16757),c=a(49585),m=a(70193),p=e([m]);function h(){let{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}=n().useContext(m.AddNewDbUserContext),[p,h]=n().useState("invitation"),[y,g]=n().useState(!1),[f,x]=n().useState(!1),[b,A]=n().useState(["Edit"]),[v,_]=n().useState(t.db_slug),[w,S]=n().useState(null),[j,N]=n().useState(null),[k,E]=n().useState([]),[P,D]=n().useState([]);return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",t.db_name]})]})}),(0,s.jsx)(i.A,{user:e})]}),(0,s.jsxs)("section",{className:"paper",children:[y&&(0,s.jsx)(u.A,{}),(0,s.jsxs)("form",{onSubmit:a=>{a.preventDefault(),g(!0);let r=a.target,s=Array.from(r),l={};s.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(l[e.name]=e.value)});let n={payload:l,dbFullName:t.db_full_name,dbId:t.id};(0,o.A)("/api/addDbUser",{method:"post",body:n},!0).then(a=>{a.success?j?(j.imageName=`${v}-user-${a.newUserId}`,j.mimeType="jpeg",delete j.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[j],folder:v.replace(/_/g,"-"),type:"image"}},!0).then(r=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:t.db_full_name,payload:{id:a.newUserId,image:r.mediaData[0].media_url,image_thumbnail:r.mediaData[0].media_thumbnail_url}}},!0).then(a=>{a.success&&(window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`),setTimeout(()=>{g(!1)},500)})})):window.location.pathname=`/admin/${e?.id}/databases/${t.db_slug}/users`:setTimeout(()=>{g(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,s.jsx)(c.A,{user:e,targetDb:t.db_full_name,database:t,userImage:j,setUserImage:N}),(0,s.jsx)("button",{children:"Add User"})]})]})]})}m=(p.then?(await p)():p)[0],r()}catch(e){r(e)}})},49585:(e,t,a)=>{let r;a.d(t,{A:()=>m});var s=a(8732),l=a(82015),n=a.n(l),i=a(46169),d=a(10621),o=a(16757),u=a(83155),c=a(20136);function m({targetDb:e,database:t,user:a,userImage:l,setUserImage:m}){let[p,h]=n().useState(null),[y,g]=n().useState(!1);return(0,s.jsxs)(n().Fragment,{children:[y&&(0,s.jsx)(o.A,{}),p&&(0,s.jsx)(d.A,{message:p}),(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,s.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,s.jsx)(u.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,s.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),h(null)):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"username",children:"Username"}),(0,s.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:t=>{let a=t.target;a.value.match(/./)?(a.classList.remove("warning"),h(null)):a.classList.add("warning"),window.clearTimeout(r),r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Username Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)}})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,s.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:t=>{window.clearTimeout(r);let a=t.target;r=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${a.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(h("Email Already Exists"),a.classList.add("warning")):(h(null),a.classList.remove("warning"))})},300)},required:!0})]}),(0,s.jsx)(u.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,s.jsx)(u.A,{title:"Address",name:"address",autoComplete:"address"}),(0,s.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,s.jsx)(u.A,{title:"City",name:"city",autoComplete:"city"}),(0,s.jsx)(u.A,{title:"State",name:"state",autoComplete:"state"}),(0,s.jsx)(u.A,{title:"Country",name:"country",autoComplete:"country"}),(0,s.jsx)(u.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"password",children:"Password"}),(0,s.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,s.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let t=e.target;t.closest("form")?.password.value===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,s.jsxs)("div",{className:"paper",children:[(0,s.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,s.jsx)(c.A,{userImage:l,setUserImage:m})]})]})}},20136:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(8732),s=a(82015),l=a.n(s),n=a(65842);function i({user:e,userImage:t,setUserImage:a,database:s,className:i}){let d=l().useRef();return(0,r.jsxs)("div",{className:"card no-hover col"+(i?" "+i:""),children:[(0,r.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,r.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:d,"data-imagepreview":"image"})}),(0,r.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,r.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,r.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let t=e.target.files?.[0];if(t){let e=await (0,n.A)({imageInputFile:t,maxWidth:400});a?.(e)}else window.alert("No File Provided!")}})]})]})}},10621:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s({message:e}){return(0,r.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}a(82015)},22873:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(71205);async function s({request:e,databaseSlug:t,user:a,query:s}){try{let l=a.id,n=null;if(!s?.delegated)return{dbUserId:l};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=(0,r.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Invalid Token");if((n=JSON.parse(a)).databaseSlug===t)return{dbUserId:l=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},65842:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(76102);let s=a.n(r)().media.imageInputFileToBase64},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},25088:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},72935:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},71296:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},77047:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(29021),s=a.n(r);async function l({user:e,message:t,component:a,noMail:r,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],a=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||r||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>c});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:t}){let a=[];try{for(let l=0;l",t.message),e}}var n=a(77047),i=a(71934),d=a(43651),o=a(16175);async function c({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s}){let c;let u=!!s||!!a?.match(/^datasquirel$/),m=s?o.A:u?i.A:d.A;try{c=e&&t&&Array.isArray(t)&&t[0]?u?await m(e,t):await m({paradigm:"Full Access",queryString:e,queryValues:t}):u?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&r)try{let e=c;return await l({unparsedResults:e,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},43651:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rl})},16175:(e,t,a)=>{a.d(t,{A:()=>i});var r=a(9973),s=a.n(r),l=a(29021),n=a.n(l);async function i(...e){let t=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!n().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:n().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let a=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},70193:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{AddNewDbUserContext:()=>b,default:()=>f,getServerSideProps:()=>x});var s=a(8732),l=a(29021),n=a.n(l),i=a(82015),d=a.n(i),o=a(25562),c=a(92702),u=a(30565),m=a(52854),p=a(55880),h=a(22873),g=a(71934),y=e([u,p]);[u,p]=y.then?(await y)():y;let b=d().createContext({});function f({user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Users | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(o.A,{head:n,user:e,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:r,confirmedDelegetedUser:l,user:e}),children:(0,s.jsx)(b.Provider,{value:{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l},children:(0,s.jsx)(u.A,{})})})}async function x({req:e,res:t,query:a}){let r=await (0,c.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let s=await (0,h.A)({request:e,user:r,databaseSlug:a.single,query:a});if(!s)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:i}=s,d=await (0,g.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!d||!d[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(n().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),u=(o.filter(e=>e.dbFullName===d[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0];return await (0,m.A)({database:d[0].db_full_name,queryString:`SELECT * ${d[0].db_full_name}.FROM users LIMIT 20`,tableSchema:u}),{props:{user:r,database:d[0],table:u||{},query:a,confirmedDelegetedUser:s}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,3634,3155],()=>a(5621));module.exports=r})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},52854:(e,t,a)=>{a.d(t,{A:()=>o});var r=a(71205);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:t}){let a=[];try{for(let l=0;l",t.message),e}}var n=a(77047),i=a(51779),d=a(84640);async function o({queryString:e,queryValuesArray:t,database:a,tableSchema:r,useLocal:s,debug:o}){let u=(0,i.A)({fa:!0});s&&(u=(0,i.A)({local:!0})),a?.match(/^datasquirel$/)&&(u=(0,i.A)()),o&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let c=await (0,d.A)(u,e,t);if(o&&console.log("varDatabaseDbHandler:results:",c),c&&r)try{return await l({unparsedResults:c,tableSchema:r})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},71205:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(55511),s=a(79428),l=a(48243);function n({encryptedString:e,encryptionKey:t,encryptionSalt:a}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:d,algorithm:o,bufferAllocSize:u}=(0,l.A)({encryptionKey:t});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,r.scryptSync)(n,i,d),m=s.Buffer.alloc(u,0),p=(0,r.createDecipheriv)(o,c,m);try{let t=p.update(e,"hex","utf8");return t+=p.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},84640:(e,t,a)=>{async function r(e,t,a){try{if("string"==typeof t){let r=await e.query(s(t),a);return JSON.parse(JSON.stringify(r))}if("object"!=typeof t)return null;{let a=[];for(let r=0;rr})},48243:(e,t,a)=>{a.d(t,{A:()=>r});function r(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},70193:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{AddNewDbUserContext:()=>b,default:()=>f,getServerSideProps:()=>x});var s=a(8732),l=a(29021),n=a.n(l),i=a(82015),d=a.n(i),o=a(25562),u=a(92702),c=a(30565),m=a(52854),p=a(55880),h=a(22873),y=a(71934),g=e([c,p]);[c,p]=g.then?(await g)():g;let b=d().createContext({});function f({user:e,database:t,table:a,query:r,confirmedDelegetedUser:l}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Users | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(o.A,{head:n,user:e,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:r,confirmedDelegetedUser:l,user:e}),children:(0,s.jsx)(b.Provider,{value:{user:e,database:t,table:a,query:r,confirmedDelegetedUser:l},children:(0,s.jsx)(c.A,{})})})}async function x({req:e,res:t,query:a}){let r=await (0,u.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let s=await (0,h.A)({request:e,user:r,databaseSlug:a.single,query:a});if(!s)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:i}=s,d=await (0,y.A)(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!d||!d[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(n().readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),c=(o.filter(e=>e.dbFullName===d[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0];return await (0,m.A)({database:d[0].db_full_name,queryString:`SELECT * ${d[0].db_full_name}.FROM users LIMIT 20`,tableSchema:c}),{props:{user:r,database:d[0],table:c||{},query:a,confirmedDelegetedUser:s}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,7769,3155],()=>a(5621));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json index b4b1506..bf36b37 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3704.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5771.js","../../../../../../chunks/5954.js","../../../../../../chunks/6133.js","../../../../../../chunks/6202.js","../../../../../../chunks/6247.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/7303.js","../../../../../../chunks/7769.js","../../../../../../chunks/8704.js","../../../../../../chunks/883.js","../../../../../../chunks/9136.js","../../../../../../chunks/9240.js","../../../../../../chunks/9796.js","../../../../../../chunks/9814.js","../../../../../../chunks/9821.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js index 5aa7267..cfad566 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=9718,e.ids=[9718],e.modules={72952:(e,t,r)=>{r.r(t),r.d(t,{config:()=>w,default:()=>P,getServerSideProps:()=>N,getStaticPaths:()=>D,getStaticProps:()=>q,reportWebVitals:()=>R,routeModule:()=>H,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>$});var a={};r.r(a),r.d(a,{AddDatabaseContext:()=>v,default:()=>E,getServerSideProps:()=>M});var s=r(63865),n=r(9455),i=r(30671),l=r(5583),d=r(19796),o=r(8732),u=r(82015),c=r.n(u),m=r(25562),p=r(92702),g=r(19134),x=r(59023),f=r(53926),b=r(16757),S=r(61347),h=r(89088);function A(){let{user:e,dbImage:t,setDbImage:r,query:a}=c().useContext(v);if(!e)return(0,o.jsx)(c().Fragment,{});let[s,n]=c().useState(null),[i,l]=c().useState(!1);return(0,o.jsx)("section",{className:"card",children:(0,o.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[i&&(0,o.jsx)(b.A,{}),(0,o.jsxs)("div",{className:"flex-col items-start",children:[(0,o.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&t&&r&&(0,o.jsx)(S.A,{user:e,dbImage:t,setDbImage:r,setLoading:l,query:a})]}),e&&t&&r&&(0,o.jsx)(h.A,{user:e,dbImage:t,setDbImage:r})]})})}function j(){let{query:e,duplicateDb:t,user:r}=c().useContext(v),a=e?.duplicate?(0,o.jsxs)("span",{children:["Duplicate"," ",(0,o.jsx)("a",{href:`/admin/${r?.id}/databases/${t?.db_slug}`,target:"_blank",children:t?.db_name})," ","Database"]}):"Add A New Database";return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"flex-wrap",children:[(0,o.jsx)(x.A,{}),(0,o.jsx)("h1",{className:"text-3xl m-0",children:a})]}),(0,o.jsx)(f.A,{user:r})]}),(0,o.jsx)(A,{})]})}var _=r(37195),y=r(71934);let v=c().createContext({});function E({user:e,databases:t,query:r,duplicateDb:a}){let s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Add Database | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Add a database"})]}),[n,i]=c().useState("/images/database-placeholder.png");return(0,o.jsx)(v.Provider,{value:{user:e,databases:t,dbImage:n,setDbImage:i,query:r,duplicateDb:a},children:(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(m.A,{head:s,user:e,children:(0,o.jsx)(j,{})}),(0,o.jsx)(_.A,{setDbImage:i})]})})}async function M({req:e,res:t,query:r}){let a=await (0,p.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!a?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let s=await (0,g.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),n={};if(r.duplicate){let e=await (0,y.A)(`SELECT * FROM user_databases WHERE db_full_name='${r.duplicate}'`);e&&e[0]&&(n=e[0])}return{props:{user:a,databases:s,query:r,duplicateDb:n}}}let P=(0,i.M)(a,"default"),q=(0,i.M)(a,"getStaticProps"),D=(0,i.M)(a,"getStaticPaths"),N=(0,i.M)(a,"getServerSideProps"),w=(0,i.M)(a,"config"),R=(0,i.M)(a,"reportWebVitals"),$=(0,i.M)(a,"unstable_getStaticProps"),C=(0,i.M)(a,"unstable_getStaticPaths"),F=(0,i.M)(a,"unstable_getStaticParams"),I=(0,i.M)(a,"unstable_getServerProps"),O=(0,i.M)(a,"unstable_getServerSideProps"),H=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/add-database",pathname:"/admin/[user_id]/databases/add-database",bundlePath:"",filename:""},components:{App:d.default,Document:l.default},userland:a})},59023:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(8732),s=r(23293);function n(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(s.A,{})})}r(82015)},19134:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(29021),s=r.n(a),n=r(77047);async function i(e){let t;"production".match(/dev/)&&s().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{t=await function(...e){let t=global.DSQL_DB_CONN;try{return new Promise((r,a)=>{t.query(...e).then(e=>{t.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{t.end(),r({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}(e)}catch(e){(0,n.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return t||null}},77047:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(29021),s=r.n(a);async function n({user:e,message:t,component:r,noMail:a,req:n}){let i=new Date,l=(()=>{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],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}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+=` +"use strict";(()=>{var e={};e.id=9718,e.ids=[9718],e.modules={72952:(e,r,t)=>{t.r(r),t.d(r,{config:()=>O,default:()=>y,getServerSideProps:()=>j,getStaticPaths:()=>P,getStaticProps:()=>R,reportWebVitals:()=>M,routeModule:()=>F,unstable_getServerProps:()=>B,unstable_getServerSideProps:()=>Q,unstable_getStaticParams:()=>C,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>w});var s={};t.r(s),t.d(s,{AddDatabaseContext:()=>E,default:()=>N,getServerSideProps:()=>L});var a=t(63865),n=t(9455),i=t(30671),o=t(5583),l=t(19796),d=t(8732),c=t(82015),u=t.n(c),p=t(25562),m=t(92702),S=t(19134),_=t(59023),g=t(53926),D=t(16757),f=t(61347),x=t(89088);function b(){let{user:e,dbImage:r,setDbImage:t,query:s}=u().useContext(E);if(!e)return(0,d.jsx)(u().Fragment,{});let[a,n]=u().useState(null),[i,o]=u().useState(!1);return(0,d.jsx)("section",{className:"card",children:(0,d.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[i&&(0,d.jsx)(D.A,{}),(0,d.jsxs)("div",{className:"flex-col items-start",children:[(0,d.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&r&&t&&(0,d.jsx)(f.A,{user:e,dbImage:r,setDbImage:t,setLoading:o,query:s})]}),e&&r&&t&&(0,d.jsx)(x.A,{user:e,dbImage:r,setDbImage:t})]})})}function h(){let{query:e,duplicateDb:r,user:t}=u().useContext(E),s=e?.duplicate?(0,d.jsxs)("span",{children:["Duplicate"," ",(0,d.jsx)("a",{href:`/admin/${t?.id}/databases/${r?.db_slug}`,target:"_blank",children:r?.db_name})," ","Database"]}):"Add A New Database";return(0,d.jsxs)(u().Fragment,{children:[(0,d.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,d.jsxs)("div",{className:"flex-wrap",children:[(0,d.jsx)(_.A,{}),(0,d.jsx)("h1",{className:"text-3xl m-0",children:s})]}),(0,d.jsx)(g.A,{user:t})]}),(0,d.jsx)(b,{})]})}var A=t(37195),v=t(71934);let E=u().createContext({});function N({user:e,databases:r,query:t,duplicateDb:s}){let a=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"Add Database | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Add a database"})]}),[n,i]=u().useState("/images/database-placeholder.png");return(0,d.jsx)(E.Provider,{value:{user:e,databases:r,dbImage:n,setDbImage:i,query:t,duplicateDb:s},children:(0,d.jsxs)(u().Fragment,{children:[(0,d.jsx)(p.A,{head:a,user:e,children:(0,d.jsx)(h,{})}),(0,d.jsx)(A.A,{setDbImage:i})]})})}async function L({req:e,res:r,query:t}){let s=await (0,m.A)(e,r);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!s?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let a=await (0,S.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${s.id}%'`),n={};if(t.duplicate){let e=await (0,v.A)(`SELECT * FROM user_databases WHERE db_full_name='${t.duplicate}'`);e&&e[0]&&(n=e[0])}return{props:{user:s,databases:a,query:t,duplicateDb:n}}}let y=(0,i.M)(s,"default"),R=(0,i.M)(s,"getStaticProps"),P=(0,i.M)(s,"getStaticPaths"),j=(0,i.M)(s,"getServerSideProps"),O=(0,i.M)(s,"config"),M=(0,i.M)(s,"reportWebVitals"),w=(0,i.M)(s,"unstable_getStaticProps"),q=(0,i.M)(s,"unstable_getStaticPaths"),C=(0,i.M)(s,"unstable_getStaticParams"),B=(0,i.M)(s,"unstable_getServerProps"),Q=(0,i.M)(s,"unstable_getServerSideProps"),F=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/databases/add-database",pathname:"/admin/[user_id]/databases/add-database",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},59023:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(8732),a=t(23293);function n(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(a.A,{})})}t(82015)},19134:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s),n=t(77047),i=t(51779);async function o(e){let r;"production".match(/dev/)&&a().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await function(...e){let r=(0,i.A)();try{return new Promise((t,s)=>{r.query(...e).then(e=>{r.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}finally{r?.end()}}(e)}catch(e){(0,n.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},77047:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let 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 s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` -IP: ${l}`),a+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` Date: ${i.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,1579,194],()=>r(72952));module.exports=a})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71934:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(51779);async function a(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},51779:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),a=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[883,9821,9796,5392,1579,194],()=>t(72952));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json index 316d479..d575f42 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js index 8386dba..0d961d8 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9326,e.ids=[9326],e.modules={37750:(e,t,s)=>{s.r(t),s.d(t,{config:()=>I,default:()=>V,getServerSideProps:()=>H,getStaticPaths:()=>k,getStaticProps:()=>R,reportWebVitals:()=>W,routeModule:()=>G,unstable_getServerProps:()=>Q,unstable_getServerSideProps:()=>U,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>$,unstable_getStaticProps:()=>B});var r={};s.r(r),s.d(r,{MediaContext:()=>L,default:()=>T,getServerSideProps:()=>D});var a=s(63865),i=s(9455),n=s(30671),d=s(5583),l=s(19796),o=s(8732),u=s(82015),c=s.n(u),p=s(29021),x=s.n(p),m=s(25562),g=s(92702),S=s(53926),j=s(91140),h=s(66485),f=s(91692),b=s(55904);function P(){let{media:e,setTargetMedia:t,user:s,folders:r,staticHost:a}=c().useContext(L);return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,o.jsxs)(b.A,{children:[(0,o.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,j.PB)("choose-media-type-popoup")},children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add Media"})]}),(0,o.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,j.PB)("add-folder-popoup")},children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add Folder"})]})]})]}),(0,o.jsx)(S.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(f.A,{media:e,setTargetMedia:t,folders:r,staticHost:a,user:s}),e&&e[0]&&(0,o.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,j.PB)("choose-media-type-popoup")},children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,o.jsx)(h.A,{})]})}var A=s(81145),M=s(87081),v=s(14865),_=s(94198),N=s(43430),w=s(67325),q=s(16757),y=s(71934),F=s(33873),C=s.n(F),E=s(10839);let L=c().createContext({});function T({user:e,media:t,folders:s,staticHost:r}){let a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,n]=c().useState(null),[d,l]=c().useState(null),[u,p]=c().useState(null),[x,g]=c().useState(!1),[S,j]=c().useState(null);return(0,o.jsx)(L.Provider,{value:{user:e,media:t,targetMedia:S,setTargetMedia:j,folders:s,staticHost:r},children:(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)(m.A,{head:a,user:e,children:[x&&(0,o.jsx)(q.A,{screen:!0,title:"Processing Files ..."}),(0,o.jsx)(P,{}),(0,o.jsx)(A.A,{setNewMedia:n,setLoading:g}),(0,o.jsx)(N.A,{setNewFile:l,setLoading:g}),(0,o.jsx)(E.A,{setNewVideo:p,setLoading:g})]}),(0,o.jsx)(M.A,{newMedia:i,setNewMedia:n,newFile:d,setNewFile:l,newVideo:u,setNewVideo:p}),(0,o.jsx)(v.A,{targetMedia:S,setTargetMedia:j,staticHost:r,media:t}),(0,o.jsx)(_.A,{}),(0,o.jsx)(w.A,{user:e})]})})}async function D({req:e,res:t,query:s}){let r=await (0,g.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await (0,y.A)(`SELECT * FROM user_media WHERE user_id='${r.id}' AND folder IS NULL`),i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)return console.log("Static File ENV not Found!"),{redirect:{destination:"/admin",permanent:!1}};let n=C().join(i,`images/user-images/user-${r.id}/`);return x().existsSync(n)?{props:{user:r,media:a,folders:x().readdirSync(n).filter(e=>!e.match(/\..{3,4}$/)),staticHost:process.env.DSQL_STATIC_HOST||""}}:{redirect:{destination:"/admin",permanent:!1}}}let V=(0,n.M)(r,"default"),R=(0,n.M)(r,"getStaticProps"),k=(0,n.M)(r,"getStaticPaths"),H=(0,n.M)(r,"getServerSideProps"),I=(0,n.M)(r,"config"),W=(0,n.M)(r,"reportWebVitals"),B=(0,n.M)(r,"unstable_getStaticProps"),$=(0,n.M)(r,"unstable_getStaticPaths"),O=(0,n.M)(r,"unstable_getStaticParams"),Q=(0,n.M)(r,"unstable_getServerProps"),U=(0,n.M)(r,"unstable_getServerSideProps"),G=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/media",pathname:"/admin/[user_id]/media",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:r})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392,5839],()=>s(37750));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9326,e.ids=[9326],e.modules={37750:(e,t,s)=>{s.r(t),s.d(t,{config:()=>I,default:()=>V,getServerSideProps:()=>H,getStaticPaths:()=>k,getStaticProps:()=>R,reportWebVitals:()=>W,routeModule:()=>G,unstable_getServerProps:()=>Q,unstable_getServerSideProps:()=>U,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>$,unstable_getStaticProps:()=>B});var r={};s.r(r),s.d(r,{MediaContext:()=>L,default:()=>T,getServerSideProps:()=>D});var a=s(63865),i=s(9455),n=s(30671),d=s(5583),l=s(19796),o=s(8732),u=s(82015),c=s.n(u),p=s(29021),m=s.n(p),x=s(25562),g=s(92702),S=s(53926),j=s(91140),h=s(66485),f=s(91692),b=s(55904);function P(){let{media:e,setTargetMedia:t,user:s,folders:r,staticHost:a}=c().useContext(L);return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,o.jsxs)(b.A,{children:[(0,o.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,j.PB)("choose-media-type-popoup")},children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add Media"})]}),(0,o.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,j.PB)("add-folder-popoup")},children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add Folder"})]})]})]}),(0,o.jsx)(S.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(f.A,{media:e,setTargetMedia:t,folders:r,staticHost:a,user:s}),e&&e[0]&&(0,o.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,j.PB)("choose-media-type-popoup")},children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,o.jsx)(h.A,{})]})}var A=s(81145),M=s(87081),v=s(14865),_=s(94198),N=s(43430),w=s(67325),q=s(16757),y=s(71934),F=s(33873),C=s.n(F),E=s(10839);let L=c().createContext({});function T({user:e,media:t,folders:s,staticHost:r}){let a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,n]=c().useState(null),[d,l]=c().useState(null),[u,p]=c().useState(null),[m,g]=c().useState(!1),[S,j]=c().useState(null);return(0,o.jsx)(L.Provider,{value:{user:e,media:t,targetMedia:S,setTargetMedia:j,folders:s,staticHost:r},children:(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)(x.A,{head:a,user:e,children:[m&&(0,o.jsx)(q.A,{screen:!0,title:"Processing Files ..."}),(0,o.jsx)(P,{}),(0,o.jsx)(A.A,{setNewMedia:n,setLoading:g}),(0,o.jsx)(N.A,{setNewFile:l,setLoading:g}),(0,o.jsx)(E.A,{setNewVideo:p,setLoading:g})]}),(0,o.jsx)(M.A,{newMedia:i,setNewMedia:n,newFile:d,setNewFile:l,newVideo:u,setNewVideo:p}),(0,o.jsx)(v.A,{targetMedia:S,setTargetMedia:j,staticHost:r,media:t}),(0,o.jsx)(_.A,{}),(0,o.jsx)(w.A,{user:e})]})})}async function D({req:e,res:t,query:s}){let r=await (0,g.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await (0,y.A)(`SELECT * FROM user_media WHERE user_id='${r.id}' AND folder IS NULL`),i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)return console.log("Static File ENV not Found!"),{redirect:{destination:"/admin",permanent:!1}};let n=C().join(i,`images/user-images/user-${r.id}/`);return m().existsSync(n)?{props:{user:r,media:a,folders:m().readdirSync(n).filter(e=>!e.match(/\..{3,4}$/)),staticHost:process.env.DSQL_STATIC_HOST||""}}:{redirect:{destination:"/admin",permanent:!1}}}let V=(0,n.M)(r,"default"),R=(0,n.M)(r,"getStaticProps"),k=(0,n.M)(r,"getStaticPaths"),H=(0,n.M)(r,"getServerSideProps"),I=(0,n.M)(r,"config"),W=(0,n.M)(r,"reportWebVitals"),B=(0,n.M)(r,"unstable_getStaticProps"),$=(0,n.M)(r,"unstable_getStaticPaths"),O=(0,n.M)(r,"unstable_getStaticParams"),Q=(0,n.M)(r,"unstable_getServerProps"),U=(0,n.M)(r,"unstable_getServerSideProps"),G=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/media",pathname:"/admin/[user_id]/media",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:r})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},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,9796,5392,9136],()=>s(37750));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json index 01dc543..86e9913 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js index 12b6220..3710af1 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=431,e.ids=[431],e.modules={29568:(e,t,r)=>{r.r(t),r.d(t,{config:()=>B,default:()=>V,getServerSideProps:()=>I,getStaticPaths:()=>L,getStaticProps:()=>H,reportWebVitals:()=>O,routeModule:()=>X,unstable_getServerProps:()=>U,unstable_getServerSideProps:()=>G,unstable_getStaticParams:()=>z,unstable_getStaticPaths:()=>W,unstable_getStaticProps:()=>Q});var s={};r.r(s),r.d(s,{MediaContext:()=>k,default:()=>D,getServerSideProps:()=>R});var i=r(63865),a=r(9455),n=r(30671),o=r(5583),d=r(19796),l=r(8732),u=r(82015),c=r.n(u),p=r(29021),x=r.n(p),m=r(25562),f=r(92702),h=r(81145),g=r(87081),S=r(14865),j=r(94198),A=r(59023),v=r(53926),y=r(91140),P=r(66485),b=r(91692),_=r(55904),M=r(96089);function w(e){let{media:t,setTargetMedia:r,user:s,folders:i,query:a,staticHost:n,folder:o}=c().useContext(k);return(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(A.A,{}),(0,l.jsx)(M.A,{size:20}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:a.folder[a.folder.length-1]})]}),(0,l.jsxs)(_.A,{children:[(0,l.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,y.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Media"})]}),(0,l.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,y.PB)("add-folder-popoup",e=>{e?.querySelector("input")?.focus()})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Folder"})]})]})]}),(0,l.jsx)(v.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(b.A,{media:t,setTargetMedia:r,folders:i,folder:o,staticHost:n,user:s}),t&&t[0]&&(0,l.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,y.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,l.jsx)(P.A,{})]})}var N=r(43430),q=r(67325),F=r(16757),$=r(71934),C=r(33873),T=r.n(C),E=r(10839);let k=c().createContext({});function D({user:e,media:t,folders:r,query:s,staticHost:i,folderNameFull:a}){let n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,d]=c().useState(null),[u,p]=c().useState(null),[x,f]=c().useState(null),[A,v]=c().useState(!1),[y,P]=c().useState(null);return(0,l.jsx)(k.Provider,{value:{user:e,media:t,targetMedia:y,setTargetMedia:P,folders:r,query:s,staticHost:i,folder:a},children:(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)(m.A,{head:n,user:e,children:[A&&(0,l.jsx)(F.A,{screen:!0,title:"Processing Files ..."}),(0,l.jsx)(w,{}),(0,l.jsx)(h.A,{setNewMedia:d,setLoading:v}),(0,l.jsx)(N.A,{setNewFile:p,setLoading:v}),(0,l.jsx)(E.A,{setNewVideo:f,setLoading:v})]}),(0,l.jsx)(g.A,{newMedia:o,setNewMedia:d,newFile:u,setNewFile:p,folder:a,newVideo:x,setNewVideo:f}),(0,l.jsx)(S.A,{targetMedia:y,staticHost:i,setTargetMedia:P,media:t}),(0,l.jsx)(j.A,{folder:a}),(0,l.jsx)(q.A,{user:e})]})})}async function R({req:e,res:t,query:r}){try{let s=await (0,f.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let i=r.folder.join("/"),a=await (0,$.A)(`SELECT * FROM user_media WHERE user_id='${s.id}' AND folder='${i}'`),n=function({isPrivate:e,userId:t,folder:r,video:s,pathOnly:i}){"production".match(/production/);let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;let n=e?`@/${s?"videos":"media"}/${r?r+"/":""}`:s?`/videos/user-videos/user-${t}/${r?r+"/":""}`:`/images/user-images/user-${t}/${r?r+"/":""}`,o=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t}/media/${r?r+"/":""}`:T().join(a,n);return x().existsSync(o)||i||x().mkdirSync(o,{recursive:!0}),{fileRootPath:o,urlRootPath:e?`@/media/${r?r+"/":""}`:`${process.env.DSQL_STATIC_HOST}${n}`,relativePath:n}}({isPrivate:!1,userId:s.id,folder:i,video:!1,pathOnly:!0});if(!n)return console.log("Static File ENV not Found!"),{redirect:{destination:"/",permanent:!1}};let o=n.fileRootPath,d=x().readdirSync(o).filter(e=>!x().statSync(T().normalize(`${o}/${e}`)).isFile());return{props:{user:s,media:a,folders:d,query:r,staticHost:process.env.DSQL_STATIC_HOST||"",folderNameFull:i}}}catch(e){return{redirect:{destination:"/admin",permanent:!1}}}}let V=(0,n.M)(s,"default"),H=(0,n.M)(s,"getStaticProps"),L=(0,n.M)(s,"getStaticPaths"),I=(0,n.M)(s,"getServerSideProps"),B=(0,n.M)(s,"config"),O=(0,n.M)(s,"reportWebVitals"),Q=(0,n.M)(s,"unstable_getStaticProps"),W=(0,n.M)(s,"unstable_getStaticPaths"),z=(0,n.M)(s,"unstable_getStaticParams"),U=(0,n.M)(s,"unstable_getServerProps"),G=(0,n.M)(s,"unstable_getServerSideProps"),X=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/media/[...folder]",pathname:"/admin/[user_id]/media/[...folder]",bundlePath:"",filename:""},components:{App:d.default,Document:o.default},userland:s})},59023:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732),i=r(23293);function a(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(i.A,{})})}r(82015)},96089:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,5839],()=>r(29568));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=431,e.ids=[431],e.modules={29568:(e,t,r)=>{r.r(t),r.d(t,{config:()=>B,default:()=>V,getServerSideProps:()=>I,getStaticPaths:()=>L,getStaticProps:()=>H,reportWebVitals:()=>O,routeModule:()=>X,unstable_getServerProps:()=>U,unstable_getServerSideProps:()=>G,unstable_getStaticParams:()=>z,unstable_getStaticPaths:()=>W,unstable_getStaticProps:()=>Q});var s={};r.r(s),r.d(s,{MediaContext:()=>k,default:()=>D,getServerSideProps:()=>R});var i=r(63865),a=r(9455),n=r(30671),o=r(5583),d=r(19796),l=r(8732),u=r(82015),c=r.n(u),p=r(29021),x=r.n(p),m=r(25562),f=r(92702),h=r(81145),g=r(87081),S=r(14865),j=r(94198),v=r(59023),A=r(53926),y=r(91140),P=r(66485),_=r(91692),b=r(55904),M=r(96089);function w(e){let{media:t,setTargetMedia:r,user:s,folders:i,query:a,staticHost:n,folder:o}=c().useContext(k);return(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(v.A,{}),(0,l.jsx)(M.A,{size:20}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:a.folder[a.folder.length-1]})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,y.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Media"})]}),(0,l.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,y.PB)("add-folder-popoup",e=>{e?.querySelector("input")?.focus()})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Folder"})]})]})]}),(0,l.jsx)(A.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,l.jsxs)(c().Fragment,{children:[(0,l.jsx)(_.A,{media:t,setTargetMedia:r,folders:i,folder:o,staticHost:n,user:s}),t&&t[0]&&(0,l.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,y.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,l.jsx)(P.A,{})]})}var N=r(43430),q=r(67325),F=r(16757),$=r(71934),C=r(33873),T=r.n(C),E=r(10839);let k=c().createContext({});function D({user:e,media:t,folders:r,query:s,staticHost:i,folderNameFull:a}){let n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,d]=c().useState(null),[u,p]=c().useState(null),[x,f]=c().useState(null),[v,A]=c().useState(!1),[y,P]=c().useState(null);return(0,l.jsx)(k.Provider,{value:{user:e,media:t,targetMedia:y,setTargetMedia:P,folders:r,query:s,staticHost:i,folder:a},children:(0,l.jsxs)(c().Fragment,{children:[(0,l.jsxs)(m.A,{head:n,user:e,children:[v&&(0,l.jsx)(F.A,{screen:!0,title:"Processing Files ..."}),(0,l.jsx)(w,{}),(0,l.jsx)(h.A,{setNewMedia:d,setLoading:A}),(0,l.jsx)(N.A,{setNewFile:p,setLoading:A}),(0,l.jsx)(E.A,{setNewVideo:f,setLoading:A})]}),(0,l.jsx)(g.A,{newMedia:o,setNewMedia:d,newFile:u,setNewFile:p,folder:a,newVideo:x,setNewVideo:f}),(0,l.jsx)(S.A,{targetMedia:y,staticHost:i,setTargetMedia:P,media:t}),(0,l.jsx)(j.A,{folder:a}),(0,l.jsx)(q.A,{user:e})]})})}async function R({req:e,res:t,query:r}){try{let s=await (0,f.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let i=r.folder.join("/"),a=await (0,$.A)(`SELECT * FROM user_media WHERE user_id='${s.id}' AND folder='${i}'`),n=function({isPrivate:e,userId:t,folder:r,video:s,pathOnly:i}){"production".match(/production/);let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;let n=e?`@/${s?"videos":"media"}/${r?r+"/":""}`:s?`/videos/user-videos/user-${t}/${r?r+"/":""}`:`/images/user-images/user-${t}/${r?r+"/":""}`,o=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t}/media/${r?r+"/":""}`:T().join(a,n);return x().existsSync(o)||i||x().mkdirSync(o,{recursive:!0}),{fileRootPath:o,urlRootPath:e?`@/media/${r?r+"/":""}`:`${process.env.DSQL_STATIC_HOST}${n}`,relativePath:n}}({isPrivate:!1,userId:s.id,folder:i,video:!1,pathOnly:!0});if(!n)return console.log("Static File ENV not Found!"),{redirect:{destination:"/",permanent:!1}};let o=n.fileRootPath,d=x().readdirSync(o).filter(e=>!x().statSync(T().normalize(`${o}/${e}`)).isFile());return{props:{user:s,media:a,folders:d,query:r,staticHost:process.env.DSQL_STATIC_HOST||"",folderNameFull:i}}}catch(e){return{redirect:{destination:"/admin",permanent:!1}}}}let V=(0,n.M)(s,"default"),H=(0,n.M)(s,"getStaticProps"),L=(0,n.M)(s,"getStaticPaths"),I=(0,n.M)(s,"getServerSideProps"),B=(0,n.M)(s,"config"),O=(0,n.M)(s,"reportWebVitals"),Q=(0,n.M)(s,"unstable_getStaticProps"),W=(0,n.M)(s,"unstable_getStaticPaths"),z=(0,n.M)(s,"unstable_getStaticParams"),U=(0,n.M)(s,"unstable_getServerProps"),G=(0,n.M)(s,"unstable_getServerSideProps"),X=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/media/[...folder]",pathname:"/admin/[user_id]/media/[...folder]",bundlePath:"",filename:""},components:{App:d.default,Document:o.default},userland:s})},59023:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732),i=r(23293);function a(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(i.A,{})})}r(82015)},96089:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,9136],()=>r(29568));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json index 316d479..d575f42 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js index b637be8..f4fa377 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8591,e.ids=[8591],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},25355:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>f,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>h,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>y});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),c=a(19796),d=a(2207),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,l.M)(d,"default"),h=(0,l.M)(d,"getStaticProps"),p=(0,l.M)(d,"getStaticPaths"),m=(0,l.M)(d,"getServerSideProps"),f=(0,l.M)(d,"config"),x=(0,l.M)(d,"reportWebVitals"),y=(0,l.M)(d,"unstable_getStaticProps"),v=(0,l.M)(d,"unstable_getStaticPaths"),g=(0,l.M)(d,"unstable_getStaticParams"),A=(0,l.M)(d,"unstable_getServerProps"),b=(0,l.M)(d,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});r()}catch(e){r(e)}})},61637:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>p});var s=a(8732),n=a(82015),l=a.n(n),i=a(53926),c=a(80830),d=a(2207);a(46169);var o=a(84894),u=a(60374),h=e([d,o]);function p(){let{dbSchemaData:e,user:t}=l().useContext(d.UserSchemaContext),[a,r]=l().useState(e),[n,h]=l().useState(null),[p,m]=l().useState(null),[f,x]=l().useState(null);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(i.A,{user:t})]}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...e.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{e.target.value?.match(/^none$/)?h(null):h(e.target.value)}}),p&&p[0]&&(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...p.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?x(null):x(e.target.value)}})]})]}),(0,s.jsx)(o.A,{content:u.A.stringify(a,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}[d,o]=h.then?(await h)():h,r()}catch(e){r(e)}})},6789:(e,t,a)=>{a.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:r="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:d}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let o=ace.edit(e.current);o.setOptions({mode:"ace/mode/"+r,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==r)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...d}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=o);try{ace.require("ace/ext/beautify").beautify(o.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:c,info:d,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},84894:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>d});var s=a(8732);a(46169);var n=a(82015),l=a.n(n);a(6789);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:r="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},66485:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s(){return(0,r.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,r.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},60374:(e,t,a)=>{a.d(t,{A:()=>r});let r={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},2207:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{UserSchemaContext:()=>y,default:()=>f,getServerSideProps:()=>x});var s=a(8732),n=a(29021),l=a.n(n),i=a(82015),c=a.n(i),d=a(25562),o=a(92702),u=a(61637),h=a(66485),p=a(53926),m=e([u]);u=(m.then?(await m)():m)[0];let y=c().createContext({});function f({user:e,query:t,dbSchemaData:a}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,s.jsx)(d.A,{head:r,user:e,aceEditor:!0,children:(0,s.jsx)(y.Provider,{value:{user:e,dbSchemaData:a},children:e?.verification_status?.toString().match(/1/)?(0,s.jsx)(c().Fragment,{children:(0,s.jsx)(u.A,{})}):(0,s.jsxs)(c().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(p.A,{user:e})]}),(0,s.jsx)(h.A,{})]})})})}async function x({req:e,res:t,query:a}){let r=await (0,o.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`;if(!l().existsSync(s))return{redirect:{destination:"/admin",permanent:!1}};let n=JSON.parse(l().readFileSync(s,"utf-8"));return{props:{user:r,query:a,dbSchemaData:n||[]}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392],()=>a(25355));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8591,e.ids=[8591],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},25355:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{config:()=>f,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>p,getStaticProps:()=>h,reportWebVitals:()=>x,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>y});var s=a(63865),n=a(9455),l=a(30671),i=a(5583),c=a(19796),d=a(2207),o=e([d]);d=(o.then?(await o)():o)[0];let u=(0,l.M)(d,"default"),h=(0,l.M)(d,"getStaticProps"),p=(0,l.M)(d,"getStaticPaths"),m=(0,l.M)(d,"getServerSideProps"),f=(0,l.M)(d,"config"),x=(0,l.M)(d,"reportWebVitals"),y=(0,l.M)(d,"unstable_getStaticProps"),v=(0,l.M)(d,"unstable_getStaticPaths"),g=(0,l.M)(d,"unstable_getStaticParams"),A=(0,l.M)(d,"unstable_getServerProps"),b=(0,l.M)(d,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:d});r()}catch(e){r(e)}})},61637:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>p});var s=a(8732),n=a(82015),l=a.n(n),i=a(53926),c=a(80830),d=a(2207);a(46169);var o=a(84894),u=a(60374),h=e([d,o]);function p(){let{dbSchemaData:e,user:t}=l().useContext(d.UserSchemaContext),[a,r]=l().useState(e),[n,h]=l().useState(null),[p,m]=l().useState(null),[f,x]=l().useState(null);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(i.A,{user:t})]}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...e.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{e.target.value?.match(/^none$/)?h(null):h(e.target.value)}}),p&&p[0]&&(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...p.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?x(null):x(e.target.value)}})]})]}),(0,s.jsx)(o.A,{content:u.A.stringify(a,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}[d,o]=h.then?(await h)():h,r()}catch(e){r(e)}})},6789:(e,t,a)=>{a.d(t,{A:()=>r});function r({editorHTMLElementRef:e,fieldObject:t,setRefresh:a,language:r="javascript",entry:s,jsonTextEditors:n,editorRef:l,readOnly:i,initialContent:c,options:d}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{a?.(e=>e+1)},1e3);return}let o=ace.edit(e.current);o.setOptions({mode:"ace/mode/"+r,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&s?.[t.fieldName]?(()=>{if("json"!==r)return s[t.fieldName];try{return JSON.stringify(JSON.parse(s[t.fieldName]),null,4)}catch(e){return s[t.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...d}),l&&t?.fieldName&&(n?.current.push({fieldName:t.fieldName,ref:l}),l.current=o);try{ace.require("ace/ext/beautify").beautify(o.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(8732),s=a(58526);function n({selectOptions:e,name:t,onChangeHandler:a,required:n,setAlert:l,title:i,defaultValue:c,info:d,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[i&&(0,r.jsxs)("label",{htmlFor:t,children:[i,n?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:n,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:a,title:s}=e;return(0,r.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,r.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:d})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}a(82015)},84894:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.d(t,{A:()=>d});var s=a(8732);a(46169);var n=a(82015),l=a.n(n);a(6789);var i=a(75979),c=e([i]);function d({editorRef:e,content:t,readOnly:a,language:r="javascript",options:n,wrapperProps:c}){try{let e=l().useRef(),[t,a]=l().useState(0);return(0,s.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,s.jsx)(l().Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],r()}catch(e){r(e)}})},66485:(e,t,a)=>{a.d(t,{A:()=>s});var r=a(8732);function s(){return(0,r.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,r.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,r.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},60374:(e,t,a)=>{a.d(t,{A:()=>r});let r={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},2207:(e,t,a)=>{a.a(e,async(e,r)=>{try{a.r(t),a.d(t,{UserSchemaContext:()=>y,default:()=>f,getServerSideProps:()=>x});var s=a(8732),n=a(29021),l=a.n(n),i=a(82015),c=a.n(i),d=a(25562),o=a(92702),u=a(61637),h=a(66485),p=a(53926),m=e([u]);u=(m.then?(await m)():m)[0];let y=c().createContext({});function f({user:e,query:t,dbSchemaData:a}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,s.jsx)(d.A,{head:r,user:e,aceEditor:!0,children:(0,s.jsx)(y.Provider,{value:{user:e,dbSchemaData:a},children:e?.verification_status?.toString().match(/1/)?(0,s.jsx)(c().Fragment,{children:(0,s.jsx)(u.A,{})}):(0,s.jsxs)(c().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"",children:(0,s.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,s.jsx)(p.A,{user:e})]}),(0,s.jsx)(h.A,{})]})})})}async function x({req:e,res:t,query:a}){let r=await (0,o.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`;if(!l().existsSync(s))return{redirect:{destination:"/admin",permanent:!1}};let n=JSON.parse(l().readFileSync(s,"utf-8"));return{props:{user:r,query:a,dbSchemaData:n||[]}}}r()}catch(e){r(e)}})},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[883,9821,9796,5392],()=>a(25355));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json index 1c025f7..f56b462 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../node_modules/tailwind-merge/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../node_modules/tailwind-merge/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js index a3ed462..6891126 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=189,e.ids=[189],e.modules={47766:(e,s,t)=>{t.r(s),t.d(s,{config:()=>E,default:()=>M,getServerSideProps:()=>C,getStaticPaths:()=>y,getStaticProps:()=>q,reportWebVitals:()=>D,routeModule:()=>k,unstable_getServerProps:()=>H,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>I,unstable_getStaticPaths:()=>F,unstable_getStaticProps:()=>R});var a={};t.r(a),t.d(a,{SettingsContext:()=>A,default:()=>P,getServerSideProps:()=>_});var r=t(63865),i=t(9455),l=t(30671),n=t(5583),o=t(19796),c=t(8732),d=t(82015),u=t.n(d),m=t(25562),p=t(92702),g=t(53926),x=t(57660),h=t(65842),f=t(91140),j=t(55904);function S({user:e,image:s,setImage:t}){let a=u().useRef();return(0,c.jsxs)("div",{className:"paper w-full items-center",children:[(0,c.jsx)("h2",{className:"m-0 text-xl",children:"User Image"}),(0,c.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,c.jsx)("img",{src:s?"string"==typeof s?s:s.imageBase64Full:"/images/database-placeholder.png",alt:"User Image",width:100,className:"w-full h-full object-cover",ref:a,"data-imagepreview":"image"})}),(0,c.jsxs)("div",{className:"w-full flex-col",id:"upload-user-image-options",children:[(0,c.jsxs)(j.A,{column:!0,className:"w-full",children:[(0,c.jsx)("button",{className:"outlined gray w-full whitespace-normal",onClick:e=>{(0,f.PB)("user-media-popup")},children:"Choose image From your Uploads"}),(0,c.jsx)("button",{className:"secondary w-full whitespace-normal",onClick:e=>{let s=e.target;s.closest("#upload-user-image-options")?.querySelector("input")?.click()},children:(0,c.jsx)("span",{children:"Choose image From your Computer"})})]}),(0,c.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Image",className:"hidden",onChange:async e=>{let s=e.target,a=s?.files?.[0];a&&t(await (0,h.A)({imageInputFile:a,maxWidth:400}))}})]})]})}function b(){let{user:e,image:s,setImage:t,activeUser:a}=u().useContext(A),[r,i]=u().useState(!1);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,c.jsx)("h1",{className:"text-3xl m-0",children:"Settings"}),(0,c.jsx)("div",{children:!e?.social_login&&(0,c.jsx)("a",{href:"/send-password-reset-link",className:"button outlined",children:"Reset Password"})})]}),(0,c.jsx)(g.A,{user:e})]}),(0,c.jsx)("section",{className:"p-0",children:(0,c.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-8 items-stretch",children:[(0,c.jsxs)("div",{className:"paper w-full",children:[(0,c.jsx)("h2",{className:"m-0 text-xl",children:"Account Information"}),(0,c.jsxs)("div",{className:"flex flex-row w-full",children:[(0,c.jsx)("span",{children:"USER ID"}),(0,c.jsx)("b",{className:"info w-auto",children:e.id})]}),(0,c.jsx)(x.A,{user:a,image:s})]}),(0,c.jsx)("div",{className:"items-stretch",children:(0,c.jsx)(S,{image:s,setImage:t})})]})}),!1]})}t(16757),t(46169);var v=t(37195),w=t(19134),N=t(71934);let A=u().createContext({});function P({user:e,databases:s,activeUser:t}){let a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[r,i]=u().useState(t.image);return(0,c.jsx)(m.A,{head:a,user:e,children:(0,c.jsxs)(A.Provider,{value:{user:e,image:r,setImage:i,activeUser:t},children:[(0,c.jsx)(b,{}),(0,c.jsx)(v.A,{setDbImage:i})]})})}async function _({req:e,res:s,query:t}){let a=await (0,p.A)(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,w.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),i=await (0,N.A)(`SELECT first_name,last_name,username,email,image,image_thumbnail FROM users WHERE id='${a.id}'`);return{props:{user:a,databases:r,activeUser:i[0]}}}let M=(0,l.M)(a,"default"),q=(0,l.M)(a,"getStaticProps"),y=(0,l.M)(a,"getStaticPaths"),C=(0,l.M)(a,"getServerSideProps"),E=(0,l.M)(a,"config"),D=(0,l.M)(a,"reportWebVitals"),R=(0,l.M)(a,"unstable_getStaticProps"),F=(0,l.M)(a,"unstable_getStaticPaths"),I=(0,l.M)(a,"unstable_getStaticParams"),H=(0,l.M)(a,"unstable_getServerProps"),O=(0,l.M)(a,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/settings",pathname:"/admin/[user_id]/settings",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:a})},19134:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(29021),r=t.n(a),i=t(77047);async function l(e){let s;"production".match(/dev/)&&r().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{s=await function(...e){let s=global.DSQL_DB_CONN;try{return new Promise((t,a)=>{s.query(...e).then(e=>{s.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{s.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}(e)}catch(e){(0,i.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return s||null}},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[883,9821,9796,5392,1579,8760],()=>t(47766));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=189,e.ids=[189],e.modules={47766:(e,s,t)=>{t.r(s),t.d(s,{config:()=>C,default:()=>M,getServerSideProps:()=>E,getStaticPaths:()=>y,getStaticProps:()=>_,reportWebVitals:()=>R,routeModule:()=>k,unstable_getServerProps:()=>H,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>F});var a={};t.r(a),t.d(a,{SettingsContext:()=>A,default:()=>P,getServerSideProps:()=>q});var r=t(63865),i=t(9455),l=t(30671),n=t(5583),o=t(19796),c=t(8732),d=t(82015),u=t.n(d),m=t(25562),p=t(92702),g=t(53926),x=t(57660),h=t(65842),f=t(91140),j=t(55904);function S({user:e,image:s,setImage:t}){let a=u().useRef();return(0,c.jsxs)("div",{className:"paper w-full items-center",children:[(0,c.jsx)("h2",{className:"m-0 text-xl",children:"User Image"}),(0,c.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,c.jsx)("img",{src:s?"string"==typeof s?s:s.imageBase64Full:"/images/database-placeholder.png",alt:"User Image",width:100,className:"w-full h-full object-cover",ref:a,"data-imagepreview":"image"})}),(0,c.jsxs)("div",{className:"w-full flex-col",id:"upload-user-image-options",children:[(0,c.jsxs)(j.A,{column:!0,className:"w-full",children:[(0,c.jsx)("button",{className:"outlined gray w-full whitespace-normal",onClick:e=>{(0,f.PB)("user-media-popup")},children:"Choose image From your Uploads"}),(0,c.jsx)("button",{className:"secondary w-full whitespace-normal",onClick:e=>{let s=e.target;s.closest("#upload-user-image-options")?.querySelector("input")?.click()},children:(0,c.jsx)("span",{children:"Choose image From your Computer"})})]}),(0,c.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Image",className:"hidden",onChange:async e=>{let s=e.target,a=s?.files?.[0];a&&t(await (0,h.A)({imageInputFile:a,maxWidth:400}))}})]})]})}function v(){let{user:e,image:s,setImage:t,activeUser:a}=u().useContext(A),[r,i]=u().useState(!1);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,c.jsx)("h1",{className:"text-3xl m-0",children:"Settings"}),(0,c.jsx)("div",{children:!e?.social_login&&(0,c.jsx)("a",{href:"/send-password-reset-link",className:"button outlined",children:"Reset Password"})})]}),(0,c.jsx)(g.A,{user:e})]}),(0,c.jsx)("section",{className:"p-0",children:(0,c.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-8 items-stretch",children:[(0,c.jsxs)("div",{className:"paper w-full",children:[(0,c.jsx)("h2",{className:"m-0 text-xl",children:"Account Information"}),(0,c.jsxs)("div",{className:"flex flex-row w-full",children:[(0,c.jsx)("span",{children:"USER ID"}),(0,c.jsx)("b",{className:"info w-auto",children:e.id})]}),(0,c.jsx)(x.A,{user:a,image:s})]}),(0,c.jsx)("div",{className:"items-stretch",children:(0,c.jsx)(S,{image:s,setImage:t})})]})}),!1]})}t(16757),t(46169);var b=t(37195),w=t(19134),N=t(71934);let A=u().createContext({});function P({user:e,databases:s,activeUser:t}){let a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[r,i]=u().useState(t.image);return(0,c.jsx)(m.A,{head:a,user:e,children:(0,c.jsxs)(A.Provider,{value:{user:e,image:r,setImage:i,activeUser:t},children:[(0,c.jsx)(v,{}),(0,c.jsx)(b.A,{setDbImage:i})]})})}async function q({req:e,res:s,query:t}){let a=await (0,p.A)(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,w.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),i=await (0,N.A)(`SELECT first_name,last_name,username,email,image,image_thumbnail FROM users WHERE id='${a.id}'`);return{props:{user:a,databases:r,activeUser:i[0]}}}let M=(0,l.M)(a,"default"),_=(0,l.M)(a,"getStaticProps"),y=(0,l.M)(a,"getStaticPaths"),E=(0,l.M)(a,"getServerSideProps"),C=(0,l.M)(a,"config"),R=(0,l.M)(a,"reportWebVitals"),F=(0,l.M)(a,"unstable_getStaticProps"),I=(0,l.M)(a,"unstable_getStaticPaths"),D=(0,l.M)(a,"unstable_getStaticParams"),H=(0,l.M)(a,"unstable_getServerProps"),O=(0,l.M)(a,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/settings",pathname:"/admin/[user_id]/settings",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:a})},19134:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(29021),r=t.n(a),i=t(77047),l=t(51779);async function n(e){let s;"production".match(/dev/)&&r().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{s=await function(...e){let s=(0,l.A)();try{return new Promise((t,a)=>{s.query(...e).then(e=>{s.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{s.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}finally{s?.end()}}(e)}catch(e){(0,i.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return s||null}},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[883,9821,9796,5392,1579,7303],()=>t(47766));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json index 01dc543..86e9913 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js index 0f42dcf..1eb8d6b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5662,e.ids=[5662],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}}})},63425:(e,t,s)=>{s.r(t),s.d(t,{config:()=>C,default:()=>P,getServerSideProps:()=>q,getStaticPaths:()=>E,getStaticProps:()=>M,reportWebVitals:()=>O,routeModule:()=>$,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>T,unstable_getStaticParams:()=>I,unstable_getStaticPaths:()=>F,unstable_getStaticProps:()=>U});var a={};s.r(a),s.d(a,{UsersContext:()=>w,default:()=>k,getServerSideProps:()=>S});var i=s(63865),r=s(9455),n=s(30671),l=s(5583),d=s(19796),c=s(8732),o=s(82015),u=s.n(o),m=s(25562),p=s(92702),x=s(55954),h=s(53926),v=s(91140),f=s(46169),y=s(16757),j=s(55904);function g({userObject:e,setTargetUser:t,paradigm:s}){let a=s?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,i=s?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[r,n]=u().useState(!1);return(0,c.jsxs)("div",{className:"card no-hover items-center "+(s?.match(/invited/)?" green green-bg":" primary"),children:[r&&(0,c.jsx)(y.A,{}),(0,c.jsxs)("div",{className:"w-full",children:[(0,c.jsx)("img",{src:i,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,c.jsx)("span",{className:"text-sm font-semibold",children:a}),e?.user_priviledge?.match(/./)&&(0,c.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,c.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!s?.match(/invited/)&&(0,c.jsx)(u().Fragment,{children:(0,c.jsxs)(j.A,{children:[(0,c.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:s=>{t(e),setTimeout(()=>{(0,v.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,c.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:t=>{n(!0),window.confirm("Delete this user")&&(0,f.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(e=>{setTimeout(()=>{n(!1)},500),window.location.reload()})},children:"Delete User"})]})})]})]})}function A({user:e,setTargetUser:t,users:s,adminUsers:a,invitedAccounts:i}){return(0,c.jsx)(u().Fragment,{children:(0,c.jsxs)("section",{className:"paper",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Users List"}),(0,c.jsxs)("div",{className:"card no-hover items-center w-full justify-between",children:[(0,c.jsxs)("div",{className:"gap-2",children:[(0,c.jsx)("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:(0,c.jsx)("img",{src:e.image_thumbnail,alt:"Main User Image",width:40,className:"w-full h-full object-cover"})}),(0,c.jsxs)("span",{className:"font-semibold",children:[e.first_name," ",e.last_name]})]}),(0,c.jsx)("span",{className:"text-sm font-semibold",children:"Super User (Owner)"})]}),(0,c.jsxs)("div",{className:"w-full flex-col items-stretch",children:[i&&i[0]&&(0,c.jsxs)(u().Fragment,{children:[(0,c.jsx)("h4",{className:"m-0 text-sm font-semibold text-slate-400",children:"Accounts that Invited you"}),i.map((e,s)=>(0,c.jsx)(g,{userObject:e,setTargetUser:t,paradigm:"invited"},s+1))]}),a&&a[0]&&(0,c.jsxs)(u().Fragment,{children:[(0,c.jsx)("h4",{className:"m-0 text-sm font-semibold text-slate-400",children:"Accounts you Invited"}),a.map((e,s)=>(0,c.jsx)(g,{userObject:e,setTargetUser:t},s+1))]})]})]})})}function b({invitationObject:e}){let[t,s]=u().useState(!1);return(0,c.jsxs)("div",{className:"bg-slate-100 px-4 py-2 rounded w-full justify-between relative",children:[t&&(0,c.jsx)(y.A,{width:"20px"}),(0,c.jsxs)("span",{className:"text-sm font-semibold",children:[e.first_name," ",e.last_name," (",e.email,")"]}),(0,c.jsx)("button",{className:"py-1.5 px-3 text-sm secondary",onClick:t=>{s(!0),(0,f.A)("/api/acceptUserInvitation",{method:"post",body:{...e}},!0).then(e=>{e.success&&(window.alert("Invitation Accepted!"),window.location.reload()),setTimeout(()=>{s(!1)},500)})},children:"Accept Invitation"})]},e.id)}function N(){let{user:e,databases:t,pendingInvitations:s,pendingInvitationsReceived:a,adminUsers:i,invitedAccounts:r,setTargetUser:n}=u().useContext(w),[l,d]=u().useState(!1);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,c.jsx)("h1",{className:"text-3xl m-0",children:"Users"}),(0,c.jsxs)("a",{href:`/admin/${e?.id}/users/add-user`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,c.jsx)("span",{className:"symbol",children:"+"}),(0,c.jsx)("span",{children:"Add New User"})]})]}),(0,c.jsx)(h.A,{user:e})]}),(0,c.jsxs)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:[(0,c.jsx)("div",{className:"flex-col items-stretch justify-start",children:e&&n&&(0,c.jsx)(A,{setTargetUser:n,user:e,adminUsers:i,invitedAccounts:r})}),(0,c.jsxs)("div",{className:"flex-col items-stretch justify-start",children:[s&&s[0]&&(0,c.jsx)(u().Fragment,{children:(0,c.jsx)("section",{className:"p-4 items-start gap-4 overflow-visible",children:(0,c.jsxs)("div",{className:"flex-col w-full items-start",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Invitations Sent"}),s.map((e,t)=>(0,c.jsxs)("div",{className:"bg-slate-100 px-4 py-2 rounded w-full justify-between",children:[(0,c.jsx)("span",{className:"text-sm font-semibold",children:e.invited_user_email}),(0,c.jsxs)("div",{children:[(0,c.jsx)("span",{className:"text-sm text-slate-400",children:"Pending"}),(0,c.jsx)("span",{className:"text-sm text-orange-600 hover:opacity-50 cursor-pointer",onClick:t=>{window.confirm("Delete this invitation?")&&(0,f.A)("/api/deleteInvitation",{method:"POST",body:{id:e.id}},!0).finally(()=>{window.location.reload()})},children:"Delete Invitation"})]})]},e.id))]})})}),a&&a[0]&&(0,c.jsx)(u().Fragment,{children:(0,c.jsx)("section",{className:"p-4 items-start gap-4 overflow-visible",children:(0,c.jsxs)("div",{className:"flex-col w-full items-start",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Pending Invitations Received"}),a.map((e,t)=>(0,c.jsx)(b,{invitationObject:e},t+1))]})})})]})]})]})}var _=s(71934);let w=u().createContext({});function k({user:e,users:t,databases:s,pendingInvitations:a,pendingInvitationsReceived:i,adminUsers:r,invitedAccounts:n}){let l=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Users | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,o]=u().useState();return(0,c.jsx)(w.Provider,{value:{user:e,users:t,targetUser:d,setTargetUser:o,databases:s,pendingInvitations:a,pendingInvitationsReceived:i,adminUsers:r,invitedAccounts:n},children:(0,c.jsxs)(u().Fragment,{children:[(0,c.jsx)(m.A,{head:l,user:e,children:(0,c.jsx)(N,{})}),(0,c.jsx)(x.A,{targetUser:d||void 0,user:e,setTargetUser:o})]})})}async function S({req:e,res:t,query:s}){let a=await (0,p.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let i=await (0,_.A)(`SELECT * FROM delegated_users WHERE user_id='${a.id}'`),r=await (0,_.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${a.id}'`),n=await (0,_.A)(`SELECT * FROM invitations WHERE inviting_user_id='${a.id}' AND invitation_status='Pending'`),l=await (0,_.A)(`SELECT invitations.*,users.first_name,users.last_name,users.email FROM invitations JOIN users ON users.id=invitations.inviting_user_id WHERE invited_user_email='${a.email}' AND invitation_status='Pending'`),d=await (0,_.A)(`SELECT * FROM user_users WHERE user_id='${a.id}' AND user_type='admin'`),c=await (0,_.A)(`SELECT user_users.*,users.first_name AS inviteeFirstName,users.last_name AS inviteeLastName,users.email AS inviteeEmail, users.image_thumbnail AS inviteeImage FROM user_users JOIN users ON users.id=user_users.user_id WHERE user_users.email='${a.email}' AND user_users.user_type='admin'`);return{props:{user:a,users:i,databases:r,pendingInvitations:n,pendingInvitationsReceived:l,adminUsers:d,invitedAccounts:c}}}let P=(0,n.M)(a,"default"),M=(0,n.M)(a,"getStaticProps"),E=(0,n.M)(a,"getStaticPaths"),q=(0,n.M)(a,"getServerSideProps"),C=(0,n.M)(a,"config"),O=(0,n.M)(a,"reportWebVitals"),U=(0,n.M)(a,"unstable_getStaticProps"),F=(0,n.M)(a,"unstable_getStaticPaths"),I=(0,n.M)(a,"unstable_getStaticParams"),R=(0,n.M)(a,"unstable_getServerProps"),T=(0,n.M)(a,"unstable_getServerSideProps"),$=new i.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/users",pathname:"/admin/[user_id]/users",bundlePath:"",filename:""},components:{App:d.default,Document:l.default},userland:a})},91140:(e,t,s)=>{s.d(t,{Ay:()=>l,PB:()=>d,fs:()=>c});var a=s(8732),i=s(58150),r=s(82015),n=s.n(r);function l({children:e,title:t,data:s,fullPage:r,wrapperClasses:l,closePopupDispatch:d,wrapperStyle:o,noContainer:u}){return r?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(l||""),"data-popupid":t||null,style:o,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,a.jsx)(i.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]})}function d(e,t){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",t?.(s))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732),i=s(82015),r=s.n(i);function n({children:e,column:t,className:s}){let i=r().useRef();return(0,a.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(s?" "+s:""),ref:i,children:e})}},23293:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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"}]])},58150:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,5954],()=>s(63425));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5662,e.ids=[5662],e.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}}})},63425:(e,s,t)=>{t.r(s),t.d(s,{config:()=>L,default:()=>E,getServerSideProps:()=>M,getStaticPaths:()=>k,getStaticProps:()=>P,reportWebVitals:()=>O,routeModule:()=>B,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>U,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>R});var a={};t.r(a),t.d(a,{UsersContext:()=>b,default:()=>w,getServerSideProps:()=>D});var r=t(63865),i=t(9455),n=t(30671),l=t(5583),c=t(19796),d=t(8732),o=t(82015),u=t.n(o),m=t(25562),p=t(92702),h=t(55954),x=t(53926),v=t(91140),f=t(46169),_=t(16757),y=t(55904);function g({userObject:e,setTargetUser:s,paradigm:t}){let a=t?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,r=t?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[i,n]=u().useState(!1);return(0,d.jsxs)("div",{className:"card no-hover items-center "+(t?.match(/invited/)?" green green-bg":" primary"),children:[i&&(0,d.jsx)(_.A,{}),(0,d.jsxs)("div",{className:"w-full",children:[(0,d.jsx)("img",{src:r,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:a}),e?.user_priviledge?.match(/./)&&(0,d.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,d.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!t?.match(/invited/)&&(0,d.jsx)(u().Fragment,{children:(0,d.jsxs)(y.A,{children:[(0,d.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:t=>{s(e),setTimeout(()=>{(0,v.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,d.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:s=>{n(!0),window.confirm("Delete this user")&&(0,f.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(e=>{setTimeout(()=>{n(!1)},500),window.location.reload()})},children:"Delete User"})]})})]})]})}function j({user:e,setTargetUser:s,users:t,adminUsers:a,invitedAccounts:r}){return(0,d.jsx)(u().Fragment,{children:(0,d.jsxs)("section",{className:"paper",children:[(0,d.jsx)("h2",{className:"text-xl m-0",children:"Users List"}),(0,d.jsxs)("div",{className:"card no-hover items-center w-full justify-between",children:[(0,d.jsxs)("div",{className:"gap-2",children:[(0,d.jsx)("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:(0,d.jsx)("img",{src:e.image_thumbnail,alt:"Main User Image",width:40,className:"w-full h-full object-cover"})}),(0,d.jsxs)("span",{className:"font-semibold",children:[e.first_name," ",e.last_name]})]}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:"Super User (Owner)"})]}),(0,d.jsxs)("div",{className:"w-full flex-col items-stretch",children:[r&&r[0]&&(0,d.jsxs)(u().Fragment,{children:[(0,d.jsx)("h4",{className:"m-0 text-sm font-semibold text-slate-400",children:"Accounts that Invited you"}),r.map((e,t)=>(0,d.jsx)(g,{userObject:e,setTargetUser:s,paradigm:"invited"},t+1))]}),a&&a[0]&&(0,d.jsxs)(u().Fragment,{children:[(0,d.jsx)("h4",{className:"m-0 text-sm font-semibold text-slate-400",children:"Accounts you Invited"}),a.map((e,t)=>(0,d.jsx)(g,{userObject:e,setTargetUser:s},t+1))]})]})]})})}function A({invitationObject:e}){let[s,t]=u().useState(!1);return(0,d.jsxs)("div",{className:"bg-slate-100 px-4 py-2 rounded w-full justify-between relative",children:[s&&(0,d.jsx)(_.A,{width:"20px"}),(0,d.jsxs)("span",{className:"text-sm font-semibold",children:[e.first_name," ",e.last_name," (",e.email,")"]}),(0,d.jsx)("button",{className:"py-1.5 px-3 text-sm secondary",onClick:s=>{t(!0),(0,f.A)("/api/acceptUserInvitation",{method:"post",body:{...e}},!0).then(e=>{e.success&&(window.alert("Invitation Accepted!"),window.location.reload()),setTimeout(()=>{t(!1)},500)})},children:"Accept Invitation"})]},e.id)}function S(){let{user:e,databases:s,pendingInvitations:t,pendingInvitationsReceived:a,adminUsers:r,invitedAccounts:i,setTargetUser:n}=u().useContext(b),[l,c]=u().useState(!1);return(0,d.jsxs)(u().Fragment,{children:[(0,d.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,d.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,d.jsx)("h1",{className:"text-3xl m-0",children:"Users"}),(0,d.jsxs)("a",{href:`/admin/${e?.id}/users/add-user`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,d.jsx)("span",{className:"symbol",children:"+"}),(0,d.jsx)("span",{children:"Add New User"})]})]}),(0,d.jsx)(x.A,{user:e})]}),(0,d.jsxs)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:[(0,d.jsx)("div",{className:"flex-col items-stretch justify-start",children:e&&n&&(0,d.jsx)(j,{setTargetUser:n,user:e,adminUsers:r,invitedAccounts:i})}),(0,d.jsxs)("div",{className:"flex-col items-stretch justify-start",children:[t&&t[0]&&(0,d.jsx)(u().Fragment,{children:(0,d.jsx)("section",{className:"p-4 items-start gap-4 overflow-visible",children:(0,d.jsxs)("div",{className:"flex-col w-full items-start",children:[(0,d.jsx)("h2",{className:"text-xl m-0",children:"Invitations Sent"}),t.map((e,s)=>(0,d.jsxs)("div",{className:"bg-slate-100 px-4 py-2 rounded w-full justify-between",children:[(0,d.jsx)("span",{className:"text-sm font-semibold",children:e.invited_user_email}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-sm text-slate-400",children:"Pending"}),(0,d.jsx)("span",{className:"text-sm text-orange-600 hover:opacity-50 cursor-pointer",onClick:s=>{window.confirm("Delete this invitation?")&&(0,f.A)("/api/deleteInvitation",{method:"POST",body:{id:e.id}},!0).finally(()=>{window.location.reload()})},children:"Delete Invitation"})]})]},e.id))]})})}),a&&a[0]&&(0,d.jsx)(u().Fragment,{children:(0,d.jsx)("section",{className:"p-4 items-start gap-4 overflow-visible",children:(0,d.jsxs)("div",{className:"flex-col w-full items-start",children:[(0,d.jsx)("h2",{className:"text-xl m-0",children:"Pending Invitations Received"}),a.map((e,s)=>(0,d.jsx)(A,{invitationObject:e},s+1))]})})})]})]})]})}var N=t(71934);let b=u().createContext({});function w({user:e,users:s,databases:t,pendingInvitations:a,pendingInvitationsReceived:r,adminUsers:i,invitedAccounts:n}){let l=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"Users | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[c,o]=u().useState();return(0,d.jsx)(b.Provider,{value:{user:e,users:s,targetUser:c,setTargetUser:o,databases:t,pendingInvitations:a,pendingInvitationsReceived:r,adminUsers:i,invitedAccounts:n},children:(0,d.jsxs)(u().Fragment,{children:[(0,d.jsx)(m.A,{head:l,user:e,children:(0,d.jsx)(S,{})}),(0,d.jsx)(h.A,{targetUser:c||void 0,user:e,setTargetUser:o})]})})}async function D({req:e,res:s,query:t}){let a=await (0,p.A)(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,N.A)(`SELECT * FROM delegated_users WHERE user_id='${a.id}'`),i=await (0,N.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${a.id}'`),n=await (0,N.A)(`SELECT * FROM invitations WHERE inviting_user_id='${a.id}' AND invitation_status='Pending'`),l=await (0,N.A)(`SELECT invitations.*,users.first_name,users.last_name,users.email FROM invitations JOIN users ON users.id=invitations.inviting_user_id WHERE invited_user_email='${a.email}' AND invitation_status='Pending'`),c=await (0,N.A)(`SELECT * FROM user_users WHERE user_id='${a.id}' AND user_type='admin'`),d=await (0,N.A)(`SELECT user_users.*,users.first_name AS inviteeFirstName,users.last_name AS inviteeLastName,users.email AS inviteeEmail, users.image_thumbnail AS inviteeImage FROM user_users JOIN users ON users.id=user_users.user_id WHERE user_users.email='${a.email}' AND user_users.user_type='admin'`);return{props:{user:a,users:r,databases:i,pendingInvitations:n,pendingInvitationsReceived:l,adminUsers:c,invitedAccounts:d}}}let E=(0,n.M)(a,"default"),P=(0,n.M)(a,"getStaticProps"),k=(0,n.M)(a,"getStaticPaths"),M=(0,n.M)(a,"getServerSideProps"),L=(0,n.M)(a,"config"),O=(0,n.M)(a,"reportWebVitals"),R=(0,n.M)(a,"unstable_getStaticProps"),C=(0,n.M)(a,"unstable_getStaticPaths"),U=(0,n.M)(a,"unstable_getStaticParams"),T=(0,n.M)(a,"unstable_getServerProps"),q=(0,n.M)(a,"unstable_getServerSideProps"),B=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users",pathname:"/admin/[user_id]/users",bundlePath:"",filename:""},components:{App:c.default,Document:l.default},userland:a})},91140:(e,s,t)=>{t.d(s,{Ay:()=>l,PB:()=>c,fs:()=>d});var a=t(8732),r=t(58150),i=t(82015),n=t.n(i);function l({children:e,title:s,data:t,fullPage:i,wrapperClasses:l,closePopupDispatch:c,wrapperStyle:o,noContainer:u}){return i?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(l||""),"data-popupid":s||null,style:o,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,a.jsx)(r.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function c(e,s){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",s?.(t))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},55904:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(8732),r=t(82015),i=t.n(r);function n({children:e,column:s,className:t}){let r=i().useRef();return(0,a.jsx)("div",{className:"items-stretch gap-0"+(s?" flex-col":" flex-wrap xl:flex-nowrap")+(t?" "+t:""),ref:r,children:e})}},23293:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,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"}]])},58150:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71934:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(51779);async function r(...e){let s=(0,a.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let t=await s.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},51779:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(9973),r=t.n(a);function i(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,s)=>{Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[883,9821,9796,5392,5954],()=>t(63425));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json index 813f237..52af7d2 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../jsonData/userPriviledges.json","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/userPriviledges.json","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js index a416a27..e5416fd 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2774,e.ids=[2774],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},43402:(e,t,a)=>{let s;a.r(t),a.d(t,{config:()=>N,default:()=>S,getServerSideProps:()=>E,getStaticPaths:()=>P,getStaticProps:()=>M,reportWebVitals:()=>q,routeModule:()=>D,unstable_getServerProps:()=>U,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>$,unstable_getStaticPaths:()=>T,unstable_getStaticProps:()=>C});var l={};a.r(l),a.d(l,{AddNewUserContext:()=>j,default:()=>k,getServerSideProps:()=>_});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),c=a(19796),o=a(8732),u=a(82015),m=a.n(u),h=a(25562),p=a(92702),x=a(53926),g=a(59023),b=a(80830),f=a(46169),y=a(16757),v=a(2913);function A(e){let{databases:t,user:l,query:r}=m().useContext(j),i=a(49436),[n,d]=m().useState("invitation"),[c,u]=m().useState(!1),[h,p]=m().useState(!1),[A,w]=m().useState(["Update Entries","Delete Entries"]),[k,_]=m().useState([]),[S,M]=m().useState(t&&t[0]?t[0].db_slug:null),[P,E]=m().useState(null),[N,q]=m().useState(null),[C,T]=m().useState([]),[$,U]=m().useState([]);return(0,o.jsxs)(m().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,o.jsxs)("div",{children:[(0,o.jsx)(g.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User",n?.match(/database/)&&S?` To ${S}`:""]})]})}),(0,o.jsx)(x.A,{user:l})]}),(0,o.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[c&&(0,o.jsx)(y.A,{}),(0,o.jsxs)("form",{onSubmit:e=>{e.preventDefault(),u(!0);let t=Array.from(e.target),a={};t.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(a[e.name]=e.value)});let s={...a,db_tables:k&&k[0]?$.join("|"):"",paradigm:n};n.match(/database/i)?s.database=S:(s.database_access=k.join("|"),s.priviledge=A.join("|")),(0,f.A)("/api/addUserUser",{method:"post",body:s},!0).then(e=>{e.success?N?(N.imageName=`${S}-user-${e.newUserId}`,N.mimeType="jpeg",delete N.imageBase64Full,(0,f.A)("/api/addUserMedia",{method:"post",body:{media:[N],folder:S?.replace(/_/g,"-"),type:"image"}},!0).then(t=>{(0,f.A)("/api/updateUserUser",{method:"post",body:{id:e.newUserId,user_type:n,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&(n?.match(/database/)?window.location.pathname=`/admin/${l?.id}/users/databases/${S}`:window.location.pathname=`/admin/${l?.id}/users`),setTimeout(()=>{u(!1)},500)})})):n?.match(/database/)?window.location.pathname=`/admin/${l?.id}/users/databases/${S}`:window.location.pathname=`/admin/${l?.id}/users`:setTimeout(()=>{u(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,o.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User Email Address"}),(0,o.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",required:!0,onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),E(null)):t.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,f.A)(`/api/checkDuplicateData?type=email&value=${t.value}&tableName=user_users&userId=${l.id}&userType=invitation`).then(e=>{e?.result?(E("Email Already Exists"),t.classList.add("warning")):(E(null),t.classList.remove("warning"))})},300)}}),(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User Priviledges"}),(0,o.jsx)(v.A,{checkBoxValues:i.map(e=>({title:e,name:e,default:!!e.match(/entries/i),onChangeHandler:t=>{A.includes(e)?w([...A.filter(t=>t!=e)]):w(t=>[...t,e])}})),smallText:!0,flexRow:!0}),(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"Databases Access"}),(0,o.jsx)("span",{className:"button outlined gray px-4 py-1 -mt-2",onClick:e=>{h?(t.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t?.checked&&t.click()},200)}),p(!1)):(t.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t?.checked||t?.click()},200)}),p(!0))},children:h?"Deselect All":"Select All"}),(0,o.jsx)(v.A,{checkBoxValues:t.map(e=>({title:e.db_name,name:e.db_slug,onChangeHandler:a=>{k.includes(e.db_slug)?_([...k.filter(t=>t!=e.db_slug)]):_(t=>[...t,e.db_slug]),k.length===t.length?p(!0):p(!1)}})),smallText:!0,flexRow:!0,name:"db-select"}),k&&k[0]&&(0,o.jsxs)(m().Fragment,{children:[(0,o.jsx)("hr",{className:"my-6"}),(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Database Tables"}),(0,o.jsx)(b.A,{required:!0,selectOptions:t.filter(e=>k.includes(e.db_slug)).map(e=>({title:e.db_name,payload:e.db_slug})),name:"databases",onChangeHandler:e=>{M(e.target.value)}}),C&&C[0]&&(0,o.jsx)(v.A,{checkBoxValues:C.map(e=>({title:e.table_name,name:e.table_slug,onChangeHandler:t=>{t.target.checked?U(t=>[...t,`${S}-${e.table_slug}`]):U([...$.filter(t=>t!=`${S}-${e.table_slug}`)])},default:!!$?.includes(`${S}-${e.table_slug}`)})),smallText:!0,flexRow:!0})]})]}),(0,o.jsx)("button",{children:n?.match(/database/)?"Add User":"Invite User"})]})]})]})}var w=a(71934);let j=m().createContext({});function k({user:e,users:t,databases:a,query:s}){let l=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Users | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[r,i]=m().useState(null),[n,d]=m().useState(null);return(0,o.jsx)(h.A,{head:l,user:e,children:(0,o.jsx)(j.Provider,{value:{user:e,users:t,databases:a,query:s},children:(0,o.jsx)(A,{})})})}async function _({req:e,res:t,query:a}){let s=await (0,p.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let l=await (0,w.A)(`SELECT * FROM delegated_users WHERE user_id='${s.id}'`),r=await (0,w.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${s.id}'`);return{props:{user:s,users:l,databases:r,query:a}}}let S=(0,n.M)(l,"default"),M=(0,n.M)(l,"getStaticProps"),P=(0,n.M)(l,"getStaticPaths"),E=(0,n.M)(l,"getServerSideProps"),N=(0,n.M)(l,"config"),q=(0,n.M)(l,"reportWebVitals"),C=(0,n.M)(l,"unstable_getStaticProps"),T=(0,n.M)(l,"unstable_getStaticPaths"),$=(0,n.M)(l,"unstable_getStaticParams"),U=(0,n.M)(l,"unstable_getServerProps"),L=(0,n.M)(l,"unstable_getServerSideProps"),D=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users/add-user",pathname:"/admin/[user_id]/users/add-user",bundlePath:"",filename:""},components:{App:c.default,Document:d.default},userland:l})},2913:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l({name:e,checkBoxValues:t,setAlert:a,labelColor:l,flexRow:r,baseText:i,smallText:n,className:d}){return(0,s.jsx)("div",{className:"flex items-start gap-x-4"+(r?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:t.map((t,r)=>{let{payload:d,title:c,onChangeHandler:o,fixed:u,jsx:m}=t,h=t.name?`${e}-${t.name}`:d?e+"-"+d:e;return(0,s.jsxs)("div",{className:"flex items-center"+(t.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,s.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:h,id:h,onChange:e=>{a&&a(null),o&&o(e,t)},value:d,style:{minWidth:"20px"},...t.props}),m||(0,s.jsx)("label",{htmlFor:h,className:"m-0 "+(l||"text-slate-800 dark:text-white/80")+(i||n?" text-base":" text-lg"),children:c})]},r+1)})})}a(82015)},80830:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732),l=a(58526);function r({selectOptions:e,name:t,onChangeHandler:a,required:r,setAlert:i,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,r?"":" (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:r,onChange:e=>{i&&i(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)},59023:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732),l=a(23293);function r(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(l.A,{})})}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},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,9796,5392],()=>a(43402));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2774,e.ids=[2774],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},43402:(e,t,a)=>{let s;a.r(t),a.d(t,{config:()=>P,default:()=>j,getServerSideProps:()=>N,getStaticPaths:()=>E,getStaticProps:()=>k,reportWebVitals:()=>L,routeModule:()=>B,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>M});var r={};a.r(r),a.d(r,{AddNewUserContext:()=>S,default:()=>w,getServerSideProps:()=>D});var l=a(63865),n=a(9455),i=a(30671),d=a(5583),o=a(19796),c=a(8732),u=a(82015),m=a.n(u),p=a(25562),h=a(92702),x=a(53926),g=a(59023),f=a(80830),b=a(46169),_=a(16757),v=a(2913);function y(e){let{databases:t,user:r,query:l}=m().useContext(S),n=a(49436),[i,d]=m().useState("invitation"),[o,u]=m().useState(!1),[p,h]=m().useState(!1),[y,A]=m().useState(["Update Entries","Delete Entries"]),[w,D]=m().useState([]),[j,k]=m().useState(t&&t[0]?t[0].db_slug:null),[E,N]=m().useState(null),[P,L]=m().useState(null),[M,C]=m().useState([]),[R,T]=m().useState([]);return(0,c.jsxs)(m().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,c.jsxs)("div",{children:[(0,c.jsx)(g.A,{}),(0,c.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User",i?.match(/database/)&&j?` To ${j}`:""]})]})}),(0,c.jsx)(x.A,{user:r})]}),(0,c.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[o&&(0,c.jsx)(_.A,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault(),u(!0);let t=Array.from(e.target),a={};t.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(a[e.name]=e.value)});let s={...a,db_tables:w&&w[0]?R.join("|"):"",paradigm:i};i.match(/database/i)?s.database=j:(s.database_access=w.join("|"),s.priviledge=y.join("|")),(0,b.A)("/api/addUserUser",{method:"post",body:s},!0).then(e=>{e.success?P?(P.imageName=`${j}-user-${e.newUserId}`,P.mimeType="jpeg",delete P.imageBase64Full,(0,b.A)("/api/addUserMedia",{method:"post",body:{media:[P],folder:j?.replace(/_/g,"-"),type:"image"}},!0).then(t=>{(0,b.A)("/api/updateUserUser",{method:"post",body:{id:e.newUserId,user_type:i,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&(i?.match(/database/)?window.location.pathname=`/admin/${r?.id}/users/databases/${j}`:window.location.pathname=`/admin/${r?.id}/users`),setTimeout(()=>{u(!1)},500)})})):i?.match(/database/)?window.location.pathname=`/admin/${r?.id}/users/databases/${j}`:window.location.pathname=`/admin/${r?.id}/users`:setTimeout(()=>{u(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User Email Address"}),(0,c.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",required:!0,onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),N(null)):t.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,b.A)(`/api/checkDuplicateData?type=email&value=${t.value}&tableName=user_users&userId=${r.id}&userType=invitation`).then(e=>{e?.result?(N("Email Already Exists"),t.classList.add("warning")):(N(null),t.classList.remove("warning"))})},300)}}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User Priviledges"}),(0,c.jsx)(v.A,{checkBoxValues:n.map(e=>({title:e,name:e,default:!!e.match(/entries/i),onChangeHandler:t=>{y.includes(e)?A([...y.filter(t=>t!=e)]):A(t=>[...t,e])}})),smallText:!0,flexRow:!0}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"Databases Access"}),(0,c.jsx)("span",{className:"button outlined gray px-4 py-1 -mt-2",onClick:e=>{p?(t.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t?.checked&&t.click()},200)}),h(!1)):(t.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t?.checked||t?.click()},200)}),h(!0))},children:p?"Deselect All":"Select All"}),(0,c.jsx)(v.A,{checkBoxValues:t.map(e=>({title:e.db_name,name:e.db_slug,onChangeHandler:a=>{w.includes(e.db_slug)?D([...w.filter(t=>t!=e.db_slug)]):D(t=>[...t,e.db_slug]),w.length===t.length?h(!0):h(!1)}})),smallText:!0,flexRow:!0,name:"db-select"}),w&&w[0]&&(0,c.jsxs)(m().Fragment,{children:[(0,c.jsx)("hr",{className:"my-6"}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Database Tables"}),(0,c.jsx)(f.A,{required:!0,selectOptions:t.filter(e=>w.includes(e.db_slug)).map(e=>({title:e.db_name,payload:e.db_slug})),name:"databases",onChangeHandler:e=>{k(e.target.value)}}),M&&M[0]&&(0,c.jsx)(v.A,{checkBoxValues:M.map(e=>({title:e.table_name,name:e.table_slug,onChangeHandler:t=>{t.target.checked?T(t=>[...t,`${j}-${e.table_slug}`]):T([...R.filter(t=>t!=`${j}-${e.table_slug}`)])},default:!!R?.includes(`${j}-${e.table_slug}`)})),smallText:!0,flexRow:!0})]})]}),(0,c.jsx)("button",{children:i?.match(/database/)?"Add User":"Invite User"})]})]})]})}var A=a(71934);let S=m().createContext({});function w({user:e,users:t,databases:a,query:s}){let r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Users | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[l,n]=m().useState(null),[i,d]=m().useState(null);return(0,c.jsx)(p.A,{head:r,user:e,children:(0,c.jsx)(S.Provider,{value:{user:e,users:t,databases:a,query:s},children:(0,c.jsx)(y,{})})})}async function D({req:e,res:t,query:a}){let s=await (0,h.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,A.A)(`SELECT * FROM delegated_users WHERE user_id='${s.id}'`),l=await (0,A.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${s.id}'`);return{props:{user:s,users:r,databases:l,query:a}}}let j=(0,i.M)(r,"default"),k=(0,i.M)(r,"getStaticProps"),E=(0,i.M)(r,"getStaticPaths"),N=(0,i.M)(r,"getServerSideProps"),P=(0,i.M)(r,"config"),L=(0,i.M)(r,"reportWebVitals"),M=(0,i.M)(r,"unstable_getStaticProps"),C=(0,i.M)(r,"unstable_getStaticPaths"),R=(0,i.M)(r,"unstable_getStaticParams"),T=(0,i.M)(r,"unstable_getServerProps"),O=(0,i.M)(r,"unstable_getServerSideProps"),B=new l.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/users/add-user",pathname:"/admin/[user_id]/users/add-user",bundlePath:"",filename:""},components:{App:o.default,Document:d.default},userland:r})},2913:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:l,baseText:n,smallText:i,className:d}){return(0,s.jsx)("div",{className:"flex items-start gap-x-4"+(l?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:t.map((t,l)=>{let{payload:d,title:o,onChangeHandler:c,fixed:u,jsx:m}=t,p=t.name?`${e}-${t.name}`:d?e+"-"+d:e;return(0,s.jsxs)("div",{className:"flex items-center"+(t.default&&u?" pointer-events-none":"")+(i?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,s.jsx)("input",{className:"m-0"+(i?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:p,id:p,onChange:e=>{a&&a(null),c&&c(e,t)},value:d,style:{minWidth:"20px"},...t.props}),m||(0,s.jsx)("label",{htmlFor:p,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(n||i?" text-base":" text-lg"),children:o})]},l+1)})})}a(82015)},80830:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732),r=a(58526);function l({selectOptions:e,name:t,onChangeHandler:a,required:l,setAlert:n,title:i,defaultValue:d,info:o,id:c}){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"+(o?" pr-8":""),children:[i&&(0,s.jsxs)("label",{htmlFor:t,children:[i,l?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:c||t,className:"w-full bg-white",required:l,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:d||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}),o&&(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:o})}),(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)},59023:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732),r=a(23293);function l(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(r.A,{})})}a(82015)},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},71934:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(51779);async function r(...e){let t=(0,s.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let a=await t.query(...e);return JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(9973),r=a.n(s);function l(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")},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,9796,5392],()=>a(43402));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json index 405175c..86fdeb1 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../jsonData/userPriviledges.json","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/userPriviledges.json","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js index bfa5b8a..8bbd0a8 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3681,e.ids=[3681],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},23477:(e,t,a)=>{a.r(t),a.d(t,{config:()=>_,default:()=>k,getServerSideProps:()=>S,getStaticPaths:()=>P,getStaticProps:()=>M,reportWebVitals:()=>w,routeModule:()=>z,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>H,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>N});var s={};a.r(s),a.d(s,{AllDatabasesUsersContext:()=>g,default:()=>v,getServerSideProps:()=>j});var r=a(63865),l=a(9455),n=a(30671),i=a(5583),d=a(19796),c=a(8732),o=a(82015),u=a.n(o),p=a(25562),h=a(92702),x=a(55954),m=a(53926);function y({databases:e,user:t}){return(0,c.jsx)(u().Fragment,{children:(0,c.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Database Users"}),(0,c.jsx)("div",{className:"flex flex-wrap gap-6",children:e&&e[0]?e.map((e,a)=>(0,c.jsxs)("a",{href:`/admin/${t?.id}/users/databases/${e.db_slug}`,className:"border border-slate-200 border-solid rounded px-6 py-4 hover:border-primary flex items-center gap-2",children:[(0,c.jsx)("img",{src:e.db_image,className:"w-8 h-8 rounded-full object-cover",alt:""}),e.db_name]},a+1)):(0,c.jsx)("span",{children:"No Databases Yet"})})]})})}var f=a(59023);function b(){let{databases:e,user:t}=u().useContext(g);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(f.A,{}),(0,c.jsx)("h1",{className:"text-3xl m-0",children:"All Databases Users"})]}),(0,c.jsxs)("a",{href:`/admin/${t?.id}/users/add-user`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,c.jsx)("span",{className:"symbol",children:"+"}),(0,c.jsx)("span",{children:"Add New User"})]})]}),(0,c.jsx)(m.A,{user:t})]}),(0,c.jsx)(y,{databases:e,user:t})]})}var A=a(71934);let g=u().createContext({});function v({user:e,users:t,databases:a}){let s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Users | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[r,l]=u().useState(null),[n,i]=u().useState();return(0,c.jsx)(g.Provider,{value:{user:e,users:t,targetUser:n,setTargetUser:i,databases:a},children:(0,c.jsxs)(u().Fragment,{children:[(0,c.jsx)(p.A,{head:s,user:e,children:(0,c.jsx)(b,{})}),n&&(0,c.jsx)(x.A,{targetUser:n,user:e,setTargetUser:i})]})})}async function j({req:e,res:t,query:a}){let s=await (0,h.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,A.A)(`SELECT * FROM delegated_users WHERE user_id='${s.id}'`),l=await (0,A.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${s.id}'`);return{props:{user:s,users:r,databases:l}}}let k=(0,n.M)(s,"default"),M=(0,n.M)(s,"getStaticProps"),P=(0,n.M)(s,"getStaticPaths"),S=(0,n.M)(s,"getServerSideProps"),_=(0,n.M)(s,"config"),w=(0,n.M)(s,"reportWebVitals"),N=(0,n.M)(s,"unstable_getStaticProps"),q=(0,n.M)(s,"unstable_getStaticPaths"),E=(0,n.M)(s,"unstable_getStaticParams"),C=(0,n.M)(s,"unstable_getServerProps"),H=(0,n.M)(s,"unstable_getServerSideProps"),z=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/users/databases",pathname:"/admin/[user_id]/users/databases",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:s})},59023:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732),r=a(23293);function l(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(r.A,{})})}a(82015)},91140:(e,t,a)=>{a.d(t,{Ay:()=>i,PB:()=>d,fs:()=>c});var s=a(8732),r=a(58150),l=a(82015),n=a.n(l);function i({children:e,title:t,data:a,fullPage:l,wrapperClasses:i,closePopupDispatch:d,wrapperStyle:o,noContainer:u}){return l?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":t||null,style:o,children:[u?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,s.jsx)(r.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]})}function d(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t?.(a))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,5954],()=>a(23477));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3681,e.ids=[3681],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}}})},23477:(e,t,s)=>{s.r(t),s.d(t,{config:()=>P,default:()=>g,getServerSideProps:()=>k,getStaticPaths:()=>j,getStaticProps:()=>D,reportWebVitals:()=>N,routeModule:()=>C,unstable_getServerProps:()=>L,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{AllDatabasesUsersContext:()=>A,default:()=>S,getServerSideProps:()=>b});var a=s(63865),n=s(9455),l=s(30671),i=s(5583),d=s(19796),o=s(8732),c=s(82015),p=s.n(c),u=s(25562),h=s(92702),m=s(55954),x=s(53926);function y({databases:e,user:t}){return(0,o.jsx)(p().Fragment,{children:(0,o.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"Database Users"}),(0,o.jsx)("div",{className:"flex flex-wrap gap-6",children:e&&e[0]?e.map((e,s)=>(0,o.jsxs)("a",{href:`/admin/${t?.id}/users/databases/${e.db_slug}`,className:"border border-slate-200 border-solid rounded px-6 py-4 hover:border-primary flex items-center gap-2",children:[(0,o.jsx)("img",{src:e.db_image,className:"w-8 h-8 rounded-full object-cover",alt:""}),e.db_name]},s+1)):(0,o.jsx)("span",{children:"No Databases Yet"})})]})})}var _=s(59023);function f(){let{databases:e,user:t}=p().useContext(A);return(0,o.jsxs)(p().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(_.A,{}),(0,o.jsx)("h1",{className:"text-3xl m-0",children:"All Databases Users"})]}),(0,o.jsxs)("a",{href:`/admin/${t?.id}/users/add-user`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add New User"})]})]}),(0,o.jsx)(x.A,{user:t})]}),(0,o.jsx)(y,{databases:e,user:t})]})}var v=s(71934);let A=p().createContext({});function S({user:e,users:t,databases:s}){let r=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Users | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[a,n]=p().useState(null),[l,i]=p().useState();return(0,o.jsx)(A.Provider,{value:{user:e,users:t,targetUser:l,setTargetUser:i,databases:s},children:(0,o.jsxs)(p().Fragment,{children:[(0,o.jsx)(u.A,{head:r,user:e,children:(0,o.jsx)(f,{})}),l&&(0,o.jsx)(m.A,{targetUser:l,user:e,setTargetUser:i})]})})}async function b({req:e,res:t,query:s}){let r=await (0,h.A)(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await (0,v.A)(`SELECT * FROM delegated_users WHERE user_id='${r.id}'`),n=await (0,v.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${r.id}'`);return{props:{user:r,users:a,databases:n}}}let g=(0,l.M)(r,"default"),D=(0,l.M)(r,"getStaticProps"),j=(0,l.M)(r,"getStaticPaths"),k=(0,l.M)(r,"getServerSideProps"),P=(0,l.M)(r,"config"),N=(0,l.M)(r,"reportWebVitals"),M=(0,l.M)(r,"unstable_getStaticProps"),E=(0,l.M)(r,"unstable_getStaticPaths"),w=(0,l.M)(r,"unstable_getStaticParams"),L=(0,l.M)(r,"unstable_getServerProps"),O=(0,l.M)(r,"unstable_getServerSideProps"),C=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/users/databases",pathname:"/admin/[user_id]/users/databases",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:r})},59023:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732),a=s(23293);function n(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(a.A,{})})}s(82015)},91140:(e,t,s)=>{s.d(t,{Ay:()=>i,PB:()=>d,fs:()=>o});var r=s(8732),a=s(58150),n=s(82015),l=s.n(n);function i({children:e,title:t,data:s,fullPage:n,wrapperClasses:i,closePopupDispatch:d,wrapperStyle:c,noContainer:p}){return n?(0,r.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":t||null,style:c,children:[p?(0,r.jsx)(l().Fragment,{children:e}):(0,r.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,r.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),d&&d()},children:(0,r.jsx)(a.A,{color:"white",size:20})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),d&&d()}})]}):(0,r.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[p?(0,r.jsx)(l().Fragment,{children:e}):(0,r.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,r.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),d&&d()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,r.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),d&&d()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),d&&d()}})]})}function d(e,t){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",t?.(s))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},23293:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(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"}]])},58150:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71934:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(51779);async function a(...e){let t=(0,r.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(9973),a=s.n(r);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},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,9796,5392,5954],()=>s(23477));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json index 405175c..86fdeb1 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../jsonData/userPriviledges.json","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/userPriviledges.json","../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js index 8f48809..f872688 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4397,e.ids=[4397],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},50610:(e,t,a)=>{a.r(t),a.d(t,{config:()=>S,default:()=>j,getServerSideProps:()=>P,getStaticPaths:()=>M,getStaticProps:()=>k,reportWebVitals:()=>_,routeModule:()=>$,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>N});var s={};a.r(s),a.d(s,{SingleDatabaseUsersContext:()=>g,default:()=>A,getServerSideProps:()=>v});var r=a(63865),l=a(9455),n=a(30671),d=a(5583),i=a(19796),c=a(8732),o=a(82015),u=a.n(o),p=a(25562),h=a(92702),m=a(55954),x=a(53926),y=a(59023);function f(){let{database:e,users:t,user:a}=u().useContext(g);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(y.A,{}),(0,c.jsxs)("h1",{className:"text-3xl m-0",children:[e.db_name," Users"]})]}),(0,c.jsxs)("a",{href:`/admin/${a?.id}/users/add-user?db=${e.db_slug}`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,c.jsx)("span",{className:"symbol",children:"+"}),(0,c.jsx)("span",{children:"Add New User"})]})]}),(0,c.jsx)(x.A,{user:a})]}),(0,c.jsx)("div",{className:"paper w-full flex-col items-stretch",children:t&&t[0]?t.map(t=>(0,c.jsxs)("a",{href:`/admin/${a?.id}/users/databases/${e.db_slug}/${t.id}`,className:"w-full flex items-center gap-2 p-4 border border-solid border-slate-200 rounded cursor-pointer hover:border-slate-400 flex-wrap",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,c.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,c.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,c.jsxs)("span",{className:"font-bold",children:[t.first_name," ",t.last_name]}),(0,c.jsx)("span",{className:"text-xs text-slate-500",children:t.date_created?.substring(0,16)})]}),(0,c.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]})):(0,c.jsx)("span",{children:"No Users for this database yet"})})]})}var b=a(71934);let g=u().createContext({});function A({user:e,users:t,database:a}){let s=`${a.db_name} Users | Datasquirel"`,r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:s}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[l,n]=u().useState(null),[d,i]=u().useState();return(0,c.jsx)(g.Provider,{value:{user:e,users:t,targetUser:d,setTargetUser:i,database:a},children:(0,c.jsx)(u().Fragment,{children:(0,c.jsxs)(p.A,{head:r,user:e,children:[(0,c.jsx)(f,{}),(0,c.jsx)(m.A,{targetUser:d,user:e,setTargetUser:i})]})})})}async function v({req:e,res:t,query:a}){let s=await (0,h.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,b.A)(`SELECT * FROM user_users WHERE user_id='${s.id}' AND \`database\`='${a.database}'`),l=await (0,b.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${s.id}' AND db_slug='${a.database}'`);return l&&l[0]?{props:{user:s,users:r,database:l[0]}}:{redirect:{destination:`/admin/${s?.id}/users`,permanent:!1}}}let j=(0,n.M)(s,"default"),k=(0,n.M)(s,"getStaticProps"),M=(0,n.M)(s,"getStaticPaths"),P=(0,n.M)(s,"getServerSideProps"),S=(0,n.M)(s,"config"),_=(0,n.M)(s,"reportWebVitals"),N=(0,n.M)(s,"unstable_getStaticProps"),w=(0,n.M)(s,"unstable_getStaticPaths"),q=(0,n.M)(s,"unstable_getStaticParams"),E=(0,n.M)(s,"unstable_getServerProps"),C=(0,n.M)(s,"unstable_getServerSideProps"),$=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/users/databases/[database]",pathname:"/admin/[user_id]/users/databases/[database]",bundlePath:"",filename:""},components:{App:i.default,Document:d.default},userland:s})},59023:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732),r=a(23293);function l(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(r.A,{})})}a(82015)},91140:(e,t,a)=>{a.d(t,{Ay:()=>d,PB:()=>i,fs:()=>c});var s=a(8732),r=a(58150),l=a(82015),n=a.n(l);function d({children:e,title:t,data:a,fullPage:l,wrapperClasses:d,closePopupDispatch:i,wrapperStyle:o,noContainer:u}){return l?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":t||null,style:o,children:[u?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),i&&i()},children:(0,s.jsx)(r.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,s.jsx)(n().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),i&&i()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),i&&i()}})]})}function i(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t?.(a))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392,5954],()=>a(50610));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4397,e.ids=[4397],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}}})},50610:(e,t,s)=>{s.r(t),s.d(t,{config:()=>k,default:()=>S,getServerSideProps:()=>j,getStaticPaths:()=>D,getStaticProps:()=>g,reportWebVitals:()=>N,routeModule:()=>O,unstable_getServerProps:()=>w,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>P});var a={};s.r(a),s.d(a,{SingleDatabaseUsersContext:()=>b,default:()=>v,getServerSideProps:()=>A});var r=s(63865),n=s(9455),l=s(30671),i=s(5583),d=s(19796),o=s(8732),c=s(82015),u=s.n(c),p=s(25562),h=s(92702),m=s(55954),x=s(53926),y=s(59023);function _(){let{database:e,users:t,user:s}=u().useContext(b);return(0,o.jsxs)(u().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(y.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:[e.db_name," Users"]})]}),(0,o.jsxs)("a",{href:`/admin/${s?.id}/users/add-user?db=${e.db_slug}`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add New User"})]})]}),(0,o.jsx)(x.A,{user:s})]}),(0,o.jsx)("div",{className:"paper w-full flex-col items-stretch",children:t&&t[0]?t.map(t=>(0,o.jsxs)("a",{href:`/admin/${s?.id}/users/databases/${e.db_slug}/${t.id}`,className:"w-full flex items-center gap-2 p-4 border border-solid border-slate-200 rounded cursor-pointer hover:border-slate-400 flex-wrap",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,o.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,o.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,o.jsxs)("span",{className:"font-bold",children:[t.first_name," ",t.last_name]}),(0,o.jsx)("span",{className:"text-xs text-slate-500",children:t.date_created?.substring(0,16)})]}),(0,o.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]})):(0,o.jsx)("span",{children:"No Users for this database yet"})})]})}var f=s(71934);let b=u().createContext({});function v({user:e,users:t,database:s}){let a=`${s.db_name} Users | Datasquirel"`,r=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:a}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[n,l]=u().useState(null),[i,d]=u().useState();return(0,o.jsx)(b.Provider,{value:{user:e,users:t,targetUser:i,setTargetUser:d,database:s},children:(0,o.jsx)(u().Fragment,{children:(0,o.jsxs)(p.A,{head:r,user:e,children:[(0,o.jsx)(_,{}),(0,o.jsx)(m.A,{targetUser:i,user:e,setTargetUser:d})]})})})}async function A({req:e,res:t,query:s}){let a=await (0,h.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,f.A)(`SELECT * FROM user_users WHERE user_id='${a.id}' AND \`database\`='${s.database}'`),n=await (0,f.A)(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${a.id}' AND db_slug='${s.database}'`);return n&&n[0]?{props:{user:a,users:r,database:n[0]}}:{redirect:{destination:`/admin/${a?.id}/users`,permanent:!1}}}let S=(0,l.M)(a,"default"),g=(0,l.M)(a,"getStaticProps"),D=(0,l.M)(a,"getStaticPaths"),j=(0,l.M)(a,"getServerSideProps"),k=(0,l.M)(a,"config"),N=(0,l.M)(a,"reportWebVitals"),P=(0,l.M)(a,"unstable_getStaticProps"),M=(0,l.M)(a,"unstable_getStaticPaths"),E=(0,l.M)(a,"unstable_getStaticParams"),w=(0,l.M)(a,"unstable_getServerProps"),L=(0,l.M)(a,"unstable_getServerSideProps"),O=new r.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/admin/[user_id]/users/databases/[database]",pathname:"/admin/[user_id]/users/databases/[database]",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:a})},59023:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732),r=s(23293);function n(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(r.A,{})})}s(82015)},91140:(e,t,s)=>{s.d(t,{Ay:()=>i,PB:()=>d,fs:()=>o});var a=s(8732),r=s(58150),n=s(82015),l=s.n(n);function i({children:e,title:t,data:s,fullPage:n,wrapperClasses:i,closePopupDispatch:d,wrapperStyle:c,noContainer:u}){return n?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":t||null,style:c,children:[u?(0,a.jsx)(l().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),d&&d()},children:(0,a.jsx)(r.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),d&&d()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,a.jsx)(l().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),d&&d()}})]})}function d(e,t){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",t?.(s))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e?.()}},23293:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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"}]])},58150:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},71934:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(51779);async function r(...e){let t=(0,a.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(9973),r=s.n(a);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,5392,5954],()=>s(50610));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json index 9cca254..4ab3791 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../jsonData/userPriviledges.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3496.js","../../../../../chunks/3634.js","../../../../../chunks/3704.js","../../../../../chunks/3791.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5839.js","../../../../../chunks/5954.js","../../../../../chunks/6160.js","../../../../../chunks/6202.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/8704.js","../../../../../chunks/8760.js","../../../../../chunks/883.js","../../../../../chunks/9796.js","../../../../../chunks/9821.js","../../../../../chunks/9901.js","../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/userPriviledges.json","../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1251.js","../../../../../chunks/1579.js","../../../../../chunks/194.js","../../../../../chunks/2282.js","../../../../../chunks/3155.js","../../../../../chunks/3474.js","../../../../../chunks/3704.js","../../../../../chunks/4627.js","../../../../../chunks/5392.js","../../../../../chunks/5771.js","../../../../../chunks/5954.js","../../../../../chunks/6133.js","../../../../../chunks/6202.js","../../../../../chunks/6247.js","../../../../../chunks/6521.js","../../../../../chunks/6622.js","../../../../../chunks/6903.js","../../../../../chunks/725.js","../../../../../chunks/7303.js","../../../../../chunks/7769.js","../../../../../chunks/8704.js","../../../../../chunks/883.js","../../../../../chunks/9136.js","../../../../../chunks/9240.js","../../../../../chunks/9796.js","../../../../../chunks/9814.js","../../../../../chunks/9821.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js index 70bced7..bd285f0 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5707,e.ids=[5707],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},93759:(e,t,a)=>{a.r(t),a.d(t,{config:()=>N,default:()=>k,getServerSideProps:()=>S,getStaticPaths:()=>M,getStaticProps:()=>P,reportWebVitals:()=>q,routeModule:()=>F,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>$,unstable_getStaticParams:()=>C,unstable_getStaticPaths:()=>U,unstable_getStaticProps:()=>E});var s={};a.r(s),a.d(s,{SingleDatabaseSingleUserContext:()=>j,default:()=>_,getServerSideProps:()=>w});var r=a(63865),i=a(9455),l=a(30671),d=a(5583),n=a(19796),o=a(8732),c=a(82015),u=a.n(c),m=a(25562),p=a(92702),h=a(53926),x=a(59023),f=a(46169),g=a(16757),y=a(2913),b=a(20136);function v(){let{singleUser:e,user:t}=u().useContext(j),a=Object.keys(e).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[s,r]=u().useState(!1),[i,l]=u().useState(e.user_type?.match(/invitation/)?e.user_priviledge?.split("|"):["Edit"]),[d,n]=u().useState(e.image);return(0,o.jsxs)(u().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(x.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:[e.first_name," ",e.last_name]})]}),(0,o.jsx)("button",{className:"bg-red-500",onClick:a=>{r(!0),window.confirm("Delete this user?")&&(0,f.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(a=>{a.success&&(window.location.pathname=`/admin/${t?.id}/users/databases/${e.database}`)})},children:"Delete User"})]}),(0,o.jsx)(h.A,{user:t})]}),(0,o.jsxs)("section",{children:[s&&(0,o.jsx)(g.A,{}),(0,o.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,o.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:t=>{t.preventDefault(),r(!0);let a=Array.from(t.target),s={};a.forEach(e=>{!e?.nodeName?.match(/button/i)&&e?.name&&e?.value?.match(/./)&&(e?.name?.match(/username|email/)||(s[e.name]=e.value))});let l={...s,user_type:e.user_type,id:e.id};e.user_type?.match(/invitation/i)&&(l.user_priviledge=i?.join("|")),(0,f.A)("/api/updateUserUser",{method:"post",body:l},!0).then(t=>{"object"==typeof d&&d?.imageBase64?(d.imageName=`${e.database}-user-${e.id}`,d.mimeType="jpeg",delete d.imageBase64Full,(0,f.A)("/api/addUserMedia",{method:"post",body:{media:[d],folder:e.database?.replace(/_/g,"-"),type:"image"}},!0).then(t=>{t&&t.mediaData&&t.mediaData[0]?.media_url?(0,f.A)("/api/updateUserUser",{method:"post",body:{id:e.id,user_type:e.user_type,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{r(!1)},500)}):window.location.reload()})):window.location.reload()})},children:[a.map((t,a)=>t?.match(/user_priviledge/)&&e.user_type?.match(/invitation/)?(0,o.jsx)("div",{className:"flex-col items-start w-full gap-1",children:(0,o.jsx)(y.A,{checkBoxValues:e[t]?.split("|").map(e=>({title:e,name:e,onChangeHandler:()=>{i?.includes("Edit")?l([...i.filter(e=>"Edit"!=e)]):l(e=>e?[...e,"Edit"]:[])}})),smallText:!0,flexRow:!0})},a+1):t?.match(/user_priviledge/)&&!e.user_type?.match(/invitation/)?(0,o.jsx)(u().Fragment,{},a+1):t?.match(/password|^database|email|username/)?(0,o.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,o.jsx)("label",{htmlFor:t,children:t}),(0,o.jsx)("input",{type:"text",name:t,id:t,value:e[t],placeholder:t,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},a+1)]},a+1):t?.match(/more_user_data/)?(0,o.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,o.jsx)("label",{htmlFor:t,children:t}),(0,o.jsx)("textarea",{name:t,id:t,defaultValue:e[t]?e[t]:void 0,placeholder:t,rows:6},a+1)]},a+1):(0,o.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,o.jsx)("label",{htmlFor:t,children:t}),(0,o.jsx)("input",{type:"text",name:t,id:t,defaultValue:e[t]?e[t]:void 0,placeholder:t},a+1)]},a+1)),(0,o.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),d&&n&&(0,o.jsx)(b.A,{userImage:d,setUserImage:n})]}),(0,o.jsx)("button",{children:"Update User"})]})})]})]})}var A=a(71934);let j=u().createContext({});function _({user:e,singleUser:t}){let a=`${t.first_name} ${t.last_name} Users | Datasquirel"`,s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:a}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,o.jsx)(m.A,{head:s,user:e,children:(0,o.jsx)(j.Provider,{value:{user:e,singleUser:t},children:(0,o.jsx)(v,{})})})}async function w({req:e,res:t,query:a}){let s=await (0,p.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,A.A)(`SELECT id,\`database\`,database_access,first_name,last_name,email,phone,user_type,user_priviledge,username,image,image_thumbnail,city,state,country,zip_code,verification_status,more_user_data FROM user_users WHERE user_id='${s.id}' AND \`database\`='${a.database}' AND id='${a.user}'`);return r&&r[0]?{props:{user:s,singleUser:r[0]}}:{redirect:{destination:`/admin/${s?.id}/users/databases/${a.database}`,permanent:!1}}}let k=(0,l.M)(s,"default"),P=(0,l.M)(s,"getStaticProps"),M=(0,l.M)(s,"getStaticPaths"),S=(0,l.M)(s,"getServerSideProps"),N=(0,l.M)(s,"config"),q=(0,l.M)(s,"reportWebVitals"),E=(0,l.M)(s,"unstable_getStaticProps"),U=(0,l.M)(s,"unstable_getStaticPaths"),C=(0,l.M)(s,"unstable_getStaticParams"),D=(0,l.M)(s,"unstable_getServerProps"),$=(0,l.M)(s,"unstable_getServerSideProps"),F=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users/databases/[database]/[user]",pathname:"/admin/[user_id]/users/databases/[database]/[user]",bundlePath:"",filename:""},components:{App:n.default,Document:d.default},userland:s})},20136:(e,t,a)=>{a.d(t,{A:()=>d});var s=a(8732),r=a(82015),i=a.n(r),l=a(65842);function d({user:e,userImage:t,setUserImage:a,database:r,className:d}){let n=i().useRef();return(0,s.jsxs)("div",{className:"card no-hover col"+(d?" "+d:""),children:[(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:n,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,s.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let t=e.target.files?.[0];if(t){let e=await (0,l.A)({imageInputFile:t,maxWidth:400});a?.(e)}else window.alert("No File Provided!")}})]})]})}},2913:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:i,baseText:l,smallText:d,className:n}){return(0,s.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(n||""),children:t.map((t,i)=>{let{payload:n,title:o,onChangeHandler:c,fixed:u,jsx:m}=t,p=t.name?`${e}-${t.name}`:n?e+"-"+n:e;return(0,s.jsxs)("div",{className:"flex items-center"+(t.default&&u?" pointer-events-none":"")+(d?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,s.jsx)("input",{className:"m-0"+(d?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:p,id:p,onChange:e=>{a&&a(null),c&&c(e,t)},value:n,style:{minWidth:"20px"},...t.props}),m||(0,s.jsx)("label",{htmlFor:p,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(l||d?" text-base":" text-lg"),children:o})]},i+1)})})}a(82015)},59023:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),r=a(23293);function i(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(r.A,{})})}a(82015)},65842:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(76102);let r=a.n(s)().media.imageInputFileToBase64},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392],()=>a(93759));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5707,e.ids=[5707],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},93759:(e,t,a)=>{a.r(t),a.d(t,{config:()=>P,default:()=>w,getServerSideProps:()=>N,getStaticPaths:()=>k,getStaticProps:()=>j,reportWebVitals:()=>M,routeModule:()=>q,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>B,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>E});var s={};a.r(s),a.d(s,{SingleDatabaseSingleUserContext:()=>A,default:()=>S,getServerSideProps:()=>D});var r=a(63865),i=a(9455),l=a(30671),n=a(5583),d=a(19796),o=a(8732),c=a(82015),u=a.n(c),p=a(25562),m=a(92702),h=a(53926),x=a(59023),_=a(46169),f=a(16757),g=a(2913),y=a(20136);function v(){let{singleUser:e,user:t}=u().useContext(A),a=Object.keys(e).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[s,r]=u().useState(!1),[i,l]=u().useState(e.user_type?.match(/invitation/)?e.user_priviledge?.split("|"):["Edit"]),[n,d]=u().useState(e.image);return(0,o.jsxs)(u().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(x.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:[e.first_name," ",e.last_name]})]}),(0,o.jsx)("button",{className:"bg-red-500",onClick:a=>{r(!0),window.confirm("Delete this user?")&&(0,_.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(a=>{a.success&&(window.location.pathname=`/admin/${t?.id}/users/databases/${e.database}`)})},children:"Delete User"})]}),(0,o.jsx)(h.A,{user:t})]}),(0,o.jsxs)("section",{children:[s&&(0,o.jsx)(f.A,{}),(0,o.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,o.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:t=>{t.preventDefault(),r(!0);let a=Array.from(t.target),s={};a.forEach(e=>{!e?.nodeName?.match(/button/i)&&e?.name&&e?.value?.match(/./)&&(e?.name?.match(/username|email/)||(s[e.name]=e.value))});let l={...s,user_type:e.user_type,id:e.id};e.user_type?.match(/invitation/i)&&(l.user_priviledge=i?.join("|")),(0,_.A)("/api/updateUserUser",{method:"post",body:l},!0).then(t=>{"object"==typeof n&&n?.imageBase64?(n.imageName=`${e.database}-user-${e.id}`,n.mimeType="jpeg",delete n.imageBase64Full,(0,_.A)("/api/addUserMedia",{method:"post",body:{media:[n],folder:e.database?.replace(/_/g,"-"),type:"image"}},!0).then(t=>{t&&t.mediaData&&t.mediaData[0]?.media_url?(0,_.A)("/api/updateUserUser",{method:"post",body:{id:e.id,user_type:e.user_type,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{r(!1)},500)}):window.location.reload()})):window.location.reload()})},children:[a.map((t,a)=>t?.match(/user_priviledge/)&&e.user_type?.match(/invitation/)?(0,o.jsx)("div",{className:"flex-col items-start w-full gap-1",children:(0,o.jsx)(g.A,{checkBoxValues:e[t]?.split("|").map(e=>({title:e,name:e,onChangeHandler:()=>{i?.includes("Edit")?l([...i.filter(e=>"Edit"!=e)]):l(e=>e?[...e,"Edit"]:[])}})),smallText:!0,flexRow:!0})},a+1):t?.match(/user_priviledge/)&&!e.user_type?.match(/invitation/)?(0,o.jsx)(u().Fragment,{},a+1):t?.match(/password|^database|email|username/)?(0,o.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,o.jsx)("label",{htmlFor:t,children:t}),(0,o.jsx)("input",{type:"text",name:t,id:t,value:e[t],placeholder:t,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},a+1)]},a+1):t?.match(/more_user_data/)?(0,o.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,o.jsx)("label",{htmlFor:t,children:t}),(0,o.jsx)("textarea",{name:t,id:t,defaultValue:e[t]?e[t]:void 0,placeholder:t,rows:6},a+1)]},a+1):(0,o.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,o.jsx)("label",{htmlFor:t,children:t}),(0,o.jsx)("input",{type:"text",name:t,id:t,defaultValue:e[t]?e[t]:void 0,placeholder:t},a+1)]},a+1)),(0,o.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),n&&d&&(0,o.jsx)(y.A,{userImage:n,setUserImage:d})]}),(0,o.jsx)("button",{children:"Update User"})]})})]})]})}var b=a(71934);let A=u().createContext({});function S({user:e,singleUser:t}){let a=`${t.first_name} ${t.last_name} Users | Datasquirel"`,s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:a}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,o.jsx)(p.A,{head:s,user:e,children:(0,o.jsx)(A.Provider,{value:{user:e,singleUser:t},children:(0,o.jsx)(v,{})})})}async function D({req:e,res:t,query:a}){let s=await (0,m.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await (0,b.A)(`SELECT id,\`database\`,database_access,first_name,last_name,email,phone,user_type,user_priviledge,username,image,image_thumbnail,city,state,country,zip_code,verification_status,more_user_data FROM user_users WHERE user_id='${s.id}' AND \`database\`='${a.database}' AND id='${a.user}'`);return r&&r[0]?{props:{user:s,singleUser:r[0]}}:{redirect:{destination:`/admin/${s?.id}/users/databases/${a.database}`,permanent:!1}}}let w=(0,l.M)(s,"default"),j=(0,l.M)(s,"getStaticProps"),k=(0,l.M)(s,"getStaticPaths"),N=(0,l.M)(s,"getServerSideProps"),P=(0,l.M)(s,"config"),M=(0,l.M)(s,"reportWebVitals"),E=(0,l.M)(s,"unstable_getStaticProps"),L=(0,l.M)(s,"unstable_getStaticPaths"),B=(0,l.M)(s,"unstable_getStaticParams"),C=(0,l.M)(s,"unstable_getServerProps"),O=(0,l.M)(s,"unstable_getServerSideProps"),q=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users/databases/[database]/[user]",pathname:"/admin/[user_id]/users/databases/[database]/[user]",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:s})},20136:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(8732),r=a(82015),i=a.n(r),l=a(65842);function n({user:e,userImage:t,setUserImage:a,database:r,className:n}){let d=i().useRef();return(0,s.jsxs)("div",{className:"card no-hover col"+(n?" "+n:""),children:[(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:d,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,s.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let t=e.target.files?.[0];if(t){let e=await (0,l.A)({imageInputFile:t,maxWidth:400});a?.(e)}else window.alert("No File Provided!")}})]})]})}},2913:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r({name:e,checkBoxValues:t,setAlert:a,labelColor:r,flexRow:i,baseText:l,smallText:n,className:d}){return(0,s.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:t.map((t,i)=>{let{payload:d,title:o,onChangeHandler:c,fixed:u,jsx:p}=t,m=t.name?`${e}-${t.name}`:d?e+"-"+d:e;return(0,s.jsxs)("div",{className:"flex items-center"+(t.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,s.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:m,id:m,onChange:e=>{a&&a(null),c&&c(e,t)},value:d,style:{minWidth:"20px"},...t.props}),p||(0,s.jsx)("label",{htmlFor:m,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(l||n?" text-base":" text-lg"),children:o})]},i+1)})})}a(82015)},59023:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),r=a(23293);function i(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(r.A,{})})}a(82015)},65842:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(76102);let r=a.n(s)().media.imageInputFileToBase64},23293:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},71934:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(51779);async function r(...e){let t=(0,s.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let a=await t.query(...e);return JSON.parse(JSON.stringify(a))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(9973),r=a.n(s);function i(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}});var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[883,9821,9796,5392],()=>a(93759));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json index 31b9d38..d4f7ba3 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3496.js","../../../../../../chunks/3634.js","../../../../../../chunks/3704.js","../../../../../../chunks/3791.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5839.js","../../../../../../chunks/5954.js","../../../../../../chunks/6160.js","../../../../../../chunks/6202.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/8704.js","../../../../../../chunks/8760.js","../../../../../../chunks/883.js","../../../../../../chunks/9796.js","../../../../../../chunks/9821.js","../../../../../../chunks/9901.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/bignumber.js/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/safe-buffer/index.js","../../../../../../../../node_modules/safe-buffer/package.json","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1251.js","../../../../../../chunks/1579.js","../../../../../../chunks/194.js","../../../../../../chunks/2282.js","../../../../../../chunks/3155.js","../../../../../../chunks/3474.js","../../../../../../chunks/3704.js","../../../../../../chunks/4627.js","../../../../../../chunks/5392.js","../../../../../../chunks/5771.js","../../../../../../chunks/5954.js","../../../../../../chunks/6133.js","../../../../../../chunks/6202.js","../../../../../../chunks/6247.js","../../../../../../chunks/6521.js","../../../../../../chunks/6622.js","../../../../../../chunks/6903.js","../../../../../../chunks/725.js","../../../../../../chunks/7303.js","../../../../../../chunks/7769.js","../../../../../../chunks/8704.js","../../../../../../chunks/883.js","../../../../../../chunks/9136.js","../../../../../../chunks/9240.js","../../../../../../chunks/9796.js","../../../../../../chunks/9814.js","../../../../../../chunks/9821.js","../../../../../../webpack-runtime.js"]} \ 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 3657e80..f35df30 100644 --- a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8935,e.ids=[8935],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},34042:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>p});var i=t(89947),a=t(2706),n=t(96762),o=t(69842),l=t(67619),u=t(27825),d=t.n(u),c=t(48786),_=t(98e3);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=d().cloneDeep(e.body),i=s.inviting_user_id,a=s.invited_user_email,n=s.database_access,u=s.priviledge;try{let e=await (0,c.A)("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[i,t.id,t.email]);if(e&&e[0])return r.json({success:!1});let s=await (0,_.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:u,user_type:"admin",first_name:t.first_name,last_name:t.last_name,email:t.email,username:t.first_name,image:t.image,image_thumbnail:t.image_thumbnail}});await (0,c.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,a]);let o=await (0,c.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await (0,c.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${i}' AND delegated_user_id='${t.id}'`),o&&o[0]){let e=o[0].db_tables_data.split("|");for(let r=0;r{t.d(r,{A:()=>l});var s=t(48786),i=t(95969),a=t(29021),n=t.n(a),o=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[a]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:l+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),i=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8935,e.ids=[8935],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},34042:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>f});var a={};t.r(a),t.d(a,{default:()=>_});var i=t(89947),s=t(2706),n=t(96762),l=t(69842),d=t(67619),u=t(27825),o=t.n(u),m=t(48786),c=t(98e3);async function _(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=o().cloneDeep(e.body),i=a.inviting_user_id,s=a.invited_user_email,n=a.database_access,u=a.priviledge;try{let e=await (0,m.A)("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[i,t.id,t.email]);if(e&&e[0])return r.json({success:!1});let a=await (0,c.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:i,invited_user_id:t.id,database_access:n,user_priviledge:u,user_type:"admin",first_name:t.first_name,last_name:t.last_name,email:t.email,username:t.first_name,image:t.image,image_thumbnail:t.image_thumbnail}});await (0,m.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[i,s]);let l=await (0,m.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[i]);if(await (0,m.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${i}' AND delegated_user_id='${t.id}'`),l&&l[0]){let e=l[0].db_tables_data.split("|");for(let r=0;r{t.d(r,{A:()=>s});var a=t(39908),i=t.n(a);async function s(e,r,t){let a=i()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(s+=` -URL: ${a.url}`),a?.body&&(s+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(s+=` -IP: ${o}`),s+=` +User Email: ${e?.email}`),s?.url&&(a+=` +URL: ${s.url}`),s?.body&&(a+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` Date: ${n.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",s),i().appendFileSync("./.tmp/error.log",` +========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let d=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),i=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,n,o),u=i.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",l,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(34042));module.exports=s})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(34042));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json index 2f2d70d..da21f96 100644 --- a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js index d005386..78bc7a8 100644 --- a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},92145:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>u,routeModule:()=>c});var i={};t.r(i),t.d(i,{default:()=>l});var s=t(89947),a=t(2706),n=t(96762),o=t(69842),d=t(49941);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,o.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let i=await (0,d.A)({query:e.body.query,user:t});r.json({success:!0,result:i})}let u=(0,n.M)(i,"default"),_=(0,n.M)(i,"config"),c=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},69842:(e,r,t)=>{t.d(r,{A:()=>d});var i=t(48786),s=t(95969),a=t(29021),n=t.n(a),o=t(89159);async function d(e,r,t){try{let{keyCookieName:a,csrfCookieName:d}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${_}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,i.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},49941:(e,r,t)=>{t.d(r,{A:()=>o});var i=t(67619),s=t(48786),a=t(98e3),n=t(7971);async function o({query:e,user:r,useLocal:t}){try{let i=t?n.A:s.A,{invite:o,database_access:d,priviledge:l,email:u}=e,_=[o,u],c=await i("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!c||!c[0])throw Error("No Invitation Found");let E=[o],m=await i("SELECT first_name,last_name,email FROM users WHERE id=?",E);if(m?.[0]){let e=await i("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,u]);if(e?.[0])console.log("User already added");else{(0,a.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:d,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:l,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:t});let e=await i("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,u]);if(await i("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e{t.d(r,{A:()=>i});function i(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",i=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=i;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),a&&(d+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:d+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(29021),s=t.n(i);async function a({user:e,message:r,component:t,noMail:i,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},92145:(e,r,i)=>{i.r(r),i.d(r,{config:()=>m,default:()=>u,routeModule:()=>_});var t={};i.r(t),i.d(t,{default:()=>o});var a=i(89947),s=i(2706),n=i(96762),d=i(69842),l=i(49941);async function o(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let i=await (0,d.A)(e,r,!0);if(!i)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let t=await (0,l.A)({query:e.body.query,user:i});r.json({success:!0,result:t})}let u=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),_=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:t})},69842:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(39908),a=i.n(t);async function s(e,r,i){let t=a()({req:e,level:i?"deep":void 0});return console.log(t),t.payload}},49941:(e,r,i)=>{i.d(r,{A:()=>d});var t=i(67619),a=i(48786),s=i(98e3),n=i(62050);async function d({query:e,user:r,useLocal:i}){try{let t=i?n.A:a.A,{invite:d,database_access:l,priviledge:o,email:u}=e,m=[d,u],_=await t("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",m);if(!_||!_[0])throw Error("No Invitation Found");let c=[d],g=await t("SELECT first_name,last_name,email FROM users WHERE id=?",c);if(g?.[0]){let e=await t("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[d,r.id,u]);if(e?.[0])console.log("User already added");else{(0,s.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:d,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:o,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:i});let e=await t("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[d,u]);if(await t("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[d,r.id]),e&&e[0]){let t=e[0].db_tables_data.split("|");for(let e=0;e{i.d(r,{A:()=>s});var t=i(29021),a=i.n(t);async function s({user:e,message:r,component:i,noMail:t,req:s}){let n=new Date,d=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],i=s.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=i||t||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +Component: ${i}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(i+=` -URL: ${a.url}`),a?.body&&(i+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(i+=` -IP: ${o}`),i+=` +User Email: ${e?.email}`),s?.url&&(t+=` +URL: ${s.url}`),s?.body&&(t+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),d&&(t+=` +IP: ${d}`),t+=` Date: ${n.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",i),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",t),a().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,i.scryptSync)(a,n,o),l=s.Buffer.alloc(16,0),u=(0,i.createDecipheriv)("aes-192-cbc",d,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[1251],()=>t(92145));module.exports=i})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var i=e=>r(r.s=e),t=r.X(0,[1251],()=>i(92145));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addApiKey.js b/dsql-app/.local_dist/server/pages/api/addApiKey.js index 76fd174..46e00b0 100644 --- a/dsql-app/.local_dist/server/pages/api/addApiKey.js +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},15420:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>m});var o=t(89947),n=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(47795),u=t.n(l),d=t(68829),_=t(67619),p=t(69842),f=t(98e3);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,p.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:o,api_key_scope:n,target_database:i,target_table:a}=e.body;if(!s?.match(/./)||!o?.match(/./)||!n?.match(/./))return r.json({success:!1,msg:"Wrong Input"});try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");c().existsSync(e)||c().mkdirSync(e,{recursive:!0});let l=u().generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),_={user_id:t.id,date_code:Date.now(),sign:l,target_database:i,target_table:a};"fullAccess"==n&&(_={..._,full_access:!0});let p=(0,d.A)({data:JSON.stringify(_)});if(!p)return r.json({success:!1,msg:"Couldn't encrypt API key"});let m=(0,d.A)({data:p}),E={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:o,key:m,scope:n}};l&&(E.data.csrf=l);let y=await (0,f.A)(E);if(!y.insertId)throw Error(y?.error||"Api Key Couldn't be added");c().writeFileSync(`${e}/${l}`,JSON.stringify(_),"utf-8"),r.json({success:!0})}catch(e){(0,_.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let i=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},15420:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>g,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>y});var a=t(89947),n=t(2706),i=t(96762),o=t(29021),l=t.n(o),d=t(47795),u=t.n(d),c=t(68829),p=t(67619),m=t(69842),f=t(98e3);async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,m.A)(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");l().existsSync(e)||l().mkdirSync(e,{recursive:!0});let d=u().generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),p={user_id:t.id,date_code:Date.now(),sign:d,target_database:i,target_table:o};"fullAccess"==n&&(p={...p,full_access:!0});let m=(0,c.A)({data:JSON.stringify(p)});if(!m)return r.json({success:!1,msg:"Couldn't encrypt API key"});let y=(0,c.A)({data:m}),g={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:a,key:y,scope:n}};d&&(g.data.csrf=d);let A=await (0,f.A)(g);if(!A.insertId)throw Error(A?.error||"Api Key Couldn't be added");l().writeFileSync(`${e}/${d}`,JSON.stringify(p),"utf-8"),r.json({success:!0})}catch(e){(0,p.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let g=(0,i.M)(s,"default"),A=(0,i.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(39908),a=t.n(s);async function n(e,r,t){let s=a()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let 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 s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),n?.url&&(s+=` URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),a&&(s+=` -IP: ${a}`),s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` Date: ${i.toDateString()} -========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let c=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,a),l=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(15420));module.exports=s})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(15420));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json b/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json index a2637db..03604d8 100644 --- a/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 5afd905..5925228 100644 --- a/dsql-app/.local_dist/server/pages/api/addDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},3931:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>l,routeModule:()=>p});var t={};s.r(t),s.d(t,{default:()=>c});var a=s(89947),i=s(2706),o=s(96762),n=s(83919),d=s(69842),u=s(98e3);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,d.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=(0,n.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let l=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),p=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>d});var t=s(48786),a=s(95969),i=s(29021),o=s.n(i),n=s(89159);async function d(e,r,s){try{let{keyCookieName:i,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[i]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=t;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),i&&(d+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:d+=a}}},95969:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(55511),a=s(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(i,o,n),u=a.Buffer.alloc(16,0),c=(0,t.createDecipheriv)("aes-192-cbc",d,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511);function a({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",s);return a.update(e),a.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(3931));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},3931:(e,r,s)=>{s.r(r),s.d(r,{config:()=>c,default:()=>p,routeModule:()=>m});var a={};s.r(a),s.d(a,{default:()=>l});var t=s(89947),i=s(2706),d=s(96762),n=s(83919),u=s(69842),o=s(98e3);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,u.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:a,dbId:t}=e.body,i=await (0,o.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:a,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=(0,n.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let p=(0,d.M)(a,"default"),c=(0,d.M)(a,"config"),m=new t.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:a})},69842:(e,r,s)=>{s.d(r,{A:()=>i});var a=s(39908),t=s.n(a);async function i(e,r,s){let a=t()({req:e,level:s?"deep":void 0});return console.log(a),a.payload}},83919:(e,r,s)=>{s.d(r,{A:()=>i});var a=s(55511),t=s(32443);function i({password:e,encryptionKey:r}){let{key:s}=(0,t.A)({encryptionKey:r});if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let i=(0,a.createHmac)("sha512",s);return i.update(e),i.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251],()=>s(3931));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 267c75c..9b11efa 100644 --- a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6534,e.ids=[6534],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},24709:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>h});var n={};t.r(n),t.d(n,{default:()=>y});var o=t(89947),s=t(2706),i=t(96762),a=t(29021),c=t.n(a),u=t(33873),l=t.n(u),f=t(69842),d=t(27825),p=t.n(d);function _(e,r,t){if(!e)return"";if("number"==typeof e||"boolean"==typeof e)return e;if("string"==typeof e&&!e?.toString()?.match(/./))return"";if("object"==typeof e&&!Array.isArray(e))return E(e,r);if("object"==typeof e&&Array.isArray(e))return A(e,r);let n=e;return t&&(n=e.toString().replace(t,"")),r||(n=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),n=n.replace(/(?{let n=t[e];if(!n){delete t[e];return}"string"==typeof n||"number"==typeof n?t[e]=_(n,r):"object"!=typeof n||Array.isArray(n)?"object"==typeof n&&Array.isArray(n)&&(t[e]=A(n,r)):t[e]=E(n,r)}),t}function A(e,r){let t=p().cloneDeep(e);return t.forEach((e,n)=>{if(!e){t.splice(n,1);return}"string"==typeof e||"number"==typeof e?t[n]=_(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[n]=A(e,r)):t[n]=E(e,r)}),t}async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:n}=_(e.body),o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});let s=l().join(o,`images/user-images/user-${t.id}/`)+n;if(c().existsSync(s))return r.json({success:!1});c().mkdirSync(s),r.json({success:!0})}let S=(0,i.M)(n,"default"),g=(0,i.M)(n,"config"),h=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,o.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let f=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!f)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${f}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),u=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=24709);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6534,e.ids=[6534],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},24709:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>b});var n={};t.r(n),t.d(n,{default:()=>P});var o=t(89947),i=t(2706),a=t(96762),s=t(29021),u=t.n(s),c=t(33873),l=t.n(c),f=t(69842),d=t(27825),p=t.n(d);function A(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 y(e,r);if("object"==typeof e&&Array.isArray(e))return g(e,r);let n=e;return t&&(n=e.toString().replace(t,"")),r||(n=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),n=n.replace(/(?{let n=t[e];if(!n){delete t[e];return}"string"==typeof n||"number"==typeof n?t[e]=A(n,r):"object"!=typeof n||Array.isArray(n)?"object"==typeof n&&Array.isArray(n)&&(t[e]=g(n,r)):t[e]=y(n,r)}),t}function g(e,r){let t=p().cloneDeep(e);return t.forEach((e,n)=>{if(!e){t.splice(n,1);return}"string"==typeof e||"number"==typeof e?t[n]=A(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[n]=g(e,r)):t[n]=y(e,r)}),t}async function P(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:n}=A(e.body),o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});let i=l().join(o,`images/user-images/user-${t.id}/`)+n;if(u().existsSync(i))return r.json({success:!1});u().mkdirSync(i),r.json({success:!0})}let m=(0,a.M)(n,"default"),E=(0,a.M)(n,"config"),b=new o.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(39908),o=t.n(n);async function i(e,r,t){let n=o()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=24709);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json index e1840ca..6d7b001 100644 --- a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 eea1277..85384bc 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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10353:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:n,paradigm:o,platforms:i}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;c().existsSync(e)||c().writeFileSync(e,"{}","utf8");let n=JSON.parse(c().readFileSync(e,"utf8")),a=n[s];a||(a={social:[]},n[s]=a);let l=a.social;l=[];for(let e=0;e{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3292,e.ids=[3292],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10353:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>p,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),a=t(2706),s=t(96762),i=t(29021),l=t.n(i),u=t(67619),c=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:n,dbSlug:o,paradigm:a,platforms:s}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;l().existsSync(e)||l().writeFileSync(e,"{}","utf8");let o=JSON.parse(l().readFileSync(e,"utf8")),i=o[n];i||(i={social:[]},o[n]=i);let u=i.social;u=[];for(let e=0;e{t.d(r,{A:()=>a});var n=t(39908),o=t.n(n);async function a(e,r,t){let n=o()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),o=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let s=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||a.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +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&&(s+=` -URL: ${o.url}`),o?.body&&(s+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(s+=` -IP: ${a}`),s+=` -Date: ${i.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +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: ${s.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let l=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",n),o().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10353);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10353);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json index 58d1ffb..192fb51 100644 --- a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 0c0dff3..c80e290 100644 --- a/dsql-app/.local_dist/server/pages/api/addTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=460,e.ids=[460],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},66912:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),o=t(2706),i=t(96762),n=t(77377),d=t(98e3),l=t(31495),u=t(60125),c=t(67619),_=t(69842);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,payload:a,tableSchema:o,dbSlug:i,dbId:E,delegated:f}=e.body;try{let c=await (0,u.A)({databaseSlug:i,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:c,database:i,table:s,dbId:E,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let _=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${i}`:`datasquirel_user_${t.id}_${i}`,f=await (0,d.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:s,data:a,tableSchema:o});if(!f.insertId)throw console.log("Table Insertion Failed =>",f),Error(f?.error||"Table Insertion Failed");await (0,n.A)({dbName:_,entryId:f.insertId,entryOrder:a.order,tableName:s,tableSchema:o}),r.json({success:!0})}catch(e){(0,c.A)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,i.M)(s,"default"),p=(0,i.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),a=t(67619);async function o({user:e,confirmedDelegetedUser:r,database:t,table:o,priviledgeRegex:i,dbId:n}){let d,l;try{r?.delegated?(d=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,o]),l=d[0]?.priviledge?.match(i)):(d=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,o,n]),l=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!d&&!!d[0]&&!!l}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,i=null;if(!a?.delegated)return{dbUserId:o};let n=a.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${n}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((i=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(37275);async function a({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:o}){try{if(o.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let e=await (0,s.A)({paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!e?.[0])throw Error("No Existing Order");await (0,s.A)({paradigm:"Full Access",queryString:`UPDATE ${a} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var s=t(48786),a=t(95969),o=t(29021),i=t.n(o),n=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=s;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:i,csrfCookieName:n,oneTimeCodeName:d+=a}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,n=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=460,e.ids=[460],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},66912:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>y});var a={};t.r(a),t.d(a,{default:()=>m});var s=t(89947),i=t(2706),l=t(96762),o=t(77377),d=t(98e3),n=t(31495),u=t(60125),c=t(67619),g=t(69842);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,g.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:a,payload:s,tableSchema:i,dbSlug:l,dbId:m,delegated:p}=e.body;try{let c=await (0,u.A)({databaseSlug:l,request:e,user:t,query:e.query});if(!await (0,n.A)({user:t,confirmedDelegetedUser:c,database:l,table:a,dbId:m,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let g=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${l}`:`datasquirel_user_${t.id}_${l}`,p=await (0,d.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:g,tableName:a,data:s,tableSchema:i});if(!p.insertId)throw console.log("Table Insertion Failed =>",p),Error(p?.error||"Table Insertion Failed");await (0,o.A)({dbName:g,entryId:p.insertId,entryOrder:s.order,tableName:a,tableSchema:i}),r.json({success:!0})}catch(e){(0,c.A)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let p=(0,l.M)(a,"default"),f=(0,l.M)(a,"config"),y=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:a})},31495:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(48786),s=t(67619);async function i({user:e,confirmedDelegetedUser:r,database:t,table:i,priviledgeRegex:l,dbId:o}){let d,n;try{r?.delegated?(d=await (0,a.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,i]),n=d[0]?.priviledge?.match(l)):(d=await (0,a.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,i,o]),n=!0)}catch(r){(0,s.A)({component:"checkUserRights",message:r.message,user:e})}return!!d&&!!d[0]&&!!n}},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let i=t.id,l=null;if(!s?.delegated)return{dbUserId:i};let o=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${o}_${r}`,n=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[n])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[n]});if(!t)throw Error("Invalid Token");if((l=JSON.parse(t)).databaseSlug===r)return{dbUserId:i=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:i}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(37897);async function s({dbName:e,entryId:r,entryOrder:t,tableName:s,tableSchema:i}){try{if(i.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let e=await (0,a.A)({paradigm:"Full Access",queryString:`SELECT * FROM ${s} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!e?.[0])throw Error("No Existing Order");await (0,a.A)({paradigm:"Full Access",queryString:`UPDATE ${s} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(39908),s=t.n(a);async function i(e,r,t){let a=s()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(29021),s=t.n(a);async function i({user:e,message:r,component:t,noMail:a,req:i}){let l=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"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(s+=` -URL: ${o.url}`),o?.body&&(s+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),n&&(s+=` -IP: ${n}`),s+=` -Date: ${i.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let d=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),i?.url&&(a+=` +URL: ${i.url}`),i?.body&&(a+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${l.toDateString()} +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(o,i,n),l=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",d,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(66912));module.exports=s})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(55511),s=t(79428),i=t(32443);function l({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:l,salt:o,keyLen:d,algorithm:n,bufferAllocSize:u}=(0,i.A)({encryptionKey:r});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=(0,a.scryptSync)(l,o,d),g=s.Buffer.alloc(u,0),m=(0,a.createDecipheriv)(n,c,g);try{let r=m.update(e,"hex","utf8");return r+=m.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(66912));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserMedia.js b/dsql-app/.local_dist/server/pages/api/addUserMedia.js index fee4143..a72dbb8 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=979,e.ids=[979],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},27973:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>v,routeModule:()=>E});var a={};t.r(a),t.d(a,{config:()=>h,default:()=>S});var i=t(89947),s=t(2706),l=t(96762),o=t(29021),n=t.n(o),u=t(33873),d=t.n(u),c=t(98e3),m=t(96551),_=t(45185),p=t(67619),f=t(69842);let h={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{media:i}=a,s=a.folder,l=a.type;"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});if(s){let e=d().join(o,`images/user-images/user-${t.id}/${s}`);n().existsSync(e)||n().mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${s}`;n().existsSync(r)||n().mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r{t.d(r,{A:()=>o});var a=t(9288),i=t.n(a),s=t(67619),l=t(45185);async function o({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:o,folder:n,isPrivate:u}){try{let s=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i()(s),m=i()(s),_=(0,l.A)({isPrivate:u,userId:t,folder:n});if(!_)return null;let{fileRootPath:p,urlRootPath:f,relativePath:h}=_,{width:S,height:v,format:g}=await c.metadata(),E=a||g;S&&v&&S>1800&&c.resize(1800,Math.round(1800/S*v),{fit:"cover"}),c.toFormat(E,{quality:80}),await c.metadata();let y=`${r}.${E}`;if(await c.toFile(p+y),S&&v&&S>d){let e=d/S;m.resize(d,Math.round(v*e),{fit:"cover"})}else S&&v&&m.resize(150,Math.round(150/S*v),{fit:"cover"});m.toFormat(E,{quality:80});let A=`${r}_thumbnail.${E}`;return await m.toFile(p+A),{urlPath:f+y,urlThumbnailPath:f+A,urlRelativePath:h+y,urlThumbnailRelativePath:h+A}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,s.A)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),i=t.n(a),s=t(33873),l=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:a,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let n=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:l().join(o,n);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${n}`,relativePath:n}}},69842:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),i=t(95969),s=t(29021),l=t.n(s),o=t(89159);async function n(e,r,t){try{let{keyCookieName:s,csrfCookieName:n}=(0,o.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[s]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${c}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),s&&(l+=`${s}_`),l+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),s&&(o+=`${s}_`),o+=a;let n=r;return e?.userId&&(n+=`user_${e.userId}_`),s&&(n+=`${s}_`),{keyCookieName:l,csrfCookieName:o,oneTimeCodeName:n+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let l=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== -Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +"use strict";(()=>{var e={};e.id=979,e.ids=[979],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},27973:(e,a,r)=>{r.r(a),r.d(a,{config:()=>S,default:()=>v,routeModule:()=>y});var i={};r.r(i),r.d(i,{config:()=>h,default:()=>g});var t=r(89947),l=r(2706),s=r(96762),n=r(29021),o=r.n(n),u=r(33873),d=r.n(u),m=r(98e3),c=r(96551),p=r(45185),_=r(67619),f=r(69842);let h={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function g(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let r=await (0,f.A)(e,a,!0);if(!r)return a.json({success:!1,msg:"Unauthorized"});let i=e.body,{media:t}=i,l=i.folder,s=i.type;"production".match(/production/);let n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)return console.log("Static File ENV not Found!"),a.json({success:!1,msg:"No Static File Path"});if(l){let e=d().join(n,`images/user-images/user-${r.id}/${l}`);o().existsSync(e)||o().mkdirSync(e,{recursive:!0});let a=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/media/${l}`;o().existsSync(a)||o().mkdirSync(a,{recursive:!0})}try{let e=[];for(let a=0;a{r.d(a,{A:()=>n});var i=r(9288),t=r.n(i),l=r(67619),s=r(45185);async function n({imageSourceBase64:e,imageName:a,userId:r,mimeType:i,thumbnailSize:n,folder:o,isPrivate:u}){try{let l=Buffer.from(e,"base64"),d=n?parseInt(n.toString()):400,m=t()(l),c=t()(l),p=(0,s.A)({isPrivate:u,userId:r,folder:o});if(!p)return null;let{fileRootPath:_,urlRootPath:f,relativePath:h}=p,{width:g,height:v,format:S}=await m.metadata(),y=i||S;g&&v&&g>1800&&m.resize(1800,Math.round(1800/g*v),{fit:"cover"}),m.toFormat(y,{quality:80}),await m.metadata();let b=`${a}.${y}`;if(await m.toFile(_+b),g&&v&&g>d){let e=d/g;c.resize(d,Math.round(v*e),{fit:"cover"})}else g&&v&&c.resize(150,Math.round(150/g*v),{fit:"cover"});c.toFormat(y,{quality:80});let $=`${a}_thumbnail.${y}`;return await c.toFile(_+$),{urlPath:f+b,urlThumbnailPath:f+$,urlRelativePath:h+b,urlThumbnailRelativePath:h+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,l.A)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,a,r)=>{r.d(a,{A:()=>n});var i=r(29021),t=r.n(i),l=r(33873),s=r.n(l);function n({isPrivate:e,userId:a,folder:r,video:i,pathOnly:l}){"production".match(/production/);let n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)return console.log("Static File ENV not Found!"),null;let o=e?`@/${i?"videos":"media"}/${r?r+"/":""}`:i?`/videos/user-videos/user-${a}/${r?r+"/":""}`:`/images/user-images/user-${a}/${r?r+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a}/media/${r?r+"/":""}`:s().join(n,o);return t().existsSync(u)||l||t().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${r?r+"/":""}`:`${process.env.DSQL_STATIC_HOST}${o}`,relativePath:o}}},69842:(e,a,r)=>{r.d(a,{A:()=>l});var i=r(39908),t=r.n(i);async function l(e,a,r){let i=t()({req:e,level:r?"deep":void 0});return console.log(i),i.payload}},67619:(e,a,r)=>{r.d(a,{A:()=>l});var i=r(29021),t=r.n(i);async function l({user:e,message:a,component:r,noMail:i,req:l}){let s=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],a=l.headers["x-real-ip"],r=l.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],t=r||i||a||l.socket.remoteAddress;if(!t)return null;return String(t)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${a} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(a+=` -URL: ${s.url}`),s?.body&&(a+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(a+=` -IP: ${o}`),a+=` -Date: ${l.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let n=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),l?.url&&(i+=` +URL: ${l.url}`),l?.body&&(i+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),n&&(i+=` +IP: ${n}`),i+=` +Date: ${s.toDateString()} +========================================`,t().existsSync("./.tmp/error.log")||t().writeFileSync("./.tmp/error.log","","utf-8");let o=t().readFileSync("./.tmp/error.log","utf-8");t().writeFileSync("./.tmp/error.log",i),t().appendFileSync("./.tmp/error.log",` -${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let n=(0,a.scryptSync)(s,l,o),u=i.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",n,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(27973));module.exports=a})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var r=e=>a(a.s=e),i=a.X(0,[1251],()=>r(27973));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json index 31ad3ee..111c69b 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../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-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/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-arrayish/index.js","../../../../node_modules/is-arrayish/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/semver/classes/comparator.js","../../../../node_modules/semver/classes/range.js","../../../../node_modules/semver/classes/semver.js","../../../../node_modules/semver/functions/cmp.js","../../../../node_modules/semver/functions/coerce.js","../../../../node_modules/semver/functions/compare.js","../../../../node_modules/semver/functions/eq.js","../../../../node_modules/semver/functions/gt.js","../../../../node_modules/semver/functions/gte.js","../../../../node_modules/semver/functions/lt.js","../../../../node_modules/semver/functions/lte.js","../../../../node_modules/semver/functions/neq.js","../../../../node_modules/semver/functions/parse.js","../../../../node_modules/semver/functions/satisfies.js","../../../../node_modules/semver/internal/constants.js","../../../../node_modules/semver/internal/debug.js","../../../../node_modules/semver/internal/identifiers.js","../../../../node_modules/semver/internal/lrucache.js","../../../../node_modules/semver/internal/parse-options.js","../../../../node_modules/semver/internal/re.js","../../../../node_modules/semver/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../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-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/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-arrayish/index.js","../../../../node_modules/is-arrayish/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/semver/classes/comparator.js","../../../../node_modules/semver/classes/range.js","../../../../node_modules/semver/classes/semver.js","../../../../node_modules/semver/functions/cmp.js","../../../../node_modules/semver/functions/coerce.js","../../../../node_modules/semver/functions/compare.js","../../../../node_modules/semver/functions/eq.js","../../../../node_modules/semver/functions/gt.js","../../../../node_modules/semver/functions/gte.js","../../../../node_modules/semver/functions/lt.js","../../../../node_modules/semver/functions/lte.js","../../../../node_modules/semver/functions/neq.js","../../../../node_modules/semver/functions/parse.js","../../../../node_modules/semver/functions/satisfies.js","../../../../node_modules/semver/internal/constants.js","../../../../node_modules/semver/internal/debug.js","../../../../node_modules/semver/internal/identifiers.js","../../../../node_modules/semver/internal/lrucache.js","../../../../node_modules/semver/internal/parse-options.js","../../../../node_modules/semver/internal/re.js","../../../../node_modules/semver/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserTable.js b/dsql-app/.local_dist/server/pages/api/addUserTable.js index 7a861b6..8860307 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},47122:(e,a,r)=>{r.r(a),r.d(a,{config:()=>E,default:()=>h,routeModule:()=>N});var s={};r.r(s),r.d(s,{default:()=>p});var t=r(89947),l=r(2706),d=r(96762),i=r(67619),n=r(69842),o=r(4820),u=r(27825),b=r.n(u),c=r(21724),_=r(48786),m=r(98e3),f=r(76856);async function p(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let r=await (0,n.A)(e,a,!0);if(!r)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:s}=e.body,t=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),l=e.body.dbSlug,d=e.body.dbId,u=e.body.parentDatabase,p=e.body.parentTable;try{let e=(0,o.A)({userId:r.id});if(!e)throw Error("No User Schema found!");let n=e.findIndex(e=>e.dbFullName===t),h=e[n];if(!h)throw Error("No Target Database Found!");let E=h.tables.findIndex(e=>e.tableName===s.tableName);if(E>=0?e[n].tables[E]=s:e[n].tables.push(s),s?.childTable){let a=e.find(e=>e.dbFullName===u),r=a?.tables.find(e=>{if(e.tableName===p)return!0});if(!r)throw Error("Child Table Parent Doesn't Exist!");r.childrenTables?.[0]?r.childrenTables.push({dbNameFull:t,tableName:s.tableName,tableNameFull:s.tableNameFull}):r.childrenTables=[{dbNameFull:t,tableName:s.tableName,tableNameFull:s.tableFullName}]}if(h.childrenDatabases)for(let a=0;ae.dbFullName===t.dbFullName);e[a]&&(e[a].tables=b().cloneDeep(h.tables));let l=await (0,_.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[r.id,t.dbFullName]),d=await (0,_.A)("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[l[0].id,r.id,s.tableName]);if(d?.[0])continue;await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:r.id,db_id:l[0].id,db_slug:l[0].db_slug,table_name:s.tableFullName,table_slug:s.tableName}})}catch(e){(0,i.A)({component:"/api/addUserTable/lines-124-140",message:e.message,user:r})}}(0,c.A)({userId:r.id,schemaData:e});let N={user_id:r.id,db_id:d,db_slug:l,table_name:s.tableFullName,table_slug:s.tableName};s?.childTable&&(N.child_table="1",N.child_table_parent_database=u,N.child_table_parent_table=p),await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:N}),await (0,f.A)({userId:r.id,targetDatabase:t}),a.json({success:!0})}catch(e){console.log(e.message),(0,i.A)({component:"/api/addUserTable/main-catch-error",message:e.message,user:r}),a.json({success:!1,msg:"Database Files could not be written!"})}}let h=(0,d.M)(s,"default"),E=(0,d.M)(s,"config"),N=new t.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:s})},69842:(e,a,r)=>{r.d(a,{A:()=>n});var s=r(48786),t=r(95969),l=r(29021),d=r.n(l),i=r(89159);async function n(e,a,r){try{let{keyCookieName:l,csrfCookieName:n}=(0,i.A)();if(!e.cookies?.[l]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,t.A)({encryptedString:e.cookies[l]});if(!o)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(o);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let b=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!b)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!d().existsSync(`${b}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(a){return console.log(`userAuth Error for ${e.url}: ${a.message}`),null}}},89159:(e,a,r)=>{r.d(a,{A:()=>s});function s(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),d=a;e?.userId&&(d+=`user_${e.userId}_`),l&&(d+=`${l}_`),d+=r;let i=a;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=s;let n=a;return e?.userId&&(n+=`user_${e.userId}_`),l&&(n+=`${l}_`),{keyCookieName:d,csrfCookieName:i,oneTimeCodeName:n+=t}}},4820:(e,a,r)=>{r.d(a,{A:()=>n});var s=r(67619),t=r(29021),l=r.n(t),d=r(33873),i=r.n(d);function n({userId:e}){try{let a=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},21724:(e,a,r)=>{r.d(a,{A:()=>n});var s=r(67619),t=r(29021),l=r.n(t),d=r(33873),i=r.n(d);function n({userId:e,schemaData:a}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(r,JSON.stringify(a),"utf8"),!0}catch(e){return(0,s.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var r=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>r(47122));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},47122:(e,a,t)=>{t.r(a),t.d(a,{config:()=>h,default:()=>f,routeModule:()=>g});var l={};t.r(l),t.d(l,{default:()=>N});var s=t(89947),r=t(2706),d=t(96762),i=t(67619),n=t(69842),u=t(4820),b=t(27825),o=t.n(b),c=t(21724),m=t(48786),p=t(98e3),_=t(76856);async function N(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let t=await (0,n.A)(e,a,!0);if(!t)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:l}=e.body,s=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),r=e.body.dbSlug,d=e.body.dbId,b=e.body.parentDatabase,N=e.body.parentTable;try{let e=(0,u.A)({userId:t.id});if(!e)throw Error("No User Schema found!");let n=e.findIndex(e=>e.dbFullName===s),f=e[n];if(!f)throw Error("No Target Database Found!");let h=f.tables.findIndex(e=>e.tableName===l.tableName);if(h>=0?e[n].tables[h]=l:e[n].tables.push(l),l?.childTable){let a=e.find(e=>e.dbFullName===b),t=a?.tables.find(e=>{if(e.tableName===N)return!0});if(!t)throw Error("Child Table Parent Doesn't Exist!");t.childrenTables?.[0]?t.childrenTables.push({dbNameFull:s,tableName:l.tableName,tableNameFull:l.tableNameFull}):t.childrenTables=[{dbNameFull:s,tableName:l.tableName,tableNameFull:l.tableFullName}]}if(f.childrenDatabases)for(let a=0;ae.dbFullName===s.dbFullName);e[a]&&(e[a].tables=o().cloneDeep(f.tables));let r=await (0,m.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[t.id,s.dbFullName]),d=await (0,m.A)("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[r[0].id,t.id,l.tableName]);if(d?.[0])continue;await (0,p.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:r[0].id,db_slug:r[0].db_slug,table_name:l.tableFullName,table_slug:l.tableName}})}catch(e){(0,i.A)({component:"/api/addUserTable/lines-124-140",message:e.message,user:t})}}(0,c.A)({userId:t.id,schemaData:e});let g={user_id:t.id,db_id:d,db_slug:r,table_name:l.tableFullName,table_slug:l.tableName};l?.childTable&&(g.child_table="1",g.child_table_parent_database=b,g.child_table_parent_table=N),await (0,p.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:g}),await (0,_.A)({userId:t.id,targetDatabase:s}),a.json({success:!0})}catch(e){console.log(e.message),(0,i.A)({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)(l,"default"),h=(0,d.M)(l,"config"),g=new s.PagesAPIRouteModule({definition:{kind:r.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:l})},69842:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(39908),s=t.n(l);async function r(e,a,t){let l=s()({req:e,level:t?"deep":void 0});return console.log(l),l.payload}},4820:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(67619),s=t(29021),r=t.n(s),d=t(33873),i=t.n(d);function n({userId:e}){try{let a=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(r().readFileSync(a,"utf-8"))}catch(e){return(0,l.A)({component:"grabUserSchemaData",message:e.message}),null}}},21724:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(67619),s=t(29021),r=t.n(s),d=t(33873),i=t.n(d);function n({userId:e,schemaData:a}){try{let t=i().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(0,l.A)({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),l=a.X(0,[1251,9814],()=>t(47122));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json index 14c7bdb..552dc84 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 d25993b..a0ad3d1 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},70955:(e,s,r)=>{r.r(s),r.d(s,{config:()=>m,default:()=>p,routeModule:()=>f});var t={};r.r(t),r.d(t,{default:()=>_});var a=r(89947),i=r(2706),n=r(96762),o=r(96052),d=r(69842),c=r(98e3),l=r(48786),u=r(83919);async function _(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let r=await (0,d.A)(e,s,!0);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=e.body,a=t.paradigm;if(a?.match(/database/)){let e=await (0,c.A)({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(t),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=t[e])}),s.user_id=r.id,s.password=(0,u.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:t.password}),s.user_type="database",s.email=t.email_address,s.image="/images/user-preset.png",s.image_thumbnail="/images/user-preset-thumbnail.png",delete s.email_address,s})()});s.json({success:!!e?.insertId,msg:"New User User Added",newUserId:e.insertId})}else{if(r?.email===t.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await (0,l.A)("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[t.email_address,r.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await (0,c.A)({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:r.id,invited_user_email:t.email_address,database_access:t.database_access,priviledge:t.priviledge,db_tables_data:t.db_tables}});let a=await (0,o.A)({to:t.email_address,subject:`${r.first_name} ${r.last_name} Invited you`,text:`${r.first_name} ${r.last_name} has invited you to manage a datasquirel account`,html:` -

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

- Accept Invitation - `});s.json({success:!!a?.accepted,msg:"This is an invitation request"})}}let p=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),f=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:t})},69842:(e,s,r)=>{r.d(s,{A:()=>d});var t=r(48786),a=r(95969),i=r(29021),n=r.n(i),o=r(89159);async function d(e,s,r){try{let{keyCookieName:i,csrfCookieName:d}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!n().existsSync(`${u}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!r){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(s){return console.log(`userAuth Error for ${e.url}: ${s.message}`),null}}},89159:(e,s,r)=>{r.d(s,{A:()=>t});function t(e){let s=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=s;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=r;let o=s;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let d=s;return e?.userId&&(d+=`user_${e.userId}_`),i&&(d+=`${i}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:d+=a}}},96052:(e,s,r)=>{r.d(s,{A:()=>o});var t=r(29021),a=r.n(t),i=r(21572);let n=r.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:s,text:r,html:t,alias:i,senderName:o}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let l=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${o||"Datasquirel"}" <${c}>`,t.sender=c,i&&(t.replyTo=c),t.to=e,t.subject=s,t.text=r,t.html=l,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},95969:(e,s,r)=>{r.d(s,{A:()=>i});var t=r(55511),a=r(79428);function i({encryptedString:e,encryptionKey:s,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=s||process.env.DSQL_ENCRYPTION_PASSWORD,n=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(i,n,o),c=a.Buffer.alloc(16,0),l=(0,t.createDecipheriv)("aes-192-cbc",d,c);try{let s=l.update(e,"hex","utf8");return s+=l.final("utf8")}catch(s){return console.log("Error in decrypting =>",s.message),e}}},83919:(e,s,r)=>{r.d(s,{A:()=>a});var t=r(55511);function a({password:e,encryptionKey:s}){let r=s||process.env.DSQL_ENCRYPTION_PASSWORD;if(!r?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",r);return a.update(e),a.digest("base64")}}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[1251],()=>r(70955));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},70955:(e,a,s)=>{s.r(a),s.d(a,{config:()=>_,default:()=>p,routeModule:()=>v});var t={};s.r(t),s.d(t,{default:()=>m});var r=s(89947),i=s(2706),n=s(96762),d=s(96052),l=s(69842),u=s(98e3),o=s(48786),c=s(83919);async function m(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await (0,l.A)(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let t=e.body,r=t.paradigm;if(r?.match(/database/)){let e=await (0,u.A)({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(t),a={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(a[e]=t[e])}),a.user_id=s.id,a.password=(0,c.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:t.password}),a.user_type="database",a.email=t.email_address,a.image="/images/user-preset.png",a.image_thumbnail="/images/user-preset-thumbnail.png",delete a.email_address,a})()});a.json({success:!!e?.insertId,msg:"New User User Added",newUserId:e.insertId})}else{if(s?.email===t.email_address)return a.json({success:!1,msg:"Can't Invite yourself"});let e=await (0,o.A)("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[t.email_address,s.id]);if(e&&e[0])return a.json({success:!1,msg:"User Already Invited"});await (0,u.A)({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:s.id,invited_user_email:t.email_address,database_access:t.database_access,priviledge:t.priviledge,db_tables_data:t.db_tables}});let r=await (0,d.A)({to:t.email_address,subject:`${s.first_name} ${s.last_name} Invited you`,text:`${s.first_name} ${s.last_name} has invited you to manage a datasquirel account`,html:` +

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

+ Accept Invitation + `});a.json({success:!!r?.accepted,msg:"This is an invitation request"})}}let p=(0,n.M)(t,"default"),_=(0,n.M)(t,"config"),v=new r.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:t})},69842:(e,a,s)=>{s.d(a,{A:()=>i});var t=s(39908),r=s.n(t);async function i(e,a,s){let t=r()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},96052:(e,a,s)=>{s.d(a,{A:()=>d});var t=s(29021),r=s.n(t),i=s(21572);let n=s.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function d({to:e,subject:a,text:s,html:t,alias:i,senderName:d}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let u=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!r().existsSync("./email/index.html"))return;let o=r().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${d||"Datasquirel"}" <${u}>`,t.sender=u,i&&(t.replyTo=u),t.to=e,t.subject=a,t.text=s,t.html=o,l=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},83919:(e,a,s)=>{s.d(a,{A:()=>i});var t=s(55511),r=s(32443);function i({password:e,encryptionKey:a}){let{key:s}=(0,r.A)({encryptionKey:a});if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let i=(0,t.createHmac)("sha512",s);return i.update(e),i.digest("base64")}}};var a=require("../../webpack-api-runtime.js");a.C(e);var s=e=>a(a.s=e),t=a.X(0,[1251],()=>s(70955));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json index ff3a4b1..cbe6830 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 0a1aa3a..2e7b5db 100644 --- a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},32551:(e,a,t)=>{t.r(a),t.d(a,{config:()=>A,default:()=>p,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>m});var r=t(89947),l=t(2706),d=t(96762),i=t(29021),u=t.n(i),o=t(48786),n=t(67619),_=t(69842),f=t(98e3),c=t(76856);async function m(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await (0,_.A)(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,dbSlug:l,dbId:d}=e.body,i=t(8693),m=t(95610),p=[...m.slice(0,2),...i.fields,...m.slice(2)];i.fields=[...p];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,_=JSON.parse(u().readFileSync(t,"utf8")),m=_.filter(e=>e.dbFullName===r)[0],p=m.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(p?.[0]&&"number"==typeof e?m.tables[e]=i:m.tables.push(i),m.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=m.tables;let e=await (0,o.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[s.id,a.dbFullName]);await (0,f.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:e[0].id,db_slug:e[0].db_slug,table_name:"Users",table_slug:"users"}})}catch(e){(0,n.A)({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:s})}}u().writeFileSync(`${t}`,JSON.stringify(_),"utf8"),await (0,f.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:s.id,db_id:d,db_slug:l,table_name:"Users",table_slug:"users"}});let A=r.replace(/[^a-z\_0-9]/g,"");await (0,c.A)({userId:s.id,targetDatabase:A}),a.json({success:!0})}catch(e){(0,n.A)({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:s}),a.json({success:!1,msg:"Database Files could not be written!"})}}let p=(0,d.M)(s,"default"),A=(0,d.M)(s,"config"),b=new r.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,a,t)=>{t.d(a,{A:()=>u});var s=t(48786),r=t(95969),l=t(29021),d=t.n(l),i=t(89159);async function u(e,a,t){try{let{keyCookieName:l,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[l]?.match(/./))throw Error("Request Cookies not Found!");let o=(0,r.A)({encryptedString:e.cookies[l]});if(!o)throw Error("Couldn't decrypt auth cookie!");let n=JSON.parse(o);if(!n.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(n.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!d().existsSync(`${_}/${n.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==n.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${n.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}if(n?.date&&Date.now()-n.date>6048e5)throw Error("Key expired!");return n}catch(a){return console.log(`userAuth Error for ${e.url}: ${a.message}`),null}}},89159:(e,a,t)=>{t.d(a,{A:()=>s});function s(e){let a=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",r=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",l=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),d=a;e?.userId&&(d+=`user_${e.userId}_`),l&&(d+=`${l}_`),d+=t;let i=a;e?.userId&&(i+=`user_${e.userId}_`),l&&(i+=`${l}_`),i+=s;let u=a;return e?.userId&&(u+=`user_${e.userId}_`),l&&(u+=`${l}_`),{keyCookieName:d,csrfCookieName:i,oneTimeCodeName:u+=r}}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>t(32551));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},32551:(e,a,t)=>{t.r(a),t.d(a,{config:()=>c,default:()=>A,routeModule:()=>N});var l={};t.r(l),t.d(l,{default:()=>b});var s=t(89947),d=t(2706),r=t(96762),i=t(29021),u=t.n(i),n=t(48786),o=t(67619),m=t(69842),p=t(98e3),f=t(76856);async function b(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let l=await (0,m.A)(e,a,!0);if(!l)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:d,dbId:r}=e.body,i=t(8693),b=t(95610),A=[...b.slice(0,2),...i.fields,...b.slice(2)];i.fields=[...A];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/main.json`,m=JSON.parse(u().readFileSync(t,"utf8")),b=m.filter(e=>e.dbFullName===s)[0],A=b.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(A?.[0]&&"number"==typeof e?b.tables[e]=i:b.tables.push(i),b.childrenDatabases)for(let e=0;ee.dbFullName===a.dbFullName)[0].tables=b.tables;let e=await (0,n.A)("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[l.id,a.dbFullName]);await (0,p.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:l.id,db_id:e[0].id,db_slug:e[0].db_slug,table_name:"Users",table_slug:"users"}})}catch(e){(0,o.A)({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:l})}}u().writeFileSync(`${t}`,JSON.stringify(m),"utf8"),await (0,p.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:l.id,db_id:r,db_slug:d,table_name:"Users",table_slug:"users"}});let c=s.replace(/[^a-z\_0-9]/g,"");await (0,f.A)({userId:l.id,targetDatabase:c}),a.json({success:!0})}catch(e){(0,o.A)({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:l}),a.json({success:!1,msg:"Database Files could not be written!"})}}let A=(0,r.M)(l,"default"),c=(0,r.M)(l,"config"),N=new s.PagesAPIRouteModule({definition:{kind:d.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:l})},69842:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(39908),s=t.n(l);async function d(e,a,t){let l=s()({req:e,level:t?"deep":void 0});return console.log(l),l.payload}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),l=a.X(0,[1251,9814],()=>t(32551));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json index d3a0b88..8c651a5 100644 --- a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package-shared/data/presets/users.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package-shared/data/presets/users.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 614236a..5ec8421 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9171,e.ids=[9171],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},99323:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>E,routeModule:()=>A});var n={};s.r(n),s.d(n,{default:()=>S});var o=s(89947),t=s(2706),c=s(96762),a=s(29021),i=s.n(a),u=s(21820),l=s.n(u),_=s(79646),d=s(48786),p=s(87369);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await (0,p.A)(e);if(!s?.logged_in_status)return r.json({success:!1,log:"Unauthorized"});try{let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;i().existsSync(n)||i().mkdirSync(n);let o=Date.now().toString();i().mkdirSync(`${n}/${o}`);let t=await (0,d.A)("SHOW databases LIKE ?",[`datasquirel_user_${s}_%`]);for(let e=0;e ${i}`;console.log(`addUserBackup.ts exe => ${u}`),(0,_.spawnSync)(c,["-u",process.env.DSQL_DB_USERNAME||"","-h",process.env.DSQL_DB_HOST||"",`-p${process.env.DSQL_DB_PASSWORD}`,s,">",i],a)}i().copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,`${n}/${o}/main.json`),r.json({success:!0})}catch(e){console.log(e.message),r.json({success:!1})}}let E=(0,c.M)(n,"default"),f=(0,c.M)(n,"config"),A=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:n})},87369:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(95969),o=s(89159);async function t(e){let{keyCookieName:r,csrfCookieName:s}=(0,o.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=(0,n.A)({encryptedString:e.cookies[t]});if(!c)return console.log("No user payload found"),null;let a=JSON.parse(c);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},89159:(e,r,s)=>{s.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),c=r;e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),c+=s;let a=r;e?.userId&&(a+=`user_${e.userId}_`),t&&(a+=`${t}_`),a+=n;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),{keyCookieName:c,csrfCookieName:a,oneTimeCodeName:i+=o}}},95969:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(55511),o=s(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,c=s||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!c?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,n.scryptSync)(t,c,a),u=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",i,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=99323);module.exports=s})(); \ No newline at end of file +"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")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},99323:(e,r,s)=>{s.r(r),s.d(r,{config:()=>E,default:()=>D,routeModule:()=>A});var o={};s.r(o),s.d(o,{default:()=>d});var n=s(89947),t=s(2706),c=s(96762),_=s(29021),a=s.n(_),i=s(21820),u=s.n(i),l=s(79646),S=s(48786),p=s(87369);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await (0,p.A)(e);if(!s?.logged_in_status)return r.json({success:!1,log:"Unauthorized"});try{let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;a().existsSync(o)||a().mkdirSync(o);let n=Date.now().toString();a().mkdirSync(`${o}/${n}`);let t=await (0,S.A)("SHOW databases LIKE ?",[`datasquirel_user_${s}_%`]);for(let e=0;e ${a}`;console.log(`addUserBackup.ts exe => ${i}`),(0,l.spawnSync)(c,["-u",process.env.DSQL_DB_USERNAME||"","-h",process.env.DSQL_DB_HOST||"",`-p${process.env.DSQL_DB_PASSWORD}`,s,">",a],_)}a().copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,`${o}/${n}/main.json`),r.json({success:!0})}catch(e){console.log(e.message),r.json({success:!1})}}let D=(0,c.M)(o,"default"),E=(0,c.M)(o,"config"),A=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:o})},87369:(e,r,s)=>{s.d(r,{A:()=>t});var o=s(95969),n=s(89159);async function t(e){let{keyCookieName:r,csrfCookieName:s}=(0,n.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let c=(0,o.A)({encryptedString:e.cookies[t]});if(!c)return console.log("No user payload found"),null;let _=JSON.parse(c);return _.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):_.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):_}},89159:(e,r,s)=>{s.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),c=r;e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),c+=s;let _=r;e?.userId&&(_+=`user_${e.userId}_`),t&&(_+=`${t}_`),_+=o;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),t&&(a+=`${t}_`),{keyCookieName:c,csrfCookieName:_,oneTimeCodeName:a+=n}}},95969:(e,r,s)=>{s.d(r,{A:()=>c});var o=s(55511),n=s(79428),t=s(32443);function c({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:c,salt:_,keyLen:a,algorithm:i,bufferAllocSize:u}=(0,t.A)({encryptionKey:r});if(!c?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!_?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,o.scryptSync)(c,_,a),S=n.Buffer.alloc(u,0),p=(0,o.createDecipheriv)(i,l,S);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});var o=s(7447);async function n(...e){let r=(0,o.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>t});var o=s(9973),n=s.n(o);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,s)=>{s.d(r,{A:()=>o});function o(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=99323);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json index d9291c4..1f2a6ea 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 920efa8..5d23284 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")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},91963:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>l});var s=n(89947),t=n(2706),u=n(96762),i=n(29021),c=n.n(i),a=n(87369);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,a.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});c().writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let d=(0,u.M)(o,"default"),_=(0,u.M)(o,"config"),p=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(55511),s=n(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(t,u,i),a=s.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",c,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=91963);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4785,e.ids=[4785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},91963:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>_,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>a});var t=n(89947),s=n(2706),u=n(96762),i=n(29021),c=n.n(i),l=n(87369);async function a(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,l.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});c().writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let _=(0,u.M)(o,"default"),d=(0,u.M)(o,"config"),p=new t.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>s});var o=n(95969),t=n(89159);async function s(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=(0,o.A)({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}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>u});var o=n(55511),t=n(79428),s=n(32443);function u({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:u,salt:i,keyLen:c,algorithm:l,bufferAllocSize:a}=(0,s.A)({encryptionKey:r});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 _=(0,o.scryptSync)(u,i,c),d=t.Buffer.alloc(a,0),p=(0,o.createDecipheriv)(l,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=91963);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 74c0a0c..5865f86 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js @@ -13,4 +13,4 @@ Date: ${a.toDateString()} -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,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 i=(0,n.scryptSync)(o,a,c),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",i,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57856);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428),o=t(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:c,keyLen:i,algorithm:l,bufferAllocSize:u}=(0,o.A)({encryptionKey:r});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 d=(0,n.scryptSync)(a,c,i),p=s.Buffer.alloc(u,0),_=(0,n.createDecipheriv)(l,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57856);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 c4859c4..64eb42d 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={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")},40806:(e,t,a)=>{a.r(t),a.d(t,{config:()=>h,default:()=>I,routeModule:()=>N});var r={};a.r(r),a.d(r,{default:()=>A});var s=a(89947),n=a(2706),l=a(96762),o=a(72583),d=a.n(o),i=a(48786),c=a(98e3),u=a(92652);async function p({body:e,update:t}){let a=e.title.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9\-]/g,""),r=await async function(){if(t)return null;try{return(await (0,i.A)("SELECT page_order FROM docs_pages ORDER BY page_order DESC LIMIT 1"))[0].page_order}catch(e){return null}}(),s=await (0,c.A)({data:{title:e.title,slug:a,description:d()(e.description,u.A),content:d()(e.content,u.A),text_content:e.text_content,level:e.level,page_order:t?e.page_order:parseInt(r)+1,parent_id:e?.parent_id},tableName:"docs_pages",update:t,duplicateColumnName:"id",duplicateColumnValue:e.id});return s?.insertId?s:t&&s.affectedRows?s:null}async function _({body:e}){return await (0,i.A)("DELETE FROM docs_pages WHERE id=?",[e.id])||null}var E=a(29021),g=a.n(E);async function f(){let e="./components/su/components/RichText/html-presets",t=[];return g().existsSync(e)&&g().readdirSync(e).forEach(a=>{if(a?.endsWith(".html")){let r={};r[a.replace(/\.html$/,"")]=g().readFileSync(`${e}/${a}`,"utf-8"),t.push({...r})}}),t}async function S({body:e}){let t=await (0,i.A)("SELECT id, title, slug FROM docs_pages WHERE parent_id = ?",[e.pageId]);return t[0]?t:null}async function y({body:e}){return e?.currentPageId?await (0,i.A)("SELECT * FROM docs_pages WHERE level = ? AND id != ?",[e.pagesLevel,e.currentPageId]):await (0,i.A)("SELECT * FROM docs_pages WHERE level = ?",[e.pagesLevel])}async function m({body:e}){let{pull:t}=e,a="./jsonData/docs.json";if(t)try{let e=JSON.parse(g().readFileSync(a,"utf-8"));for(let t=0;t{a.d(t,{A:()=>n});var r=a(95969),s=a(89159);async function n(e){let{keyCookieName:t,csrfCookieName:a}=(0,s.A)(),n=`${t}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let l=(0,r.A)({encryptedString:e.cookies[n]});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}},89159:(e,t,a)=>{a.d(t,{A:()=>r});function r(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=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=t;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=r;let d=t;return e?.userId&&(d+=`user_${e.userId}_`),n&&(d+=`${n}_`),{keyCookieName:l,csrfCookieName:o,oneTimeCodeName:d+=s}}},95969:(e,t,a)=>{a.d(t,{A:()=>n});var r=a(55511),s=a(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:a}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,l=a||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=(0,r.scryptSync)(n,l,o),i=s.Buffer.alloc(16,0),c=(0,r.createDecipheriv)("aes-192-cbc",d,i);try{let t=c.update(e,"hex","utf8");return t+=c.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,[1251],()=>a(40806));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2927,e.ids=[2927],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")},40806:(e,t,a)=>{a.r(t),a.d(t,{config:()=>w,default:()=>h,routeModule:()=>I});var r={};a.r(r),a.d(r,{default:()=>A});var s=a(89947),n=a(2706),l=a(96762),d=a(72583),i=a.n(d),o=a(48786),c=a(98e3),u=a(92652);async function p({body:e,update:t}){let a=e.title.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9\-]/g,""),r=await async function(){if(t)return null;try{return(await (0,o.A)("SELECT page_order FROM docs_pages ORDER BY page_order DESC LIMIT 1"))[0].page_order}catch(e){return null}}(),s=await (0,c.A)({data:{title:e.title,slug:a,description:i()(e.description,u.A),content:i()(e.content,u.A),text_content:e.text_content,level:e.level,page_order:t?e.page_order:parseInt(r)+1,parent_id:e?.parent_id},tableName:"docs_pages",update:t,duplicateColumnName:"id",duplicateColumnValue:e.id});return s?.insertId?s:t&&s.affectedRows?s:null}async function _({body:e}){return await (0,o.A)("DELETE FROM docs_pages WHERE id=?",[e.id])||null}var g=a(29021),E=a.n(g);async function f(){let e="./components/su/components/RichText/html-presets",t=[];return E().existsSync(e)&&E().readdirSync(e).forEach(a=>{if(a?.endsWith(".html")){let r={};r[a.replace(/\.html$/,"")]=E().readFileSync(`${e}/${a}`,"utf-8"),t.push({...r})}}),t}async function y({body:e}){let t=await (0,o.A)("SELECT id, title, slug FROM docs_pages WHERE parent_id = ?",[e.pageId]);return t[0]?t:null}async function m({body:e}){return e?.currentPageId?await (0,o.A)("SELECT * FROM docs_pages WHERE level = ? AND id != ?",[e.pagesLevel,e.currentPageId]):await (0,o.A)("SELECT * FROM docs_pages WHERE level = ?",[e.pagesLevel])}async function S({body:e}){let{pull:t}=e,a="./jsonData/docs.json";if(t)try{let e=JSON.parse(E().readFileSync(a,"utf-8"));for(let t=0;t{a.d(t,{A:()=>n});var r=a(95969),s=a(89159);async function n(e){let{keyCookieName:t,csrfCookieName:a}=(0,s.A)(),n=`${t}_su`;if(!e.cookies?.[n])return console.log("No auth key cookie found"),null;let l=(0,r.A)({encryptedString:e.cookies[n]});if(!l)return console.log("No user payload found"),null;let d=JSON.parse(l);return d.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):d.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):d}},89159:(e,t,a)=>{a.d(t,{A:()=>r});function r(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=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=t;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=a;let d=t;e?.userId&&(d+=`user_${e.userId}_`),n&&(d+=`${n}_`),d+=r;let i=t;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:l,csrfCookieName:d,oneTimeCodeName:i+=s}}},95969:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(55511),s=a(79428),n=a(32443);function l({encryptedString:e,encryptionKey:t,encryptionSalt:a}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:l,salt:d,keyLen:i,algorithm:o,bufferAllocSize:c}=(0,n.A)({encryptionKey:t});if(!l?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!d?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,r.scryptSync)(l,d,i),p=s.Buffer.alloc(c,0),_=(0,r.createDecipheriv)(o,u,p);try{let t=_.update(e,"hex","utf8");return t+=_.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,[1251],()=>a(40806));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json index ab1eaf4..357ea88 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ 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 c53810c..fdb08a5 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=5905,e.ids=[5905],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10291:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>i});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),c=t(87369);async function i(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,c.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:n}=e.query;try{let e=await (0,l.A)({database:"string"==typeof n?n:"",queryString:`SHOW TABLES FROM ${n}`});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,tables:e.map(e=>Object.values(e)[0])})}catch(e){console.log(e.message),r.json({success:!1})}}let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969),s=t(89159);async function a(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),a=`${r}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let o=(0,n.A)({encryptedString:e.cookies[a]});if(!o)return console.log("No user payload found"),null;let l=JSON.parse(o);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),l+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5905,e.ids=[5905],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10291:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>i,routeModule:()=>d});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),a=t(96762),l=t(30944),c=t(87369);async function u(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,c.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:s}=e.query;try{let e=await (0,l.A)({database:"string"==typeof s?s:"",queryString:`SHOW TABLES FROM ${s}`});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,tables:e.map(e=>Object.values(e)[0])})}catch(e){console.log(e.message),r.json({success:!1})}}let i=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),d=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:s})},87369:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(95969),n=t(89159);async function o(e){let{keyCookieName:r,csrfCookieName:t}=(0,n.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let a=(0,s.A)({encryptedString:e.cookies[o]});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}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),l+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:l,oneTimeCodeName:c+=n}}},43775:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function o({unparsedResults:e,tableSchema:r}){let t=[];try{for(let o=0;o",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,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 s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(n+=` -IP: ${l}`),n+=` -Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` +Date: ${a.toDateString()} +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!i||!!t?.match(/^datasquirel$/),p=i?l.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,l),i=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,i);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10291);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),n=t(67619),o=t(7447),a=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c,debug:u}){let i=(0,o.A)({fa:!0});c&&(i=(0,o.A)({local:!0})),t?.match(/^datasquirel$/)&&(i=(0,o.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let _=await (0,a.A)(i,e,r);if(u&&console.log("varDatabaseDbHandler:results:",_),_&&l)try{return await (0,s.A)({unparsedResults:_,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(_)return _;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428),o=t(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:l,keyLen:c,algorithm:u,bufferAllocSize:i}=(0,o.A)({encryptionKey:r});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 _=(0,s.scryptSync)(a,l,c),d=n.Buffer.alloc(i,0),p=(0,s.createDecipheriv)(u,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;ss})},7447:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),n=t.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10291);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json index 9f28a54..1f2a6ea 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 445092a..89fddac 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=525,e.ids=[525],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},52159:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),c=n(29021),a=n.n(c);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;a().existsSync(t)||a().mkdirSync(t);let o=a().readdirSync(t);r.json({success:!0,backups:o})}let d=(0,u.M)(s,"default"),_=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,u,i),a=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",c,a);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=52159);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=525,e.ids=[525],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},52159:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>_,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),c=n(29021),a=n.n(c);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;a().existsSync(t)||a().mkdirSync(t);let o=a().readdirSync(t);r.json({success:!0,backups:o})}let _=(0,u.M)(s,"default"),d=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>u});var s=n(55511),t=n(79428),o=n(32443);function u({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:u,salt:i,keyLen:c,algorithm:a,bufferAllocSize:l}=(0,o.A)({encryptionKey:r});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 _=(0,s.scryptSync)(u,i,c),d=t.Buffer.alloc(l,0),p=(0,s.createDecipheriv)(a,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=52159);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 67500a3..928850f 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9664,e.ids=[9664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},75461:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>_,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),s=t(2706),a=t(96762),i=t(48786),u=t(87369),l=t(29021),c=t.n(l);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,u.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n=e.body.user,o=n?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}`,a=[];!function e({originArray:r,rootPath:t}){let n=c().readdirSync(t);for(let o=0;oObject.values(e)[0])})}let _=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969),o=t(89159);async function s(e){let{keyCookieName:r,csrfCookieName:t}=(0,o.A)(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let a=(0,n.A)({encryptedString:e.cookies[s]});if(!a)return console.log("No user payload found"),null;let i=JSON.parse(a);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,a,i),l=o.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=75461);module.exports=t})(); \ No newline at end of file +"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")},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}}})},75461:(e,r,s)=>{s.r(r),s.d(r,{config:()=>d,default:()=>p,routeModule:()=>S});var o={};s.r(o),s.d(o,{default:()=>l});var n=s(89947),t=s(2706),a=s(96762),_=s(48786),c=s(87369),i=s(29021),u=s.n(i);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await (0,c.A)(e);if(!s?.logged_in_status)return r.json({success:!1,log:"No Logs"});let o=e.body.user,n=o?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}`,a=[];!function e({originArray:r,rootPath:s}){let o=u().readdirSync(s);for(let n=0;nObject.values(e)[0])})}let p=(0,a.M)(o,"default"),d=(0,a.M)(o,"config"),S=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:o})},87369:(e,r,s)=>{s.d(r,{A:()=>t});var o=s(95969),n=s(89159);async function t(e){let{keyCookieName:r,csrfCookieName:s}=(0,n.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let a=(0,o.A)({encryptedString:e.cookies[t]});if(!a)return console.log("No user payload found"),null;let _=JSON.parse(a);return _.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):_.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):_}},89159:(e,r,s)=>{s.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),t&&(a+=`${t}_`),a+=s;let _=r;e?.userId&&(_+=`user_${e.userId}_`),t&&(_+=`${t}_`),_+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:a,csrfCookieName:_,oneTimeCodeName:c+=n}}},95969:(e,r,s)=>{s.d(r,{A:()=>a});var o=s(55511),n=s(79428),t=s(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:_,keyLen:c,algorithm:i,bufferAllocSize:u}=(0,t.A)({encryptionKey:r});if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!_?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,o.scryptSync)(a,_,c),p=n.Buffer.alloc(u,0),d=(0,o.createDecipheriv)(i,l,p);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});var o=s(7447);async function n(...e){let r=(0,o.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>t});var o=s(9973),n=s.n(o);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,s)=>{s.d(r,{A:()=>o});function o(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=75461);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json index d9291c4..1f2a6ea 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 3ffca3c..62dfd59 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2266,e.ids=[2266],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},90137:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),a=n(29021),c=n.n(a);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s="./.tmp/backups";c().existsSync(s)||c().mkdirSync(s);let t=c().readdirSync(s);r.json({success:!0,backups:t})}let d=(0,u.M)(s,"default"),_=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=90137);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2266,e.ids=[2266],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},90137:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>_,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),c=n(29021),a=n.n(c);async function l(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let s="./.tmp/backups";a().existsSync(s)||a().mkdirSync(s);let t=a().readdirSync(s);r.json({success:!0,backups:t})}let _=(0,u.M)(s,"default"),d=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>u});var s=n(55511),t=n(79428),o=n(32443);function u({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:u,salt:i,keyLen:c,algorithm:a,bufferAllocSize:l}=(0,o.A)({encryptionKey:r});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 _=(0,s.scryptSync)(u,i,c),d=t.Buffer.alloc(l,0),p=(0,s.createDecipheriv)(a,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=90137);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 eaba575..d55d844 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5120,e.ids=[5120],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},66604:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>a});var s=n(89947),t=n(2706),u=n(96762),i=n(87369),c=n(29021),l=n.n(c);async function a(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!l().existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let o=l().readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:o})}let d=(0,u.M)(o,"default"),_=(0,u.M)(o,"config"),p=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(55511),s=n(79428);function t({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let t=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!t?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(t,u,i),l=s.Buffer.alloc(16,0),a=(0,o.createDecipheriv)("aes-192-cbc",c,l);try{let r=a.update(e,"hex","utf8");return r+=a.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=66604);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5120,e.ids=[5120],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},66604:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>_,routeModule:()=>p});var o={};n.r(o),n.d(o,{default:()=>a});var s=n(89947),t=n(2706),u=n(96762),i=n(87369),c=n(29021),l=n.n(c);async function a(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!l().existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let o=l().readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:o})}let _=(0,u.M)(o,"default"),d=(0,u.M)(o,"config"),p=new s.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>t});var o=n(95969),s=n(89159);async function t(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),t=`${r}_su`;if(!e.cookies?.[t])return console.log("No auth key cookie found"),null;let u=(0,o.A)({encryptedString:e.cookies[t]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",t=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),t&&(u+=`${t}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),t&&(i+=`${t}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),t&&(c+=`${t}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>u});var o=n(55511),s=n(79428),t=n(32443);function u({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:u,salt:i,keyLen:c,algorithm:l,bufferAllocSize:a}=(0,t.A)({encryptionKey:r});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 _=(0,o.scryptSync)(u,i,c),d=s.Buffer.alloc(a,0),p=(0,o.createDecipheriv)(l,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=66604);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 d1408da..0f73a64 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7375,e.ids=[7375],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},53865:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var s={};n.r(s),n.d(s,{default:()=>l});var t=n(89947),o=n(2706),u=n(96762),i=n(87369),a=n(29021),c=n.n(a);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:s,path:t}=e.body;if(e.body.user,!t?.match(/^\.\/jsonData\/dbSchemas\/users/))return r.json({success:!1,msg:"Invalid Path"});let o=t.replace(/\//g,"\\\\"),u=c().readFileSync(o,"utf-8");r.json({success:!0,data:u})}let d=(0,u.M)(s,"default"),_=(0,u.M)(s,"config"),p=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=53865);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7375,e.ids=[7375],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},53865:(e,r,n)=>{n.r(r),n.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var t={};n.r(t),n.d(t,{default:()=>l});var s=n(89947),o=n(2706),u=n(96762),i=n(87369),a=n(29021),c=n.n(a);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,i.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{type:t,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=c().readFileSync(o,"utf-8");r.json({success:!0,data:u})}let d=(0,u.M)(t,"default"),_=(0,u.M)(t,"config"),p=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:t})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(95969),s=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,s.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,t.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=s}}},95969:(e,r,n)=>{n.d(r,{A:()=>u});var t=n(55511),s=n(79428),o=n(32443);function u({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:u,salt:i,keyLen:a,algorithm:c,bufferAllocSize:l}=(0,o.A)({encryptionKey:r});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 d=(0,t.scryptSync)(u,i,a),_=s.Buffer.alloc(l,0),p=(0,t.createDecipheriv)(c,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>t});function t(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=53865);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 2251fb1..8dc2410 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,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},29756:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>_,routeModule:()=>l});var t={};n.r(t),n.d(t,{default:()=>c});var s=n(89947),o=n(2706),i=n(96762),u=n(89159),a=n(68829);async function c(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{email:n,password:t,authKey:s}=e.body;if(t!==process.env.DSQL_USER_KEY||s!==process.env.DSQL_SPECIAL_KEY)return r.json({success:!1});let o=(0,a.A)({data:JSON.stringify({email:n,password:process.env.DSQL_USER_KEY,authKey:process.env.DSQL_SPECIAL_KEY,logged_in_status:!0,date:Date.now()})}),{keyCookieName:i,csrfCookieName:c}=(0,u.A)();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let _=(0,i.M)(t,"default"),d=(0,i.M)(t,"config"),l=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:t})},89159:(e,r,n)=>{n.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:a+=s}}},68829:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(55511),s=n(79428);function o({data:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=n||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let a=(0,t.scryptSync)(o,i,u),c=s.Buffer.alloc(16,0),_=(0,t.createCipheriv)("aes-192-cbc",a,c);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=29756);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5467,e.ids=[5467],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},29756:(e,r,n)=>{n.r(r),n.d(r,{config:()=>l,default:()=>_,routeModule:()=>d});var t={};n.r(t),n.d(t,{default:()=>c});var s=n(89947),o=n(2706),i=n(96762),u=n(89159),a=n(68829);async function c(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{email:n,password:t,authKey:s}=e.body;if(t!==process.env.DSQL_USER_KEY||s!==process.env.DSQL_SPECIAL_KEY)return r.json({success:!1});let o=(0,a.A)({data:JSON.stringify({email:n,password:process.env.DSQL_USER_KEY,authKey:process.env.DSQL_SPECIAL_KEY,logged_in_status:!0,date:Date.now()})}),{keyCookieName:i,csrfCookieName:c}=(0,u.A)();r.setHeader("Set-Cookie",[`${i}_su=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let _=(0,i.M)(t,"default"),l=(0,i.M)(t,"config"),d=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:t})},89159:(e,r,n)=>{n.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=t;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:a+=s}}},68829:(e,r,n)=>{n.d(r,{A:()=>i});var t=n(55511),s=n(79428),o=n(32443);function i({data:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:i,salt:u,keyLen:a,algorithm:c,bufferAllocSize:_}=(0,o.A)({encryptionKey:r});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 l=(0,t.scryptSync)(i,u,a),d=s.Buffer.alloc(_,0),p=(0,t.createCipheriv)(c,l,d);try{let r=p.update(e,"utf8","hex");return r+=p.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>t});function t(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=29756);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 dcc52da..4fe00c5 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=6799,e.ids=[6799],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},74336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>i});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),c=t(67619),u=t(87369);async function i(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,u.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:n,query:s}=e.body;e.body.user;try{let e=await (0,l.A)({database:n,queryString:s});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),(0,c.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}let d=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:n})},87369:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969),s=t(89159);async function a(e){let{keyCookieName:r,csrfCookieName:t}=(0,s.A)(),a=`${r}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let o=(0,n.A)({encryptedString:e.cookies[a]});if(!o)return console.log("No user payload found"),null;let l=JSON.parse(o);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),l+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6799,e.ids=[6799],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},74336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>_,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>i});var n=t(89947),o=t(2706),a=t(96762),l=t(30944),u=t(67619),c=t(87369);async function i(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await (0,c.A)(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:s,query:n}=e.body;e.body.user;try{let e=await (0,l.A)({database:s,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),(0,u.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}let _=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:s})},87369:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(95969),n=t(89159);async function o(e){let{keyCookieName:r,csrfCookieName:t}=(0,n.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let a=(0,s.A)({encryptedString:e.cookies[o]});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}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),l+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:a,csrfCookieName:l,oneTimeCodeName:u+=n}}},43775:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function o({unparsedResults:e,tableSchema:r}){let t=[];try{for(let o=0;o",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,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 s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(n+=` -IP: ${l}`),n+=` -Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` +Date: ${a.toDateString()} +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let u=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:u}){let i;let d=!!u||!!t?.match(/^datasquirel$/),p=u?l.A:d?a.A:o.A;try{i=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&c)try{let e=i;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,l),u=s.Buffer.alloc(16,0),i=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=i.update(e,"hex","utf8");return r+=i.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function l(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=74336);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),n=t(67619),o=t(7447),a=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u,debug:c}){let i=(0,o.A)({fa:!0});u&&(i=(0,o.A)({local:!0})),t?.match(/^datasquirel$/)&&(i=(0,o.A)()),c&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let _=await (0,a.A)(i,e,r);if(c&&console.log("varDatabaseDbHandler:results:",_),_&&l)try{return await (0,s.A)({unparsedResults:_,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(_)return _;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428),o=t(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:l,keyLen:u,algorithm:c,bufferAllocSize:i}=(0,o.A)({encryptionKey:r});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 _=(0,s.scryptSync)(a,l,u),d=n.Buffer.alloc(i,0),p=(0,s.createDecipheriv)(c,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;ss})},7447:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),n=t.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=74336);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json index 9f28a54..1f2a6ea 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 f6a1a66..9ab0df1 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")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},86181:(e,r,n)=>{n.r(r),n.d(r,{config:()=>v,default:()=>f,routeModule:()=>A});var s={};n.r(s),n.d(s,{default:()=>E});var t=n(89947),o=n(2706),u=n(96762),i=n(29021),a=n.n(i),c=n(33873),l=n.n(c),d=n(87369),p=n(27825),_=n.n(p);async function E(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,d.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let n=l().join(process.cwd(),".env"),s=a().readFileSync(n,"utf-8"),t=RegExp(`${_().escapeRegExp(e.body.key)}=.*`);s.match(t);let o=s.replace(t,`${e.body.key}=${e.body.value}`);a().writeFileSync(n,o,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let f=(0,u.M)(s,"default"),v=(0,u.M)(s,"config"),A=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:s})},87369:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(95969),t=n(89159);async function o(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),o=`${r}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)return console.log("No user payload found"),null;let i=JSON.parse(u);return i.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):i.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):i}},89159:(e,r,n)=>{n.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:a+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(55511),t=n(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,u=n||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!u?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,s.scryptSync)(o,u,i),c=t.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",a,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=86181);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5989,e.ids=[5989],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,n){return n in r?r[n]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,n)):"function"==typeof r&&"default"===n?r:void 0}}})},86181:(e,r,n)=>{n.r(r),n.d(r,{config:()=>A,default:()=>f,routeModule:()=>S});var o={};n.r(o),n.d(o,{default:()=>E});var t=n(89947),s=n(2706),u=n(96762),i=n(29021),c=n.n(i),a=n(33873),l=n.n(a),d=n(87369),_=n(27825),p=n.n(_);async function E(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let n=await (0,d.A)(e);if(!n?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let n=l().join(process.cwd(),".env"),o=c().readFileSync(n,"utf-8"),t=RegExp(`${p().escapeRegExp(e.body.key)}=.*`);o.match(t);let s=o.replace(t,`${e.body.key}=${e.body.value}`);c().writeFileSync(n,s,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let f=(0,u.M)(o,"default"),A=(0,u.M)(o,"config"),S=new t.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:o})},87369:(e,r,n)=>{n.d(r,{A:()=>s});var o=n(95969),t=n(89159);async function s(e){let{keyCookieName:r,csrfCookieName:n}=(0,t.A)(),s=`${r}_su`;if(!e.cookies?.[s])return console.log("No auth key cookie found"),null;let u=(0,o.A)({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}},89159:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",n=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),u=r;e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),u+=n;let i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:u,csrfCookieName:i,oneTimeCodeName:c+=t}}},95969:(e,r,n)=>{n.d(r,{A:()=>u});var o=n(55511),t=n(79428),s=n(32443);function u({encryptedString:e,encryptionKey:r,encryptionSalt:n}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:u,salt:i,keyLen:c,algorithm:a,bufferAllocSize:l}=(0,s.A)({encryptionKey:r});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 d=(0,o.scryptSync)(u,i,c),_=t.Buffer.alloc(l,0),p=(0,o.createDecipheriv)(a,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,n)=>{n.d(r,{A:()=>o});function o(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=86181);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json index 7f09a3c..a5ea216 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../.env","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../.env","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 08f0192..c15db18 100644 --- a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7963,e.ids=[7963],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},94649:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),c=t(69842),u=t(83919);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,password:s,dbId:n}=e.body;try{let e=!!String(n).match(/^\d+$/),o=!!String(t).match(/^\d+$/),i=!!String(s).match(/ /);if(!e||!o)throw Error("Invalud Parameters!");if(i)throw Error("Invalid Password!");let c=await (0,a.A)("SELECT * FROM user_databases WHERE id = ?",[n]),d=c?.[0]?.db_full_name,l=(0,u.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s});await (0,a.A)(`UPDATE \`${d}\`.\`users\` SET password = ? WHERE id = ?`,[l,t]),r.json({success:!0,msg:"DB user Password Changed!"})}catch(e){r.json({success:!1,msg:e.message})}}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,n.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,a),u=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511);function n({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,s.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94649);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7963,e.ids=[7963],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},55511:e=>{e.exports=require("crypto")},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}}})},94649:(e,r,s)=>{s.r(r),s.d(r,{config:()=>d,default:()=>S,routeModule:()=>p});var n={};s.r(n),s.d(n,{default:()=>u});var o=s(89947),t=s(2706),a=s(96762),i=s(48786),c=s(69842),_=s(83919);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:s,password:n,dbId:o}=e.body;try{let e=!!String(o).match(/^\d+$/),t=!!String(s).match(/^\d+$/),a=!!String(n).match(/ /);if(!e||!t)throw Error("Invalud Parameters!");if(a)throw Error("Invalid Password!");let c=await (0,i.A)("SELECT * FROM user_databases WHERE id = ?",[o]),u=c?.[0]?.db_full_name,S=(0,_.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:n});await (0,i.A)(`UPDATE \`${u}\`.\`users\` SET password = ? WHERE id = ?`,[S,s]),r.json({success:!0,msg:"DB user Password Changed!"})}catch(e){r.json({success:!1,msg:e.message})}}let S=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),p=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:n})},69842:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(39908),o=s.n(n);async function t(e,r,s){let n=o()({req:e,level:s?"deep":void 0});return console.log(n),n.payload}},83919:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(55511),o=s(32443);function t({password:e,encryptionKey:r}){let{key:s}=(0,o.A)({encryptionKey:r});if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let t=(0,n.createHmac)("sha512",s);return t.update(e),t.digest("base64")}},48786:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(7447);async function o(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(9973),o=s.n(n);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,s)=>{s.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=94649);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 8615471..bd7d874 100644 --- a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},88525:(e,r,t)=>{t.r(r),t.d(r,{config:()=>u,default:()=>i,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>c});var a=t(89947),s=t(2706),o=t(96762),l=t(30944);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});let{type:t,value:n,tableName:a,dbFullName:s,userId:o,dbId:c,userType:i,database:u}=e.query,d=s&&"string"==typeof s?s.replace(/[^a-z0-9_]/g,""):"datasquirel",p=`SELECT \`${t}\` FROM ${d}.\`${a}\` WHERE \`${t}\`=?`,f=[n];o&&(p+=" AND user_id=?",f.push(o)),c&&(p+=" AND db_id=?",f.push(c)),i&&(p+=" AND user_type=?",f.push(i)),u&&(p+=" AND `database`=?",f.push(u));let g=await (0,l.A)({queryString:p,queryValuesArray:f,database:d});r.json({result:!!g&&!!g[0]})}let i=(0,o.M)(n,"default"),u=(0,o.M)(n,"config"),d=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:n})},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},88525:(e,r,t)=>{t.r(r),t.d(r,{config:()=>u,default:()=>c,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>i});var s=t(89947),a=t(2706),o=t(96762),l=t(30944);async function i(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});let{type:t,value:n,tableName:s,dbFullName:a,userId:o,dbId:i,userType:c,database:u}=e.query,p=a&&"string"==typeof a?a.replace(/[^a-z0-9_]/g,""):"datasquirel",d=`SELECT \`${t}\` FROM ${p}.\`${s}\` WHERE \`${t}\`=?`,_=[n];o&&(d+=" AND user_id=?",_.push(o)),i&&(d+=" AND db_id=?",_.push(i)),c&&(d+=" AND user_type=?",_.push(c)),u&&(d+=" AND `database`=?",_.push(u));let f=await (0,l.A)({queryString:d,queryValuesArray:_,database:p});r.json({result:!!f&&!!f[0]})}let c=(0,o.M)(n,"default"),u=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:n})},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(n+=` -URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(n+=` +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(n+=` IP: ${l}`),n+=` Date: ${o.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let c=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().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",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),a=t(67619),s=t(48786),o=t(37275),l=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:i}){let u;let d=!!i||!!t?.match(/^datasquirel$/),p=i?l.A:d?s.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,o,l),i=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,i);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),o=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=88525);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(7447),o=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:i,debug:c}){let u=(0,a.A)({fa:!0});i&&(u=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(u=(0,a.A)()),c&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let p=await (0,o.A)(u,e,r);if(c&&console.log("varDatabaseDbHandler:results:",p),p&&l)try{return await (0,n.A)({unparsedResults:p,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(p)return p;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:l,keyLen:i,algorithm:c,bufferAllocSize:u}=(0,a.A)({encryptionKey:r});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 p=(0,n.scryptSync)(o,l,i),d=s.Buffer.alloc(u,0),_=(0,n.createDecipheriv)(c,p,d);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=88525);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json index a2461a2..00f3c8a 100644 --- a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 44ac872..502cfa2 100644 --- a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6422,e.ids=[6422],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},49860:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),i=t(96762),u=t(29021),c=t.n(u),a=t(33873),d=t.n(a),l=t(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{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=d().join(o,`images/user-images/user-${t.id}/${n?n+"/":""}`),u=c().existsSync(i+s);r.json({success:u})}let f=(0,i.M)(s,"default"),E=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),u=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,u.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let a=(0,n.A)({encryptedString:e.cookies[o]});if(!a)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(a);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let u=r;e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),u+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:c+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,i,u),a=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,a);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=49860);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6422,e.ids=[6422],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},49860:(e,t,n)=>{n.r(t),n.d(t,{config:()=>P,default:()=>p,routeModule:()=>A});var r={};n.r(r),n.d(r,{default:()=>f});var i=n(89947),s=n(2706),o=n(96762),u=n(29021),a=n.n(u),d=n(33873),c=n.n(d),l=n(69842);async function f(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let n=await (0,l.A)(e,t);if(!n)return t.json({success:!1,msg:"Unauthorized"});let{name:r,folder:i}=e.query,s=process.env.DSQL_STATIC_SERVER_DIR;if(!s)return console.log("Static File ENV not Found!"),t.json({success:!1,msg:"No Static Path!"});let o=c().join(s,`images/user-images/user-${n.id}/${i?i+"/":""}`),u=a().existsSync(o+r);t.json({success:u})}let p=(0,o.M)(r,"default"),P=(0,o.M)(r,"config"),A=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:r})},69842:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(39908),i=n.n(r);async function s(e,t,n){let r=i()({req:e,level:n?"deep":void 0});return console.log(r),r.payload}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var n=t(t.s=49860);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json index 58d1ffb..192fb51 100644 --- a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 fae1edb..5e6c060 100644 --- a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},27215:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>a});var o=t(89947),s=t(2706),i=t(96762),u=t(69842);async function a(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);r.json({user:t})}let c=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),l=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),u=t(89159);async function a(e,r,t){try{let{keyCookieName:s,csrfCookieName:a}=(0,u.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let u=r;e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),u+=n;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),{keyCookieName:i,csrfCookieName:u,oneTimeCodeName:a+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,n.scryptSync)(s,i,u),c=o.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",a,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=27215);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},27215:(e,t,n)=>{n.r(t),n.d(t,{config:()=>s,default:()=>l,routeModule:()=>P});var r={};n.r(r),n.d(r,{default:()=>d});var i=n(89947),u=n(2706),a=n(96762),o=n(69842);async function d(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let n=await (0,o.A)(e,t,!0);t.json({user:n})}let l=(0,a.M)(r,"default"),s=(0,a.M)(r,"config"),P=new i.PagesAPIRouteModule({definition:{kind:u.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:r})},69842:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(39908),i=n.n(r);async function u(e,t,n){let r=i()({req:e,level:n?"deep":void 0});return console.log(r),r.payload}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var n=t(t.s=27215);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json index 58d1ffb..192fb51 100644 --- a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect.js b/dsql-app/.local_dist/server/pages/api/connect.js index d79842f..efecf5b 100644 --- a/dsql-app/.local_dist/server/pages/api/connect.js +++ b/dsql-app/.local_dist/server/pages/api/connect.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7539,e.ids=[7539],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},68084:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>g});var i=t(89947),s=t(2706),a=t(96762),o=t(29021),l=t.n(o),c=t(67619),u=t(56081),d=t(95969),p=t(33873),f=t.n(p);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=e.body,{url:n,key:i,database:s,dbSchema:a,type:o}=t;try{let e=(0,u.A)({key:i,database:s?.db_slug,user_id:t.user_id});if(!e?.user_id)throw Error("Api Credentials invalid!");let n=(0,d.A)({encryptedString:i}),{user_id:a,full_access:o,csrf:c}=n?JSON.parse(n):null;if(!o||!c)return r.json({success:!1,msg:"Unauthorized"});let p=f().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${a}`,"main.json");if(!l().existsSync(p))throw Error("User Shcema data file doesn't exist!");let g=JSON.parse(l().readFileSync(p,"utf-8"));r.json({success:!0,payload:g})}catch(e){console.log("Connect Verification Error, =>",e.message),(0,c.A)({component:"/api/connect/main-catch-error",message:e.message}),r.json({success:!1,msg:"Connect Verification Operation Failed!"})}}let S=(0,a.M)(n,"default"),m=(0,a.M)(n,"config"),_=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect",pathname:"/api/connect",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),c=JSON.parse(l||""),u=i().existsSync(`${o}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||a)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7539,e.ids=[7539],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},68084:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>g});var i=t(89947),s=t(2706),o=t(96762),a=t(29021),l=t.n(a),c=t(67619),u=t(56081),d=t(95969),p=t(33873),f=t.n(p);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=e.body,{url:n,key:i,database:s,dbSchema:o,type:a}=t;try{let e=(0,u.A)({key:i,database:s?.db_slug,user_id:t.user_id});if(!e?.user_id)throw Error("Api Credentials invalid!");let n=(0,d.A)({encryptedString:i}),{user_id:o,full_access:a,csrf:c}=n?JSON.parse(n):null;if(!a||!c)return r.json({success:!1,msg:"Unauthorized"});let p=f().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${o}`,"main.json");if(!l().existsSync(p))throw Error("User Shcema data file doesn't exist!");let g=JSON.parse(l().readFileSync(p,"utf-8"));r.json({success:!0,payload:g})}catch(e){console.log("Connect Verification Error, =>",e.message),(0,c.A)({component:"/api/connect/main-catch-error",message:e.message}),r.json({success:!1,msg:"Connect Verification Operation Failed!"})}}let S=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),m=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect",pathname:"/api/connect",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n),s=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),c=JSON.parse(l||""),u=i().existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),s?.url&&(n+=` URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` -IP: ${o}`),n+=` -Date: ${a.toDateString()} +Request Body: ${JSON.stringify(s.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${o.toDateString()} ========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",n),i().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,a,o),c=i.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=68084);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),i=t(79428),s=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:a,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,s.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,a,l),p=i.Buffer.alloc(u,0),f=(0,n.createDecipheriv)(c,d,p);try{let r=f.update(e,"hex","utf8");return r+=f.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=68084);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect.js.nft.json index 3936801..b23ba50 100644 --- a/dsql-app/.local_dist/server/pages/api/connect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 9b25006..2bbe8b8 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=964,e.ids=[964],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},48171:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>u});var o=t(89947),s=t(2706),i=t(96762),a=t(67619),c=t(69842),l=t(30802);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbId:n}=e.body;try{if(!n)throw Error("No Target Database ID provided");await (0,l.A)({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),(0,a.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let d=(0,i.M)(n,"default"),f=(0,i.M)(n,"config"),p=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,o.A)({encryptedString:e.cookies[s]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),o=t.n(n),s=t(92652),i=t(48786),a=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:S,useLocal:g}){if(!u||!Object.keys(u).length)return null;let E=!!g||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?l.A:E?i.A:a.A,h=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let a=/<[^>]+>/g;(i?.richText||String(t).match(a))&&(t=o()(t,s.A)),i?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:S})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return A.push(p),E?await y(D,A):await y({paradigm:r,queryString:D,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),o=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||s.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=964,e.ids=[964],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},48171:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>p,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>u});var o=t(89947),s=t(2706),a=t(96762),i=t(67619),c=t(69842),l=t(30802);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbId:n}=e.body;try{if(!n)throw Error("No Target Database ID provided");await (0,l.A)({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),(0,i.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let p=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),o=t.n(n);async function s(e,r,t){let n=o()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),o=t.n(n),s=t(92652),a=t(48786),i=t(37897),c=t(68829),l=t(62050);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:p,identifierColumnName:d,identifierValue:f,encryptionKey:_,encryptionSalt:S,useLocal:y}){if(!u||!Object.keys(u).length)return null;let g=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=y?l.A:g?a.A:i.A,A=Object.keys(u),D=[],h=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=o()(t,s.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:S})),"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"}}),D.push(`\`${r}\`=?`),"number"==typeof t?h.push(String(t)):h.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 E=`UPDATE \`${t}\`.\`${n}\` SET ${D.join(",")} WHERE \`${d}\`=?`;return h.push(f),g?await m(E,h):await m({paradigm:r,queryString:E,queryValues:h})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),o=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||s.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),s?.url&&(n+=` URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),a&&(n+=` -IP: ${a}`),n+=` -Date: ${i.toDateString()} +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} ========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let c=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",n),o().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),l=o.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(s,i,a),l=o.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(o(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),o=t.n(n),s=t(29021),i=t.n(s);async function a(...e){let r=o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=48171);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),o=t(79428),s=t(32443);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:a,salt:i,keyLen:c,algorithm:l,bufferAllocSize:u}=(0,s.A)({encryptionKey:r});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 p=(0,n.scryptSync)(a,i,c),d=o.Buffer.alloc(u,0),f=(0,n.createCipheriv)(l,p,d);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(7447);async function o(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(64292),o=t(7447);async function s({paradigm:e,queryString:r,queryValues:t}){let s="Read Only"==e?(0,o.A)({ro:!0}):(0,o.A)({fa:!0});try{return await (0,n.A)(s,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(7447);async function o(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(o(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(9973),o=t.n(n);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=48171);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json index 65ee79a..b128b21 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/handshake.js b/dsql-app/.local_dist/server/pages/api/connect/handshake.js index 1e7af04..36a3353 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/handshake.js +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63177:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>g});var s=t(89947),o=t(2706),a=t(96762),i=t(76856),c=t(29021),l=t.n(c),u=t(33873),d=t.n(u);let _=async({userId:e,dbSchema:r,targetDb:t})=>(await (0,i.A)({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),f=async({userId:e,dbSchema:r,database:t})=>{let n=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),s=JSON.parse(l().readFileSync(n,"utf-8")),o=s.findIndex(e=>e.dbFullName==t.db_full_name);if(o<0)throw Error("Target Database not found in user schema data");let a={...s[o]};return s[o]=r,s[o].dbName=a.dbName,s[o].dbFullName=a.dbFullName,s[o].dbSlug=a.dbSlug,s[o].dbImage=a.dbImage,await _({dbSchema:s,userId:e,targetDb:t.db_full_name})};var p=t(67619),S=t(69842),h=t(30802);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,S.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:n,key:s,database:o,dbSchema:a,type:i,remoteDbs:c,targetDb:l}=e.body;try{if(!l?.tables)throw Error("No Target Database");await (0,h.A)({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:n,remote_connection_key:s,remote_connection_type:i,remote_db_full_name:l.dbFullName},identifierColumnName:"db_full_name",identifierValue:o.db_full_name}),await f({dbSchema:l,database:o,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),(0,p.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let m=(0,a.M)(n,"default"),E=(0,a.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:S,useLocal:h}){if(!u||!Object.keys(u).length)return null;let g=!!h||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=h?l.A:g?a.A:i.A,E=Object.keys(u),y=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:p,encryptionSalt:S})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),y.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}y.push(`date_updated='${Date()}'`),y.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${y.join(",")} WHERE \`${_}\`=?`;return A.push(f),g?await m(D,A):await m({paradigm:r,queryString:D,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[2282],()=>t(63177));module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63177:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>y,routeModule:()=>A});var n={};t.r(n),t.d(n,{default:()=>g});var a=t(89947),s=t(2706),o=t(96762),i=t(76856),l=t(29021),c=t.n(l),u=t(33873),d=t.n(u);let p=async({userId:e,dbSchema:r,targetDb:t})=>(await (0,i.A)({userId:e,targetDatabase:t}),`User ${e} Db Schema Updated`),_=async({userId:e,dbSchema:r,database:t})=>{let n=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),a=JSON.parse(c().readFileSync(n,"utf-8")),s=a.findIndex(e=>e.dbFullName==t.db_full_name);if(s<0)throw Error("Target Database not found in user schema data");let o={...a[s]};return a[s]=r,a[s].dbName=o.dbName,a[s].dbFullName=o.dbFullName,a[s].dbSlug=o.dbSlug,a[s].dbImage=o.dbImage,await p({dbSchema:a,userId:e,targetDb:t.db_full_name})};var f=t(67619),S=t(69842),m=t(30802);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,S.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:n,key:a,database:s,dbSchema:o,type:i,remoteDbs:l,targetDb:c}=e.body;try{if(!c?.tables)throw Error("No Target Database");await (0,m.A)({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:n,remote_connection_key:a,remote_connection_type:i,remote_db_full_name:c.dbFullName},identifierColumnName:"db_full_name",identifierValue:s.db_full_name}),await _({dbSchema:c,database:s,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),(0,f.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let y=(0,o.M)(n,"default"),h=(0,o.M)(n,"config"),A=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),a=t.n(n);async function s(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),a=t.n(n),s=t(92652),o=t(48786),i=t(37897),l=t(68829),c=t(62050);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:S,useLocal:m}){if(!u||!Object.keys(u).length)return null;let g=!!m||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=m?c.A:g?o.A:i.A,h=Object.keys(u),A=[],D=[];for(let e=0;ee.fieldName===r):null,o=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=a()(t,s.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:S})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),A.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${A.join(",")} WHERE \`${p}\`=?`;return D.push(_),g?await y(N,D):await y({paradigm:r,queryString:N,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),a=t(79428),s=t(32443);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,s.A)({encryptionKey:r});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 d=(0,n.scryptSync)(o,i,l),p=a.Buffer.alloc(u,0),_=(0,n.createCipheriv)(c,d,p);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(64292),a=t(7447);async function s({paradigm:e,queryString:r,queryValues:t}){let s="Read Only"==e?(0,a.A)({ro:!0}):(0,a.A)({fa:!0});try{return await (0,n.A)(s,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(9973),a=t.n(n);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[9814],()=>t(63177));module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json index ae6127b..9ef61ea 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../jsonData/dbSchemas/main.json","../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package-shared/data/defaultFields.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/dbSchemas/main.json","../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package-shared/data/defaultFields.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 cc8bc8a..73fe416 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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},79551:e=>{e.exports=require("url")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},77666:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>_});var o={};t.r(o),t.d(o,{default:()=>d});var n=t(89947),s=t(2706),i=t(96762),a=t(79551),c=t(64166),l=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:o,key:n,database:s,dbSchema:i,type:d}=e.body;try{let{hostname:e,port:t,protocol:s}=new a.URL(o),i=await (0,c.A)({scheme:s,headers:{Authorization:n},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:o,key:n}}),l=JSON.parse(i);if(!l?.success)throw Error(l.msg||"Remote request failed");r.json({success:!0,payload:l.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),(0,l.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let f=(0,i.M)(o,"default"),p=(0,i.M)(o,"config"),_=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(48786),n=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function c(e,r,t){try{let{keyCookieName:s,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[s]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=o;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),s&&(c+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},64166:(e,r,t)=>{t.d(r,{A:()=>c});var o=t(55591),n=t.n(o);let s=require("http");var i=t.n(s),a=t(79551);function c({url:e,method:r,hostname:t,path:o,headers:s,body:c,port:l,scheme:u}){let d=c?JSON.stringify(c):null,f=e?new a.URL(e):null,p={method:r||"GET",hostname:f?f.hostname:t,port:u?.match(/https/i)?443:f?f.protocol?.match(/https/i)?443:f.port:l?Number(l):80,headers:{}};return o&&(p.path=o),s&&(p.headers=s),c&&(p.headers["Content-Type"]="application/json",p.headers["Content-Length"]=d?Buffer.from(d).length:void 0),new Promise((e,r)=>{let t=(u?.match(/https/i)?n():f?.protocol?.match(/https/i)?n():i()).request(p,t=>{var o="";t.on("data",function(e){o+=e}),t.on("end",function(){e(o)}),t.on("error",e=>{console.log("HTTP response error =>",e.message),r(`HTTP response error =>, ${e.message}`)}),t.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});c&&t.write(d),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(29021),n=t.n(o);async function s({user:e,message:r,component:t,noMail:o,req:s}){let i=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],o=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||o||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let o=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3033,e.ids=[3033],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},55591:e=>{e.exports=require("https")},79551:e=>{e.exports=require("url")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},77666:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>p,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),s=t(2706),a=t(96762),i=t(79551),l=t(64166),u=t(67619),c=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:n,key:o,database:s,dbSchema:a,type:d}=e.body;try{let{hostname:e,port:t,protocol:s}=new i.URL(n),a=await (0,l.A)({scheme:s,headers:{Authorization:o},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:n,key:o}}),u=JSON.parse(a);if(!u?.success)throw Error(u.msg||"Remote request failed");r.json({success:!0,payload:u.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),(0,u.A)({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let p=(0,a.M)(n,"default"),m=(0,a.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),o=t.n(n);async function s(e,r,t){let n=o()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},64166:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(55591),o=t.n(n);let s=require("http");var a=t.n(s),i=t(79551);function l({url:e,method:r,hostname:t,path:n,headers:s,body:l,port:u,scheme:c}){let d=l?JSON.stringify(l):null,p=e?new i.URL(e):null,m={method:r||"GET",hostname:p?p.hostname:t,port:c?.match(/https/i)?443:p?p.protocol?.match(/https/i)?443:p.port:u?Number(u):80,headers:{}};return n&&(m.path=n),s&&(m.headers=s),l&&(m.headers["Content-Type"]="application/json",m.headers["Content-Length"]=d?Buffer.from(d).length:void 0),new Promise((e,r)=>{let t=(c?.match(/https/i)?o():p?.protocol?.match(/https/i)?o():a()).request(m,t=>{var n="";t.on("data",function(e){n+=e}),t.on("end",function(){e(n)}),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")})});l&&t.write(d),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),o=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||s.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(o+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(o+=` -URL: ${s.url}`),s?.body&&(o+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),a&&(o+=` -IP: ${a}`),o+=` -Date: ${i.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",o),n().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let l=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",n),o().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var o=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,o.scryptSync)(s,i,a),l=n.Buffer.alloc(16,0),u=(0,o.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77666);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77666);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json index d9291c4..15ac231 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/contact.js.nft.json b/dsql-app/.local_dist/server/pages/api/contact.js.nft.json index df25dcd..59f8c4b 100644 --- a/dsql-app/.local_dist/server/pages/api/contact.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/contact.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 cb495ef..0839278 100644 --- a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},8325:(e,r,a)=>{a.r(r),a.d(r,{config:()=>f,default:()=>A,routeModule:()=>p});var s={};a.r(s),a.d(s,{default:()=>m});var t=a(89947),i=a(2706),o=a(96762),n=a(29021),u=a.n(n),d=a(48786),l=a(67619),c=a(69842),_=a(98e3),E=a(14160),b=a(76856);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let a=await (0,c.A)(e,r,!0);if(!a)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,d.A)("SELECT * FROM users WHERE id = ?",[a.id]),t=s?.[0],{db_name:i,db_slug:o,db_description:n,db_image:m,duplicate:A,keepUpdated:f,keepDataUpdated:p}=e.body;if(o.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Input Error"});let S=`datasquirel_user_${a.id}_${o}`,D=await (0,E.A)(`CREATE DATABASE IF NOT EXISTS \`${S}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!D?.affectedRows)return r.json({success:!1,msg:"Database Could Not be created!"});let h={user_id:a.id,db_name:i,db_slug:o,db_full_name:S,db_description:n,db_image:m};A&&f&&(h.active_clone="1",h.active_clone_parent_db=A),A&&p&&(h.active_data="1");let N=await (0,_.A)({dbFullName:"datasquirel",tableName:"user_databases",data:h});if(N.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/main.json`,s=JSON.parse(u().readFileSync(e,"utf8")),d={dbName:i,dbSlug:o,dbFullName:S,dbDescription:n,dbImage:m,tables:[]};if(A)try{let e=s.filter(e=>e.dbFullName===A)[0];d.tables=e.tables,f&&(d.childDatabase=!0,d.childDatabaseDbFullName=A,p&&(d.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:S}):e.childrenDatabases=[{dbFullName:S}]);for(let e=0;e{a.d(r,{A:()=>u});var s=a(48786),t=a(95969),i=a(29021),o=a.n(i),n=a(89159);async function u(e,r,a){try{let{keyCookieName:i,csrfCookieName:u}=(0,n.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,t.A)({encryptedString:e.cookies[i]});if(!d)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(d);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(a&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(a&&!o().existsSync(`${c}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!a){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,a)=>{a.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",a=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",t=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=a;let n=r;e?.userId&&(n+=`user_${e.userId}_`),i&&(n+=`${i}_`),n+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:u+=t}}},14160:(e,r,a)=>{a.d(r,{A:()=>n});var s=a(29021),t=a.n(s),i=a(67619),o=a(47546);async function n(e){let r;"production".match(/dev/)&&t().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,i.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},47546:(e,r,a)=>{a.d(r,{A:()=>s});function s(...e){let r=global.DSQL_DB_CONN;try{return new Promise((a,s)=>{r.query(...e).then(e=>{r.end(),a(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),a({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var a=e=>r(r.s=e),s=r.X(0,[1251,2282],()=>a(8325));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},8325:(e,a,s)=>{s.r(a),s.d(a,{config:()=>D,default:()=>_,routeModule:()=>E});var r={};s.r(r),s.d(r,{default:()=>A});var t=s(89947),i=s(2706),l=s(96762),n=s(29021),d=s.n(n),u=s(48786),o=s(67619),c=s(69842),b=s(98e3),m=s(14160),p=s(76856);async function A(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let s=await (0,c.A)(e,a,!0);if(!s)return a.json({success:!1,msg:"Unauthorized"});let r=await (0,u.A)("SELECT * FROM users WHERE id = ?",[s.id]),t=r?.[0],{db_name:i,db_slug:l,db_description:n,db_image:A,duplicate:_,keepUpdated:D,keepDataUpdated:E}=e.body;if(l.match(/[^a-zA-Z0-9-_]/))return a.json({success:!1,msg:"Input Error"});let S=`datasquirel_user_${s.id}_${l}`,f=await (0,m.A)(`CREATE DATABASE IF NOT EXISTS \`${S}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!f?.affectedRows)return a.json({success:!1,msg:"Database Could Not be created!"});let g={user_id:s.id,db_name:i,db_slug:l,db_full_name:S,db_description:n,db_image:A};_&&D&&(g.active_clone="1",g.active_clone_parent_db=_),_&&E&&(g.active_data="1");let N=await (0,b.A)({dbFullName:"datasquirel",tableName:"user_databases",data:g});if(N.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,r=JSON.parse(d().readFileSync(e,"utf8")),u={dbName:i,dbSlug:l,dbFullName:S,dbDescription:n,dbImage:A,tables:[]};if(_)try{let e=r.filter(e=>e.dbFullName===_)[0];u.tables=e.tables,D&&(u.childDatabase=!0,u.childDatabaseDbFullName=_,E&&(u.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:S}):e.childrenDatabases=[{dbFullName:S}]);for(let e=0;e{s.d(a,{A:()=>i});var r=s(39908),t=s.n(r);async function i(e,a,s){let r=t()({req:e,level:s?"deep":void 0});return console.log(r),r.payload}},14160:(e,a,s)=>{s.d(a,{A:()=>n});var r=s(29021),t=s.n(r),i=s(67619),l=s(47546);async function n(e){let a;"production".match(/dev/)&&t().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{a=await (0,l.A)(e)}catch(e){(0,i.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return a||null}},47546:(e,a,s)=>{s.d(a,{A:()=>t});var r=s(7447);function t(...e){let a=(0,r.A)();try{return new Promise((s,r)=>{a.query(...e).then(e=>{a.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}finally{a?.end()}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var s=e=>a(a.s=e),r=a.X(0,[1251,9814],()=>s(8325));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json index 8de4c87..4ad927d 100644 --- a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 b9c230f..6b6a520 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7015,e.ids=[7015],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},33336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>S,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>p});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),l=t.n(a),c=t(95969),u=t(67619),d=t(69842),_=t(61932),f=t(56081);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:n,key:s,user_id:o}=e.body;try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,f.A)({key:String((0,c.A)({encryptedString:s})),user_id:t.id});if(!o?.sign)throw await (0,_.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),Error("API KEY is Invalid");try{let r=`${e}/${o?.sign}`;l().unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await (0,_.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),(0,u.A)({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let S=(0,i.M)(n,"default"),E=(0,i.M)(n,"config"),g=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),o=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,o.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${a}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||i)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=s}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37275),o=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:a,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?o.A:u?n.A:s.A,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${a}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7015,e.ids=[7015],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},33336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>S,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),a=t(2706),i=t(96762),o=t(29021),l=t.n(o),u=t(95969),c=t(67619),d=t(69842),_=t(61932),p=t(56081);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:n,key:s,user_id:a}=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 a=(0,p.A)({key:String((0,u.A)({encryptedString:s})),user_id:t.id});if(!a?.sign)throw await (0,_.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),Error("API KEY is Invalid");try{let r=`${e}/${a?.sign}`;l().unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await (0,_.A)({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),(0,c.A)({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let S=(0,i.M)(n,"default"),A=(0,i.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(39908),s=t.n(n);async function a(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),a=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37897),a=t(62050);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?a.A:c?n.A:s.A,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${o}\`=?`;return c?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(n+=` -URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` -IP: ${a}`),n+=` +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(n+=` +IP: ${o}`),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)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(o,i,a),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n),o=t(29021),i=t.n(o);async function a(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=33336);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428),a=t(32443);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(i,o,l),_=s.Buffer.alloc(c,0),p=(0,n.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(64292),s=t(7447);async function a({paradigm:e,queryString:r,queryValues:t}){let a="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(a,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{a?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=33336);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 20c72fe..2e1bf47 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7081,e.ids=[7081],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},67859:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),l=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,l.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:n}=e.body;await (0,i.A)({database:t,queryString:`DELETE FROM ${t}.users WHERE id = ?`,queryValuesArray:[n]}),r.json({success:!0,msg:"User Deleted!"})}let u=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7081,e.ids=[7081],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},67859:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),l=t(30944),i=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,i.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,userId:n}=e.body;await (0,l.A)({database:t,queryString:`DELETE FROM ${t}.users WHERE id = ?`,queryValuesArray:[n]}),r.json({success:!0,msg:"User Deleted!"})}let c=(0,o.M)(n,"default"),d=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(39908),s=t.n(n);async function a(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),a?.url&&(n+=` URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(n+=` +IP: ${l}`),n+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let l=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let 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)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=67859);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(7447),o=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:i,debug:u}){let c=(0,a.A)({fa:!0});i&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&l)try{return await (0,n.A)({unparsedResults:d,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:l,keyLen:i,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});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 d=(0,n.scryptSync)(o,l,i),p=s.Buffer.alloc(c,0),_=(0,n.createDecipheriv)(u,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=67859);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 d4b5390..bc3ebc6 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=291,e.ids=[291],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},7808:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var o=t(89947),s=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});await (0,a.A)("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,t.id]),r.json({success:!0})}let d=(0,i.M)(n,"default"),l=(0,i.M)(n,"config"),_=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=7808);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=291,e.ids=[291],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},7808:(e,r,n)=>{n.r(r),n.d(r,{config:()=>d,default:()=>c,routeModule:()=>D});var s={};n.r(s),n.d(s,{default:()=>_});var t=n(89947),o=n(2706),i=n(96762),a=n(48786),u=n(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let n=await (0,u.A)(e,r,!0);if(!n)return r.json({success:!1,msg:"Unauthorized"});await (0,a.A)("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,n.id]),r.json({success:!0})}let c=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),D=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:s})},69842:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(39908),t=n.n(s);async function o(e,r,n){let s=t()({req:e,level:n?"deep":void 0});return console.log(s),s.payload}},48786:(e,r,n)=>{n.d(r,{A:()=>t});var s=n(7447);async function t(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let n=await r.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(9973),t=n.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var n=r(r.s=7808);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 8c6da80..66f649b 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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},32306:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>p,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(48786),u=t(67619),d=t(69842),_=t(33873),f=t.n(_);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:n}=e.body;try{async function s({path:e}){try{let r=c().readdirSync(e);for(let t=0;t",e.message)}}let e=process.env.DSQL_STATIC_SERVER_DIR;if(!e)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=f().join(e,`images/user-images/user-${t.id}/`),i=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,a=o+(n?n.replace(/\.| /g,"")+"/":""),u=i+(n?n.replace(/\.| /g,"")+"/":"");await s({path:a}),await s({path:u}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let p=(0,i.M)(n,"default"),S=(0,i.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=9918,e.ids=[9918],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},32306:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>D,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),o=t(2706),a=t(96762),i=t(29021),c=t.n(i),l=t(48786),u=t(67619),d=t(69842),_=t(33873),p=t.n(_);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:s}=e.body;try{async function n({path:e}){try{let r=c().readdirSync(e);for(let t=0;t",e.message)}}let e=process.env.DSQL_STATIC_SERVER_DIR;if(!e)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=p().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,"")+"/":""),u=a+(s?s.replace(/\.| /g,"")+"/":"");await n({path:i}),await n({path:u}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let D=(0,a.M)(s,"default"),m=(0,a.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(39908),n=t.n(s);async function o(e,r,t){let s=n()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(n+=` -URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` -IP: ${a}`),n+=` -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",` +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${a.toDateString()} +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=32306);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),n=t.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=32306);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 8143eee..bdf5104 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=1658,e.ids=[1658],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17675:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(61932),l=t(31495),c=t(60125),u=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,tableName:n,entryId:a,dbSlug:o,dbId:_,delegated:f}=e.body;try{let u=await (0,c.A)({databaseSlug:o,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:o,table:n,dbId:_,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await (0,i.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:n,identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(48786),n=t(67619);async function a({user:e,confirmedDelegetedUser:r,database:t,table:a,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,a]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,a,i]),c=!0)}catch(r){(0,n.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);async function n({request:e,databaseSlug:r,user:t,query:n}){try{let a=t.id,o=null;if(!n?.delegated)return{dbUserId:a};let i=n.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:a=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:a}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),n=t(37275),a=t(7971);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a.A:u?s.A:n.A,_=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return u?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1658,e.ids=[1658],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17675:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(61932),l=t(31495),u=t(60125),c=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,tableName:n,entryId:a,dbSlug:o,dbId:_,delegated:p}=e.body;try{let c=await (0,u.A)({databaseSlug:o,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:c,database:o,table:n,dbId:_,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await (0,i.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:n,identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){(0,c.A)({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}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/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(48786),n=t(67619);async function a({user:e,confirmedDelegetedUser:r,database:t,table:a,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,a]),u=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,a,i]),u=!0)}catch(r){(0,n.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);async function n({request:e,databaseSlug:r,user:t,query:n}){try{let a=t.id,o=null;if(!n?.delegated)return{dbUserId:a};let i=n.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:a=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:a}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(39908),n=t.n(s);async function a(e,r,t){let s=n()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(48786),n=t(37897),a=t(62050);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?a.A:c?s.A:n.A,_=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return c?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=17675);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(o,i,l),_=n.Buffer.alloc(c,0),p=(0,s.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(64292),n=t(7447);async function a({paradigm:e,queryString:r,queryValues:t}){let a="Read Only"==e?(0,n.A)({ro:!0}):(0,n.A)({fa:!0});try{return await (0,s.A)(a,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{a?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(7447);async function n(...e){let r=(0,s.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;ss})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(9973),n=t.n(s);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=17675);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 96e264a..8e8a6aa 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2735,e.ids=[2735],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},12057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>S,routeModule:()=>A});var i={};t.r(i),t.d(i,{default:()=>f});var s=t(89947),n=t(2706),a=t(96762),o=t(29021),u=t.n(o),d=t(33873),c=t.n(d),l=t(48786),E=t(67619),_=t(69842);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await (0,l.A)(`DELETE FROM users WHERE id='${t.id}'`),await (0,l.A)(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await (0,l.A)(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_media WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await (0,l.A)(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM notifications WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await (0,l.A)("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r",e.message),!1}}({rootFolderPath:a}),r.json({success:!0})}catch(e){(0,E.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"User could not be deleted!"})}}let S=(0,a.M)(i,"default"),p=(0,a.M)(i,"config"),A=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUser",pathname:"/api/deleteUser",bundlePath:"",filename:""},userland:i})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var i=t(48786),s=t(95969),n=t(29021),a=t.n(n),o=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,s.A)({encryptedString:e.cookies[n]});if(!d)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(d);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,i.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>i});function i(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",i=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=i;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:u+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(29021),s=t.n(i);async function n({user:e,message:r,component:t,noMail:i,req:n}){let a=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2735,e.ids=[2735],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},12057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>p,routeModule:()=>R});var s={};t.r(s),t.d(s,{default:()=>S});var i=t(89947),n=t(2706),a=t(96762),o=t(29021),d=t.n(o),u=t(33873),c=t.n(u),l=t(48786),E=t(67619),_=t(69842);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await (0,l.A)(`DELETE FROM users WHERE id='${t.id}'`),await (0,l.A)(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await (0,l.A)(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM user_media WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await (0,l.A)(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM notifications WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await (0,l.A)(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await (0,l.A)("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r",e.message),!1}}({rootFolderPath:a}),r.json({success:!0})}catch(e){(0,E.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"User could not be deleted!"})}}let p=(0,a.M)(s,"default"),D=(0,a.M)(s,"config"),R=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUser",pathname:"/api/deleteUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(39908),i=t.n(s);async function n(e,r,t){let s=i()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),i=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(i+=` -URL: ${n.url}`),n?.body&&(i+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(i+=` -IP: ${o}`),i+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` Date: ${a.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let u=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",i),s().appendFileSync("./.tmp/error.log",` +========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let d=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",s),i().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,i.scryptSync)(n,a,o),d=s.Buffer.alloc(16,0),c=(0,i.createDecipheriv)("aes-192-cbc",u,d);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>i});async function i(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=12057);module.exports=t})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(7447);async function i(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),i=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=12057);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js index 8701340..b00c085 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=3e3,e.ids=[3e3],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96257:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),c=t(48786),u=t(67619),d=t(69842),f=t(14160);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_slug:n,db_full_name:a}=e.body;if(!a.match(`user_${t.id}_`))throw Error("Database doesn't belong to user");await (0,f.A)(`DROP DATABASE \`${a}\``),await (0,c.A)("DELETE FROM user_databases WHERE id = ?",[s]),await (0,c.A)("DELETE FROM user_users WHERE user_id = ? AND `database` = ?",[t.id,n]);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(l().readFileSync(s,"utf8")),o=n.filter((r,t)=>{if(r.dbFullName===a)return e=t,!0});if(o[0].childDatabase){let e=n.filter(e=>e.dbFullName===o[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.findIndex(e=>e.dbFullName===o[0].childDatabaseDbFullName);e.childrenDatabases&&"number"==typeof r&&e.childrenDatabases.splice(r,1)}n.splice(e,1),l().writeFileSync(`${s}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let E=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},14160:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(29021),n=t.n(s),a=t(67619),o=t(47546);async function i(e){let r;"production".match(/dev/)&&n().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,a.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3e3,e.ids=[3e3],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},96257:(e,r,s)=>{s.r(r),s.d(r,{config:()=>S,default:()=>_,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>p});var n=s(89947),a=s(2706),o=s(96762),i=s(29021),l=s.n(i),c=s(48786),u=s(67619),d=s(69842),D=s(14160);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{id:t,db_slug:n,db_full_name:a}=e.body;if(!a.match(`user_${s.id}_`))throw Error("Database doesn't belong to user");await (0,D.A)(`DROP DATABASE \`${a}\``),await (0,c.A)("DELETE FROM user_databases WHERE id = ?",[t]),await (0,c.A)("DELETE FROM user_users WHERE user_id = ? AND `database` = ?",[s.id,n]);try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`,n=JSON.parse(l().readFileSync(t,"utf8")),o=n.filter((r,s)=>{if(r.dbFullName===a)return e=s,!0});if(o[0].childDatabase){let e=n.filter(e=>e.dbFullName===o[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.findIndex(e=>e.dbFullName===o[0].childDatabaseDbFullName);e.childrenDatabases&&"number"==typeof r&&e.childrenDatabases.splice(r,1)}n.splice(e,1),l().writeFileSync(`${t}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteUserDatabase/main-catch-error",message:e.message,user:s}),r.json({success:!1,msg:"File Updates Failed"})}}let _=(0,o.M)(t,"default"),S=(0,o.M)(t,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(39908),n=s.n(t);async function a(e,r,s){let t=n()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},14160:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(29021),n=s.n(t),a=s(67619),o=s(47546);async function i(e){let r;"production".match(/dev/)&&n().appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await (0,o.A)(e)}catch(e){(0,a.A)({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},67619:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(29021),n=s.n(t);async function a({user:e,message:r,component:s,noMail:t,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],s=a.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||t||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(s+=` -URL: ${a.url}`),a?.body&&(s+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +User Email: ${e?.email}`),a?.url&&(t+=` +URL: ${a.url}`),a?.body&&(t+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(t+=` +IP: ${i}`),t+=` Date: ${o.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",t),n().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},47546:(e,r,t)=>{t.d(r,{A:()=>s});function s(...e){let r=global.DSQL_DB_CONN;try{return new Promise((t,s)=>{r.query(...e).then(e=>{r.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96257);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(7447);async function n(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},47546:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(7447);function n(...e){let r=(0,t.A)();try{return new Promise((s,t)=>{r.query(...e).then(e=>{r.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}finally{r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(9973),n=s.n(t);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=96257);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js index e4206b5..7bcae23 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8105,e.ids=[8105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},5134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>E,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>S});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(33873),u=t.n(l),d=t(67619),_=t(69842),f=t(45185),p=t(61932);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body,{media_name:s,media_url:o,media_thumbnail_url:i,media_path:a,media_thumbnail_path:l,folder:S}=n;"production".match(/production/);try{let e=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let s=(0,f.A)({isPrivate:e,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!s)throw Error("Couldn't grab paths!");let{fileRootPath:a,urlRootPath:l,relativePath:d}=s;S?.match(/./);let _=o.match(/[^\/]+$/)[0],E=i.match(/[^\/]+$/)[0],m=u().normalize(a+_),y=u().normalize(a+E);c().unlinkSync(m);try{c().unlinkSync(y)}catch(e){}await (0,p.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:n.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),(0,d.A)({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n),o=t(33873),i=t.n(o);function a({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;let c=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,l=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:i().join(a,c);return s().existsSync(l)||o||s().mkdirSync(l,{recursive:!0}),{fileRootPath:l,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${c}`,relativePath:c}}},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),s=t(37275),o=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:a,identifierValue:c,useLocal:l}){try{let u=!!l||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=l?o.A:u?n.A:s.A,_=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${a}\`=?`;return u?await d(_,[c]):await d({paradigm:r,queryString:_,queryValues:[c]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8105,e.ids=[8105],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},5134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>m,routeModule:()=>A});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),o=t(2706),a=t(96762),i=t(29021),l=t.n(i),u=t(33873),c=t.n(u),d=t(67619),S=t(69842),p=t(45185),_=t(61932);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,S.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body,{media_name:s,media_url:o,media_thumbnail_url:a,media_path:i,media_thumbnail_path:u,folder:f}=n;"production".match(/production/);try{let e=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let s=(0,p.A)({isPrivate:e,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!s)throw Error("Couldn't grab paths!");let{fileRootPath:i,urlRootPath:u,relativePath:d}=s;f?.match(/./);let S=o.match(/[^\/]+$/)[0],m=a.match(/[^\/]+$/)[0],D=c().normalize(i+S),A=c().normalize(i+m);l().unlinkSync(D);try{l().unlinkSync(A)}catch(e){}await (0,_.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:n.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),(0,d.A)({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let m=(0,a.M)(n,"default"),D=(0,a.M)(n,"config"),A=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),o=t(33873),a=t.n(o);function i({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)return console.log("Static File ENV not Found!"),null;let l=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:a().join(i,l);return s().existsSync(u)||o||s().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},69842:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(39908),s=t.n(n);async function o(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},61932:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(48786),s=t(37897),o=t(62050);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:i,identifierValue:l,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?o.A:c?n.A:s.A,S=`DELETE FROM \`${t}\`.\`${a}\` WHERE \`${i}\`=?`;return c?await d(S,[l]):await d({paradigm:r,queryString:S,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let 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"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` -IP: ${a}`),n+=` -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",` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),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",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n),o=t(29021),i=t.n(o);async function a(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=5134);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(64292),s=t(7447);async function o({paradigm:e,queryString:r,queryValues:t}){let o="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(o,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{o?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=5134);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 6d8fe35..f84811d 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=5757,e.ids=[5757],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96332:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),n=t(2706),l=t(96762),o=t(29021),i=t.n(o),c=t(30944),u=t(67619),d=t(69842),_=t(48786);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{id:a,user_id:n,table_name:l,table_slug:o,table_description:f}=s.table,{db_full_name:p}=s.database;await (0,c.A)({database:p,queryString:`DROP TABLE \`${p}\`.\`${o}\``});let E=a?[a]:[o,t.id,s.database.id];await (0,_.A)(a?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",E);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,a=JSON.parse(i().readFileSync(s,"utf8")),n=a.filter((e,r)=>{if(e.dbFullName===p)return!0}),l=n[0].tables.filter((r,t)=>{if(r?.tableName===o)return e=t,!0});if(l[0].childTable){let e;let r=a.filter(e=>e.dbFullName===l[0].childTableDbFullName)[0].tables.filter(e=>{if(e.tableName===l[0].childTableName)return!0})[0];r.childrenTables?.filter((r,t)=>{r.tableName===o&&(e=t)}),"number"==typeof e&&r.childrenTables?.splice(e,1)}if(n[0].tables.splice(e,1),n[0].childrenDatabases)for(let e=0;ee.dbFullName===r.dbFullName)[0];e.tables=n[0].tables,await (0,_.A)("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[o,t.id,e.dbSlug])}catch(e){(0,u.A)({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}i().writeFileSync(`${s}`,JSON.stringify(a),"utf8"),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let p=(0,l.M)(s,"default"),E=(0,l.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(48786),a=t(95969),n=t(29021),l=t.n(n),o=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:l,csrfCookieName:o,oneTimeCodeName:i+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let l=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5757,e.ids=[5757],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96332:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>f,routeModule:()=>S});var a={};t.r(a),t.d(a,{default:()=>_});var s=t(89947),n=t(2706),l=t(96762),o=t(29021),i=t.n(o),c=t(30944),u=t(67619),d=t(69842),p=t(48786);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{id:s,user_id:n,table_name:l,table_slug:o,table_description:_}=a.table,{db_full_name:f}=a.database;await (0,c.A)({database:f,queryString:`DROP TABLE \`${f}\`.\`${o}\``});let D=s?[s]:[o,t.id,a.database.id];await (0,p.A)(s?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",D);try{let e;let a=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(i().readFileSync(a,"utf8")),n=s.filter((e,r)=>{if(e.dbFullName===f)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=s.filter(e=>e.dbFullName===l[0].childTableDbFullName)[0].tables.filter(e=>{if(e.tableName===l[0].childTableName)return!0})[0];r.childrenTables?.filter((r,t)=>{r.tableName===o&&(e=t)}),"number"==typeof e&&r.childrenTables?.splice(e,1)}if(n[0].tables.splice(e,1),n[0].childrenDatabases)for(let e=0;ee.dbFullName===r.dbFullName)[0];e.tables=n[0].tables,await (0,p.A)("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[o,t.id,e.dbSlug])}catch(e){(0,u.A)({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:t})}}i().writeFileSync(`${a}`,JSON.stringify(s),"utf8"),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let f=(0,l.M)(a,"default"),D=(0,l.M)(a,"config"),S=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:a})},69842:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(39908),s=t.n(a);async function n(e,r,t){let a=s()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let l=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(s+=` -URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` -IP: ${o}`),s+=` +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: ${l.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().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",a),s().appendFileSync("./.tmp/error.log",` -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(43775),a=t(67619),n=t(48786),l=t(37275),o=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?o.A:d?n.A:l.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,s.scryptSync)(n,l,o),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",i,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),a=t.n(s),n=t(29021),l=t.n(n);async function o(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!l().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:l().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96332);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(43775),s=t(67619),n=t(7447),l=t(64292);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:i,debug:c}){let u=(0,n.A)({fa:!0});i&&(u=(0,n.A)({local:!0})),t?.match(/^datasquirel$/)&&(u=(0,n.A)()),c&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,l.A)(u,e,r);if(c&&console.log("varDatabaseDbHandler:results:",d),d&&o)try{return await (0,a.A)({unparsedResults:d,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(55511),s=t(79428),n=t(32443);function l({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:l,salt:o,keyLen:i,algorithm:c,bufferAllocSize:u}=(0,n.A)({encryptionKey:r});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=(0,a.scryptSync)(l,o,i),p=s.Buffer.alloc(u,0),_=(0,a.createDecipheriv)(c,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(7447);async function s(...e){let r=(0,a.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;aa})},7447:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(9973),s=t.n(a);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96332);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 c23276e..85a673b 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3462,e.ids=[3462],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22792:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>l});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),i=t(2706),o=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{user_type:n,user_id:i,email:o,invited_user_id:c}=s;await (0,a.A)("DELETE FROM user_users WHERE id=?",[s.id]),n?.match(/admin/i)&&(await (0,a.A)("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.id,o]),await (0,a.A)("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[c,t.id])),r.json({success:!0,msg:"User Deleted!"})}let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),l=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function u(e,r,t){try{let{keyCookieName:i,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),i&&(u+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(55511),n=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(i,o,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22792);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3462,e.ids=[3462],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},22792:(e,r,s)=>{s.r(r),s.d(r,{config:()=>c,default:()=>d,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>u});var n=s(89947),o=s(2706),i=s(96762),a=s(48786),_=s(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,_.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=e.body,{user_type:n,user_id:o,email:i,invited_user_id:u}=t;await (0,a.A)("DELETE FROM user_users WHERE id=?",[t.id]),n?.match(/admin/i)&&(await (0,a.A)("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[s.id,i]),await (0,a.A)("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[u,s.id])),r.json({success:!0,msg:"User Deleted!"})}let d=(0,i.M)(t,"default"),c=(0,i.M)(t,"config"),D=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(39908),n=s.n(t);async function o(e,r,s){let t=n()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},48786:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(7447);async function n(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(9973),n=s.n(t);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=22792);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 56e5c9a..87622bb 100644 --- a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7317,e.ids=[7317],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},86254:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>_});var o=t(89947),s=t(2706),i=t(96762),a=t(29021),u=t.n(a),c=t(33873),l=t.n(c),d=t(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;try{let e=l().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!u().existsSync(e))return r.end();let o=JSON.parse(u().readFileSync(e,"utf-8")).find(e=>e.dbFullName==n);if(!o)throw Error("Database not found!");let s=l().resolve(process.cwd(),"./.tmp/_tmp.json");u().writeFileSync(s,JSON.stringify(o),"utf-8");let i=u().createReadStream(s);i.pipe(r),i.on("close",()=>{u().unlinkSync(s)})}catch(e){return console.log(e),r.end()}}let f=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),E=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),o=t(95969),s=t(29021),i=t.n(s),a=t(89159);async function u(e,r,t){try{let{keyCookieName:s,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[s]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[s]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",s=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),s&&(i+=`${s}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),s&&(a+=`${s}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),s&&(u+=`${s}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),o=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(s,i,a),c=o.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=86254);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7317,e.ids=[7317],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,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}}})},86254:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>p,routeModule:()=>A});var n={};r.r(n),r.d(n,{default:()=>f});var a=r(89947),o=r(2706),i=r(96762),u=r(29021),s=r.n(u),d=r(33873),l=r.n(d),c=r(69842);async function f(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let r=await (0,c.A)(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;try{let e=l().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${r.id}/main.json`);if(!s().existsSync(e))return t.end();let a=JSON.parse(s().readFileSync(e,"utf-8")).find(e=>e.dbFullName==n);if(!a)throw Error("Database not found!");let o=l().resolve(process.cwd(),"./.tmp/_tmp.json");s().writeFileSync(o,JSON.stringify(a),"utf-8");let i=s().createReadStream(o);i.pipe(t),i.on("close",()=>{s().unlinkSync(o)})}catch(e){return console.log(e),t.end()}}let p=(0,i.M)(n,"default"),P=(0,i.M)(n,"config"),A=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:n})},69842:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(39908),a=r.n(n);async function o(e,t,r){let n=a()({req:e,level:r?"deep":void 0});return console.log(n),n.payload}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=86254);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json index 3936801..3aca222 100644 --- a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 89d6f3c..9d388a4 100644 --- a/dsql-app/.local_dist/server/pages/api/exportDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7402,e.ids=[7402],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},87476:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),l=t(21820),u=t.n(l),d=t(79646),p=t(67619);async function _({dbName:e,user:r,res:t}){let n=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let s={cwd:process.cwd()},o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;u().platform().match(/win/i)&&(s.shell="bash.exe");let i=`${n} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${o}`;console.log(`exportDb.ts exe => ${i}`),(0,d.execSync)(i,s),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),c().createReadStream(o).pipe(t)}catch(e){(0,p.A)({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}var f=t(69842);async function E(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;await _({dbName:n?.toString()||"",res:r,user:t})}let S=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7402,e.ids=[7402],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79646:e=>{e.exports=require("child_process")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},87476:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>y,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>S});var o=t(89947),s=t(2706),a=t(96762),i=t(29021),l=t.n(i),u=t(21820),c=t.n(u),p=t(79646),d=t(67619);async function m({dbName:e,user:r,res:t}){let n=c().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let o={cwd:process.cwd()},s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;c().platform().match(/win/i)&&(o.shell="bash.exe");let a=`${n} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${s}`;console.log(`exportDb.ts exe => ${a}`),(0,p.execSync)(a,o),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),l().createReadStream(s).pipe(t)}catch(e){(0,d.A)({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}var f=t(69842);async function S(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:n}=e.query;await m({dbName:n?.toString()||"",res:r,user:t})}let y=(0,a.M)(n,"default"),A=(0,a.M)(n,"config"),g=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),o=t.n(n);async function s(e,r,t){let n=o()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),o=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||s.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(n+=` -URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` -IP: ${a}`),n+=` -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",` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let l=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",n),o().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=87476);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=87476);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json index 58d1ffb..192fb51 100644 --- a/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 463ad71..77d774f 100644 --- a/dsql-app/.local_dist/server/pages/api/exportTableData.js +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=4727,e.ids=[4727],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},27310:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{config:()=>u,default:()=>c});var a=t(89947),o=t(2706),n=t(96762),i=t(69842),l=t(33170);let u={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:s,dbName:a,tableName:o,payload:n}=e.body;try{let e=await (0,l.A)({dbName:a,paradigm:s,payload:n,tableName:o,userId:t.id,payloadType:"base64"});if(!e)return r.json({success:!1,msg:"Operation Failed!"});r.json({success:!0,msg:"Success!",data:e?.tableData})}catch(e){r.json({success:!1,msg:e.message})}}let d=(0,n.M)(s,"default"),p=(0,n.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:s})},33170:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(98e3),a=t(67619),o=t(48786);async function n({paradigm:e,userId:r,dbName:t,tableName:n,payload:i,payloadType:l}){let u={};try{let a=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await (0,o.A)(`SELECT * FROM \`${a}\`.\`${n}\``);u.tableData=c;break;case"import":let d="base64"==l?Buffer.from(i,"base64").toString():i,p="object"===l?i:JSON.parse(d);for(let e=0;e{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:l+=a}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let n=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4727,e.ids=[4727],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},27310:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>c,routeModule:()=>m});var a={};t.r(a),t.d(a,{config:()=>u,default:()=>d});var s=t(89947),o=t(2706),i=t(96762),l=t(69842),n=t(33170);let u={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:a,dbName:s,tableName:o,payload:i}=e.body;try{let e=await (0,n.A)({dbName:s,paradigm:a,payload:i,tableName:o,userId:t.id,payloadType:"base64"});if(!e)return r.json({success:!1,msg:"Operation Failed!"});r.json({success:!0,msg:"Success!",data:e?.tableData})}catch(e){r.json({success:!1,msg:e.message})}}let c=(0,i.M)(a,"default"),p=(0,i.M)(a,"config"),m=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:a})},33170:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(98e3),s=t(67619),o=t(48786);async function i({paradigm:e,userId:r,dbName:t,tableName:i,payload:l,payloadType:n}){let u={};try{let s=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let d=await (0,o.A)(`SELECT * FROM \`${s}\`.\`${i}\``);u.tableData=d;break;case"import":let c="base64"==n?Buffer.from(l,"base64").toString():l,p="object"===n?l:JSON.parse(c);for(let e=0;e{t.d(r,{A:()=>o});var a=t(39908),s=t.n(a);async function o(e,r,t){let a=s()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),s=t.n(a);async function o({user:e,message:r,component:t,noMail:a,req:o}){let i=new Date,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"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(s+=` -URL: ${o.url}`),o?.body&&(s+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` -Date: ${n.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),o?.url&&(a+=` +URL: ${o.url}`),o?.body&&(a+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${i.toDateString()} +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let n=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,n,i),u=a.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1251],()=>t(27310));module.exports=s})(); \ No newline at end of file +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(27310));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json b/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js index edac5be..2044ec3 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=3319,e.ids=[3319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},3034:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762),i=t(30944),l=t(31495),c=t(60125),u=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:_,isFullName:f,defaultField:p}=e.body;try{let u=await (0,c.A)({databaseSlug:a,request:e,user:t,query:e.query});if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let d=u?.rootUserId?`datasquirel_user_${u.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,g=`SELECT id${o?",title":_?",slug":f?",CONCAT(first_name, ' ', last_name) AS full_name":p?","+p:""} FROM ${d}.${s}`,E=await (0,i.A)({database:d,queryString:g});r.json({success:!0,entries:E})}catch(e){(0,u.A)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/fetch-entries-basic",pathname:"/api/fetch-entries-basic",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3319,e.ids=[3319],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},3034:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762),l=t(30944),i=t(31495),u=t(60125),c=t(67619),d=t(69842);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:_,isFullName:p,defaultField:f}=e.body;try{let c=await (0,u.A)({databaseSlug:a,request:e,user:t,query:e.query});if(!await (0,i.A)({user:t,confirmedDelegetedUser:c,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let d=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,S=`SELECT id${o?",title":_?",slug":p?",CONCAT(first_name, ' ', last_name) AS full_name":f?","+f:""} FROM ${d}.${s}`,g=await (0,l.A)({database:d,queryString:S});r.json({success:!0,entries:g})}catch(e){(0,c.A)({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let p=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/fetch-entries-basic",pathname:"/api/fetch-entries-basic",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:l}){let i,u;try{r?.delegated?(i=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=i[0]?.priviledge?.match(o)):(i=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),u=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!i&&!!i[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(39908),a=t.n(s);async function n(e,r,t){let s=a()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),n?.url&&(s+=` URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` Date: ${o.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),a=t(67619),n=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?i.A:d?n.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3034);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),a=t(67619),n=t(7447),o=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:i,debug:u}){let c=(0,n.A)({fa:!0});i&&(c=(0,n.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,n.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&l)try{return await (0,s.A)({unparsedResults:d,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428),n=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:l,keyLen:i,algorithm:u,bufferAllocSize:c}=(0,n.A)({encryptionKey:r});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 d=(0,s.scryptSync)(o,l,i),_=a.Buffer.alloc(c,0),p=(0,s.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(7447);async function a(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;ss})},7447:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),a=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3034);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json b/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json index 58d1ffb..102da1c 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 c3c65ab..93b1dee 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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},61980:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),a=t(96762),i=t(4820),u=t(67619),l=t(69842),c=t(27825),d=t.n(c),f=t(48786);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbUserId;e.query.delegated;try{if(!s)throw Error("No Root user Id Found!");let e=await (0,f.A)("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),n=(0,i.A)({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=d().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),(0,u.A)({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let p=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(l);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=n}}},4820:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(67619),n=t(29021),o=t.n(n),a=t(33873),i=t.n(a);function u({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3040,e.ids=[3040],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},61980:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>D});var s={};t.r(s),t.d(s,{default:()=>p});var o=t(89947),n=t(2706),a=t(96762),i=t(4820),u=t(67619),l=t(69842),d=t(27825),c=t.n(d),_=t(48786);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbUserId;e.query.delegated;try{if(!s)throw Error("No Root user Id Found!");let e=await (0,_.A)("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),o=(0,i.A)({userId:String(s)});if(!o)throw Error("Root user schema not found!");let n=[];e.forEach(e=>{let r=n.findIndex(r=>r.dbSlug===e.database),t=o.find(r=>r.dbSlug===e.database);if(t){let s=n[r]?n[r]:{...t,tables:[]},o=c().cloneDeep(t.tables).find(r=>r.tableName===e.table);o&&n[r]?n[r]={...s,tables:[...n[r].tables,o]}:o&&!n[r]&&n.push({...t,tables:[o]})}}),r.json({success:!0,payload:n})}catch(e){console.log("ERROR:",e.message),(0,u.A)({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let S=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),D=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(39908),o=t.n(s);async function n(e,r,t){let s=o()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},4820:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(67619),o=t(29021),n=t.n(o),a=t(33873),i=t.n(a);function u({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(r,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(s+=` -URL: ${o.url}`),o?.body&&(s+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(s+=` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` IP: ${i}`),s+=` Date: ${a.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let u=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let u=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,a,i),l=n.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=61980);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(7447);async function o(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),o=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=61980);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json index df38f1b..4af7289 100644 --- a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 ef01bcb..eb3e9c4 100644 --- a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=245,e.ids=[245],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},37811:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),a=t(2706),o=t(96762),i=t(69842),u=t(67619),l=t(48786);async function c(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbSlug,n=e.query.dbOwnerId,a=e.query.delegatedUserId;try{let e=await (0,l.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[n,s]);if(!e||!e[0])return r.json({success:!1,msg:"Database not found"});let t=await (0,l.A)("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[n,e[0].id]),o=await (0,l.A)("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[n,a]);r.json({success:!0,tables:t,accessed_tables:o})}catch(e){(0,u.A)({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function u(e,r,t){try{let{keyCookieName:a,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(l);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),a&&(u+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:u+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=245,e.ids=[245],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},37811:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>c,routeModule:()=>p});var t={};s.r(t),s.d(t,{default:()=>d});var a=s(89947),n=s(2706),o=s(96762),i=s(69842),u=s(67619),l=s(48786);async function d(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,i.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=e.query.dbSlug,a=e.query.dbOwnerId,n=e.query.delegatedUserId;try{let e=await (0,l.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[a,t]);if(!e||!e[0])return r.json({success:!1,msg:"Database not found"});let s=await (0,l.A)("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[a,e[0].id]),o=await (0,l.A)("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[a,n]);r.json({success:!0,tables:s,accessed_tables:o})}catch(e){(0,u.A)({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:s}),r.json({success:!1})}}let c=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),p=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(39908),a=s.n(t);async function n(e,r,s){let t=a()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},67619:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(29021),a=s.n(t);async function n({user:e,message:r,component:s,noMail:t,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"],s=n.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(s+=` -URL: ${a.url}`),a?.body&&(s+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +User Email: ${e?.email}`),n?.url&&(t+=` +URL: ${n.url}`),n?.body&&(t+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(t+=` +IP: ${i}`),t+=` Date: ${o.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let u=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let u=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",t),a().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),c=(0,s.createDecipheriv)("aes-192-cbc",u,l);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=37811);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(7447);async function a(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(9973),a=s.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=37811);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js index e808947..b1d068c 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8282,e.ids=[8282],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},19991:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),a=t(96762),i=t(48786),l=t(68829),c=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,o=e.body.priviledges,n=e.body.database;try{let e=await (0,i.A)("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,n]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${n} database belonging to user ${s}`);let a=(await (0,i.A)("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,n])).map(e=>e.table),c=await (0,i.A)("SELECT * FROM users WHERE id=?",[s]),u={rootUserId:s,rootUserName:`${c[0].first_name} ${c[0].last_name}`,rootUserEmail:c[0].email,rootUserImage:c[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${n}`,databaseSlug:n,allowedTables:a,priviledges:o,dateCreated:Date.now()},d=(0,l.A)({data:JSON.stringify(u)}),_=`${process.env.DSQL_USER_DB_PREFIX}${u.rootUserId}_${n}`,E=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${_}`;r.setHeader("Set-Cookie",[`${E}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),(0,c.A)({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let _=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),f=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:l+=o}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8282,e.ids=[8282],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},19991:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,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(48786),l=t(68829),c=t(67619),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,o=e.body.priviledges,n=e.body.database;try{let e=await (0,i.A)("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,n]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${n} database belonging to user ${s}`);let a=(await (0,i.A)("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,n])).map(e=>e.table),c=await (0,i.A)("SELECT * FROM users WHERE id=?",[s]),u={rootUserId:s,rootUserName:`${c[0].first_name} ${c[0].last_name}`,rootUserEmail:c[0].email,rootUserImage:c[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${n}`,databaseSlug:n,allowedTables:a,priviledges:o,dateCreated:Date.now()},d=(0,l.A)({data:JSON.stringify(u)}),_=`${process.env.DSQL_USER_DB_PREFIX}${u.rootUserId}_${n}`,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),(0,c.A)({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let _=(0,a.M)(s,"default"),p=(0,a.M)(s,"config"),S=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(39908),o=t.n(s);async function n(e,r,t){let s=o()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${a.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,a,i),c=o.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=19991);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),o=t(79428),n=t(32443);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:a,salt:i,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,n.A)({encryptionKey:r});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 d=(0,s.scryptSync)(a,i,l),_=o.Buffer.alloc(u,0),p=(0,s.createCipheriv)(c,d,_);try{let r=p.update(e,"utf8","hex");return r+=p.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(7447);async function o(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),o=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=19991);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js index 1e55bf4..18ac9be 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js @@ -1,8 +1,8 @@ -"use strict";(()=>{var e={};e.id=7258,e.ids=[7258],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},45310:(e,r,s)=>{s.r(r),s.d(r,{config:()=>l,default:()=>d,routeModule:()=>c});var t={};s.r(t),s.d(t,{default:()=>_});var i=s(89947),n=s(2706),a=s(96762),u=s(48786),o=s(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let s=await (0,o.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=await (0,u.A)(` +"use strict";(()=>{var e={};e.id=7258,e.ids=[7258],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},45310:(e,s,r)=>{r.r(s),r.d(s,{config:()=>l,default:()=>d,routeModule:()=>c});var t={};r.r(t),r.d(t,{default:()=>o});var a=r(89947),n=r(2706),i=r(96762),u=r(48786),_=r(69842);async function o(e,s){if("GET"!==e.method)return s.json({msg:"Failed!"});let r=await (0,_.A)(e,s);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=await (0,u.A)(` SELECT user_users.user_id,user_users.database_access,user_users.user_id,user_users.user_priviledge,users.first_name,users.last_name,users.email,users.image_thumbnail FROM user_users JOIN users ON user_users.user_id=users.id WHERE - user_users.invited_user_id='${s.id}' - `),i=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${n}`);for(let e=0;e{s.d(r,{A:()=>o});var t=s(48786),i=s(95969),n=s(29021),a=s.n(n),u=s(89159);async function o(e,r,s){try{let{keyCookieName:n,csrfCookieName:o}=(0,u.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let _=(0,i.A)({encryptedString:e.cookies[n]});if(!_)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(_);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!a().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let u=r;e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),u+=t;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:a,csrfCookieName:u,oneTimeCodeName:o+=i}}},95969:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(55511),i=s(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=s||process.env.DSQL_ENCRYPTION_SALT,u=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,t.scryptSync)(n,a,u),_=i.Buffer.alloc(16,0),d=(0,t.createDecipheriv)("aes-192-cbc",o,_);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,s)=>{s.d(r,{A:()=>t});async function t(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=45310);module.exports=s})(); \ No newline at end of file + user_users.invited_user_id='${r.id}' + `),a=[];if(t&&t[0])for(let e=0;e`db_slug='${e}'`).join(" OR ")}) AND user_id=${n}`);for(let e=0;e<_.length;e++){let r=_[e];a.push({id:r.id,user_id:s.user_id,first_name:s.first_name,last_name:s.last_name,email:s.email,image_thumbnail:s.image_thumbnail,db_name:r.db_name,db_slug:r.db_slug,db_full_name:r.db_full_name,db_image:r.db_image,db_description:r.db_description,date_created:r.date_created,user_priviledge:i})}}s.json({success:!0,databases:a})}let d=(0,i.M)(t,"default"),l=(0,i.M)(t,"config"),c=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDelegatedDatabases",pathname:"/api/getDelegatedDatabases",bundlePath:"",filename:""},userland:t})},69842:(e,s,r)=>{r.d(s,{A:()=>n});var t=r(39908),a=r.n(t);async function n(e,s,r){let t=a()({req:e,level:r?"deep":void 0});return console.log(t),t.payload}},48786:(e,s,r)=>{r.d(s,{A:()=>a});var t=r(7447);async function a(...e){let s=(0,t.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let r=await s.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},7447:(e,s,r)=>{r.d(s,{A:()=>n});var t=r(9973),a=r.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,s)=>{Object.defineProperty(s,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,s,r)=>{e.exports=r(75600)}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=s(s.s=45310);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 822b3c4..f68376c 100644 --- a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js @@ -1,22 +1,22 @@ -"use strict";(()=>{var e={};e.id=2139,e.ids=[2139],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53662:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>p,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>E});var i=t(89947),n=t(2706),o=t(96762),a=t(29021),c=t.n(a),u=t(33873),l=t.n(u),d=t(48786),_=t(67619),f=t(69842);async function E(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=await (0,d.A)(` +"use strict";(()=>{var e={};e.id=2139,e.ids=[2139],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53662:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>p});var o=t(89947),n=t(2706),a=t(96762),i=t(29021),c=t.n(i),l=t(33873),u=t.n(l),d=t(48786),_=t(67619),S=t(69842);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,S.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=await (0,d.A)(` SELECT table_schema, SUM((data_length+index_length)/1024/1024) AS "mb" from information_schema.tables where table_schema like ? group by table_schema - `,[`datasquirel_user_${t.id}%`]),i=(Array.isArray(e)?e:[]).reduce((e,r,t)=>e?.mb?e.mb+r.mb:e+r.mb,0),n=0,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)throw console.log("Static File ENV not Found!"),Error("No Static Path!");o||c().existsSync(o)||c().mkdirSync(o,{recursive:!0});let a=l().join(o,`images/user-images/user-${t.id}`);c().existsSync(a)||c().mkdirSync(a,{recursive:!0});let u=l().join(o,`images/user-images/user-${t.id}`),f=l().join(o,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=c().readdirSync(e);for(let t=0;t ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),(0,_.A)({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}c().existsSync(f)||c().mkdirSync(f,{recursive:!0}),await s(u),await s(f);let E=n+i;r.json({success:!0,total:E})}catch(e){(0,_.A)({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let p=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),S=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),i=t(95969),n=t(29021),o=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:c+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),i=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,a=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== + `,[`datasquirel_user_${t.id}%`]),o=(Array.isArray(e)?e:[]).reduce((e,r,t)=>e?.mb?e.mb+r.mb:e+r.mb,0),n=0,a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)throw console.log("Static File ENV not Found!"),Error("No Static Path!");a||c().existsSync(a)||c().mkdirSync(a,{recursive:!0});let i=u().join(a,`images/user-images/user-${t.id}`);c().existsSync(i)||c().mkdirSync(i,{recursive:!0});let l=u().join(a,`images/user-images/user-${t.id}`),S=u().join(a,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=c().readdirSync(e);for(let t=0;t ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),(0,_.A)({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}c().existsSync(S)||c().mkdirSync(S,{recursive:!0}),await s(l),await s(S);let p=n+o;r.json({success:!0,total:p})}catch(e){(0,_.A)({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let m=(0,a.M)(s,"default"),D=(0,a.M)(s,"config"),g=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(39908),o=t.n(s);async function n(e,r,t){let s=o()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),o=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let a=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||s||r||n.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),n?.url&&(s+=` URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),a&&(s+=` -IP: ${a}`),s+=` -Date: ${o.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let c=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",s),i().appendFileSync("./.tmp/error.log",` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${a.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let c=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",s),o().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),i=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,o,a),u=i.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53662);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(7447);async function o(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),o=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53662);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js index 13526e0..973cf35 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2312,e.ids=[2312],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},37075:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT id, table_name, table_slug FROM user_database_tables WHERE user_id='${t.id}' AND db_id='${e.query.dbId}'`);r.json({success:!0,tables:s})}let d=(0,i.M)(s,"default"),l=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=37075);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2312,e.ids=[2312],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},37075:(e,r,s)=>{s.r(r),s.d(r,{config:()=>d,default:()=>c,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>_});var n=s(89947),o=s(2706),a=s(96762),i=s(48786),u=s(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let s=await (0,u.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let t=await (0,i.A)(`SELECT id, table_name, table_slug FROM user_database_tables WHERE user_id='${s.id}' AND db_id='${e.query.dbId}'`);r.json({success:!0,tables:t})}let c=(0,a.M)(t,"default"),d=(0,a.M)(t,"config"),D=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(39908),n=s.n(t);async function o(e,r,s){let t=n()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},48786:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(7447);async function n(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(9973),n=s.n(t);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=37075);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 30850e5..b00bae8 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2,e.ids=[2],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36857:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>l});var s={};t.r(s),t.d(s,{default:()=>c});var n=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await (0,a.A)(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${t.id}'`);r.json({success:!0,databases:s})}let d=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),l=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36857);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2,e.ids=[2],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},36857:(e,r,s)=>{s.r(r),s.d(r,{config:()=>d,default:()=>c,routeModule:()=>D});var n={};s.r(n),s.d(n,{default:()=>_});var t=s(89947),o=s(2706),a=s(96762),i=s(48786),u=s(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let s=await (0,u.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let n=await (0,i.A)(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${s.id}'`);r.json({success:!0,databases:n})}let c=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),D=new t.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:n})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(39908),t=s.n(n);async function o(e,r,s){let n=t()({req:e,level:s?"deep":void 0});return console.log(n),n.payload}},48786:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(7447);async function t(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(9973),t=s.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=36857);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 2c34102..c39a6cd 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7664,e.ids=[7664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},35179:(e,r,t)=>{t.r(r),t.d(r,{config:()=>l,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),o=t(2706),i=t(96762),a=t(48786),u=t(69842);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=await (0,a.A)(`SELECT * FROM user_media WHERE user_id=${t.id} ORDER BY id DESC`);r.json({media:n})}let d=(0,i.M)(n,"default"),l=(0,i.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=s}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(o,i,a),c=s.Buffer.alloc(16,0),d=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=35179);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7664,e.ids=[7664],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},35179:(e,r,s)=>{s.r(r),s.d(r,{config:()=>d,default:()=>c,routeModule:()=>D});var n={};s.r(n),s.d(n,{default:()=>_});var o=s(89947),t=s(2706),i=s(96762),a=s(48786),u=s(69842);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let s=await (0,u.A)(e,r);if(!s)return r.json({success:!1,msg:"Unauthorized"});let n=await (0,a.A)(`SELECT * FROM user_media WHERE user_id=${s.id} ORDER BY id DESC`);r.json({media:n})}let c=(0,i.M)(n,"default"),d=(0,i.M)(n,"config"),D=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:n})},69842:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(39908),o=s.n(n);async function t(e,r,s){let n=o()({req:e,level:s?"deep":void 0});return console.log(n),n.payload}},48786:(e,r,s)=>{s.d(r,{A:()=>o});var n=s(7447);async function o(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>t});var n=s(9973),o=s.n(n);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=35179);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 776b4e7..f8b3214 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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22133:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),o=t(2706),i=t(96762),a=t(29021),c=t.n(a),u=t(67619),l=t(69842);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(c().readFileSync(e,"utf8"));r.json({success:!0,schemaData:n})}catch(e){(0,u.A)({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let f=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2221,e.ids=[2221],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22133:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>m,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),o=t(96762),i=t(29021),u=t.n(i),l=t(67619),c=t(69842);async function d(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(u().readFileSync(e,"utf8"));r.json({success:!0,schemaData:n})}catch(e){(0,l.A)({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let m=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),f=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),a=t.n(n);async function s(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(n+=` -URL: ${o.url}`),o?.body&&(n+=` -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",` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let u=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,i,a),u=s.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22133);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22133);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json index 58d1ffb..192fb51 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json b/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json index 58d1ffb..102da1c 100644 --- a/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 e36d4e9..4847ad1 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8675,e.ids=[8675],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},54356:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>E,routeModule:()=>v});var a={};t.r(a),t.d(a,{default:()=>b});var s=t(89947),n=t(2706),l=t(96762),i=t(29021),o=t.n(i),u=t(21820),c=t.n(u),d=t(79646),m=t(30944),p=t(4820),_=t(21724),f=t(98e3);function S(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}async function h({userId:e,database:r}){try{if(!e){console.log("No user Id provided");return}let t=(0,p.A)({userId:e});if(!t)throw Error("User schema data not found!");let a=t.filter(e=>e.dbFullName===r.db_full_name)[0],s=await (0,m.A)({database:r.db_full_name,queryString:`SHOW TABLES FROM ${r.db_full_name}`});if(!s)throw Error("No Existing Tables");for(let t=0;te.Field===a)[0],m=i.indexes?.filter(e=>e.indexName==t);m&&m[0]?m[0].indexTableFields?.push({value:a,dataType:d.Type.toUpperCase()}):(c.indexTableFields=[{value:a,dataType:d.Type.toUpperCase()}],i.indexes?.push(c))}a.tables.push(i)}return(0,_.A)({schemaData:t,userId:e}),!0}catch(e){return console.log(e),!1}}var g=t(67619),y=t(69842);async function b(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,y.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:a,fileBase64:s}=e.body;a?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=`user-${t.id}-temp-sql`,n=c().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";o().writeFileSync(`./.tmp/${e}.sql`,s,"base64");let l={cwd:process.cwd()};c().platform().match(/win/i)&&(l.shell="bash.exe"),(0,d.execSync)(`${n} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${a.db_full_name} < .tmp/${e}.sql`,l);let i=await h({database:a,userId:t.id});r.json({success:!!i})}catch(e){console.log(e),(0,g.A)({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,l.M)(a,"default"),A=(0,l.M)(a,"config"),v=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(48786),s=t(95969),n=t(29021),l=t.n(n),i=t(89159);async function o(e,r,t){try{let{keyCookieName:n,csrfCookieName:o}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!l().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=a;let o=r;return e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),{keyCookieName:l,csrfCookieName:i,oneTimeCodeName:o+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(67619),s=t(29021),n=t.n(s),l=t(33873),i=t.n(l);function o({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== -Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +"use strict";(()=>{var e={};e.id=8675,e.ids=[8675],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},54356:(e,t,r)=>{r.r(t),r.d(t,{config:()=>$,default:()=>v,routeModule:()=>A});var a={};r.r(a),r.d(a,{default:()=>S});var s=r(89947),l=r(2706),n=r(96762),i=r(29021),o=r.n(i),u=r(21820),d=r.n(u),c=r(79646),m=r(30944),p=r(4820),f=r(21724),g=r(98e3);function b(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}async function h({userId:e,database:t}){try{if(!e){console.log("No user Id provided");return}let r=(0,p.A)({userId:e});if(!r)throw Error("User schema data not found!");let a=r.filter(e=>e.dbFullName===t.db_full_name)[0],s=await (0,m.A)({database:t.db_full_name,queryString:`SHOW TABLES FROM ${t.db_full_name}`});if(!s)throw Error("No Existing Tables");for(let r=0;re.Field===a)[0],m=i.indexes?.filter(e=>e.indexName==r);m&&m[0]?m[0].indexTableFields?.push({value:a,dataType:c.Type.toUpperCase()}):(d.indexTableFields=[{value:a,dataType:c.Type.toUpperCase()}],i.indexes?.push(d))}a.tables.push(i)}return(0,f.A)({schemaData:r,userId:e}),!0}catch(e){return console.log(e),!1}}var y=r(67619),_=r(69842);async function S(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await (0,_.A)(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=d().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";o().writeFileSync(`./.tmp/${e}.sql`,s,"base64");let n={cwd:process.cwd()};d().platform().match(/win/i)&&(n.shell="bash.exe"),(0,c.execSync)(`${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 h({database:a,userId:r.id});t.json({success:!!i})}catch(e){console.log(e),(0,y.A)({component:"/api/importDatabase/catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Import Failed!"})}}let v=(0,n.M)(a,"default"),$=(0,n.M)(a,"config"),A=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},69842:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(39908),s=r.n(a);async function l(e,t,r){let a=s()({req:e,level:r?"deep":void 0});return console.log(a),a.payload}},4820:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(67619),s=r(29021),l=r.n(s),n=r(33873),i=r.n(n);function o({userId:e}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(t,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l",t.message),e}}},67619:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(29021),s=r.n(a);async function l({user:e,message:t,component:r,noMail:a,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 a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(a+=` -URL: ${n.url}`),n?.body&&(a+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +User Email: ${e?.email}`),l?.url&&(a+=` +URL: ${l.url}`),l?.body&&(a+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),i&&(a+=` IP: ${i}`),a+=` -Date: ${l.toDateString()} +Date: ${n.toDateString()} ========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let o=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},21724:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(67619),s=t(29021),n=t.n(s),l=t(33873),i=t.n(l);function o({userId:e,schemaData:r}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return n().writeFileSync(t,JSON.stringify(r),"utf8"),!0}catch(e){return(0,a.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(43775),s=t(67619),n=t(48786),l=t(37275),i=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),m=u?i.A:d?n.A:l.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await m(e,r):await m({paradigm:"Full Access",queryString:e,queryValues:r}):d?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await (0,a.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,a.scryptSync)(n,l,i),u=s.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(54356));module.exports=a})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},21724:(e,t,r)=>{r.d(t,{A:()=>o});var a=r(67619),s=r(29021),l=r.n(s),n=r(33873),i=r.n(n);function o({userId:e,schemaData:t}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(r,JSON.stringify(t),"utf8"),!0}catch(e){return(0,a.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(43775),s=r(67619),l=r(7447),n=r(64292);async function i({queryString:e,queryValuesArray:t,database:r,tableSchema:i,useLocal:o,debug:u}){let d=(0,l.A)({fa:!0});o&&(d=(0,l.A)({local:!0})),r?.match(/^datasquirel$/)&&(d=(0,l.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",t));let c=await (0,n.A)(d,e,t);if(u&&console.log("varDatabaseDbHandler:results:",c),c&&i)try{return await (0,a.A)({unparsedResults:c,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(55511),s=r(79428),l=r(32443);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:o,algorithm:u,bufferAllocSize:d}=(0,l.A)({encryptionKey:t});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,a.scryptSync)(n,i,o),m=s.Buffer.alloc(d,0),p=(0,a.createDecipheriv)(u,c,m);try{let t=p.update(e,"hex","utf8");return t+=p.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[1251],()=>r(54356));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json index 44187bf..cd6bbd2 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 fc4fb10..3ed7f51 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},84612:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>E,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>p});var o=t(89947),n=t(2706),a=t(96762),i=t(29021),u=t.n(i),c=t(33873),d=t.n(c),l=t(67619),_=t(69842),f=t(76856);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,fileBase64:o}=e.body;s?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(o,"base64").toString("utf-8"),n=JSON.parse(e),a=d().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!u().existsSync(a))return r.end();let i=JSON.parse(u().readFileSync(a,"utf-8")),c=i.find(e=>e.dbFullName==s.db_full_name);if(!c)throw Error("Database not found!");c.tables=n.tables,u().writeFileSync(a,JSON.stringify(i),"utf-8"),await (0,f.A)({userId:t.id,targetDatabase:s.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),(0,l.A)({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let E=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),A=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),o=t(95969),n=t(29021),a=t.n(n),i=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,o.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:u+=o}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(84612));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,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}}})},84612:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>l,routeModule:()=>m});var t={};s.r(t),s.d(t,{default:()=>D});var n=s(89947),o=s(2706),a=s(96762),i=s(29021),u=s.n(i),_=s(33873),c=s.n(_),S=s(67619),d=s(69842),p=s(76856);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{database:t,fileBase64:n}=e.body;t?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(n,"base64").toString("utf-8"),o=JSON.parse(e),a=c().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${s.id}/main.json`);if(!u().existsSync(a))return r.end();let i=JSON.parse(u().readFileSync(a,"utf-8")),_=i.find(e=>e.dbFullName==t.db_full_name);if(!_)throw Error("Database not found!");_.tables=o.tables,u().writeFileSync(a,JSON.stringify(i),"utf-8"),await (0,p.A)({userId:s.id,targetDatabase:t.db_full_name}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),(0,S.A)({component:"/api/importDatabase/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Import Failed!"})}}let l=(0,a.M)(t,"default"),f=(0,a.M)(t,"config"),m=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(39908),n=s.n(t);async function o(e,r,s){let t=n()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(9973),n=s.n(t);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[9814],()=>s(84612));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json index 93f4dc8..d4e0dc3 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/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","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 56e7cf1..fdb5888 100644 --- a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36629:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>_,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>d});var a=t(89947),n=t(2706),o=t(96762),l=t(69842),i=t(67619),c=t(60125),u=t(30944);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;try{let a=await (0,c.A)({databaseSlug:s.dbName,request:e,user:t,query:e.query}),n=a?a?.rootUserId?a.rootUserId:a.dbUserId:null;if(!n)throw Error("User not Found!");let o=`datasquirel_user_${n}_${s.dbName}`,l=s.tableName,i=s.page,d=20*i,_=`SELECT * FROM ${o}.${l}`,f=[];s.search&&s.searchField&&(_+=` WHERE LOWER(\`${s.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,f.push(`%${s.search.toLowerCase()}%`)),_+=` ORDER BY id DESC LIMIT 20 OFFSET ${d}`;let p=await (0,u.A)({database:o,queryString:_,queryValuesArray:f,tableSchema:s.tableSchema}),E={success:!0,data:p,page:Number(i)+1};r.json(E)}catch(e){(0,i.A)({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}let _=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),p=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:s})},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),l=t(89159);async function i(e,r,t){try{let{keyCookieName:n,csrfCookieName:i}=(0,l.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let l=r;e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),l+=s;let i=r;return e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),{keyCookieName:o,csrfCookieName:l,oneTimeCodeName:i+=a}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36629:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>p,routeModule:()=>S});var a={};t.r(a),t.d(a,{default:()=>d});var s=t(89947),n=t(2706),o=t(96762),l=t(69842),i=t(67619),u=t(60125),c=t(30944);async function d(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body;try{let s=await (0,u.A)({databaseSlug:a.dbName,request:e,user:t,query:e.query}),n=s?s?.rootUserId?s.rootUserId:s.dbUserId:null;if(!n)throw Error("User not Found!");let o=`datasquirel_user_${n}_${a.dbName}`,l=a.tableName,i=a.page,d=20*i,p=`SELECT * FROM ${o}.${l}`,_=[];a.search&&a.searchField&&(p+=` WHERE LOWER(\`${a.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,_.push(`%${a.search.toLowerCase()}%`)),p+=` ORDER BY id DESC LIMIT 20 OFFSET ${d}`;let S=await (0,c.A)({database:o,queryString:p,queryValuesArray:_,tableSchema:a.tableSchema}),f={success:!0,data:S,page:Number(i)+1};r.json(f)}catch(e){(0,i.A)({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}let p=(0,o.M)(a,"default"),_=(0,o.M)(a,"config"),S=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:a})},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let n=t.id,o=null;if(!s?.delegated)return{dbUserId:n};let l=s.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(39908),s=t.n(a);async function n(e,r,t){let a=s()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(s+=` -URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(s+=` -IP: ${l}`),s+=` +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` Date: ${o.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().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",a),s().appendFileSync("./.tmp/error.log",` -${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(43775),a=t(67619),n=t(48786),o=t(37275),l=t(7971);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),_=c?l.A:d?n.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&i)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let i=(0,s.scryptSync)(n,o,l),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",i,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36629);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(43775),s=t(67619),n=t(7447),o=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:i,debug:u}){let c=(0,n.A)({fa:!0});i&&(c=(0,n.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,n.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&l)try{return await (0,a.A)({unparsedResults:d,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),s=t(79428),n=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:l,keyLen:i,algorithm:u,bufferAllocSize:c}=(0,n.A)({encryptionKey:r});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 d=(0,a.scryptSync)(o,l,i),p=s.Buffer.alloc(c,0),_=(0,a.createDecipheriv)(u,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;aa})},7447:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(9973),s=t.n(a);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36629);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 a62f85e..4e91df9 100644 --- a/dsql-app/.local_dist/server/pages/api/loginUser.js +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js @@ -1,19 +1,16 @@ -"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},19813:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>S,routeModule:()=>h});var t={};s.r(t),s.d(t,{default:()=>E});var i=s(89947),a=s(2706),n=s(96762),o=s(29021),l=s.n(o),d=s(48786),u=s(49941),_=s(67619),m=s(96052),c=s(2416),p=s(89159),g=s(83919),f=s(68829);async function E(e,r){if("POST"===e.method){let s=e.body,t=s.email,i=s.password,a=s.query;if(t.match(/ /))return r.json({user:null,msg:"Invalid Email"});try{let s=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!s)throw Error("loginUser error: process.env.DSQL_USER_LOGIN_KEYS_PATH not present");l().existsSync(s)||l().mkdirSync(s,{recursive:!0});let n=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,o=process.env.DSQL_HOST||"https://datasquirel.com",_=(0,g.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:i});if(i?.match(/ /)||t?.match(/ /))return r.json({msg:"Failed!",user:null});let E=await (0,d.A)("SELECT * FROM users WHERE email=? OR username=?",[t,t]);if(!E||!E[0])return r.json({msg:"No user found",user:null});let S=!1;if(E&&E[0]&&(S=_===E[0].password),!S)return await (0,c.A)(),(0,m.A)({to:process.env.DSQL_CONTACT_EMAIL,subject:`Failed Login from ${t}`,html:`

${t} tried to login with a wrong password

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

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

${t} successfully logged in

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

`}),r.json({msg:"User Found",user:{auth:!0,userid:E[0].id,csrf_k:A,stripe_id:E[0].stripe_id||""},userPayload:h})}catch(e){console.log("Login Error =>",e.message),(0,_.A)({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:t}})}}else r.json({msg:"Oops ..."})}let S=(0,n.M)(t,"default"),A=(0,n.M)(t,"config"),h=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:t})},2416:(e,r,s)=>{s.d(r,{A:()=>t});async function t(e){return await new Promise((r,s)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},49941:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(67619),i=s(48786),a=s(98e3),n=s(7971);async function o({query:e,user:r,useLocal:s}){try{let t=s?n.A:i.A,{invite:o,database_access:l,priviledge:d,email:u}=e,_=[o,u],m=await t("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",_);if(!m||!m[0])throw Error("No Invitation Found");let c=[o],p=await t("SELECT first_name,last_name,email FROM users WHERE id=?",c);if(p?.[0]){let e=await t("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[o,r.id,u]);if(e?.[0])console.log("User already added");else{(0,a.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:o,invited_user_id:r.id,database_access:l,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:d,image:r.image,image_thumbnail:r.image_thumbnail},useLocal:s});let e=await t("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[o,u]);if(await t("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[o,r.id]),e&&e[0]){let t=e[0].db_tables_data.split("|");for(let e=0;e{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=s;let o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:n,csrfCookieName:o,oneTimeCodeName:l+=i}}},96052:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(29021),i=s.n(t),a=s(21572);let n=s.n(a)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function o({to:e,subject:r,text:s,html:t,alias:a,senderName:o}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!i().existsSync("./email/index.html"))return;let u=i().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${o||"Datasquirel"}" <${d}>`,t.sender=d,a&&(t.replyTo=d),t.to=e,t.subject=r,t.text=s,t.html=u,l=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},67619:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(29021),i=s.n(t);async function a({user:e,message:r,component:s,noMail:t,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],s=a.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],i=s||t||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},19813:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>c,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),a=t(2706),i=t(96762),s=t(67619),l=t(28187),u=t.n(l);async function d(e,r){if("POST"===e.method)try{console.log("Loggin in user with DSQL loginUser util ...");let t=await u().user.loginUser({database:"datasquirel",payload:{email:e.body.email,username:e.body.email,password:e.body.password},response:r,useLocal:!0});return r.json(t)}catch(e){console.log("Login Error =>",e.message),(0,s.A)({component:"/api/loginUser/main-catch-error",message:e.message})}else r.json({success:!1,msg:"Oops ..."})}let c=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),m=new o.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:n})},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),o=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,s=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],o=t||n||r||a.socket.remoteAddress;if(!o)return null;return String(o)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` +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&&(t+=` -URL: ${a.url}`),a?.body&&(t+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(t+=` -IP: ${o}`),t+=` -Date: ${n.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",t),i().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),s&&(n+=` +IP: ${s}`),n+=` +Date: ${i.toDateString()} +========================================`,o().existsSync("./.tmp/error.log")||o().writeFileSync("./.tmp/error.log","","utf-8");let l=o().readFileSync("./.tmp/error.log","utf-8");o().writeFileSync("./.tmp/error.log",n),o().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},83919:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(55511);function i({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let i=(0,t.createHmac)("sha512",s);return i.update(e),i.digest("base64")}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(19813));module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=19813);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json index ff3a4b1..321943d 100644 --- a/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-db-full-name.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-dsql-connection.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json index 58d1ffb..102da1c 100644 --- a/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 ee2b84e..dcfda68 100644 --- a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2678,e.ids=[2678],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},38887:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>f});var i=t(89947),o=t(2706),n=t(96762),a=t(29021),c=t.n(a),u=t(48786),d=t(69842),l=t(33873),_=t.n(l);async function f(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;if(s.media_url?.match(/\.\./)||s.folder?.match(/\.\./)||s.id?.toString()?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});try{let e=s?.private==1,i=e?s?.media_path?.replace(/\@\/media/i,"")||s?.media_url.replace(/\@\/media/i,""):s?.media_path?.match(/\/user-images\/user-.*/)||s?.media_url?.match(/\/user-images\/user-.*/),o=s.folder?`/${s.folder}`:"",n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let a=_().join(n,"images"),d=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${t.id}`,l=`/images/user-images/user-${t.id}`,f=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`:a)+i,m=e?`${a}/user-images/user-${t.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`;if(!c().existsSync(m))try{c().mkdirSync(m,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}o&&o.split("/").reduce((e,r)=>{let t=e?.match(/./)?`${e}/${r}`:m;return c().existsSync(t)||c().mkdirSync(t,{recursive:!0}),t},"");let E=f?.match(/[^\/]+$/)?.[0];if(!E)throw Error("No File Name Detected!");let p=E.split(".")[0],S=E.split(".")[1],h=e?`${d}${o?o+"/":"/"}${E}`:`@/media${o?o+"/":"/"}${E}`,A=e?`${l}${o?o+"/":"/"}${E}`:`@/media${o?o+"/":"/"}${E}`,$=m+o+"/"+E;c().copyFileSync(f,$),c().unlinkSync(f);let v=p+"_thumbnail."+S,y=f.replace(E,v),g=e?`${d}${o?o+"/":"/"}${v}`:`@/media${o?o+"/":"/"}${v}`,P=e?`${l}${o?o+"/":"/"}${v}`:`@/media${o?o+"/":"/"}${v}`;try{c().copyFileSync(y,m+o+"/"+v),c().unlinkSync(y)}catch(e){}await (0,u.A)("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,h,g,A,P,s.id]),r.json({success:!0,msg:"Success!"})}catch(e){console.log(e.message),r.json({success:!1,msg:"Error!",error:e})}}let m=(0,n.M)(s,"default"),E=(0,n.M)(s,"config"),p=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),i=t(95969),o=t(29021),n=t.n(o),a=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:n,csrfCookieName:a,oneTimeCodeName:c+=i}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),i=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,n,a),u=i.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=38887);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2678,e.ids=[2678],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,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}}})},38887:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>m,routeModule:()=>D});var t={};s.r(t),s.d(t,{default:()=>S});var i=s(89947),o=s(2706),a=s(96762),n=s(29021),c=s.n(n),u=s(48786),d=s(69842),_=s(33873),l=s.n(_);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let s=await (0,d.A)(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-.*/),o=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 n=l().join(a,"images"),d=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${s.id}`,_=`/images/user-images/user-${s.id}`,S=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/media`:n)+i,m=e?`${n}/user-images/user-${s.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/media`;if(!c().existsSync(m))try{c().mkdirSync(m,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}o&&o.split("/").reduce((e,r)=>{let s=e?.match(/./)?`${e}/${r}`:m;return c().existsSync(s)||c().mkdirSync(s,{recursive:!0}),s},"");let p=S?.match(/[^\/]+$/)?.[0];if(!p)throw Error("No File Name Detected!");let D=p.split(".")[0],v=p.split(".")[1],A=e?`${d}${o?o+"/":"/"}${p}`:`@/media${o?o+"/":"/"}${p}`,f=e?`${_}${o?o+"/":"/"}${p}`:`@/media${o?o+"/":"/"}${p}`,E=m+o+"/"+p;c().copyFileSync(S,E),c().unlinkSync(S);let P=D+"_thumbnail."+v,h=S.replace(p,P),g=e?`${d}${o?o+"/":"/"}${P}`:`@/media${o?o+"/":"/"}${P}`,L=e?`${_}${o?o+"/":"/"}${P}`:`@/media${o?o+"/":"/"}${P}`;try{c().copyFileSync(h,m+o+"/"+P),c().unlinkSync(h)}catch(e){}await (0,u.A)("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,A,g,f,L,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"),p=(0,a.M)(t,"config"),D=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(39908),i=s.n(t);async function o(e,r,s){let t=i()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},48786:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(7447);async function i(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(9973),i=s.n(t);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||i()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=38887);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json index d9291c4..8e974a8 100644 --- a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 5ddfa04..38b37c9 100644 --- a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2127,e.ids=[2127],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63311:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>l,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var o=t(89947),n=t(2706),i=t(96762),a=t(29021),c=t.n(a),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let s=JSON.parse(e.body).path.replace(/ /g,"").replace(/\.\./g,"");if(s?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});let o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id.toString().replace(/\//g,"")}`,n=s.replace(/\@/,o);c().createReadStream(n).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}let l=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),f=new o.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(48786),o=t(95969),n=t(29021),i=t.n(n),a=t(89159);async function c(e,r,t){try{let{keyCookieName:n,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,o.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(u);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",o=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=o}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),o=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,a),u=o.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",c,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=63311);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2127,e.ids=[2127],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},63311:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>l,routeModule:()=>P});var n={};t.r(n),t.d(n,{default:()=>c});var a=t(89947),i=t(2706),s=t(96762),o=t(29021),u=t.n(o),d=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let n=JSON.parse(e.body).path.replace(/ /g,"").replace(/\.\./g,"");if(n?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});let a=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id.toString().replace(/\//g,"")}`,i=n.replace(/\@/,a);u().createReadStream(i).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}let l=(0,s.M)(n,"default"),p=(0,s.M)(n,"config"),P=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(39908),a=t.n(n);async function i(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=63311);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json index d9291c4..15ac231 100644 --- a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 feec574..914270f 100644 --- a/dsql-app/.local_dist/server/pages/api/purgeDb.js +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3338,e.ids=[3338],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},670:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>S});var o={};t.r(o),t.d(o,{default:()=>f});var s=t(89947),n=t(2706),i=t(96762),c=t(29021),a=t.n(c),u=t(48786),l=t(69842),d=t(33873),_=t.n(d);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,l.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:t,payload:o}=e.body;try{console.log("Deleting media =>",o.id);let e=o.media_url,t=process.env.DSQL_STATIC_SERVER_DIR,s=process.env.DSQL_STATIC_HOST;if(!t){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let n=e.replace(s,""),i=_().join(t,n),c=a().existsSync(i);if(console.log("relativePath",n),console.log("STATIC_ROOT",t),console.log("STATIC_HOST",s),console.log("filePath",i),console.log("fileExist",c),c){r.json({success:!1});return}}catch(e){console.log("File verification Error =>",e.message),console.log("File Truly doesn't exist, cotinuing ...")}"user_media"===t&&await (0,u.A)(`DELETE FROM user_media WHERE id='${o.id}'`),r.json({success:!0})}let E=(0,i.M)(o,"default"),p=(0,i.M)(o,"config"),S=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:o})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var o=t(48786),s=t(95969),n=t(29021),i=t.n(n),c=t(89159);async function a(e,r,t){try{let{keyCookieName:n,csrfCookieName:a}=(0,c.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,o.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>o});function o(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",o=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let c=r;e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),c+=o;let a=r;return e?.userId&&(a+=`user_${e.userId}_`),n&&(a+=`${n}_`),{keyCookieName:i,csrfCookieName:c,oneTimeCodeName:a+=s}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var o=t(55511),s=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,c=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let a=(0,o.scryptSync)(n,i,c),u=s.Buffer.alloc(16,0),l=(0,o.createDecipheriv)("aes-192-cbc",a,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>o});async function o(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=670);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3338,e.ids=[3338],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,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}}})},670:(e,r,o)=>{o.r(r),o.d(r,{config:()=>p,default:()=>d,routeModule:()=>A});var s={};o.r(s),o.d(s,{default:()=>D});var n=o(89947),t=o(2706),i=o(96762),a=o(29021),c=o.n(a),u=o(48786),_=o(69842),l=o(33873),S=o.n(l);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,_.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{paradigm:o,payload:s}=e.body;try{console.log("Deleting media =>",s.id);let e=s.media_url,o=process.env.DSQL_STATIC_SERVER_DIR,n=process.env.DSQL_STATIC_HOST;if(!o){console.log("No Static Root Path"),r.json({success:!1,msg:"No Static Root Path"});return}let t=e.replace(n,""),i=S().join(o,t),a=c().existsSync(i);if(console.log("relativePath",t),console.log("STATIC_ROOT",o),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"===o&&await (0,u.A)(`DELETE FROM user_media WHERE id='${s.id}'`),r.json({success:!0})}let d=(0,i.M)(s,"default"),p=(0,i.M)(s,"config"),A=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:s})},69842:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(39908),n=o.n(s);async function t(e,r,o){let s=n()({req:e,level:o?"deep":void 0});return console.log(s),s.payload}},48786:(e,r,o)=>{o.d(r,{A:()=>n});var s=o(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let o=await r.query(...e);return JSON.parse(JSON.stringify(o))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(9973),n=o.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var o=r(r.s=670);module.exports=o})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json b/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 733d734..9a1c18a 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},79134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>y,routeModule:()=>h});var i={};t.r(i),t.d(i,{config:()=>_,default:()=>S});var s=t(89947),a=t(2706),n=t(96762),l=t(29021),o=t.n(l),u=t(33873),d=t.n(u),c=t(98e3),m=t(61932),p=t(45185),f=t(67619),g=t(56081);let _={api:{bodyParser:{sizeLimit:"50mb"}}};async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let i=(0,g.A)({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=i;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{fileData:n,fileName:l,mimeType:u,folder:f,isPrivate:_}=e.body,S=process.env.DSQL_STATIC_SERVER_DIR;if(!S)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(f){let e=d().join(S,`images/user-images/user-${s}/${f?.toString().replace(/\.\./g,"")}`);o().existsSync(e)||o().mkdirSync(e,{recursive:!0})}let y=(0,p.A)({folder:f,isPrivate:_,userId:i.user_id});if(!y)throw Error("Couldn't Grab Image URLs");let{fileRootPath:E,urlRootPath:h}=y,v=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",A=h+l+v;o().writeFileSync(E+l+v,n,"base64"),await (0,m.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:A}),await (0,c.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:s,media_name:l,media_url:A,media_thumbnail_url:A,folder:f||"",media_type:"file",private:_?"1":null}}),r.json({success:!0,payload:{urlPath:A}})}catch(t){console.log("File write error:",t),(0,f.A)({component:"/api/query/add-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Add File Error!",error:t.message})}}let y=(0,n.M)(i,"default"),E=(0,n.M)(i,"config"),h=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/add-file",pathname:"/api/query/[user_id]/add-file",bundlePath:"",filename:""},userland:i})},45185:(e,r,t)=>{t.d(r,{A:()=>l});var i=t(29021),s=t.n(i),a=t(33873),n=t.n(a);function l({isPrivate:e,userId:r,folder:t,video:i,pathOnly:a}){"production".match(/production/);let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let o=e?`@/${i?"videos":"media"}/${t?t+"/":""}`:i?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(l,o);return s().existsSync(u)||a||s().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${o}`,relativePath:o}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(29021),s=t.n(i),a=t(95969);let n=({key:e,database:r,table:t,user_id:i,media:n})=>{if(!e||!i)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,a.A)({encryptedString:e}),u=JSON.parse(o||""),d=s().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(i)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(48786),s=t(37275),a=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?a.A:d?i.A:s.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,queryValues:[o]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(29021),s=t.n(i);async function a({user:e,message:r,component:t,noMail:i,req:a}){let n=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},79134:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>_,routeModule:()=>v});var i={};t.r(i),t.d(i,{config:()=>S,default:()=>y});var a=t(89947),s=t(2706),n=t(96762),l=t(29021),o=t.n(l),u=t(33873),d=t.n(u),c=t(98e3),m=t(61932),p=t(45185),f=t(67619),g=t(56081);let S={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let i=(0,g.A)({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:a,full_access:s}=i;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{fileData:n,fileName:l,mimeType:u,folder:f,isPrivate:S}=e.body,y=process.env.DSQL_STATIC_SERVER_DIR;if(!y)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(f){let e=d().join(y,`images/user-images/user-${a}/${f?.toString().replace(/\.\./g,"")}`);o().existsSync(e)||o().mkdirSync(e,{recursive:!0})}let _=(0,p.A)({folder:f,isPrivate:S,userId:i.user_id});if(!_)throw Error("Couldn't Grab Image URLs");let{fileRootPath:h,urlRootPath:v}=_,A=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",$=v+l+A;o().writeFileSync(h+l+A,n,"base64"),await (0,m.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:$}),await (0,c.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:a,media_name:l,media_url:$,media_thumbnail_url:$,folder:f||"",media_type:"file",private:S?"1":null}}),r.json({success:!0,payload:{urlPath:$}})}catch(t){console.log("File write error:",t),(0,f.A)({component:"/api/query/add-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Add File Error!",error:t.message})}}let _=(0,n.M)(i,"default"),h=(0,n.M)(i,"config"),v=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-file",pathname:"/api/query/[user_id]/add-file",bundlePath:"",filename:""},userland:i})},45185:(e,r,t)=>{t.d(r,{A:()=>l});var i=t(29021),a=t.n(i),s=t(33873),n=t.n(s);function l({isPrivate:e,userId:r,folder:t,video:i,pathOnly:s}){"production".match(/production/);let l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let o=e?`@/${i?"videos":"media"}/${t?t+"/":""}`:i?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(l,o);return a().existsSync(u)||s||a().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${o}`,relativePath:o}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(29021),a=t.n(i),s=t(95969);let n=({key:e,database:r,table:t,user_id:i,media:n})=>{if(!e||!i)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),u=JSON.parse(o||""),d=a().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(i)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(48786),a=t(37897),s=t(62050);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s.A:d?i.A:a.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${l}\`=?`;return d?await c(m,[o]):await c({paradigm:r,queryString:m,queryValues:[o]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var i=t(29021),a=t.n(i);async function s({user:e,message:r,component:t,noMail:i,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||i||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(i+=` -URL: ${a.url}`),a?.body&&(i+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(i+=` +User Email: ${e?.email}`),s?.url&&(i+=` +URL: ${s.url}`),s?.body&&(i+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(i+=` IP: ${l}`),i+=` Date: ${n.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let o=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",i),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let o=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",i),a().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var i=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,i.scryptSync)(a,n,l),u=s.Buffer.alloc(16,0),d=(0,i.createDecipheriv)("aes-192-cbc",o,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[1251],()=>t(79134));module.exports=i})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var i=t(55511),a=t(79428),s=t(32443);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:l,keyLen:o,algorithm:u,bufferAllocSize:d}=(0,s.A)({encryptionKey:r});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 c=(0,i.scryptSync)(n,l,o),m=a.Buffer.alloc(d,0),p=(0,i.createDecipheriv)(u,c,m);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[1251],()=>t(79134));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json index ab1eaf4..357ea88 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js index e0a1bc0..66836fb 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=5319,e.ids=[5319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},72944:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>h,routeModule:()=>v});var a={};t.r(a),t.d(a,{config:()=>S,default:()=>_});var i=t(89947),s=t(2706),n=t(96762),o=t(29021),l=t.n(o),u=t(33873),d=t.n(u),c=t(98e3),m=t(61932),g=t(96551),p=t(67619),f=t(56081);let S={api:{bodyParser:{sizeLimit:"50mb"}}};async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)throw Error("No Authorization Found!");let a=(0,f.A)({key:t,user_id:String(e.query.user_id),media:!0});if(!a?.user_id)throw Error(a?.error||"Api Credentials invalid!");let{user_id:i,full_access:s}=a;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{imageData:n,imageName:o,mimeType:u,thumbnailSize:p,folder:S,isPrivate:_}=e.body,h=process.env.DSQL_STATIC_SERVER_DIR;if(!h)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(S){let e=d().join(h,`images/user-images/user-${i}/${S}`);l().existsSync(e)||l().mkdirSync(e,{recursive:!0})}let y=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",v=await (0,g.A)({imageName:o.replace(/ /g,"-").replace(/\.{1,}|\//g,""),imageSourceBase64:n,userId:i,mimeType:y,thumbnailSize:p,folder:S,isPrivate:_});if(!v)throw Error("Write Image Failed in add-media API route");let{urlPath:E,urlThumbnailPath:A}=v;await (0,m.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:E}),await (0,c.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:i,media_name:o,media_url:E,media_thumbnail_url:A,folder:S||""}}),r.json({success:!0,payload:{urlPath:E,urlThumbnailPath:A}})}catch(t){(0,p.A)({component:"/api/query/add-image/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Add Image Error!",error:t.message})}}let h=(0,n.M)(a,"default"),y=(0,n.M)(a,"config"),v=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:a})},96551:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9288),i=t.n(a),s=t(67619),n=t(45185);async function o({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:o,folder:l,isPrivate:u}){try{let s=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i()(s),m=i()(s),g=(0,n.A)({isPrivate:u,userId:t,folder:l});if(!g)return null;let{fileRootPath:p,urlRootPath:f,relativePath:S}=g,{width:_,height:h,format:y}=await c.metadata(),v=a||y;_&&h&&_>1800&&c.resize(1800,Math.round(1800/_*h),{fit:"cover"}),c.toFormat(v,{quality:80}),await c.metadata();let E=`${r}.${v}`;if(await c.toFile(p+E),_&&h&&_>d){let e=d/_;m.resize(d,Math.round(h*e),{fit:"cover"})}else _&&h&&m.resize(150,Math.round(150/_*h),{fit:"cover"});m.toFormat(v,{quality:80});let A=`${r}_thumbnail.${v}`;return await m.toFile(p+A),{urlPath:f+E,urlThumbnailPath:f+A,urlRelativePath:S+E,urlThumbnailRelativePath:S+A}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,s.A)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),i=t.n(a),s=t(33873),n=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:a,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:n().join(o,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),i=t.n(a),s=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),d=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!d)return null;if(!u.target_database||n)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),i=t(37275),s=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?s.A:d?a.A:i.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),i=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let n=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5319,e.ids=[5319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},72944:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>v});var a={};t.r(a),t.d(a,{config:()=>h,default:()=>y});var i=t(89947),n=t(2706),s=t(96762),o=t(29021),l=t.n(o),u=t(33873),d=t.n(u),c=t(98e3),m=t(61932),g=t(96551),p=t(67619),f=t(56081);let h={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)throw Error("No Authorization Found!");let a=(0,f.A)({key:t,user_id:String(e.query.user_id),media:!0});if(!a?.user_id)throw Error(a?.error||"Api Credentials invalid!");let{user_id:i,full_access:n}=a;if(!n)return r.json({success:!1,msg:"Unauthorized"});let{imageData:s,imageName:o,mimeType:u,thumbnailSize:p,folder:h,isPrivate:y}=e.body,S=process.env.DSQL_STATIC_SERVER_DIR;if(!S)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(h){let e=d().join(S,`images/user-images/user-${i}/${h}`);l().existsSync(e)||l().mkdirSync(e,{recursive:!0})}let _=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",v=await (0,g.A)({imageName:o.replace(/ /g,"-").replace(/\.{1,}|\//g,""),imageSourceBase64:s,userId:i,mimeType:_,thumbnailSize:p,folder:h,isPrivate:y});if(!v)throw Error("Write Image Failed in add-media API route");let{urlPath:A,urlThumbnailPath:$}=v;await (0,m.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:A}),await (0,c.A)({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:i,media_name:o,media_url:A,media_thumbnail_url:$,folder:h||""}}),r.json({success:!0,payload:{urlPath:A,urlThumbnailPath:$}})}catch(t){(0,p.A)({component:"/api/query/add-image/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Add Image Error!",error:t.message})}}let S=(0,s.M)(a,"default"),_=(0,s.M)(a,"config"),v=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:a})},96551:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9288),i=t.n(a),n=t(67619),s=t(45185);async function o({imageSourceBase64:e,imageName:r,userId:t,mimeType:a,thumbnailSize:o,folder:l,isPrivate:u}){try{let n=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,c=i()(n),m=i()(n),g=(0,s.A)({isPrivate:u,userId:t,folder:l});if(!g)return null;let{fileRootPath:p,urlRootPath:f,relativePath:h}=g,{width:y,height:S,format:_}=await c.metadata(),v=a||_;y&&S&&y>1800&&c.resize(1800,Math.round(1800/y*S),{fit:"cover"}),c.toFormat(v,{quality:80}),await c.metadata();let A=`${r}.${v}`;if(await c.toFile(p+A),y&&S&&y>d){let e=d/y;m.resize(d,Math.round(S*e),{fit:"cover"})}else y&&S&&m.resize(150,Math.round(150/y*S),{fit:"cover"});m.toFormat(v,{quality:80});let $=`${r}_thumbnail.${v}`;return await m.toFile(p+$),{urlPath:f+A,urlThumbnailPath:f+$,urlRelativePath:h+A,urlThumbnailRelativePath:h+$}}catch(e){return console.log("Write Image to Disk error =>",e.message),(0,n.A)({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},45185:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),i=t.n(a),n=t(33873),s=t.n(n);function o({isPrivate:e,userId:r,folder:t,video:a,pathOnly:n}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${a?"videos":"media"}/${t?t+"/":""}`:a?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:s().join(o,l);return i().existsSync(u)||n||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),i=t.n(a),n=t(95969);let s=({key:e,database:r,table:t,user_id:a,media:s})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,n.A)({encryptedString:e}),u=JSON.parse(l||""),d=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!d)return null;if(!u.target_database||s)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(48786),i=t(37897),n=t(62050);async function s({dbContext:e,paradigm:r,dbFullName:t,tableName:s,identifierColumnName:o,identifierValue:l,useLocal:u}){try{let d=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),c=u?n.A:d?a.A:i.A,m=`DELETE FROM \`${t}\`.\`${s}\` WHERE \`${o}\`=?`;return d?await c(m,[l]):await c({paradigm:r,queryString:m,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),i=t.n(a);async function n({user:e,message:r,component:t,noMail:a,req:n}){let s=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(a+=` -URL: ${s.url}`),s?.body&&(a+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(a+=` +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: ${n.toDateString()} +Date: ${s.toDateString()} ========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,n=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(s,n,o),u=i.Buffer.alloc(16,0),d=(0,a.createDecipheriv)("aes-192-cbc",l,u);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(72944));module.exports=a})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),i=t(79428),n=t(32443);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:s,salt:o,keyLen:l,algorithm:u,bufferAllocSize:d}=(0,n.A)({encryptionKey:r});if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,a.scryptSync)(s,o,l),m=i.Buffer.alloc(d,0),g=(0,a.createDecipheriv)(u,c,m);try{let r=g.update(e,"hex","utf8");return r+=g.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(72944));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json index bf5dcee..4deeba0 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../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-linux-x64/package.json","../../../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../../../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-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/lib/sharp-linux-x64.node","../../../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/color-convert/conversions.js","../../../../../../node_modules/color-convert/index.js","../../../../../../node_modules/color-convert/package.json","../../../../../../node_modules/color-convert/route.js","../../../../../../node_modules/color-name/index.js","../../../../../../node_modules/color-name/package.json","../../../../../../node_modules/color-string/index.js","../../../../../../node_modules/color-string/package.json","../../../../../../node_modules/color/index.js","../../../../../../node_modules/color/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-arrayish/index.js","../../../../../../node_modules/is-arrayish/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/semver/classes/comparator.js","../../../../../../node_modules/semver/classes/range.js","../../../../../../node_modules/semver/classes/semver.js","../../../../../../node_modules/semver/functions/cmp.js","../../../../../../node_modules/semver/functions/coerce.js","../../../../../../node_modules/semver/functions/compare.js","../../../../../../node_modules/semver/functions/eq.js","../../../../../../node_modules/semver/functions/gt.js","../../../../../../node_modules/semver/functions/gte.js","../../../../../../node_modules/semver/functions/lt.js","../../../../../../node_modules/semver/functions/lte.js","../../../../../../node_modules/semver/functions/neq.js","../../../../../../node_modules/semver/functions/parse.js","../../../../../../node_modules/semver/functions/satisfies.js","../../../../../../node_modules/semver/internal/constants.js","../../../../../../node_modules/semver/internal/debug.js","../../../../../../node_modules/semver/internal/identifiers.js","../../../../../../node_modules/semver/internal/lrucache.js","../../../../../../node_modules/semver/internal/parse-options.js","../../../../../../node_modules/semver/internal/re.js","../../../../../../node_modules/semver/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sharp/lib/channel.js","../../../../../../node_modules/sharp/lib/colour.js","../../../../../../node_modules/sharp/lib/composite.js","../../../../../../node_modules/sharp/lib/constructor.js","../../../../../../node_modules/sharp/lib/index.js","../../../../../../node_modules/sharp/lib/input.js","../../../../../../node_modules/sharp/lib/is.js","../../../../../../node_modules/sharp/lib/libvips.js","../../../../../../node_modules/sharp/lib/operation.js","../../../../../../node_modules/sharp/lib/output.js","../../../../../../node_modules/sharp/lib/resize.js","../../../../../../node_modules/sharp/lib/sharp.js","../../../../../../node_modules/sharp/lib/utility.js","../../../../../../node_modules/sharp/package.json","../../../../../../node_modules/simple-swizzle/index.js","../../../../../../node_modules/simple-swizzle/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../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-linux-x64/package.json","../../../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../../../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-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/lib/sharp-linux-x64.node","../../../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/color-convert/conversions.js","../../../../../../node_modules/color-convert/index.js","../../../../../../node_modules/color-convert/package.json","../../../../../../node_modules/color-convert/route.js","../../../../../../node_modules/color-name/index.js","../../../../../../node_modules/color-name/package.json","../../../../../../node_modules/color-string/index.js","../../../../../../node_modules/color-string/package.json","../../../../../../node_modules/color/index.js","../../../../../../node_modules/color/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-arrayish/index.js","../../../../../../node_modules/is-arrayish/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/semver/classes/comparator.js","../../../../../../node_modules/semver/classes/range.js","../../../../../../node_modules/semver/classes/semver.js","../../../../../../node_modules/semver/functions/cmp.js","../../../../../../node_modules/semver/functions/coerce.js","../../../../../../node_modules/semver/functions/compare.js","../../../../../../node_modules/semver/functions/eq.js","../../../../../../node_modules/semver/functions/gt.js","../../../../../../node_modules/semver/functions/gte.js","../../../../../../node_modules/semver/functions/lt.js","../../../../../../node_modules/semver/functions/lte.js","../../../../../../node_modules/semver/functions/neq.js","../../../../../../node_modules/semver/functions/parse.js","../../../../../../node_modules/semver/functions/satisfies.js","../../../../../../node_modules/semver/internal/constants.js","../../../../../../node_modules/semver/internal/debug.js","../../../../../../node_modules/semver/internal/identifiers.js","../../../../../../node_modules/semver/internal/lrucache.js","../../../../../../node_modules/semver/internal/parse-options.js","../../../../../../node_modules/semver/internal/re.js","../../../../../../node_modules/semver/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sharp/lib/channel.js","../../../../../../node_modules/sharp/lib/colour.js","../../../../../../node_modules/sharp/lib/composite.js","../../../../../../node_modules/sharp/lib/constructor.js","../../../../../../node_modules/sharp/lib/index.js","../../../../../../node_modules/sharp/lib/input.js","../../../../../../node_modules/sharp/lib/is.js","../../../../../../node_modules/sharp/lib/libvips.js","../../../../../../node_modules/sharp/lib/operation.js","../../../../../../node_modules/sharp/lib/output.js","../../../../../../node_modules/sharp/lib/resize.js","../../../../../../node_modules/sharp/lib/sharp.js","../../../../../../node_modules/sharp/lib/utility.js","../../../../../../node_modules/sharp/package.json","../../../../../../node_modules/simple-swizzle/index.js","../../../../../../node_modules/simple-swizzle/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file 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 5ab910c..664fac6 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7918,e.ids=[7918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},83701:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>m});var n={};t.r(n),t.d(n,{config:()=>g,default:()=>p});var s=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),c=t(48786),u=t(61932),d=t(67619),f=t(56081);let g={api:{bodyParser:{sizeLimit:"50mb"}}};async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,f.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=n;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{url:o}=e.body,i=await (0,c.A)("SELECT * FROM user_media WHERE media_url = ?",[o]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:d,folder:g,media_url:p,media_thumbnail_url:S,media_type:_}=i[0],m=process.env.DSQL_STATIC_SERVER_DIR;if(!m)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let y=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",m),E=y(p),A=y(S);if(!E?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{l().unlinkSync(E),l().unlinkSync(A),await (0,u.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:d}),r.json({success:!0,payload:{url:o}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:o},error:e.message})}}catch(t){console.log("File write error:",t),(0,d.A)({component:"/api/query/delete-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Delete File Error!",error:t.message})}}let S=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(48786),s=t(37275),a=t(7971);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:c}){try{let u=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?a.A:u?n.A:s.A,f=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return u?await d(f,[l]):await d({paradigm:r,queryString:f,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7918,e.ids=[7918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},83701:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>y});var n={};t.r(n),t.d(n,{config:()=>p,default:()=>S});var s=t(89947),o=t(2706),a=t(96762),i=t(29021),l=t.n(i),c=t(48786),u=t(61932),_=t(67619),d=t(56081);let p={api:{bodyParser:{sizeLimit:"50mb"}}};async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,d.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:o}=n;if(!o)return r.json({success:!1,msg:"Unauthorized"});let{url:a}=e.body,i=await (0,c.A)("SELECT * FROM user_media WHERE media_url = ?",[a]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:_,folder:p,media_url:S,media_thumbnail_url:f,media_type:g}=i[0],y=process.env.DSQL_STATIC_SERVER_DIR;if(!y)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let m=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",y),A=m(S),E=m(f);if(!A?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{l().unlinkSync(A),l().unlinkSync(E),await (0,u.A)({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:_}),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),(0,_.A)({component:"/api/query/delete-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Delete File Error!",error:t.message})}}let f=(0,a.M)(n,"default"),g=(0,a.M)(n,"config"),y=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n),o=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,o.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||a)return c;if(!r&&c.target_database)return null;let _=c.target_database?.split(",").includes(String(r));if(_&&!c.target_table)return c;if(_&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(48786),s=t(37897),o=t(62050);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.A:u?n.A:s.A,d=`DELETE FROM \`${t}\`.\`${a}\` WHERE \`${i}\`=?`;return u?await _(d,[l]):await _({paradigm:r,queryString:d,queryValues:[l]})}catch(e){return null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let 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"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} 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)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83701);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428),o=t(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:i,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,o.A)({encryptionKey:r});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 _=(0,n.scryptSync)(a,i,l),d=s.Buffer.alloc(u,0),p=(0,n.createDecipheriv)(c,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(64292),s=t(7447);async function o({paradigm:e,queryString:r,queryValues:t}){let o="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(o,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{o?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83701);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json index afe84de..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js index 5573728..6274053 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=5287,e.ids=[5287],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},45096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>E});var n={};t.r(n),t.d(n,{config:()=>g,default:()=>m});var i=t(89947),s=t(2706),a=t(96762),o=t(29021),l=t.n(o),u=t(33873),c=t.n(u),d=t(45185),p=t(67619),f=t(56081);let g={api:{bodyParser:{sizeLimit:"100mb"}}};async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,f.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:i,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{folder:a,fileName:o,downloadType:u}=e.body,p=(0,d.A)({folder:a,isPrivate:!0,userId:n.user_id});if(!p)throw Error("Couldn't Grab Image URLs");let{fileRootPath:g}=p,m=c().join(g,o);if(u?.match(/raw/i)){let e=l().readFileSync(m,"utf-8");return r.json({success:!0,data:e})}if(u?.match(/base64/i)){let e=l().readFileSync(m,"base64");return r.json({success:!0,data:e})}l().createReadStream(m).pipe(r)}catch(t){console.log("Get Private File Error:",t),(0,p.A)({component:"/api/query/get-private-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Get Private File Error!",error:t.message})}}let S=(0,a.M)(n,"default"),_=(0,a.M)(n,"config"),E=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/get-private-file",pathname:"/api/query/[user_id]/get-private-file",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n),s=t(33873),a=t.n(s);function o({isPrivate:e,userId:r,folder:t,video:n,pathOnly:s}){"production".match(/production/);let o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let l=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:a().join(o,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||a)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=5287,e.ids=[5287],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},45096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>_,routeModule:()=>y});var n={};t.r(n),t.d(n,{config:()=>g,default:()=>m});var i=t(89947),s=t(2706),o=t(96762),a=t(29021),l=t.n(a),u=t(33873),c=t.n(u),d=t(45185),p=t(67619),f=t(56081);let g={api:{bodyParser:{sizeLimit:"100mb"}}};async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,f.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:i,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{folder:o,fileName:a,downloadType:u}=e.body,p=(0,d.A)({folder:o,isPrivate:!0,userId:n.user_id});if(!p)throw Error("Couldn't Grab Image URLs");let{fileRootPath:g}=p,m=c().join(g,a);if(u?.match(/raw/i)){let e=l().readFileSync(m,"utf-8");return r.json({success:!0,data:e})}if(u?.match(/base64/i)){let e=l().readFileSync(m,"base64");return r.json({success:!0,data:e})}l().createReadStream(m).pipe(r)}catch(t){console.log("Get Private File Error:",t),(0,p.A)({component:"/api/query/get-private-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Get Private File Error!",error:t.message})}}let _=(0,o.M)(n,"default"),S=(0,o.M)(n,"config"),y=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/get-private-file",pathname:"/api/query/[user_id]/get-private-file",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(33873),o=t.n(s);function a({isPrivate:e,userId:r,folder:t,video:n,pathOnly:s}){"production".match(/production/);let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;let l=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:o().join(a,l);return i().existsSync(u)||s||i().mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n),s=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${a}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||o)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,a=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),s?.url&&(n+=` URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` -IP: ${o}`),n+=` -Date: ${a.toDateString()} +Request Body: ${JSON.stringify(s.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${o.toDateString()} ========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",n),i().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,a,o),u=i.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=45096);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),i=t(79428),s=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:a,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,s.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,a,l),p=i.Buffer.alloc(c,0),f=(0,n.createDecipheriv)(u,d,p);try{let r=f.update(e,"hex","utf8");return r+=f.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=45096);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json index 6c1568a..cc4e2d2 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js index afd3bcc..ab5cf7e 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js @@ -13,4 +13,4 @@ Date: ${i.toDateString()} -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,i,o),u=s.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=35597);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428),a=t(32443);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(i,o,l),p=s.Buffer.alloc(c,0),f=(0,n.createDecipheriv)(u,d,p);try{let r=f.update(e,"hex","utf8");return r+=f.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=35597);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json index 6c1568a..cc4e2d2 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js index 91d9721..1e43e85 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8446,e.ids=[8446],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},93777:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>b});var a={};t.r(a),t.d(a,{default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),c=t(27825),o=t.n(c),d=t(67619),m=t(36249);async function p({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){if("string"==typeof e&&e.match(/^alter|^delete|information_schema|databases|^create/i))return{success:!1,msg:"Wrong Input."};try{let n,{result:i,error:u}=await (0,m.A)({dbFullName:r,query:e,queryValuesArray:t,readOnly:!0,dbSchema:s,tableName:a,local:l});if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=o().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,n=r}}if(u)throw u;if(i.error)throw Error(i.error);return{success:!0,payload:i,schema:a&&n?n:void 0}}catch(e){return(0,d.A)({component:"/api/query/get/lines-85-94",message:e.message}),{success:!1,payload:null,error:e.message}}}var g=t(56081);async function y(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let t,a;let s=e.query,{query:l,db:n}=s,i=s?.tableName?String(s.tableName):void 0,c=e.headers.authorization;if(!c)return r.json({success:!1,msg:"Unauthorized"});let o=(0,g.A)({key:c,database:n,table:i,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:d}=o;if(s?.queryValues&&"string"==typeof s?.queryValues)try{t=JSON.parse(s.queryValues)}catch(e){}let m=`datasquirel_user_${d}_${n}`,y=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${d.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(y))try{a=JSON.parse(u().readFileSync(y,"utf8")).filter(e=>e.dbFullName===m)[0]}catch(e){}let f=`datasquirel_user_${d}_`,_=await p({dbFullName:m,query:l.replace(/datasquirel_user_\d+_/gi,f).replace(/__db/gi,m),tableName:i,queryValues:t,dbSchema:a});r.json(_)}catch(t){(0,d.A)({component:"/api/query/get/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let f=(0,n.M)(a,"default"),_=(0,n.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/get",pathname:"/api/query/[user_id]/get",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),c=JSON.parse(u||""),o=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(a)||!o)return null;if(!c.target_database||n)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37275),l=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:c}){try{let o=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?l.A:o?a.A:s.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return o?await d(m,[u]):await d({paradigm:r,queryString:m,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>m});var a=t(37275),s=t(7971),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.A)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.A)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.A)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.A)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var c=t(98e3),o=t(30802),d=t(61932);async function m({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:m}){let p,g,y;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");y=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");p=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:y,useLocal:m}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:y,local:m})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:f}=r;switch(a.toLowerCase()){case"insert":p=await (0,c.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:f,tableSchema:y,useLocal:m}),p?.insertId||(g=Error("Couldn't insert data"));break;case"update":p=await (0,o.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:y,useLocal:m});break;case"delete":p=await (0,d.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:y,useLocal:m});break;default:p=null}}}catch(e){(0,n.A)({component:"functions/backend/runQuery",message:e.message}),p=null,e=e.message}return{result:p,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8446,e.ids=[8446],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},93777:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>f,routeModule:()=>b});var a={};t.r(a),t.d(a,{default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),c=t(27825),o=t.n(c),d=t(67619),m=t(36249);async function p({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){if("string"==typeof e&&e.match(/^alter|^delete|information_schema|databases|^create/i))return{success:!1,msg:"Wrong Input."};try{let n,{result:i,error:u}=await (0,m.A)({dbFullName:r,query:e,queryValuesArray:t,readOnly:!0,dbSchema:s,tableName:a,local:l});if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=o().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,n=r}}if(u)throw u;if(i.error)throw Error(i.error);return{success:!0,payload:i,schema:a&&n?n:void 0}}catch(e){return(0,d.A)({component:"/api/query/get/lines-85-94",message:e.message}),{success:!1,payload:null,error:e.message}}}var g=t(56081);async function y(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let t,a;let s=e.query,{query:l,db:n}=s,i=s?.tableName?String(s.tableName):void 0,c=e.headers.authorization;if(!c)return r.json({success:!1,msg:"Unauthorized"});let o=(0,g.A)({key:c,database:n,table:i,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:d}=o;if(s?.queryValues&&"string"==typeof s?.queryValues)try{t=JSON.parse(s.queryValues)}catch(e){}let m=`datasquirel_user_${d}_${n}`,y=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${d.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(y))try{a=JSON.parse(u().readFileSync(y,"utf8")).filter(e=>e.dbFullName===m)[0]}catch(e){}let f=`datasquirel_user_${d}_`,h=await p({dbFullName:m,query:l.replace(/datasquirel_user_\d+_/gi,f).replace(/__db/gi,m),tableName:i,queryValues:t,dbSchema:a});r.json(h)}catch(t){(0,d.A)({component:"/api/query/get/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let f=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/get",pathname:"/api/query/[user_id]/get",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),c=JSON.parse(u||""),o=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(a)||!o)return null;if(!c.target_database||n)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37897),l=t(62050);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:c}){try{let o=!!c||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=c?l.A:o?a.A:s.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return o?await d(m,[u]):await d({paradigm:r,queryString:m,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>m});var a=t(37897),s=t(62050),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.A)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.A)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.A)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.A)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var c=t(98e3),o=t(30802),d=t(61932);async function m({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:m}){let p,g,y;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");y=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");p=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:y,useLocal:m}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:y,local:m})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:f}=r;switch(a.toLowerCase()){case"insert":p=await (0,c.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:f,tableSchema:y,useLocal:m}),p?.insertId||(g=Error("Couldn't insert data"));break;case"update":p=await (0,o.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:y,useLocal:m});break;case"delete":p=await (0,d.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:y,useLocal:m});break;default:p=null}}}catch(e){(0,n.A)({component:"functions/backend/runQuery",message:e.message}),p=null,e=e.message}return{result:p,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(55511),s=t(79428);function l({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,n=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(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,a.scryptSync)(l,n,i),c=s.Buffer.alloc(16,0),o=(0,a.createDecipheriv)("aes-192-cbc",u,c);try{let r=o.update(e,"hex","utf8");return r+=o.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(93777));module.exports=a})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428),l=t(32443);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:u,algorithm:c,bufferAllocSize:o}=(0,l.A)({encryptionKey:r});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 d=(0,a.scryptSync)(n,i,u),m=s.Buffer.alloc(o,0),p=(0,a.createDecipheriv)(c,d,m);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(93777));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json index d9ca58d..4f0fde9 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js index 8d6dbb6..b79e356 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=4112,e.ids=[4112],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},88749:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>_,routeModule:()=>h});var a={};t.r(a),t.d(a,{config:()=>f,default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),o=t(27825),c=t.n(o),d=t(67619),p=t(36249);async function m({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){let n;if("string"==typeof e&&e?.match(/^create |^alter |^drop /i)||"object"==typeof e&&e?.action?.match(/^create |^alter |^drop /i))return{success:!1,msg:"Wrong Input"};try{let i,{result:u,error:o}=await (0,p.A)({dbFullName:r,query:e,dbSchema:s,queryValuesArray:t,tableName:a,local:l});if(n=u,o)throw o;if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=c().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,i=r}}return{success:!0,payload:n,error:o,schema:a&&i?i:void 0}}catch(e){return(0,d.A)({component:"/api/query/post/lines-132-142",message:e.message}),{success:!1,payload:n,error:e.message}}}var g=t(56081);let f={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t,{query:a,database:s,tableName:l,queryValues:n}=e.body,i=e.headers.authorization,o=(0,g.A)({key:i,database:s,table:l,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:c,full_access:d}=o;if(!d)return r.json({success:!1,msg:"Unauthorized"});let p=`datasquirel_user_${c}_${s}`,f=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(f))try{t=JSON.parse(u().readFileSync(f,"utf8")).filter(e=>e.dbFullName===p)[0]}catch(e){}let y=`datasquirel_user_${c}_`,_=await m({query:"string"==typeof a?a.replace(/datasquirel_user_\d+_/gi,y).replace(/__db/gi,p):a,dbFullName:p,dbSchema:t,queryValues:n,tableName:l});r.json(_)}catch(t){(0,d.A)({component:"/api/query/post/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let _=(0,n.M)(a,"default"),b=(0,n.M)(a,"config"),h=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/post",pathname:"/api/query/[user_id]/post",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),o=JSON.parse(u||""),c=s().existsSync(`${i}/${o.sign}`);if(String(o.user_id)!==String(a)||!c)return null;if(!o.target_database||n)return o;if(!r&&o.target_database)return null;let d=o.target_database?.split(",").includes(String(r));if(d&&!o.target_table)return o;if(d&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37275),l=t(7971);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:o}){try{let c=!!o||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=o?l.A:c?a.A:s.A,p=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return c?await d(p,[u]):await d({paradigm:r,queryString:p,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>p});var a=t(37275),s=t(7971),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.A)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.A)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.A)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.A)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var o=t(98e3),c=t(30802),d=t(61932);async function p({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:p}){let m,g,f;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");f=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");m=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,useLocal:p}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,local:p})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:y}=r;switch(a.toLowerCase()){case"insert":m=await (0,o.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:y,tableSchema:f,useLocal:p}),m?.insertId||(g=Error("Couldn't insert data"));break;case"update":m=await (0,c.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:p});break;case"delete":m=await (0,d.A)({dbContext:p?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:p});break;default:m=null}}}catch(e){(0,n.A)({component:"functions/backend/runQuery",message:e.message}),m=null,e=e.message}return{result:m,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4112,e.ids=[4112],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},88749:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>b,routeModule:()=>A});var a={};t.r(a),t.d(a,{config:()=>f,default:()=>y});var s=t(89947),l=t(2706),n=t(96762),i=t(29021),u=t.n(i),o=t(27825),c=t.n(o),d=t(67619),m=t(36249);async function p({query:e,dbFullName:r,queryValues:t,tableName:a,dbSchema:s,useLocal:l}){let n;if("string"==typeof e&&e?.match(/^create |^alter |^drop /i)||"object"==typeof e&&e?.action?.match(/^create |^alter |^drop /i))return{success:!1,msg:"Wrong Input"};try{let i,{result:u,error:o}=await (0,m.A)({dbFullName:r,query:e,dbSchema:s,queryValuesArray:t,tableName:a,local:l});if(n=u,o)throw o;if(s){let e=s.tables.find(e=>e.tableName===a);if(e){let r=c().cloneDeep(e);delete r.childTable,delete r.childTableDbFullName,delete r.childTableName,delete r.childrenTables,delete r.updateData,delete r.tableNameOld,delete r.indexes,i=r}}return{success:!0,payload:n,error:o,schema:a&&i?i:void 0}}catch(e){return(0,d.A)({component:"/api/query/post/lines-132-142",message:e.message}),{success:!1,payload:n,error:e.message}}}var g=t(56081);let f={api:{bodyParser:{sizeLimit:"50mb"}}};async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t,{query:a,database:s,tableName:l,queryValues:n}=e.body,i=e.headers.authorization,o=(0,g.A)({key:i,database:s,table:l,user_id:String(e.query.user_id)});if(!o?.user_id)throw Error("Api Credentials invalid!");let{user_id:c,full_access:d}=o;if(!d)return r.json({success:!1,msg:"Unauthorized"});let m=`datasquirel_user_${c}_${s}`,f=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.toString().replace(/\//g,"")}/main.json`;if(u().existsSync(f))try{t=JSON.parse(u().readFileSync(f,"utf8")).filter(e=>e.dbFullName===m)[0]}catch(e){}let y=`datasquirel_user_${c}_`,b=await p({query:"string"==typeof a?a.replace(/datasquirel_user_\d+_/gi,y).replace(/__db/gi,m):a,dbFullName:m,dbSchema:t,queryValues:n,tableName:l});r.json(b)}catch(t){(0,d.A)({component:"/api/query/post/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let b=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),A=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/query/[user_id]/post",pathname:"/api/query/[user_id]/post",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(29021),s=t.n(a),l=t(95969);let n=({key:e,database:r,table:t,user_id:a,media:n})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,l.A)({encryptedString:e}),o=JSON.parse(u||""),c=s().existsSync(`${i}/${o.sign}`);if(String(o.user_id)!==String(a)||!c)return null;if(!o.target_database||n)return o;if(!r&&o.target_database)return null;let d=o.target_database?.split(",").includes(String(r));if(d&&!o.target_table)return o;if(d&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(37897),l=t(62050);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:i,identifierValue:u,useLocal:o}){try{let c=!!o||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=o?l.A:c?a.A:s.A,m=`DELETE FROM \`${t}\`.\`${n}\` WHERE \`${i}\`=?`;return c?await d(m,[u]):await d({paradigm:r,queryString:m,queryValues:[u]})}catch(e){return null}}},36249:(e,r,t)=>{t.d(r,{A:()=>m});var a=t(37897),s=t(62050),l=t(43775),n=t(67619);async function i({queryString:e,tableSchema:r,queryValuesArray:t,local:i}){let u;try{u=i?await (0,s.A)(e,t):await (0,a.A)({paradigm:"Full Access",queryString:e,queryValues:t})}catch(e){return(0,n.A)({component:"fullAccessDbHandler",message:e.message}),e.message}if(u&&r){let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:r})}return u||null}async function u({queryString:e,queryValuesArray:r,tableSchema:t,useLocal:i}){let u;try{u=i?await (0,s.A)(e,r):await (0,a.A)({paradigm:"Read Only",queryString:e,queryValues:r})}catch(e){return(0,n.A)({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!u)return null;{let e=u;return await (0,l.A)({unparsedResults:e,tableSchema:t})}}var o=t(98e3),c=t(30802),d=t(61932);async function m({dbFullName:e,query:r,readOnly:t,dbSchema:a,queryValuesArray:s,tableName:l,local:m}){let p,g,f;if(a)try{let e=l||("string"==typeof r?null:r?r?.table:null);if(!e)throw Error("No table name provided");f=a.tables.filter(r=>r?.tableName===e)[0]}catch(e){}try{if("string"==typeof r){let e=r.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim();if(t&&e.match(/^alter|^delete|information_schema|^create/i))throw Error("Wrong Input!");p=t?await u({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,useLocal:m}):await i({queryString:e,queryValuesArray:s?.map(e=>String(e)),tableSchema:f,local:m})}else if("object"==typeof r){let{data:t,action:a,table:s,identifierColumnName:l,identifierValue:n,update:i,duplicateColumnName:u,duplicateColumnValue:y}=r;switch(a.toLowerCase()){case"insert":p=await (0,o.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,update:i,duplicateColumnName:u,duplicateColumnValue:y,tableSchema:f,useLocal:m}),p?.insertId||(g=Error("Couldn't insert data"));break;case"update":p=await (0,c.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:t,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:m});break;case"delete":p=await (0,d.A)({dbContext:m?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:l,identifierValue:n,tableSchema:f,useLocal:m});break;default:p=null}}}catch(e){(0,n.A)({component:"functions/backend/runQuery",message:e.message}),p=null,e=e.message}return{result:p,error:g}}},43775:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:r}){let t=[];try{for(let l=0;l",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(29021),s=t.n(a);async function l({user:e,message:r,component:t,noMail:a,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(55511),s=t(79428);function l({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,n=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(!n?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,a.scryptSync)(l,n,i),o=s.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",u,o);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(88749));module.exports=a})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511),s=t(79428),l=t(32443);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:u,algorithm:o,bufferAllocSize:c}=(0,l.A)({encryptionKey:r});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 d=(0,a.scryptSync)(n,i,u),m=s.Buffer.alloc(c,0),p=(0,a.createDecipheriv)(o,d,m);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(88749));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json index d9ca58d..4f0fde9 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js index 2bcbc96..9bd8c17 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4133,e.ids=[4133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},92003:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>f});var a=t(89947),s=t(2706),i=t(96762),u=t(29021),l=t.n(u),o=t(67619),d=t(56081),c=t(76856);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=(0,d.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:a,full_access:s}=n;if(!s)return r.json({success:!1,msg:"Unauthorized"});let i=e.query.schema,u=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.toString().replace(/\//g,"")}/main.json`,o=JSON.parse(l().readFileSync(u,"utf8")),f=o.findIndex(e=>e.dbFullName==i?.dbFullName);if(i?.dbFullName&&o.find(e=>e.dbFullName==i.dbFullName),f<0)return r.json({success:!1,payload:null});o[f]=i,l().writeFileSync(u,JSON.stringify(o,null,4),"utf8"),await (0,c.A)({userId:a.toString().replace(/\/| /g,""),targetDatabase:o[f].dbFullName}),r.json({success:!0,payload:"Success!"})}catch(t){(0,o.A)({component:"/api/query/update-schema-from-single-database/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Something went wrong"})}}let p=(0,i.M)(n,"default"),g=(0,i.M)(n,"config"),m=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/update-schema-from-single-database",pathname:"/api/query/[user_id]/update-schema-from-single-database",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let u=process.env.DSQL_API_KEYS_PATH;if(!u)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),o=JSON.parse(l||""),d=a().existsSync(`${u}/${o.sign}`);if(String(o.user_id)!==String(n)||!d)return null;if(!o.target_database||i)return o;if(!r&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(r));if(c&&!o.target_table)return o;if(c&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[2282],()=>t(92003));module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4133,e.ids=[4133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},92003:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,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(29021),u=t.n(i),c=t(67619),l=t(56081),_=t(76856);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=(0,l.A)({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 a=e.query.schema,i=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n.toString().replace(/\//g,"")}/main.json`,c=JSON.parse(u().readFileSync(i,"utf8")),p=c.findIndex(e=>e.dbFullName==a?.dbFullName);if(a?.dbFullName&&c.find(e=>e.dbFullName==a.dbFullName),p<0)return r.json({success:!1,payload:null});c[p]=a,u().writeFileSync(i,JSON.stringify(c,null,4),"utf8"),await (0,_.A)({userId:n.toString().replace(/\/| /g,""),targetDatabase:c[p].dbFullName}),r.json({success:!0,payload:"Success!"})}catch(t){(0,c.A)({component:"/api/query/update-schema-from-single-database/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Something went wrong"})}}let d=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/query/[user_id]/update-schema-from-single-database",pathname:"/api/query/[user_id]/update-schema-from-single-database",bundlePath:"",filename:""},userland:s})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s),o=t(95969);let a=({key:e,database:r,table:t,user_id:s,media:a})=>{if(!e||!s)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let u=(0,o.A)({encryptedString:e}),c=JSON.parse(u||""),l=n().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(s)||!l)return null;if(!c.target_database||a)return c;if(!r&&c.target_database)return null;let _=c.target_database?.split(",").includes(String(r));if(_&&!c.target_table)return c;if(_&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428),o=t(32443);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:i,keyLen:u,algorithm:c,bufferAllocSize:l}=(0,o.A)({encryptionKey:r});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 _=(0,s.scryptSync)(a,i,u),p=n.Buffer.alloc(l,0),d=(0,s.createDecipheriv)(c,_,p);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},7447:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),n=t.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9814],()=>t(92003));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json index 88a3313..ea12d78 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../jsonData/dbSchemas/main.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","../../../../../../package-shared/data/defaultFields.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/dbSchemas/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package-shared/data/defaultFields.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js index 15592b0..1f107eb 100644 --- a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2101,e.ids=[2101],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},85607:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),c=t(69842),l=t(30944);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.query.table,s=e.query.db,a=e.query.field,o=String(e.query.term),u=e.query.operator;try{let e=s?.toString()?.replace(/[^a-z0-9_]/g,""),t=`SELECT * FROM \`${e}\`.\`${n}\` WHERE LOWER(\`${a}\`) ${u?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,i=[u?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],c=await (0,l.A)({database:e,queryString:t,queryValuesArray:i}),d=await (0,l.A)({database:e,queryString:t.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:i});r.json({success:!0,result:c,count:d?.[0]?.count})}catch(e){(0,i.A)({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let d=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2101,e.ids=[2101],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},85607:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var a=t(89947),s=t(2706),o=t(96762),i=t(67619),l=t(69842),u=t(30944);async function c(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.query.table,a=e.query.db,s=e.query.field,o=String(e.query.term),c=e.query.operator;try{let e=a?.toString()?.replace(/[^a-z0-9_]/g,""),t=`SELECT * FROM \`${e}\`.\`${n}\` WHERE LOWER(\`${s}\`) ${c?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,i=[c?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],l=await (0,u.A)({database:e,queryString:t,queryValuesArray:i}),d=await (0,u.A)({database:e,queryString:t.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:i});r.json({success:!0,result:l,count:d?.[0]?.count})}catch(e){(0,i.A)({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let d=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),a=t.n(n);async function s(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` IP: ${i}`),n+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),_=l?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=85607);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(43775),a=t(67619),s=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:u}){let c=(0,s.A)({fa:!0});l&&(c=(0,s.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,s.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,n.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),a=t(79428),s=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,s.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,i,l),p=a.Buffer.alloc(c,0),_=(0,n.createDecipheriv)(u,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(9973),a=t.n(n);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=85607);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 5649de5..943c2ca 100644 --- a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2998,e.ids=[2998],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55896:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>E});var s=t(89947),i=t(2706),o=t(96762),a=t(69842),l=t(29021),c=t.n(l),u=t(67619),_=t(48786),d=t(68829),f=t(89159);async function p({userId:e,res:r,csrf:t}){try{let n=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!n)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;let s=await (0,_.A)("SELECT * FROM users WHERE id=?",[e]);c().unlinkSync(`${n}/${t}`);let i=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),o={id:s[0].id,stripe_id:s[0].stripe_id||"",first_name:s[0].first_name,last_name:s[0].last_name,email:s[0].email,social_id:s[0].social_id,image:s[0].image,image_thumbnail:s[0].image_thumbnail,verification_status:s[0].verification_status,social_login:s[0].social_login,social_platform:s[0].social_platform,csrf_k:i,logged_in_status:!0,date:Date.now()},a=(0,d.A)({data:JSON.stringify(o)});c().writeFileSync(`${n}/${i}`,JSON.stringify(o));let{keyCookieName:l,csrfCookieName:u}=(0,f.A)();return r.setHeader("Set-Cookie",[`${l}=${a};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${u}=${i};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),o}catch(r){return(0,u.A)({component:"reAuthUser",message:r.message,user:{id:e}}),null}}async function E(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await (0,a.A)(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let n=await p({userId:t.id,res:r,csrf:t.csrf_k}),s={status:!!n,csrf:n?.csrf_k,user:n};r.json(s)}let S=(0,o.M)(n,"default"),m=(0,o.M)(n,"config"),g=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function l(e,r,t){try{let{keyCookieName:i,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${_}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:l+=s}}},67619:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n);async function i({user:e,message:r,component:t,noMail:n,req:i}){let o=new Date,a=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2998,e.ids=[2998],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55896:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>E,routeModule:()=>D});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),o=t(2706),i=t(96762),a=t(69842),c=t(29021),u=t.n(c),_=t(67619),l=t(48786),d=t(68829),p=t(89159);async function S({userId:e,res:r,csrf:t}){try{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;let n=await (0,l.A)("SELECT * FROM users WHERE id=?",[e]);u().unlinkSync(`${s}/${t}`);let o=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),i={id:n[0].id,stripe_id:n[0].stripe_id||"",first_name:n[0].first_name,last_name:n[0].last_name,email:n[0].email,social_id:n[0].social_id,image:n[0].image,image_thumbnail:n[0].image_thumbnail,verification_status:n[0].verification_status,social_login:n[0].social_login,social_platform:n[0].social_platform,csrf_k:o,logged_in_status:!0,date:Date.now()},a=(0,d.A)({data:JSON.stringify(i)});u().writeFileSync(`${s}/${o}`,JSON.stringify(i));let{keyCookieName:c,csrfCookieName:_}=(0,p.A)();return r.setHeader("Set-Cookie",[`${c}=${a};samesite=strict;path=/;HttpOnly=true;Secure=true`,`${_}=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),i}catch(r){return(0,_.A)({component:"reAuthUser",message:r.message,user:{id:e}}),null}}async function f(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await (0,a.A)(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let s=await S({userId:t.id,res:r,csrf:t.csrf_k}),n={status:!!s,csrf:s?.csrf_k,user:s};r.json(n)}let E=(0,i.M)(s,"default"),m=(0,i.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(39908),n=t.n(s);async function o(e,r,t){let s=n()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:c+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),i?.url&&(n+=` -URL: ${i.url}`),i?.body&&(n+=` -Request Body: ${JSON.stringify(i.body,null,4)}`),a&&(n+=` -IP: ${a}`),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",` +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(s+=` +IP: ${a}`),s+=` +Date: ${i.toDateString()} +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(i,o,a),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(i,o,a),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=55896);module.exports=t})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(55511),n=t(79428),o=t(32443);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:i,salt:a,keyLen:c,algorithm:u,bufferAllocSize:_}=(0,o.A)({encryptionKey:r});if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(i,a,c),d=n.Buffer.alloc(_,0),p=(0,s.createCipheriv)(u,l,d);try{let r=p.update(e,"utf8","hex");return r+=p.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),n=t.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=55896);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json index 58d1ffb..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/refreshEntry.js b/dsql-app/.local_dist/server/pages/api/refreshEntry.js index 8117493..4af6e77 100644 --- a/dsql-app/.local_dist/server/pages/api/refreshEntry.js +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=2896,e.ids=[2896],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},2875:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),c=t(67619),l=t(69842),u=t(95969);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,l.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:n,db:s,id:a}=e.body,o=e.body.schema;try{let e=`SELECT * FROM \`${s?.toString()||""}\`.\`${n}\` WHERE id=?`,t=[a?.toString()||""],c=await (0,i.A)({database:s?.toString()||"",queryString:e,queryValuesArray:t});if(!c||!c[0])return r.json({success:!1,msg:"Entry not found"});let l=JSON.parse(o||"{}");try{for(let e=0;e",e.message)}r.json({success:!0,entry:c[0]})}catch(e){(0,c.A)({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let f=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2896,e.ids=[2896],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},2875:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),a=t(2706),o=t(96762),i=t(30944),l=t(67619),c=t(69842),u=t(95969);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:n,db:s,id:a}=e.body,o=e.body.schema;try{let e=`SELECT * FROM \`${s?.toString()||""}\`.\`${n}\` WHERE id=?`,t=[a?.toString()||""],l=await (0,i.A)({database:s?.toString()||"",queryString:e,queryValuesArray:t});if(!l||!l[0])return r.json({success:!1,msg:"Entry not found"});let c=JSON.parse(o||"{}");try{for(let e=0;e",e.message)}r.json({success:!0,entry:l[0]})}catch(e){(0,l.A)({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let p=(0,o.M)(n,"default"),f=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(39908),s=t.n(n);async function a(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${a.url}`),a?.body&&(n+=` Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` IP: ${i}`),n+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=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 l=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)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),f=l?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await f(e,r):await f({paradigm:"Full Access",queryString:e,queryValues:r}):d?await f(e):await f({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=2875);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(43775),s=t(67619),a=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:c}){let u=(0,a.A)({fa:!0});l&&(u=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(u=(0,a.A)()),c&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(u,e,r);if(c&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,n.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,a.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,i,l),p=s.Buffer.alloc(u,0),f=(0,n.createDecipheriv)(c,d,p);try{let r=f.update(e,"hex","utf8");return r+=f.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=2875);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/registerUser.js b/dsql-app/.local_dist/server/pages/api/registerUser.js index 5e5ef35..d662dc1 100644 --- a/dsql-app/.local_dist/server/pages/api/registerUser.js +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=3953,e.ids=[3953],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},68140:(e,r,s)=>{s.r(r),s.d(r,{config:()=>h,default:()=>y,routeModule:()=>b});var t={};s.r(t),s.d(t,{default:()=>E});var a=s(89947),i=s(2706),n=s(96762),l=s(29021),d=s.n(l),o=s(68829),u=s(96052),c=s(67619),m=s(33873),p=s.n(m),_=s(79646),g=s(67580),S=s(48786),A=s(98e3),f=s(30802),v=s(83919);async function E(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=e.body,{inviteObject:t}=s,a=s.first_name,i=s.last_name,n=s.email,l=s.password,m=s.username;if(!n.match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});if(!a.match(/^[a-zA-Z]+$/)||!i.match(/^[a-zA-Z]+$/))return r.json({user:null,msg:"Invalid Name"});if(l?.match(/ /))return r.json({user:null,msg:"Invalid Password"});if(m?.match(/ /))return r.json({user:null,msg:"Invalid Username"});try{let e=(0,v.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:l}),s=await (0,S.A)(`SELECT * FROM users WHERE email='${n}'`);if(s&&s[0])return r.json({user:null,msg:"User Already Exists"});let c=await (0,A.A)({dbFullName:"datasquirel",tableName:"users",data:{first_name:a,last_name:i,email:n,password:e,username:m}});if(!c?.insertId)return r.json({user:null,msg:"Adding User to Database failed"});await (0,g.A)({userId:c.insertId});let E=(0,o.A)({data:JSON.stringify({id:c.insertId,email:n,dateCode:Date.now()})});(0,u.A)({to:n,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:d().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,E||"")}).then(e=>{}),"production".match(/production/),c.insertId,c.insertId;let y=process.env.DSQL_STATIC_SERVER_DIR;if(!y)throw console.log("Static File ENV not Found!"),Error("No Static Path");let h=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.insertId}`,b=p().join(y,`images/user-images/user-${c.insertId}`);d().mkdirSync(h,{recursive:!0}),d().mkdirSync(b,{recursive:!0}),d().writeFileSync(`${h}/main.json`,JSON.stringify([]),"utf8");let I=p().join(y,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile.jpg`),D=p().join(y,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile-thumbnail.jpg`),L=I.replace(y,process.env.DSQL_STATIC_HOST||""),R=D.replace(y,process.env.DSQL_STATIC_HOST||"");if(d().copyFileSync("./public/images/user-preset.png",I),d().copyFileSync("./public/images/user-preset-thumbnail.png",D),(0,_.execSync)(`chmod 644 ${I} ${D}`),await (0,f.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:c.insertId,data:{image:L,image_thumbnail:R}}),t){let e=await (0,A.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t.invite,invited_user_id:c.insertId,database_access:t.database_access,user_priviledge:t.priviledge,user_type:"admin",first_name:a,last_name:i,email:n,username:m,image:L,image_thumbnail:R}});await (0,S.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);let r=await (0,S.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);if(await (0,S.A)("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t.invite,e.insertId]),r&&r[0]){let s=r[0].db_tables_data.split("|");for(let r=0;r ${e.message}`),(0,c.A)({component:"/api/registerUser/main-catch-error",message:e.message,user:{first_name:a,last_name:i,email:n}}),r.json({user:null})}}let y=(0,n.M)(t,"default"),h=(0,n.M)(t,"config"),b=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/registerUser",pathname:"/api/registerUser",bundlePath:"",filename:""},userland:t})},67580:(e,r,s)=>{s.d(r,{A:()=>u});var t=s(47795),a=s.n(t),i=s(48786),n=s(47546),l=s(98e3),d=s(68829),o=s(7971);async function u({userId:e,useLocal:r}){try{let s=process.env.DSQL_DB_HOST||"127.0.0.1",t=`dsql_user_${e}`,u=a().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,d.A)({data:u}),m=`CREATE USER IF NOT EXISTS '${t}'@'127.0.0.1' IDENTIFIED BY '${u}'`;r?await (0,o.A)(m):await (0,n.A)(m);let p="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",_=[t,c,e];r?await (0,o.A)(p,_):await (0,i.A)(p,_),await (0,l.A)({tableName:"mariadb_users",data:{user_id:e,username:t,host:s,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:r}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,r,s)=>{s.d(r,{A:()=>l});var t=s(29021),a=s.n(t),i=s(21572);let n=s.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function l({to:e,subject:r,text:s,html:t,alias:i,senderName:l}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let u=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${l||"Datasquirel"}" <${o}>`,t.sender=o,i&&(t.replyTo=o),t.to=e,t.subject=r,t.text=s,t.html=u,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},67619:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(29021),a=s.n(t);async function i({user:e,message:r,component:s,noMail:t,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],s=i.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=3953,e.ids=[3953],e.modules={47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},68140:(e,r,s)=>{s.r(r),s.d(r,{config:()=>h,default:()=>E,routeModule:()=>b});var t={};s.r(t),s.d(t,{default:()=>y});var a=s(89947),i=s(2706),n=s(96762),l=s(29021),d=s.n(l),o=s(68829),u=s(96052),c=s(67619),m=s(33873),p=s.n(m),_=s(79646),g=s(67580),S=s(48786),A=s(98e3),f=s(30802),v=s(83919);async function y(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=e.body,{inviteObject:t}=s,a=s.first_name,i=s.last_name,n=s.email,l=s.password,m=s.username;if(!n.match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});if(!a.match(/^[a-zA-Z]+$/)||!i.match(/^[a-zA-Z]+$/))return r.json({user:null,msg:"Invalid Name"});if(l?.match(/ /))return r.json({user:null,msg:"Invalid Password"});if(m?.match(/ /))return r.json({user:null,msg:"Invalid Username"});try{let e=(0,v.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:l}),s=await (0,S.A)(`SELECT * FROM users WHERE email='${n}'`);if(s&&s[0])return r.json({user:null,msg:"User Already Exists"});let c=await (0,A.A)({dbFullName:"datasquirel",tableName:"users",data:{first_name:a,last_name:i,email:n,password:e,username:m}});if(!c?.insertId)return r.json({user:null,msg:"Adding User to Database failed"});await (0,g.A)({userId:c.insertId});let y=(0,o.A)({data:JSON.stringify({id:c.insertId,email:n,dateCode:Date.now()})});(0,u.A)({to:n,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:d().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,y||"")}).then(e=>{}),"production".match(/production/),c.insertId,c.insertId;let E=process.env.DSQL_STATIC_SERVER_DIR;if(!E)throw console.log("Static File ENV not Found!"),Error("No Static Path");let h=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.insertId}`,b=p().join(E,`images/user-images/user-${c.insertId}`);d().mkdirSync(h,{recursive:!0}),d().mkdirSync(b,{recursive:!0}),d().writeFileSync(`${h}/main.json`,JSON.stringify([]),"utf8");let I=p().join(E,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile.jpg`),D=p().join(E,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile-thumbnail.jpg`),w=I.replace(E,process.env.DSQL_STATIC_HOST||""),L=D.replace(E,process.env.DSQL_STATIC_HOST||"");if(d().copyFileSync("./public/images/user-preset.png",I),d().copyFileSync("./public/images/user-preset-thumbnail.png",D),(0,_.execSync)(`chmod 644 ${I} ${D}`),await (0,f.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:c.insertId,data:{image:w,image_thumbnail:L}}),t){let e=await (0,A.A)({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t.invite,invited_user_id:c.insertId,database_access:t.database_access,user_priviledge:t.priviledge,user_type:"admin",first_name:a,last_name:i,email:n,username:m,image:w,image_thumbnail:L}});await (0,S.A)("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);let r=await (0,S.A)("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);if(await (0,S.A)("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t.invite,e.insertId]),r&&r[0]){let s=r[0].db_tables_data.split("|");for(let r=0;r ${e.message}`),(0,c.A)({component:"/api/registerUser/main-catch-error",message:e.message,user:{first_name:a,last_name:i,email:n}}),r.json({user:null})}}let E=(0,n.M)(t,"default"),h=(0,n.M)(t,"config"),b=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/registerUser",pathname:"/api/registerUser",bundlePath:"",filename:""},userland:t})},67580:(e,r,s)=>{s.d(r,{A:()=>u});var t=s(47795),a=s.n(t),i=s(48786),n=s(47546),l=s(98e3),d=s(68829),o=s(62050);async function u({userId:e,useLocal:r}){try{let s=process.env.DSQL_DB_HOST||"127.0.0.1",t=`dsql_user_${e}`,u=a().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),c=(0,d.A)({data:u}),m=`CREATE USER IF NOT EXISTS '${t}'@'127.0.0.1' IDENTIFIED BY '${u}'`;r?await (0,o.A)(m):await (0,n.A)(m);let p="UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",_=[t,c,e];r?await (0,o.A)(p,_):await (0,i.A)(p,_),await (0,l.A)({tableName:"mariadb_users",data:{user_id:e,username:t,host:s,password:c,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master",useLocal:r}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},96052:(e,r,s)=>{s.d(r,{A:()=>l});var t=s(29021),a=s.n(t),i=s(21572);let n=s.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function l({to:e,subject:r,text:s,html:t,alias:i,senderName:l}){let d;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!a().existsSync("./email/index.html"))return;let u=a().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,t||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"${l||"Datasquirel"}" <${o}>`,t.sender=o,i&&(t.replyTo=o),t.to=e,t.subject=r,t.text=s,t.html=u,d=await n.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return d}},67619:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(29021),a=s.n(t);async function i({user:e,message:r,component:s,noMail:t,req:i}){let n=new Date,l=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],s=i.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let t=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${n.toDateString()} -${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},83919:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511);function a({password:e,encryptionKey:r}){let s=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,t.createHmac)("sha512",s);return a.update(e),a.digest("base64")}},47546:(e,r,s)=>{s.d(r,{A:()=>t});function t(...e){let r=global.DSQL_DB_CONN;try{return new Promise((s,t)=>{r.query(...e).then(e=>{r.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(68140));module.exports=t})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},83919:(e,r,s)=>{s.d(r,{A:()=>i});var t=s(55511),a=s(32443);function i({password:e,encryptionKey:r}){let{key:s}=(0,a.A)({encryptionKey:r});if(!s?.match(/.{8,}/))throw Error("Encryption key is invalid");let i=(0,t.createHmac)("sha512",s);return i.update(e),i.digest("base64")}},47546:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(7447);function a(...e){let r=(0,t.A)();try{return new Promise((s,t)=>{r.query(...e).then(e=>{r.end(),s(JSON.parse(JSON.stringify(e)))}).catch(e=>{r.end(),s({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}finally{r?.end()}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(68140));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json index 82921d7..6831f9b 100644 --- a/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 8aca7eb..27327e3 100644 --- a/dsql-app/.local_dist/server/pages/api/renameMedia.js +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8103,e.ids=[8103],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},8639:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>E,routeModule:()=>h});var n={};t.r(n),t.d(n,{default:()=>f});var i=t(89947),o=t(2706),a=t(96762),s=t(29021),u=t.n(s),c=t(69842),l=t(67619),d=t(48786),_=t(45185),m=t(27825),p=t.n(m);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body.mediaObject,i=e.body.newName,o=e.body.newThumbnailName,a=e.body.replace;try{"production".match(/production/);let e=n.media_url.match(/\..{3,4}$/)[0],s=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let c=(0,_.A)({isPrivate:s,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!c)throw Error("Couldn't grab paths!");let{fileRootPath:l,urlRootPath:m,relativePath:f}=c,E=`${l}${n.media_name}${e}`,S=`${l}${i}${e}`,h=`${l}${n.media_name}_thumbnail${e}`,y=`${l}${i}_thumbnail${e}`,g=new RegExp(p().escapeRegExp(`${n.media_name}`)),A=n.media_url.replace(g,i),$=n.media_url.replace(g,i+"_thumbnail"),v=n.media_path?n.media_path.replace(g,i):`${f}${i}`,P=n.media_thumbnail_path?n.media_thumbnail_path.replace(g,i):`${f}${o}`;if(u().existsSync(S)&&!a)return r.json({success:!1,msg:"File already exists"});u().renameSync(E,S);try{u().renameSync(h,y)}catch(e){}await (0,d.A)("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[i,A,$,v,P,n.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),(0,l.A)({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let E=(0,a.M)(n,"default"),S=(0,a.M)(n,"config"),h=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n),o=t(33873),a=t.n(o);function s({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let s=process.env.DSQL_STATIC_SERVER_DIR;if(!s)return console.log("Static File ENV not Found!"),null;let u=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,c=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:a().join(s,u);return i().existsSync(c)||o||i().mkdirSync(c,{recursive:!0}),{fileRootPath:c,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},69842:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(48786),i=t(95969),o=t(29021),a=t.n(o),s=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,s.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,i.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let s=r;e?.userId&&(s+=`user_${e.userId}_`),o&&(s+=`${o}_`),s+=n;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:a,csrfCookieName:s,oneTimeCodeName:u+=i}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,s=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||o.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8103,e.ids=[8103],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},8639:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>D,routeModule:()=>A});var n={};t.r(n),t.d(n,{default:()=>S});var a=t(89947),o=t(2706),s=t(96762),i=t(29021),u=t.n(i),l=t(69842),c=t(67619),d=t(48786),_=t(45185),m=t(27825),p=t.n(m);async function S(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,l.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=e.body.mediaObject,a=e.body.newName,o=e.body.newThumbnailName,s=e.body.replace;try{"production".match(/production/);let e=n.media_url.match(/\..{3,4}$/)[0],i=n?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=(0,_.A)({isPrivate:i,userId:t.id,folder:n.folder?n.folder+"/":"",video:!!n.media_type?.match(/video/i)});if(!l)throw Error("Couldn't grab paths!");let{fileRootPath:c,urlRootPath:m,relativePath:S}=l,D=`${c}${n.media_name}${e}`,f=`${c}${a}${e}`,A=`${c}${n.media_name}_thumbnail${e}`,E=`${c}${a}_thumbnail${e}`,h=new RegExp(p().escapeRegExp(`${n.media_name}`)),v=n.media_url.replace(h,a),g=n.media_url.replace(h,a+"_thumbnail"),y=n.media_path?n.media_path.replace(h,a):`${S}${a}`,P=n.media_thumbnail_path?n.media_thumbnail_path.replace(h,a):`${S}${o}`;if(u().existsSync(f)&&!s)return r.json({success:!1,msg:"File already exists"});u().renameSync(D,f);try{u().renameSync(A,E)}catch(e){}await (0,d.A)("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[a,v,g,y,P,n.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),(0,c.A)({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let D=(0,s.M)(n,"default"),f=(0,s.M)(n,"config"),A=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:n})},45185:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),o=t(33873),s=t.n(o);function i({isPrivate:e,userId:r,folder:t,video:n,pathOnly:o}){"production".match(/production/);let i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)return console.log("Static File ENV not Found!"),null;let u=e?`@/${n?"videos":"media"}/${t?t+"/":""}`:n?`/videos/user-videos/user-${r}/${t?t+"/":""}`:`/images/user-images/user-${r}/${t?t+"/":""}`,l=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r}/media/${t?t+"/":""}`:s().join(i,u);return a().existsSync(l)||o||a().mkdirSync(l,{recursive:!0}),{fileRootPath:l,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},69842:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(39908),a=t.n(n);async function o(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),a=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let s=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"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),o?.url&&(n+=` URL: ${o.url}`),o?.body&&(n+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),s&&(n+=` -IP: ${s}`),n+=` -Date: ${a.toDateString()} -========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let u=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",n),i().appendFileSync("./.tmp/error.log",` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${s.toDateString()} +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let u=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),i=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,s=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,n.scryptSync)(o,a,s),c=i.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",u,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=8639);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),a=t.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=8639);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json index e1840ca..1eca015 100644 --- a/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js index 2712bb3..7c01057 100644 --- a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9659,e.ids=[9659],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},52262:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>c,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),i=t(96762),a=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,a.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,dbSlug:s}=e.body,n=`${process.env.DSQL_USER_DB_PREFIX}${t}_${s}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;r.setHeader("Set-Cookie",[`${o}=null;path=/;max-age=0`]),r.json({success:!0,msg:"Processed Successfully"})}let c=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let d=JSON.parse(c);if(!d.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(d.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${_}/${d.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==d.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(d?.date&&Date.now()-d.date>6048e5)throw Error("Key expired!");return d}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),d=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=d.update(e,"hex","utf8");return r+=d.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=52262);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9659,e.ids=[9659],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},52262:(e,t,n)=>{n.r(t),n.d(t,{config:()=>l,default:()=>d,routeModule:()=>c});var r={};n.r(r),n.d(r,{default:()=>i});var a=n(89947),s=n(2706),o=n(96762),u=n(69842);async function i(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!await (0,u.A)(e,t,!0))return t.json({success:!1,msg:"Unauthorized"});let{userId:n,dbSlug:r}=e.body,a=`${process.env.DSQL_USER_DB_PREFIX}${n}_${r}`,s=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${a}`;t.setHeader("Set-Cookie",[`${s}=null;path=/;max-age=0`]),t.json({success:!0,msg:"Processed Successfully"})}let d=(0,o.M)(r,"default"),l=(0,o.M)(r,"config"),c=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:r})},69842:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(39908),a=n.n(r);async function s(e,t,n){let r=a()({req:e,level:n?"deep":void 0});return console.log(r),r.payload}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var n=t(t.s=52262);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json index 58d1ffb..192fb51 100644 --- a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetPassword.js b/dsql-app/.local_dist/server/pages/api/resetPassword.js index 4a170c5..3fa40ea 100644 --- a/dsql-app/.local_dist/server/pages/api/resetPassword.js +++ b/dsql-app/.local_dist/server/pages/api/resetPassword.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9971,e.ids=[9971],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},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}}})},23297:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>c,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var o=t(89947),i=t(2706),a=t(96762),s=t(83919),u=t(48786);async function d(e,r){if("GET"!==e.method)return r.json({msg:"UNauthorized"});{let{email:t,password:n}=e.query,o=(0,s.A)({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:String(n)}),i=await (0,u.A)(`UPDATE users SET password='${o}' WHERE email='${t}'`);r.json({success:!!i?.affectedRows})}}let c=(0,a.M)(n,"default"),P=(0,a.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/resetPassword",pathname:"/api/resetPassword",bundlePath:"",filename:""},userland:n})},83919:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511);function o({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let o=(0,n.createHmac)("sha512",t);return o.update(e),o.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=23297);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9971,e.ids=[9971],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},23297:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>D,routeModule:()=>S});var o={};s.r(o),s.d(o,{default:()=>c});var t=s(89947),n=s(2706),a=s(96762),i=s(48786),_=s(28187),u=s.n(_);async function c(e,r){if("GET"!==e.method)return r.json({msg:"UNauthorized"});{let{email:s,password:o}=e.query,t=u().utils.crypto.hashPassword({password:String(o)}),n=await (0,i.A)(`UPDATE users SET password='${t}' WHERE email='${s}'`);r.json({success:!!n?.affectedRows})}}let D=(0,a.M)(o,"default"),p=(0,a.M)(o,"config"),S=new t.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/resetPassword",pathname:"/api/resetPassword",bundlePath:"",filename:""},userland:o})},48786:(e,r,s)=>{s.d(r,{A:()=>t});var o=s(7447);async function t(...e){let r=(0,o.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>n});var o=s(9973),t=s.n(o);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||t()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=23297);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json b/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json index 58d1ffb..321943d 100644 --- a/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-db-full-name.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-dsql-connection.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 d153778..960a9b0 100644 --- a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=8563,e.ids=[8563],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},51397:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),a=t(2706),o=t(96762),i=t(69842),c=t(67619),l=t(30944);async function u(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:n,query:s,tables:a}=e.body;try{let e=await (0,l.A)({database:`datasquirel_user_${t.id}_${n}`,queryString:s});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){(0,c.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let d=(0,o.M)(n,"default"),_=(0,o.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function c(e,r,t){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8563,e.ids=[8563],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},51397:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),a=t(2706),o=t(96762),i=t(69842),l=t(67619),u=t(30944);async function c(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,i.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:n,query:s,tables:a}=e.body;try{let e=await (0,u.A)({database:`datasquirel_user_${t.id}_${n}`,queryString:s});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){(0,l.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let d=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(39908),s=t.n(n);async function a(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${a.url}`),a?.body&&(n+=` Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` IP: ${i}`),n+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let c=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 l=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)}}},30944:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function c({queryString:e,queryValuesArray:r,database:t,tableSchema:c,useLocal:l}){let u;let d=!!l||!!t?.match(/^datasquirel$/),_=l?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await _(e,r):await _({paradigm:"Full Access",queryString:e,queryValues:r}):d?await _(e):await _({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(a,o,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=51397);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(43775),s=t(67619),a=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:u}){let c=(0,a.A)({fa:!0});l&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,n.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,i,l),p=s.Buffer.alloc(c,0),_=(0,n.createDecipheriv)(u,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=51397);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json index a2461a2..454bd90 100644 --- a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 38b67f8..937a41c 100644 --- a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7714,e.ids=[7714],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10942:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>f,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>_});var s=t(89947),i=t(2706),o=t(96762),a=t(29021),c=t.n(a),l=t(69842),u=t(96052),d=t(68829);async function _(e,r){if("GET"===e.method){let t=await (0,l.A)(e,r);if(!t)return r.redirect(307,"/logout");let n=(0,d.A)({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),s=process.env.DSQL_HOST;if(!await (0,u.A)({to:t.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:c().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{token}}/,n||"")}))return r.json({success:!1});r.json({success:!0})}}let f=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),E=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),i=t(29021),o=t.n(i),a=t(89159);async function c(e,r,t){try{let{keyCookieName:i,csrfCookieName:c}=(0,a.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[i]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),i&&(c+=`${i}_`),{keyCookieName:o,csrfCookieName:a,oneTimeCodeName:c+=s}}},96052:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n),i=t(21572);let o=t.n(i)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function a({to:e,subject:r,text:t,html:n,alias:i,senderName:a}){let c;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s().existsSync("./email/index.html"))return;let u=s().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${a||"Datasquirel"}" <${l}>`,n.sender=l,i&&(n.replyTo=l),n.to=e,n.subject=r,n.text=t,n.html=u,c=await o.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return c}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(i,o,a),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(i,o,a),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10942);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7714,e.ids=[7714],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10942:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>f,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>p});var i=t(89947),s=t(2706),o=t(96762),a=t(29021),l=t.n(a),c=t(69842),u=t(96052),d=t(68829);async function p(e,r){if("GET"===e.method){let t=await (0,c.A)(e,r);if(!t)return r.redirect(307,"/logout");let n=(0,d.A)({data:JSON.stringify({id:t.id,email:t.email,dateCode:Date.now()})}),i=process.env.DSQL_HOST;if(!await (0,u.A)({to:t.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:l().readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,i||"").replace(/{{token}}/,n||"")}))return r.json({success:!1});r.json({success:!0})}}let f=(0,o.M)(n,"default"),A=(0,o.M)(n,"config"),_=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),i=t.n(n);async function s(e,r,t){let n=i()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},96052:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(21572);let o=t.n(s)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function a({to:e,subject:r,text:t,html:n,alias:s,senderName:a}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(s?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!i().existsSync("./email/index.html"))return;let u=i().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"${a||"Datasquirel"}" <${c}>`,n.sender=c,s&&(n.replyTo=c),n.to=e,n.subject=r,n.text=t,n.html=u,l=await o.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),i=t(79428),s=t(32443);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:a,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,s.A)({encryptionKey:r});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 d=(0,n.scryptSync)(o,a,l),p=i.Buffer.alloc(u,0),f=(0,n.createCipheriv)(c,d,p);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10942);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json index df25dcd..9509655 100644 --- a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/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/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js index 9335fd9..2cc5d01 100644 --- a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2655,e.ids=[2655],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},47601:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>A,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),i=t(96762),a=t(2416),c=t(29021),l=t.n(c),u=t(96052),p=t(68829);async function d(e,r){if("GET"===e.method){let t=(0,p.A)({data:JSON.stringify({email:e.query.email,dateCode:Date.now()})}),s=process.env.DSQL_HOST,n=e.query.email;if(!String(n).match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});let o=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,i=process.env.DSQL_HOST||"https://datasquirel.com",c=await (0,u.A)({to:e.query.email?.toString()||process.env.DSQL_CONTACT_EMAIL,subject:"Reset Your Password",text:"Please click the link to reset your password",html:l().readFileSync("./email/send-password-reset-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{ip}}/,String(o)).replace(/{{token}}/,t||""),alias:"Support"});if(await (0,a.A)(),(0,u.A)({to:process.env.DSQL_CONTACT_EMAIL,subject:`Password Reset Attempt for ${n}`,html:`

${n} tried to reset password

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

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

${n} tried to reset password

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

`}),!a)return r.json({success:!1});r.json({success:!0})}else r.json({success:!1})}let d=(0,i.M)(s,"default"),A=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sendPasswordResetLink",pathname:"/api/sendPasswordResetLink",bundlePath:"",filename:""},userland:s})},96052:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s),o=t(21572);let i=t.n(o)().createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});async function a({to:e,subject:r,text:t,html:s,alias:o,senderName:a}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let c=(o?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!n().existsSync("./email/index.html"))return;let u=n().readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,s||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"${a||"Datasquirel"}" <${c}>`,s.sender=c,o&&(s.replyTo=c),s.to=e,s.subject=r,s.text=t,s.html=u,l=await i.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(55511),n=t(79428),o=t(32443);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:i,salt:a,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,o.A)({encryptionKey:r});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 p=(0,s.scryptSync)(i,a,l),d=n.Buffer.alloc(u,0),A=(0,s.createCipheriv)(c,p,d);try{let r=A.update(e,"utf8","hex");return r+=A.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=47601);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json index df25dcd..59f8c4b 100644 --- a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json index 55655c5..7249eb4 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json index 55655c5..7249eb4 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json index a146d7a..45994a3 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/agent-base/dist/src/index.js","../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../node_modules/agent-base/package.json","../../../../../node_modules/arrify/index.js","../../../../../node_modules/arrify/package.json","../../../../../node_modules/base64-js/index.js","../../../../../node_modules/base64-js/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/debug/package.json","../../../../../node_modules/debug/src/browser.js","../../../../../node_modules/debug/src/common.js","../../../../../node_modules/debug/src/index.js","../../../../../node_modules/debug/src/node.js","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/extend/index.js","../../../../../node_modules/extend/package.json","../../../../../node_modules/fast-text-encoding/package.json","../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../node_modules/gaxios/build/src/common.js","../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../node_modules/gaxios/build/src/index.js","../../../../../node_modules/gaxios/build/src/retry.js","../../../../../node_modules/gaxios/package.json","../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../node_modules/gcp-metadata/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../node_modules/google-auth-library/package.json","../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../node_modules/google-p12-pem/package.json","../../../../../node_modules/gtoken/build/src/index.js","../../../../../node_modules/gtoken/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../node_modules/https-proxy-agent/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-stream/index.js","../../../../../node_modules/is-stream/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/json-bigint/index.js","../../../../../node_modules/json-bigint/lib/parse.js","../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../node_modules/json-bigint/package.json","../../../../../node_modules/jwa/index.js","../../../../../node_modules/jwa/package.json","../../../../../node_modules/jws/index.js","../../../../../node_modules/jws/lib/data-stream.js","../../../../../node_modules/jws/lib/sign-stream.js","../../../../../node_modules/jws/lib/tostring.js","../../../../../node_modules/jws/lib/verify-stream.js","../../../../../node_modules/jws/package.json","../../../../../node_modules/lru-cache/index.js","../../../../../node_modules/lru-cache/package.json","../../../../../node_modules/ms/index.js","../../../../../node_modules/ms/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/node-fetch/lib/index.js","../../../../../node_modules/node-fetch/package.json","../../../../../node_modules/node-forge/lib/aes.js","../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../node_modules/node-forge/lib/asn1.js","../../../../../node_modules/node-forge/lib/baseN.js","../../../../../node_modules/node-forge/lib/cipher.js","../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../node_modules/node-forge/lib/des.js","../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../node_modules/node-forge/lib/forge.js","../../../../../node_modules/node-forge/lib/hmac.js","../../../../../node_modules/node-forge/lib/index.js","../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../node_modules/node-forge/lib/kem.js","../../../../../node_modules/node-forge/lib/log.js","../../../../../node_modules/node-forge/lib/md.all.js","../../../../../node_modules/node-forge/lib/md.js","../../../../../node_modules/node-forge/lib/md5.js","../../../../../node_modules/node-forge/lib/mgf.js","../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../node_modules/node-forge/lib/oids.js","../../../../../node_modules/node-forge/lib/pbe.js","../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../node_modules/node-forge/lib/pem.js","../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../node_modules/node-forge/lib/pki.js","../../../../../node_modules/node-forge/lib/prime.js","../../../../../node_modules/node-forge/lib/prng.js","../../../../../node_modules/node-forge/lib/pss.js","../../../../../node_modules/node-forge/lib/random.js","../../../../../node_modules/node-forge/lib/rc2.js","../../../../../node_modules/node-forge/lib/rsa.js","../../../../../node_modules/node-forge/lib/sha1.js","../../../../../node_modules/node-forge/lib/sha256.js","../../../../../node_modules/node-forge/lib/sha512.js","../../../../../node_modules/node-forge/lib/ssh.js","../../../../../node_modules/node-forge/lib/tls.js","../../../../../node_modules/node-forge/lib/util.js","../../../../../node_modules/node-forge/lib/x509.js","../../../../../node_modules/node-forge/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/tr46/index.js","../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../node_modules/tr46/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../node_modules/webidl-conversions/package.json","../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../node_modules/whatwg-url/package.json","../../../../../node_modules/yallist/iterator.js","../../../../../node_modules/yallist/package.json","../../../../../node_modules/yallist/yallist.js","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/agent-base/dist/src/index.js","../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../node_modules/agent-base/package.json","../../../../../node_modules/arrify/index.js","../../../../../node_modules/arrify/package.json","../../../../../node_modules/base64-js/index.js","../../../../../node_modules/base64-js/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/debug/package.json","../../../../../node_modules/debug/src/browser.js","../../../../../node_modules/debug/src/common.js","../../../../../node_modules/debug/src/index.js","../../../../../node_modules/debug/src/node.js","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/extend/index.js","../../../../../node_modules/extend/package.json","../../../../../node_modules/fast-text-encoding/package.json","../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../node_modules/gaxios/build/src/common.js","../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../node_modules/gaxios/build/src/index.js","../../../../../node_modules/gaxios/build/src/retry.js","../../../../../node_modules/gaxios/package.json","../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../node_modules/gcp-metadata/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../node_modules/google-auth-library/package.json","../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../node_modules/google-p12-pem/package.json","../../../../../node_modules/gtoken/build/src/index.js","../../../../../node_modules/gtoken/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../node_modules/https-proxy-agent/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-stream/index.js","../../../../../node_modules/is-stream/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/json-bigint/index.js","../../../../../node_modules/json-bigint/lib/parse.js","../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../node_modules/json-bigint/package.json","../../../../../node_modules/jwa/index.js","../../../../../node_modules/jwa/package.json","../../../../../node_modules/jws/index.js","../../../../../node_modules/jws/lib/data-stream.js","../../../../../node_modules/jws/lib/sign-stream.js","../../../../../node_modules/jws/lib/tostring.js","../../../../../node_modules/jws/lib/verify-stream.js","../../../../../node_modules/jws/package.json","../../../../../node_modules/lru-cache/index.js","../../../../../node_modules/lru-cache/package.json","../../../../../node_modules/ms/index.js","../../../../../node_modules/ms/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/node-fetch/lib/index.js","../../../../../node_modules/node-fetch/package.json","../../../../../node_modules/node-forge/lib/aes.js","../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../node_modules/node-forge/lib/asn1.js","../../../../../node_modules/node-forge/lib/baseN.js","../../../../../node_modules/node-forge/lib/cipher.js","../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../node_modules/node-forge/lib/des.js","../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../node_modules/node-forge/lib/forge.js","../../../../../node_modules/node-forge/lib/hmac.js","../../../../../node_modules/node-forge/lib/index.js","../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../node_modules/node-forge/lib/kem.js","../../../../../node_modules/node-forge/lib/log.js","../../../../../node_modules/node-forge/lib/md.all.js","../../../../../node_modules/node-forge/lib/md.js","../../../../../node_modules/node-forge/lib/md5.js","../../../../../node_modules/node-forge/lib/mgf.js","../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../node_modules/node-forge/lib/oids.js","../../../../../node_modules/node-forge/lib/pbe.js","../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../node_modules/node-forge/lib/pem.js","../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../node_modules/node-forge/lib/pki.js","../../../../../node_modules/node-forge/lib/prime.js","../../../../../node_modules/node-forge/lib/prng.js","../../../../../node_modules/node-forge/lib/pss.js","../../../../../node_modules/node-forge/lib/random.js","../../../../../node_modules/node-forge/lib/rc2.js","../../../../../node_modules/node-forge/lib/rsa.js","../../../../../node_modules/node-forge/lib/sha1.js","../../../../../node_modules/node-forge/lib/sha256.js","../../../../../node_modules/node-forge/lib/sha512.js","../../../../../node_modules/node-forge/lib/ssh.js","../../../../../node_modules/node-forge/lib/tls.js","../../../../../node_modules/node-forge/lib/util.js","../../../../../node_modules/node-forge/lib/x509.js","../../../../../node_modules/node-forge/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/tr46/index.js","../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../node_modules/tr46/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../node_modules/webidl-conversions/package.json","../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../node_modules/whatwg-url/package.json","../../../../../node_modules/yallist/iterator.js","../../../../../node_modules/yallist/package.json","../../../../../node_modules/yallist/yallist.js","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js index ffedcfa..113630c 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=151,e.ids=[151],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,n)=>{Object.defineProperty(n,"M",{enumerable:!0,get:function(){return function e(n,t){return t in n?n[t]:"then"in n&&"function"==typeof n.then?n.then(n=>e(n,t)):"function"==typeof n&&"default"===t?n:void 0}}})},13196:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var r={};t.r(r),t.d(r,{default:()=>u});var i=t(89947),a=t(2706),o=t(96762),l=t(48786);async function u(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});e.query?.email?.toString()?.match(/^\S+$/)||n.json({email:null});let t=await (0,l.A)("SELECT email FROM users WHERE email=?",[e.query.email]);t&&t[0]?n.json({email:t}):n.json({email:null})}let s=(0,o.M)(r,"default"),c=(0,o.M)(r,"config"),d=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/social-login/utils/checkEmail",pathname:"/api/social-login/utils/checkEmail",bundlePath:"",filename:""},userland:r})},48786:(e,n,t)=>{t.d(n,{A:()=>r});async function r(...e){let n=global.DSQL_DB_CONN;try{if(!n)throw Error("No Connection provided to DB_HANDLER function!");let t=await n.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await n?.end()}}},2706:(e,n)=>{Object.defineProperty(n,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,n,t)=>{e.exports=t(75600)}};var n=require("../../../../webpack-api-runtime.js");n.C(e);var t=n(n.s=13196);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=151,e.ids=[151],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},13196:(e,r,n)=>{n.r(r),n.d(r,{config:()=>c,default:()=>u,routeModule:()=>l});var s={};n.r(s),n.d(s,{default:()=>_});var o=n(89947),t=n(2706),i=n(96762),a=n(48786);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});e.query?.email?.toString()?.match(/^\S+$/)||r.json({email:null});let n=await (0,a.A)("SELECT email FROM users WHERE email=?",[e.query.email]);n&&n[0]?r.json({email:n}):r.json({email:null})}let u=(0,i.M)(s,"default"),c=(0,i.M)(s,"config"),l=new o.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/checkEmail",pathname:"/api/social-login/utils/checkEmail",bundlePath:"",filename:""},userland:s})},48786:(e,r,n)=>{n.d(r,{A:()=>o});var s=n(7447);async function o(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let n=await r.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,n)=>{n.d(r,{A:()=>t});var s=n(9973),o=n.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,n)=>{e.exports=n(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var n=r(r.s=13196);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json index 6c1568a..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js index cbe0cd4..1049c37 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,n)=>{Object.defineProperty(n,"M",{enumerable:!0,get:function(){return function e(n,t){return t in n?n[t]:"then"in n&&"function"==typeof n.then?n.then(n=>e(n,t)):"function"==typeof n&&"default"===t?n:void 0}}})},22070:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var i={};t.r(i),t.d(i,{default:()=>l});var r=t(89947),o=t(2706),a=t(96762),u=t(48786);async function l(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});let{social_id:t,social_platform:i}=e.query,r=await (0,u.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[t,i]);t&&t[0]?n.json({social_id:r}):n.json({social_id:null})}let s=(0,a.M)(i,"default"),c=(0,a.M)(i,"config"),d=new r.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:i})},48786:(e,n,t)=>{t.d(n,{A:()=>i});async function i(...e){let n=global.DSQL_DB_CONN;try{if(!n)throw Error("No Connection provided to DB_HANDLER function!");let t=await n.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await n?.end()}}},2706:(e,n)=>{Object.defineProperty(n,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,n,t)=>{e.exports=t(75600)}};var n=require("../../../../webpack-api-runtime.js");n.C(e);var t=n(n.s=22070);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},22070:(e,r,o)=>{o.r(r),o.d(r,{config:()=>u,default:()=>c,routeModule:()=>D});var s={};o.r(s),o.d(s,{default:()=>a});var n=o(89947),t=o(2706),i=o(96762),_=o(48786);async function a(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:o,social_platform:s}=e.query,n=await (0,_.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[o,s]);o&&o[0]?r.json({social_id:n}):r.json({social_id:null})}let c=(0,i.M)(s,"default"),u=(0,i.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:s})},48786:(e,r,o)=>{o.d(r,{A:()=>n});var s=o(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let o=await r.query(...e);return JSON.parse(JSON.stringify(o))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(9973),n=o.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=22070);module.exports=o})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json index 6c1568a..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js index 3e78632..15e2108 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3589,e.ids=[3589],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},74059:(e,t,n)=>{n.r(t),n.d(t,{config:()=>d,default:()=>s,routeModule:()=>c});var r={};n.r(r),n.d(r,{default:()=>u});var i=n(89947),o=n(2706),a=n(96762),l=n(48786);async function u(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let{social_id:n,social_platform:r}=e.query,i=await (0,l.A)("SELECT email FROM users WHERE social_id=? AND social_platform=?",[n,r]);i&&i[0]?t.json({email:i[0].email}):t.json({email:null})}let s=(0,a.M)(r,"default"),d=(0,a.M)(r,"config"),c=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/getEmailFromSocialId",pathname:"/api/social-login/utils/getEmailFromSocialId",bundlePath:"",filename:""},userland:r})},48786:(e,t,n)=>{n.d(t,{A:()=>r});async function r(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let n=await t.query(...e);return JSON.parse(JSON.stringify(n))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},2706:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}});var n=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var n=t(t.s=74059);module.exports=n})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3589,e.ids=[3589],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},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}}})},74059:(e,r,o)=>{o.r(r),o.d(r,{config:()=>c,default:()=>u,routeModule:()=>D});var s={};o.r(s),o.d(s,{default:()=>_});var n=o(89947),t=o(2706),i=o(96762),a=o(48786);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:o,social_platform:s}=e.query,n=await (0,a.A)("SELECT email FROM users WHERE social_id=? AND social_platform=?",[o,s]);n&&n[0]?r.json({email:n[0].email}):r.json({email:null})}let u=(0,i.M)(s,"default"),c=(0,i.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/social-login/utils/getEmailFromSocialId",pathname:"/api/social-login/utils/getEmailFromSocialId",bundlePath:"",filename:""},userland:s})},48786:(e,r,o)=>{o.d(r,{A:()=>n});var s=o(7447);async function n(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let o=await r.query(...e);return JSON.parse(JSON.stringify(o))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,o)=>{o.d(r,{A:()=>t});var s=o(9973),n=o.n(s);function t(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,o)=>{e.exports=o(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var o=r(r.s=74059);module.exports=o})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json index 6c1568a..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../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","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/create.js b/dsql-app/.local_dist/server/pages/api/sql-users/create.js index dc26bfe..9ec9687 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/create.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7889,e.ids=[7889],e.modules={60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},52795:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>h,routeModule:()=>E});var t={};s.r(t),s.d(t,{default:()=>g});var a=s(89947),i=s(2706),o=s(96762),u=s(47795),n=s.n(u),d=s(69842),l=s(67619),c=s(48786),m=s(68829),p=s(5437);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:t,edit:a,grants:i}=e.body;try{process.env.DSQL_DB_HOST;let e=s?.id==Number(process.env.DSQL_SU_USER_ID),{host:a,password:o,username:u}=t,d=e&&u?.match(/./)?u:`dsql_user_${s.id}`;if(!a.match(/./))throw Error("Invalid host");let l=String(a).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,""),g=o?.match(/./)?o:n().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),h=await (0,c.A)("SELECT * FROM mysql.user WHERE User=? AND Host=?",[d,l]);if(h?.[0]?.User)throw Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts.");let f=await (0,c.A)("SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?",[s.id]);if(f?.[0]?.["COUNT(*)"]>=10)throw Error("User limit reached");let E=(0,m.A)({data:g}),S=await (0,c.A)("INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)",[s.id,d,l,E,JSON.stringify(i)]);if(!S?.insertId)throw Error("Error in adding SQL user");await (0,p.A)({userId:s.id,mariadbUsername:d,mariadbUserHost:l}),r.json({success:!0})}catch(e){console.log("Create MariaDB user ERROR:",e.message),(0,l.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let h=(0,o.M)(t,"default"),f=(0,o.M)(t,"config"),E=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/create",pathname:"/api/sql-users/create",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[3496],()=>s(52795));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7889,e.ids=[7889],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},52795:(e,r,s)=>{s.r(r),s.d(r,{config:()=>f,default:()=>g,routeModule:()=>E});var t={};s.r(t),s.d(t,{default:()=>h});var a=s(89947),i=s(2706),o=s(96762),u=s(47795),d=s.n(u),n=s(69842),l=s(67619),c=s(48786),m=s(68829),p=s(5437);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,n.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:t,edit:a,grants:i}=e.body;try{process.env.DSQL_DB_HOST;let e=s?.id==Number(process.env.DSQL_SU_USER_ID),{host:a,password:o,username:u}=t,n=e&&u?.match(/./)?u:`dsql_user_${s.id}`;if(!a.match(/./))throw Error("Invalid host");let l=String(a).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,""),h=o?.match(/./)?o:d().generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),g=await (0,c.A)("SELECT * FROM mysql.user WHERE User=? AND Host=?",[n,l]);if(g?.[0]?.User)throw Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts.");let f=await (0,c.A)("SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?",[s.id]);if(f?.[0]?.["COUNT(*)"]>=10)throw Error("User limit reached");let E=(0,m.A)({data:h}),q=await (0,c.A)("INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)",[s.id,n,l,E,JSON.stringify(i)]);if(!q?.insertId)throw Error("Error in adding SQL user");await (0,p.A)({userId:s.id,mariadbUsername:n,mariadbUserHost:l}),r.json({success:!0})}catch(e){console.log("Create MariaDB user ERROR:",e.message),(0,l.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let g=(0,o.M)(t,"default"),f=(0,o.M)(t,"config"),E=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/create",pathname:"/api/sql-users/create",bundlePath:"",filename:""},userland:t})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[6133],()=>s(52795));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json b/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json index 99c1457..23cc77b 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../.env","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../.env","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 ac3e216..e3e86df 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=536,e.ids=[536],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},56625:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),o=t(2706),i=t(96762),a=t(69842),u=t(67619),c=t(48786);async function l(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,a.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{let e=await (0,c.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[s,t.id]),n=e?.[0];if(!n?.id)throw Error("Active User couldn't be verified");if(String(n.primary)?.match(/1/))throw Error("Cannot Delete Primary User");let o=n.username,i=n.host;await (0,c.A)("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await (0,c.A)(`DROP USER '${o}'@'${i}'`),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let d=(0,i.M)(s,"default"),f=(0,i.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),n=t(95969),o=t(29021),i=t.n(o),a=t(89159);async function u(e,r,t){try{let{keyCookieName:o,csrfCookieName:u}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(c);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),o&&(u+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:u+=n}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s);async function o({user:e,message:r,component:t,noMail:s,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=536,e.ids=[536],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},56625:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>d,routeModule:()=>p});var t={};s.r(t),s.d(t,{default:()=>l});var n=s(89947),o=s(2706),i=s(96762),a=s(69842),u=s(67619),c=s(48786);async function l(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,a.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{id:t}=e.body;try{let e=await (0,c.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[t,s.id]),n=e?.[0];if(!n?.id)throw Error("Active User couldn't be verified");if(String(n.primary)?.match(/1/))throw Error("Cannot Delete Primary User");let o=n.username,i=n.host;await (0,c.A)("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[s.id,n.id]),await (0,c.A)(`DROP USER '${o}'@'${i}'`),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let d=(0,i.M)(t,"default"),_=(0,i.M)(t,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(39908),n=s.n(t);async function o(e,r,s){let t=n()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},67619:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(29021),n=s.n(t);async function o({user:e,message:r,component:s,noMail:t,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"],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 t=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(t+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),o?.url&&(s+=` -URL: ${o.url}`),o?.body&&(s+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(s+=` -IP: ${a}`),s+=` +User Email: ${e?.email}`),o?.url&&(t+=` +URL: ${o.url}`),o?.body&&(t+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(t+=` +IP: ${a}`),t+=` Date: ${i.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let u=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let u=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",t),n().appendFileSync("./.tmp/error.log",` -${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),l=(0,s.createDecipheriv)("aes-192-cbc",u,c);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=56625);module.exports=t})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},48786:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(7447);async function n(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(9973),n=s.n(t);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=56625);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json index d9291c4..8e974a8 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/update.js b/dsql-app/.local_dist/server/pages/api/sql-users/update.js index 8ee105d..d8edb1a 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/update.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2350,e.ids=[2350],e.modules={60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},49844:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>c,routeModule:()=>E});var i={};s.r(i),s.d(i,{default:()=>m});var a=s(89947),t=s(2706),d=s(96762),o=s(69842),u=s(67619),n=s(48786),p=s(68829),l=s(5437);async function m(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,o.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:i,edit:a,prev:t,grants:d}=e.body;try{if(!t?.id)throw Error("Invalid existing DB entry");let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[t.id,s.id]),a=s?.id==Number(process.env.DSQL_SU_USER_ID),o=e?.[0];if(!o?.id)throw Error("Active User couldn't be verified");let{host:u,password:m,username:c}=i,A=a&&c||`dsql_user_${s.id}`;if(!u)throw Error("No host provided");let E=String(u).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,"");if(o.host!=i.host||o.username!=A){let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE user_id=? AND username=? AND host=?",[s.id,A,E]);e?.[0]?.id||await (0,n.A)(`RENAME USER '${t.username}'@'${o.host}' TO '${A}'@'${E}'`)}let g=(0,p.A)({data:m}),f=g==o.password?o.password:g;await (0,n.A)("UPDATE mariadb_users SET username=?, host=?, password=?, grants=? WHERE id=?",[A,E,f,JSON.stringify(d),o.id]),await (0,n.A)(`SET PASSWORD FOR '${A}'@'${E}' = PASSWORD('${m}');`),await (0,l.A)({userId:s.id,mariadbUsername:A,mariadbUserHost:E,sqlUserID:o.id}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let c=(0,d.M)(i,"default"),A=(0,d.M)(i,"config"),E=new a.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/sql-users/update",pathname:"/api/sql-users/update",bundlePath:"",filename:""},userland:i})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),i=r.X(0,[3496],()=>s(49844));module.exports=i})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2350,e.ids=[2350],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},60818:e=>{e.exports=require("dotenv")},47795:e=>{e.exports=require("generate-password")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},49844:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>c,routeModule:()=>E});var i={};s.r(i),s.d(i,{default:()=>m});var a=s(89947),t=s(2706),d=s(96762),o=s(69842),u=s(67619),n=s(48786),p=s(68829),l=s(5437);async function m(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,o.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{data:i,edit:a,prev:t,grants:d}=e.body;try{if(!t?.id)throw Error("Invalid existing DB entry");let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[t.id,s.id]),a=s?.id==Number(process.env.DSQL_SU_USER_ID),o=e?.[0];if(!o?.id)throw Error("Active User couldn't be verified");let{host:u,password:m,username:c}=i,A=a&&c||`dsql_user_${s.id}`;if(!u)throw Error("No host provided");let E=String(u).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,"");if(o.host!=i.host||o.username!=A){let e=await (0,n.A)("SELECT * FROM mariadb_users WHERE user_id=? AND username=? AND host=?",[s.id,A,E]);e?.[0]?.id||await (0,n.A)(`RENAME USER '${t.username}'@'${o.host}' TO '${A}'@'${E}'`)}let g=(0,p.A)({data:m}),f=g==o.password?o.password:g;await (0,n.A)("UPDATE mariadb_users SET username=?, host=?, password=?, grants=? WHERE id=?",[A,E,f,JSON.stringify(d),o.id]),await (0,n.A)(`SET PASSWORD FOR '${A}'@'${E}' = PASSWORD('${m}');`),await (0,l.A)({userId:s.id,mariadbUsername:A,mariadbUserHost:E,sqlUserID:o.id}),r.json({success:!0})}catch(e){(0,u.A)({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let c=(0,d.M)(i,"default"),A=(0,d.M)(i,"config"),E=new a.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/sql-users/update",pathname:"/api/sql-users/update",bundlePath:"",filename:""},userland:i})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),i=r.X(0,[6133],()=>s(49844));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json b/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json index 99c1457..23cc77b 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../.env","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../.env","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dotenv/lib/main.js","../../../../../node_modules/dotenv/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json b/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sync-table-data.js b/dsql-app/.local_dist/server/pages/api/sync-table-data.js index c9c1ec5..5a76dc9 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=538,e.ids=[538],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},69653:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>b,routeModule:()=>g});var a={};t.r(a),t.d(a,{default:()=>m});var s=t(89947),o=t(2706),i=t(96762),n=t(67619),l=t(69842),d=t(27825),u=t.n(d),c=t(48786),p=t(33170);async function _({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==l),b=n.find(e=>e.dbFullName==d),S=m?.tables.find(e=>e.tableName==o.table),g=b?.tables.find(e=>e.tableName==s.table);if(!S||!g)throw Error("Operation Failed! Tables Schemas not present.");if(!u().isEqual(g.fields,S.fields))throw Error("Tables incompatible");switch(a){case"Push":let y=await (0,c.A)(`SELECT * FROM ${d}.${s.table}`),h=await (0,p.A)({dbName:o.db,paradigm:"import",payload:y,tableName:o.table,userId:i.rootUserId,payloadType:"object"});return await E({dbName:o.db,tableName:o.table,data:y,userId:i.rootUserId}),r.json({success:!0,payload:h});case"Pull":let $=await (0,c.A)(`SELECT * FROM ${l}.${o.table}`),A=await (0,p.A)({dbName:s.db,paradigm:"import",payload:$,tableName:s.table,userId:i.rootUserId,payloadType:"object"});return await E({dbName:s.db,tableName:s.table,data:$,userId:i.rootUserId}),r.json({success:!0,payload:A})}r.json({success:!1})}catch(e){console.log(e.message),(0,n.A)({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function E({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,o=t.map(e=>e.id),i=`DELETE FROM ${s}.${r}`;o?.[0]&&(i+=` WHERE id NOT IN (${o.join(",")})`),await (0,c.A)(i)}let b=(0,i.M)(a,"default"),S=(0,i.M)(a,"config"),g=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},33170:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(98e3),s=t(67619),o=t(48786);async function i({paradigm:e,userId:r,dbName:t,tableName:i,payload:n,payloadType:l}){let d={};try{let s=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await (0,o.A)(`SELECT * FROM \`${s}\`.\`${i}\``);d.tableData=u;break;case"import":let c="base64"==l?Buffer.from(n,"base64").toString():n,p="object"===l?n:JSON.parse(c);for(let e=0;e{t.d(r,{A:()=>l});var a=t(48786),s=t(95969),o=t(29021),i=t.n(o),n=t(89159);async function l(e,r,t){try{let{keyCookieName:o,csrfCookieName:l}=(0,n.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,s.A)({encryptedString:e.cookies[o]});if(!d)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(d);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=t;let n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=a;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:n,oneTimeCodeName:l+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(67619),s=t(29021),o=t.n(s),i=t(33873),n=t.n(i);function l({userId:e}){try{let r=n().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),s=t.n(a);async function o({user:e,message:r,component:t,noMail:a,req:o}){let i=new Date,n=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=538,e.ids=[538],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},69653:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>y,routeModule:()=>$});var a={};t.r(a),t.d(a,{default:()=>f});var s=t(89947),o=t(2706),l=t(96762),i=t(67619),d=t(69842),n=t(27825),u=t.n(n),c=t(48786),p=t(33170);async function m({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;te.dbFullName==d),y=i.find(e=>e.dbFullName==n),E=f?.tables.find(e=>e.tableName==o.table),$=y?.tables.find(e=>e.tableName==s.table);if(!E||!$)throw Error("Operation Failed! Tables Schemas not present.");if(!u().isEqual($.fields,E.fields))throw Error("Tables incompatible");switch(a){case"Push":let S=await (0,c.A)(`SELECT * FROM ${n}.${s.table}`),h=await (0,p.A)({dbName:o.db,paradigm:"import",payload:S,tableName:o.table,userId:l.rootUserId,payloadType:"object"});return await g({dbName:o.db,tableName:o.table,data:S,userId:l.rootUserId}),r.json({success:!0,payload:h});case"Pull":let _=await (0,c.A)(`SELECT * FROM ${d}.${o.table}`),A=await (0,p.A)({dbName:s.db,paradigm:"import",payload:_,tableName:s.table,userId:l.rootUserId,payloadType:"object"});return await g({dbName:s.db,tableName:s.table,data:_,userId:l.rootUserId}),r.json({success:!0,payload:A})}r.json({success:!1})}catch(e){console.log(e.message),(0,i.A)({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function g({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,o=t.map(e=>e.id),l=`DELETE FROM ${s}.${r}`;o?.[0]&&(l+=` WHERE id NOT IN (${o.join(",")})`),await (0,c.A)(l)}let y=(0,l.M)(a,"default"),E=(0,l.M)(a,"config"),$=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},33170:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(98e3),s=t(67619),o=t(48786);async function l({paradigm:e,userId:r,dbName:t,tableName:l,payload:i,payloadType:d}){let n={};try{let s=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await (0,o.A)(`SELECT * FROM \`${s}\`.\`${l}\``);n.tableData=u;break;case"import":let c="base64"==d?Buffer.from(i,"base64").toString():i,p="object"===d?i:JSON.parse(c);for(let e=0;e{t.d(r,{A:()=>o});var a=t(39908),s=t.n(a);async function o(e,r,t){let a=s()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},4820:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(67619),s=t(29021),o=t.n(s),l=t(33873),i=t.n(l);function d({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(29021),s=t.n(a);async function o({user:e,message:r,component:t,noMail:a,req:o}){let l=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"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} User Email: ${e?.email}`),o?.url&&(a+=` URL: ${o.url}`),o?.body&&(a+=` -Request Body: ${JSON.stringify(o.body,null,4)}`),n&&(a+=` -IP: ${n}`),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",` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${l.toDateString()} +========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let d=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",a),s().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(o,i,n),d=s.Buffer.alloc(16,0),u=(0,a.createDecipheriv)("aes-192-cbc",l,d);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(69653));module.exports=a})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[1251],()=>t(69653));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json b/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json index 6012469..ee3147c 100644 --- a/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json b/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json b/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json index 6db5a81..fa16183 100644 --- a/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/unsubscribe.js b/dsql-app/.local_dist/server/pages/api/unsubscribe.js index df5023c..e298bbd 100644 --- a/dsql-app/.local_dist/server/pages/api/unsubscribe.js +++ b/dsql-app/.local_dist/server/pages/api/unsubscribe.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6298,e.ids=[6298],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")},21407:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>o,routeModule:()=>m});var i={};s.r(i),s.d(i,{default:()=>d});var a=s(89947),t=s(2706),u=s(96762),l=s(98e3),n=s(48786);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{email:s,alerts:i,userId:a}=e.body;if(i)i&&await (0,n.A)("DELETE FROM unsubscribes WHERE email=? AND type='alerts'",[s]);else{let e=await (0,n.A)("SELECT email FROM unsubscribes WHERE email=? AND type='alerts'",[s]);e&&e[0]||await (0,l.A)({dbFullName:"datasquirel",tableName:"unsubscribes",data:{email:s,type:"alerts",user_id:a||null}})}r.json({success:!0})}let o=(0,u.M)(i,"default"),p=(0,u.M)(i,"config"),m=new a.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/unsubscribe",pathname:"/api/unsubscribe",bundlePath:"",filename:""},userland:i})}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),i=r.X(0,[1251],()=>s(21407));module.exports=i})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6298,e.ids=[6298],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")},21407:(e,r,s)=>{s.r(r),s.d(r,{config:()=>p,default:()=>o,routeModule:()=>m});var a={};s.r(a),s.d(a,{default:()=>d});var i=s(89947),t=s(2706),u=s(96762),l=s(98e3),n=s(48786);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{email:s,alerts:a,userId:i}=e.body;if(a)a&&await (0,n.A)("DELETE FROM unsubscribes WHERE email=? AND type='alerts'",[s]);else{let e=await (0,n.A)("SELECT email FROM unsubscribes WHERE email=? AND type='alerts'",[s]);e&&e[0]||await (0,l.A)({dbFullName:"datasquirel",tableName:"unsubscribes",data:{email:s,type:"alerts",user_id:i||null}})}r.json({success:!0})}let o=(0,u.M)(a,"default"),p=(0,u.M)(a,"config"),m=new i.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/unsubscribe",pathname:"/api/unsubscribe",bundlePath:"",filename:""},userland:a})}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251],()=>s(21407));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json b/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json index bc7aed0..f0e7653 100644 --- a/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js index 7434d6c..fba7289 100644 --- a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=294,e.ids=[294],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},7522:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>c,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>l});var i=s(89947),a=s(2706),o=s(96762),n=s(48786),d=s(69842),u=s(98e3);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:t,database_access:i,user_priviledge:a,db_tables:o,inv_user_id:l}=e.body,c=await (0,n.A)("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[i,a,s.id,t.email]),_=o.split("|");await (0,n.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${l}'`);for(let e=0;e<_.length;e++){let[r,t]=_[e].split("-");await (0,u.A)({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:l,root_user_id:s.id,database:r,table:t,priviledge:a}})}r.json({success:!!c?.affectedRows})}let c=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),f=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateAdminUserAccess",pathname:"/api/updateAdminUserAccess",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>d});var t=s(48786),i=s(95969),a=s(29021),o=s.n(a),n=s(89159);async function d(e,r,s){try{let{keyCookieName:a,csrfCookieName:d}=(0,n.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,i.A)({encryptedString:e.cookies[a]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(s&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(s&&!o().existsSync(`${c}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!s){let e=await (0,t.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",s=process.env.DSQL_COOKIES_KEY_NAME||"key",t=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",i=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let n=r;e?.userId&&(n+=`user_${e.userId}_`),a&&(n+=`${a}_`),n+=t;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),a&&(d+=`${a}_`),{keyCookieName:o,csrfCookieName:n,oneTimeCodeName:d+=i}}},95969:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(55511),i=s(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,n=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,t.scryptSync)(a,o,n),u=i.Buffer.alloc(16,0),l=(0,t.createDecipheriv)("aes-192-cbc",d,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[1251],()=>s(7522));module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=294,e.ids=[294],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},7522:(e,r,s)=>{s.r(r),s.d(r,{config:()=>c,default:()=>p,routeModule:()=>m});var a={};s.r(a),s.d(a,{default:()=>n});var t=s(89947),i=s(2706),d=s(96762),u=s(48786),l=s(69842),o=s(98e3);async function n(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,l.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{userObject:a,database_access:t,user_priviledge:i,db_tables:d,inv_user_id:n}=e.body,p=await (0,u.A)("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[t,i,s.id,a.email]),c=d.split("|");await (0,u.A)(`DELETE FROM delegated_user_tables WHERE root_user_id='${s.id}' AND delegated_user_id='${n}'`);for(let e=0;e{s.d(r,{A:()=>i});var a=s(39908),t=s.n(a);async function i(e,r,s){let a=t()({req:e,level:s?"deep":void 0});return console.log(a),a.payload}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),a=r.X(0,[1251],()=>s(7522));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 aa7ec79..c9ede8d 100644 --- a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},25477:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>E,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),o=t(2706),n=t(96762),i=t(29021),d=t.n(i),u=t(60125),l=t(67619),c=t(69842),_=t(76856);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{tableData:s}=e.body,a=e.body.database,o=e.body.dbSlug;e.body.delegated;let n=a.replace(/[^a-z\_0-9]/g,"");try{let i=await (0,u.A)({request:e,user:t,databaseSlug:o,query:e.query}),l=i?.rootUserId?i.rootUserId:t.id,c=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,f=JSON.parse(d().readFileSync(c,"utf-8")),E=f.findIndex(e=>e.dbFullName===a),p=f[E].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);f[E].tables[p]=s,d().writeFileSync(`${c}`,JSON.stringify(f),"utf8"),await (0,_.A)({userId:l,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),(0,l.A)({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let E=(0,n.M)(s,"default"),p=(0,n.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:s})},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,n=null;if(!a?.delegated)return{dbUserId:o};let i=a.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var s=t(48786),a=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:d+=a}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(25477));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,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}}})},25477:(e,r,s)=>{s.r(r),s.d(r,{config:()=>D,default:()=>S,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>p});var o=s(89947),a=s(2706),n=s(96762),i=s(29021),l=s.n(i),u=s(60125),c=s(67619),d=s(69842),_=s(76856);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let s=await (0,d.A)(e,r,!0);if(!s)return r.json({success:!1,msg:"Unauthorized"});let{tableData:t}=e.body,o=e.body.database,a=e.body.dbSlug;e.body.delegated;let n=o.replace(/[^a-z\_0-9]/g,"");try{let i=await (0,u.A)({request:e,user:s,databaseSlug:a,query:e.query}),c=i?.rootUserId?i.rootUserId:s.id,d=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c}/main.json`,p=JSON.parse(l().readFileSync(d,"utf-8")),S=p.findIndex(e=>e.dbFullName===o),D=p[S].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===t.childTableDbFullName&&e.childTableName===t.childTableName&&e.tableName===t.tableName);p[S].tables[D]=t,l().writeFileSync(`${d}`,JSON.stringify(p),"utf8"),await (0,_.A)({userId:c,targetDatabase:n}),r.json({success:!0})}catch(e){console.log(e.message),(0,c.A)({component:"/api/addApiKey/catch-error",message:e.message,user:s}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let S=(0,n.M)(t,"default"),D=(0,n.M)(t,"config"),f=new o.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:t})},60125:(e,r,s)=>{s.d(r,{A:()=>o});var t=s(95969);async function o({request:e,databaseSlug:r,user:s,query:o}){try{let a=s.id,n=null;if(!o?.delegated)return{dbUserId:a};let i=o.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 s=(0,t.A)({encryptedString:e.cookies[u]});if(!s)throw Error("Invalid Token");if((n=JSON.parse(s)).databaseSlug===r)return{dbUserId:a=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:a}}catch(e){return null}}},69842:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(39908),o=s.n(t);async function a(e,r,s){let t=o()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},95969:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(55511),o=s(79428),a=s(32443);function n({encryptedString:e,encryptionKey:r,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});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 d=(0,t.scryptSync)(n,i,l),_=o.Buffer.alloc(c,0),p=(0,t.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},7447:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(9973),o=s.n(t);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||o()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,s)=>{s.d(r,{A:()=>t});function t(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[9814],()=>s(25477));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json index 174f8d6..6cb460e 100644 --- a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.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","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/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/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 de0a610..d342971 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},15679:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>h,routeModule:()=>A});var a={};t.r(a),t.d(a,{default:()=>m});var s=t(89947),o=t(2706),n=t(96762),i=t(48786),d=t(60125),l=t(67619),u=t(69842),c=t(4820),f=t(29021),_=t.n(f),E=t(27825),b=t.n(E),p=t(76856);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,u.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body.schema,s=e.body.database,o=e.body.table;e.body.delegated;try{let n;let l=await (0,d.A)({request:e,user:t,databaseSlug:s,query:e.query}),u=l?.rootUserId?l.rootUserId:t.id,f=`datasquirel_user_${u}_${s}`.replace(/[^a-z\_0-9]/g,"");if(l?.delegated){let e=await (0,i.A)("SELECT * FROM user_users WHERE invited_user_id=? AND user_id=? AND user_priviledge LIKE '%Edit Tables%'",[t.id,l.rootUserId]);e&&e[0]&&(n=!0)}else n=!0;if(!n)return r.json({success:!1,msg:"Unauthorized"});let E=(0,c.A)({userId:u});if(!E)throw Error("Database schema not found!");if(!function({dbSchemaData:e,delegatedUser:r,dbFullName:t,schema:a,table:s,userId:o}){let n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/main.json`;try{if(!e)throw Error("Database schema not found!");let o=b().cloneDeep(e),i=o.find(e=>e.dbFullName==t);if(!i)throw Error("Old Database schema not found!");let d=o.findIndex(e=>e.dbFullName==t);if(d<0)throw Error("Target Database index not found!");let l=a.find(e=>e.dbFullName===t);if(!l)throw Error("New Database schema not found!");if(r?.delegated&&(r.priviledges?.match(/create.?table/i),!r.priviledges?.match(/edit.?table/i)))throw Error("Unauthorized!");let u=l.tables.find(e=>e.tableName==s.tableName);if(!u)throw Error("Table schema not found!");let c=i.tables.findIndex(e=>e.tableName==s.tableName);u&&(o[d].tables[c]=u);let f=i?.childrenDatabases;f?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&i&&(o[r].tables=i.tables.map(e=>{let r=b().cloneDeep(e);return delete r.childrenTables,r}))});let E=o?.[d]?.tables?.[c]?.childrenTables;return E&&E.forEach(e=>{let r=o.findIndex(r=>r.dbFullName==e.dbNameFull),t=o[r]?.tables?.findIndex(r=>r.tableName===e.tableName);o[r]?.tables[t]&&(o[r].tables[t].fields=b().cloneDeep(u.fields),o[r].tables[t].indexes=b().cloneDeep(u.indexes))}),_().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.ts ERROR: ",e.message),!1}}({dbFullName:f,dbSchemaData:E,delegatedUser:l,schema:a,table:o,userId:u}))throw Error("Update Failed!");return await (0,p.A)({userId:u,targetDatabase:f}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),(0,l.A)({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let h=(0,n.M)(a,"default"),S=(0,n.M)(a,"config"),A=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbSchemaDataForUser",pathname:"/api/updateDbSchemaDataForUser",bundlePath:"",filename:""},userland:a})},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let o=t.id,n=null;if(!s?.delegated)return{dbUserId:o};let i=s.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,l=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[l])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[l]});if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(48786),s=t(95969),o=t(29021),n=t.n(o),i=t(89159);async function d(e,r,t){try{let{keyCookieName:o,csrfCookieName:d}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!n().existsSync(`${c}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,a.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",a=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),n=r;e?.userId&&(n+=`user_${e.userId}_`),o&&(n+=`${o}_`),n+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=a;let d=r;return e?.userId&&(d+=`user_${e.userId}_`),o&&(d+=`${o}_`),{keyCookieName:n,csrfCookieName:i,oneTimeCodeName:d+=s}}},4820:(e,r,t)=>{t.d(r,{A:()=>d});var a=t(67619),s=t(29021),o=t.n(s),n=t(33873),i=t.n(n);function d({userId:e}){try{let r=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,a.A)({component:"grabUserSchemaData",message:e.message}),null}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[2282],()=>t(15679));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},15679:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>b});var a=t(89947),o=t(2706),n=t(96762),l=t(48786),i=t(60125),d=t(67619),c=t(69842),u=t(4820),_=t(29021),p=t.n(_),f=t(27825),D=t.n(f),S=t(76856);async function b(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,c.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.schema,a=e.body.database,o=e.body.table;e.body.delegated;try{let n;let d=await (0,i.A)({request:e,user:t,databaseSlug:a,query:e.query}),c=d?.rootUserId?d.rootUserId:t.id,_=`datasquirel_user_${c}_${a}`.replace(/[^a-z\_0-9]/g,"");if(d?.delegated){let e=await (0,l.A)("SELECT * FROM user_users WHERE invited_user_id=? AND user_id=? AND user_priviledge LIKE '%Edit Tables%'",[t.id,d.rootUserId]);e&&e[0]&&(n=!0)}else n=!0;if(!n)return r.json({success:!1,msg:"Unauthorized"});let f=(0,u.A)({userId:c});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=D().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 c=d.tables.find(e=>e.tableName==a.tableName);if(!c)throw Error("Table schema not found!");let u=l.tables.findIndex(e=>e.tableName==a.tableName);c&&(o[i].tables[u]=c);let _=l?.childrenDatabases;_?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&l&&(o[r].tables=l.tables.map(e=>{let r=D().cloneDeep(e);return delete r.childrenTables,r}))});let f=o?.[i]?.tables?.[u]?.childrenTables;return f&&f.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=D().cloneDeep(c.fields),o[r].tables[t].indexes=D().cloneDeep(c.indexes))}),p().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.ts ERROR: ",e.message),!1}}({dbFullName:_,dbSchemaData:f,delegatedUser:d,schema:s,table:o,userId:c}))throw Error("Update Failed!");return await (0,S.A)({userId:c,targetDatabase:_}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),(0,d.A)({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let m=(0,n.M)(s,"default"),E=(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})},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,n=null;if(!a?.delegated)return{dbUserId:o};let 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=(0,s.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}}},69842:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(39908),a=t.n(s);async function o(e,r,t){let s=a()({req:e,level:t?"deep":void 0});return console.log(s),s.payload}},4820:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(67619),a=t(29021),o=t.n(a),n=t(33873),l=t.n(n);function i({userId:e}){try{let r=l().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(o().readFileSync(r,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428),o=t(32443);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:l,keyLen:i,algorithm:d,bufferAllocSize:c}=(0,o.A)({encryptionKey:r});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 u=(0,s.scryptSync)(n,l,i),_=a.Buffer.alloc(c,0),p=(0,s.createDecipheriv)(d,u,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(7447);async function a(...e){let r=(0,s.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(9973),a=t.n(s);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9814],()=>t(15679));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json index b291093..0f0f098 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/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","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/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/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 38bff03..3db4956 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3683,e.ids=[3683],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18348:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>u,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function l(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:n}=e.body,s=(()=>{let e=Object.keys(n),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=n[e]))}),r})(),o=await (0,i.A)({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:n.id,data:{...s},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let u=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,s.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),l=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:E,useLocal:S}){if(!u||!Object.keys(u).length)return null;let h=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=S?l.A:h?a.A:i.A,y=Object.keys(u),m=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return A.push(p),h?await g(D,A):await g({paradigm:r,queryString:D,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),l=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",c,l);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18348);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3683,e.ids=[3683],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18348:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>l,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:t,payload:n}=e.body,s=(()=>{let e=Object.keys(n),r={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(r[e]=n[e]))}),r})(),o=await (0,i.A)({dbFullName:t,tableName:"users",identifierColumnName:"id",identifierValue:n.id,data:{...s},dbContext:"Dsql User",paradigm:"Full Access"});r.json({success:!!o?.affectedRows,msg:o?.affectedRows?"User Updated":o})}let l=(0,a.M)(n,"default"),p=(0,a.M)(n,"config"),d=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(39908),s=t.n(n);async function o(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37897),c=t(68829),u=t(62050);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:l,tableSchema:p,identifierColumnName:d,identifierValue:f,encryptionKey:_,encryptionSalt:S,useLocal:y}){if(!l||!Object.keys(l).length)return null;let A=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),D=y?u.A:A?a.A:i.A,g=Object.keys(l),h=[],m=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:S})),"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?m.push(String(t)):m.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 E=`UPDATE \`${t}\`.\`${n}\` SET ${h.join(",")} WHERE \`${d}\`=?`;return m.push(f),A?await D(E,m):await D({paradigm:r,queryString:E,queryValues:m})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428),o=t(32443);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:a,salt:i,keyLen:c,algorithm:u,bufferAllocSize:l}=(0,o.A)({encryptionKey:r});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 p=(0,n.scryptSync)(a,i,c),d=s.Buffer.alloc(l,0),f=(0,n.createCipheriv)(u,p,d);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(64292),s=t(7447);async function o({paradigm:e,queryString:r,queryValues:t}){let o="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(o,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{o?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18348);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 db87472..059f065 100644 --- a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=1132,e.ids=[1132],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18885:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762),i=t(77377),l=t(31495),c=t(60125),u=t(67619),d=t(69842),_=t(30802);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:s,tableName:a,payload:n,entryId:o,tableSchema:p,delegated:f,dbId:E}=e.body;delete n.id,delete n.uuid,delete n.date_created,delete n.date_created_code,delete n.date_created_timestamp,delete n.date_updated,delete n.date_updated_code,delete n.date_updated_timestamp;try{let u=await (0,c.A)({databaseSlug:s,request:e,user:t,query:e.query}),d=u?.rootUserId?`datasquirel_user_${u.rootUserId}_${s}`:`datasquirel_user_${t.id}_${s}`;if(!await (0,l.A)({user:t,confirmedDelegetedUser:u,database:s,table:a,dbId:E,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let f=await (0,_.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:d,tableName:a,identifierColumnName:"id",identifierValue:o,data:n,tableSchema:p});if(f?.error)throw Error(f.error);if(!f)throw Error("No result returned!");await (0,i.A)({dbName:d,entryId:o,entryOrder:n.order,tableName:a,tableSchema:p}),r.json({success:!0,payload:f})}catch(e){(0,u.A)({component:"/api/updateTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,c;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),c=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),c=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!c}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[c]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(37275);async function a({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:n}){try{if(n.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let e=await (0,s.A)({paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!e?.[0])throw Error("No Existing Order");await (0,s.A)({paradigm:"Full Access",queryString:`UPDATE ${a} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(72583),a=t.n(s),n=t(92652),o=t(48786),i=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:u,tableSchema:d,identifierColumnName:_,identifierValue:p,encryptionKey:f,encryptionSalt:E,useLocal:g}){if(!u||!Object.keys(u).length)return null;let S=!!g||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=g?c.A:S?o.A:i.A,m=Object.keys(u),h=[],A=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=a()(t,n.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),h.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${s}\` SET ${h.join(",")} WHERE \`${_}\`=?`;return A.push(p),S?await y(N,A):await y({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=1132,e.ids=[1132],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18885:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>f,routeModule:()=>S});var a={};t.r(a),t.d(a,{default:()=>_});var n=t(89947),s=t(2706),o=t(96762),i=t(77377),l=t(31495),u=t(60125),c=t(67619),d=t(69842),p=t(30802);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:a,tableName:n,payload:s,entryId:o,tableSchema:_,delegated:f,dbId:g}=e.body;delete s.id,delete s.uuid,delete s.date_created,delete s.date_created_code,delete s.date_created_timestamp,delete s.date_updated,delete s.date_updated_code,delete s.date_updated_timestamp;try{let c=await (0,u.A)({databaseSlug:a,request:e,user:t,query:e.query}),d=c?.rootUserId?`datasquirel_user_${c.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`;if(!await (0,l.A)({user:t,confirmedDelegetedUser:c,database:a,table:n,dbId:g,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let f=await (0,p.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:d,tableName:n,identifierColumnName:"id",identifierValue:o,data:s,tableSchema:_});if(f?.error)throw Error(f.error);if(!f)throw Error("No result returned!");await (0,i.A)({dbName:d,entryId:o,entryOrder:s.order,tableName:n,tableSchema:_}),r.json({success:!0,payload:f})}catch(e){(0,c.A)({component:"/api/updateTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let f=(0,o.M)(a,"default"),g=(0,o.M)(a,"config"),S=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:a})},31495:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(48786),n=t(67619);async function s({user:e,confirmedDelegetedUser:r,database:t,table:s,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,a.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,s]),u=l[0]?.priviledge?.match(o)):(l=await (0,a.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,s,i]),u=!0)}catch(r){(0,n.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(95969);async function n({request:e,databaseSlug:r,user:t,query:n}){try{let s=t.id,o=null;if(!n?.delegated)return{dbUserId:s};let i=n.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:s=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:s}}catch(e){return null}}},77377:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(37897);async function n({dbName:e,entryId:r,entryOrder:t,tableName:n,tableSchema:s}){try{if(s.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let e=await (0,a.A)({paradigm:"Full Access",queryString:`SELECT * FROM ${n} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!e?.[0])throw Error("No Existing Order");await (0,a.A)({paradigm:"Full Access",queryString:`UPDATE ${n} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},69842:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(39908),n=t.n(a);async function s(e,r,t){let a=n()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var a=t(72583),n=t.n(a),s=t(92652),o=t(48786),i=t(37897),l=t(68829),u=t(62050);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:a,data:c,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:g,useLocal:S}){if(!c||!Object.keys(c).length)return null;let y=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=S?u.A:y?o.A:i.A,E=Object.keys(c),A=[],h=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=n()(t,s.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),A.push(`\`${r}\`=?`),"number"==typeof t?h.push(String(t)):h.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${a}\` SET ${A.join(",")} WHERE \`${p}\`=?`;return h.push(_),y?await m(D,h):await m({paradigm:r,queryString:D,queryValues:h})}},92652:(e,r,t)=>{t.d(r,{A:()=>a});let a={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),n=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let o=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||a||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),n?.url&&(s+=` -URL: ${n.url}`),n?.body&&(s+=` -Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +User Email: ${e?.email}`),s?.url&&(a+=` +URL: ${s.url}`),s?.body&&(a+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` Date: ${o.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",a),n().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),c=a.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18885);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),n=t(79428),s=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,s.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,a.scryptSync)(o,i,l),p=n.Buffer.alloc(c,0),_=(0,a.createDecipheriv)(u,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),n=t(79428),s=t(32443);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,s.A)({encryptionKey:r});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 d=(0,a.scryptSync)(o,i,l),p=n.Buffer.alloc(c,0),_=(0,a.createCipheriv)(u,d,p);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(7447);async function n(...e){let r=(0,a.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(64292),n=t(7447);async function s({paradigm:e,queryString:r,queryValues:t}){let s="Read Only"==e?(0,n.A)({ro:!0}):(0,n.A)({fa:!0});try{return await (0,a.A)(s,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(7447);async function n(...e){let r=(0,a.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(n(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;aa})},7447:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(9973),n=t.n(a);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18885);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUser.js b/dsql-app/.local_dist/server/pages/api/updateUser.js index 032544b..12edb42 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8925,e.ids=[8925],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},58240:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>E,routeModule:()=>N});var n={};t.r(n),t.d(n,{default:()=>y});var s=t(89947),i=t(2706),a=t(96762),o=t(48786);let l=require("node-fetch");var c=t.n(l),u=t(9288),d=t.n(u),p=t(67619);async function f({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:n}){try{async function s(){let r;if(n?.match("url")){if(e.match(/^http/i)){let t=await c()(e,{});r=await t.buffer()}else r=`./public${e}`}else n?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let i=await s(),a=t||650,o=d()(i),{width:l,height:u,format:p}=await o.metadata();if(l&&u&&l>a){let e=a/l;o.resize(a,Math.round(u*e),{fit:"cover"})}p&&o.toFormat(p,{quality:80}),await o.toFile(r)}catch(e){(0,p.A)({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}var _=t(69842),g=t(33873),m=t.n(g),S=t(79646),h=t(30802);async function y(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:n,last_name:s,image:i}=e.body;try{let e=(await (0,o.A)(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===i,a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=m().join(a,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),c=m().join(a,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await f({imageSourceUrl:"string"==typeof i?i:i.imageBase64,imageWritePath:l,sourceType:"string"==typeof i?"url":"base64"}),await f({imageSourceUrl:"string"==typeof i?i:i.imageBase64,imageWritePath:c,maxSize:250,sourceType:"string"==typeof i?"url":"base64"}),(0,S.execSync)(`chmod 644 ${l} ${c}`));let u=l.replace(a,process.env.DSQL_STATIC_HOST||""),d=c.replace(a,process.env.DSQL_STATIC_HOST||"");await (0,h.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:n,last_name:s,image:u,image_thumbnail:d}}),await (0,h.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:n,last_name:s,image:u,image_thumbnail:d}}),r.json({user:!0})}catch(e){(0,p.A)({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let E=(0,a.M)(n,"default"),A=(0,a.M)(n,"config"),N=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(48786),s=t(95969),i=t(29021),a=t.n(i),o=t(89159);async function l(e,r,t){try{let{keyCookieName:i,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,s.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:l+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),s=t.n(n),i=t(92652),a=t(48786),o=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:_,encryptionSalt:g,useLocal:m}){if(!u||!Object.keys(u).length)return null;let S=!!m||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=m?c.A:S?a.A:o.A,y=Object.keys(u),E=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let o=/<[^>]+>/g;(a?.richText||String(t).match(o))&&(t=s()(t,i.A)),a?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:_,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${E.join(",")} WHERE \`${p}\`=?`;return A.push(f),S?await h(N,A):await h({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n);async function i({user:e,message:r,component:t,noMail:n,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8925,e.ids=[8925],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},58240:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>A,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>h});var a=t(89947),s=t(2706),i=t(96762),o=t(48786);let l=require("node-fetch");var u=t.n(l),c=t(9288),p=t.n(c),d=t(67619);async function f({imageSourceUrl:e,imageWritePath:r,maxSize:t,sourceType:n}){try{async function a(){let r;if(n?.match("url")){if(e.match(/^http/i)){let t=await u()(e,{});r=await t.buffer()}else r=`./public${e}`}else n?.match("base64")&&(r=Buffer.from(e,"base64"));return r}let s=await a(),i=t||650,o=p()(s),{width:l,height:c,format:d}=await o.metadata();if(l&&c&&l>i){let e=i/l;o.resize(i,Math.round(c*e),{fit:"cover"})}d&&o.toFormat(d,{quality:80}),await o.toFile(r)}catch(e){(0,d.A)({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}var m=t(69842),g=t(33873),S=t.n(g),_=t(79646),y=t(30802);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,m.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{first_name:n,last_name:a,image:s}=e.body;try{let e=(await (0,o.A)(`SELECT image FROM users WHERE id='${t.id}'`))[0].image===s,i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=S().join(i,`images/user-images/user-${t.id}/user-${t.id}-profile.jpg`),u=S().join(i,`images/user-images/user-${t.id}/user-${t.id}-profile-thumbnail.jpg`);e||(await f({imageSourceUrl:"string"==typeof s?s:s.imageBase64,imageWritePath:l,sourceType:"string"==typeof s?"url":"base64"}),await f({imageSourceUrl:"string"==typeof s?s:s.imageBase64,imageWritePath:u,maxSize:250,sourceType:"string"==typeof s?"url":"base64"}),(0,_.execSync)(`chmod 644 ${l} ${u}`));let c=l.replace(i,process.env.DSQL_STATIC_HOST||""),p=u.replace(i,process.env.DSQL_STATIC_HOST||"");await (0,y.A)({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:t.id,data:{first_name:n,last_name:a,image:c,image_thumbnail:p}}),await (0,y.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:t.id,data:{first_name:n,last_name:a,image:c,image_thumbnail:p}}),r.json({user:!0})}catch(e){(0,d.A)({component:"/api/updateUser/main-catch-error",message:e.message,user:t}),r.json({user:null})}}let A=(0,i.M)(n,"default"),D=(0,i.M)(n,"config"),E=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),a=t.n(n);async function s(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(72583),a=t.n(n),s=t(92652),i=t(48786),o=t(37897),l=t(68829),u=t(62050);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:c,tableSchema:p,identifierColumnName:d,identifierValue:f,encryptionKey:m,encryptionSalt:g,useLocal:S}){if(!c||!Object.keys(c).length)return null;let _=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?u.A:_?i.A:o.A,h=Object.keys(c),A=[],D=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let o=/<[^>]+>/g;(i?.richText||String(t).match(o))&&(t=a()(t,s.A)),i?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:m,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),A.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let E=`UPDATE \`${t}\`.\`${n}\` SET ${A.join(",")} WHERE \`${d}\`=?`;return D.push(f),_?await y(E,D):await y({paradigm:r,queryString:E,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),i?.url&&(n+=` -URL: ${i.url}`),i?.body&&(n+=` -Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(n+=` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` IP: ${o}`),n+=` -Date: ${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",` +Date: ${i.toDateString()} +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(i,a,o),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let i=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(i,a,o),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ni})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n),i=t(29021),a=t.n(i);async function o(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58240);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),a=t(79428),s=t(32443);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,s.A)({encryptionKey:r});if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let p=(0,n.scryptSync)(i,o,l),d=a.Buffer.alloc(c,0),f=(0,n.createCipheriv)(u,p,d);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(64292),a=t(7447);async function s({paradigm:e,queryString:r,queryValues:t}){let s="Read Only"==e?(0,a.A)({ro:!0}):(0,a.A)({fa:!0});try{return await (0,n.A)(s,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(9973),a=t.n(n);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58240);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json index b6e50a2..d31bad8 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../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-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../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-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/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-arrayish/index.js","../../../../node_modules/is-arrayish/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/node-fetch/lib/index.js","../../../../node_modules/node-fetch/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/semver/classes/comparator.js","../../../../node_modules/semver/classes/range.js","../../../../node_modules/semver/classes/semver.js","../../../../node_modules/semver/functions/cmp.js","../../../../node_modules/semver/functions/coerce.js","../../../../node_modules/semver/functions/compare.js","../../../../node_modules/semver/functions/eq.js","../../../../node_modules/semver/functions/gt.js","../../../../node_modules/semver/functions/gte.js","../../../../node_modules/semver/functions/lt.js","../../../../node_modules/semver/functions/lte.js","../../../../node_modules/semver/functions/neq.js","../../../../node_modules/semver/functions/parse.js","../../../../node_modules/semver/functions/satisfies.js","../../../../node_modules/semver/internal/constants.js","../../../../node_modules/semver/internal/debug.js","../../../../node_modules/semver/internal/identifiers.js","../../../../node_modules/semver/internal/lrucache.js","../../../../node_modules/semver/internal/parse-options.js","../../../../node_modules/semver/internal/re.js","../../../../node_modules/semver/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/tr46/index.js","../../../../node_modules/tr46/lib/mappingTable.json","../../../../node_modules/tr46/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/webidl-conversions/lib/index.js","../../../../node_modules/webidl-conversions/package.json","../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../node_modules/whatwg-url/lib/URL.js","../../../../node_modules/whatwg-url/lib/public-api.js","../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../node_modules/whatwg-url/lib/utils.js","../../../../node_modules/whatwg-url/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../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-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../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-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/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-arrayish/index.js","../../../../node_modules/is-arrayish/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/node-fetch/lib/index.js","../../../../node_modules/node-fetch/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/semver/classes/comparator.js","../../../../node_modules/semver/classes/range.js","../../../../node_modules/semver/classes/semver.js","../../../../node_modules/semver/functions/cmp.js","../../../../node_modules/semver/functions/coerce.js","../../../../node_modules/semver/functions/compare.js","../../../../node_modules/semver/functions/eq.js","../../../../node_modules/semver/functions/gt.js","../../../../node_modules/semver/functions/gte.js","../../../../node_modules/semver/functions/lt.js","../../../../node_modules/semver/functions/lte.js","../../../../node_modules/semver/functions/neq.js","../../../../node_modules/semver/functions/parse.js","../../../../node_modules/semver/functions/satisfies.js","../../../../node_modules/semver/internal/constants.js","../../../../node_modules/semver/internal/debug.js","../../../../node_modules/semver/internal/identifiers.js","../../../../node_modules/semver/internal/lrucache.js","../../../../node_modules/semver/internal/parse-options.js","../../../../node_modules/semver/internal/re.js","../../../../node_modules/semver/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/tr46/index.js","../../../../node_modules/tr46/lib/mappingTable.json","../../../../node_modules/tr46/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/webidl-conversions/lib/index.js","../../../../node_modules/webidl-conversions/package.json","../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../node_modules/whatwg-url/lib/URL.js","../../../../node_modules/whatwg-url/lib/public-api.js","../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../node_modules/whatwg-url/lib/utils.js","../../../../node_modules/whatwg-url/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js index 57fa936..2be630b 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=7214,e.ids=[7214],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53382:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>g,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(29021),l=t.n(i),c=t(21820),u=t.n(c),d=t(79646),p=t(30802),_=t(67619),f=t(69842),m=t(30944);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_name:n,db_slug:a,db_description:o,db_image:i,db_full_name:c,active_clone:S,active_clone_parent_db:g}=e.body;c?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});let y=`datasquirel_user_${t.id}_${a}`;if(await (0,p.A)({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:n,db_slug:a,db_description:o,db_image:i,db_full_name:y}}),c&&c!==y){console.log("Renaming Database");let e=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",r=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await (0,m.A)({queryString:`CREATE DATABASE \`${y}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`});let t={cwd:process.cwd()};u().platform().match(/win/i)&&(t.shell="bash.exe");let s=`${r} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${c} > tmpDbFile.sql`;console.log(`updateUserDatabase.ts exe => ${s}`),(0,d.execSync)(s,t),(0,d.execSync)(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${y} < tmpDbFile.sql`,t),await (0,m.A)({queryString:`DROP DATABASE \`${c}\``})}catch(e){(0,_.A)({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:t})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(l().readFileSync(e,"utf8")),u=s.filter(e=>e.dbFullName===c);if(u[0].dbName=n,u[0].dbFullName=y,u[0].dbDescription=o,u[0].dbImage=i,u[0].dbSlug=a,S){let e=s.filter(e=>e.dbFullName===u[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.find(e=>e.dbFullName===c);r&&(r.dbFullName=y)}l().writeFileSync(`${e}`,JSON.stringify(s),"utf8"),r.json({success:!0})}catch(e){(0,_.A)({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let g=(0,o.M)(s,"default"),y=(0,o.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),n=t(95969),a=t(29021),o=t.n(a),i=t(89159);async function l(e,r,t){try{let{keyCookieName:a,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[a]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(72583),n=t.n(s),a=t(92652),o=t(48786),i=t(37275),l=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:u,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:m,useLocal:S}){if(!u||!Object.keys(u).length)return null;let g=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?c.A:g?o.A:i.A,h=Object.keys(u),E=[],D=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=n()(t,a.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let A=`UPDATE \`${t}\`.\`${s}\` SET ${E.join(",")} WHERE \`${p}\`=?`;return D.push(_),g?await y(A,D):await y({paradigm:r,queryString:A,queryValues:D})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7214,e.ids=[7214],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},53382:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>y,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>_});var a=t(89947),s=t(2706),o=t(96762),l=t(29021),i=t.n(l),c=t(21820),u=t.n(c),d=t(79646),p=t(30802),f=t(67619),S=t(69842),m=t(30944);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,S.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:n,db_name:a,db_slug:s,db_description:o,db_image:l,db_full_name:c,active_clone:_,active_clone_parent_db:y}=e.body;c?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});let D=`datasquirel_user_${t.id}_${s}`;if(await (0,p.A)({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:n,data:{db_name:a,db_slug:s,db_description:o,db_image:l,db_full_name:D}}),c&&c!==D){console.log("Renaming Database");let e=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",r=u().platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await (0,m.A)({queryString:`CREATE DATABASE \`${D}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`});let t={cwd:process.cwd()};u().platform().match(/win/i)&&(t.shell="bash.exe");let n=`${r} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${c} > tmpDbFile.sql`;console.log(`updateUserDatabase.ts exe => ${n}`),(0,d.execSync)(n,t),(0,d.execSync)(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${D} < tmpDbFile.sql`,t),await (0,m.A)({queryString:`DROP DATABASE \`${c}\``})}catch(e){(0,f.A)({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:t})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(i().readFileSync(e,"utf8")),u=n.filter(e=>e.dbFullName===c);if(u[0].dbName=a,u[0].dbFullName=D,u[0].dbDescription=o,u[0].dbImage=l,u[0].dbSlug=s,_){let e=n.filter(e=>e.dbFullName===u[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.find(e=>e.dbFullName===c);r&&(r.dbFullName=D)}i().writeFileSync(`${e}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){(0,f.A)({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let y=(0,o.M)(n,"default"),D=(0,o.M)(n,"config"),g=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(39908),a=t.n(n);async function s(e,r,t){let n=a()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),a=t.n(n),s=t(92652),o=t(48786),l=t(37897),i=t(68829),c=t(62050);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:S,encryptionSalt:m,useLocal:_}){if(!u||!Object.keys(u).length)return null;let y=!!_||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),D=_?c.A:y?o.A:l.A,g=Object.keys(u),A=[],h=[];for(let e=0;ee.fieldName===r):null,o=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let l=/<[^>]+>/g;(o?.richText||String(t).match(l))&&(t=a()(t,s.A)),o?.encrypted&&(t=(0,i.A)({data:t,encryptionKey:S,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),A.push(`\`${r}\`=?`),"number"==typeof t?h.push(String(t)):h.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let b=`UPDATE \`${t}\`.\`${n}\` SET ${A.join(",")} WHERE \`${p}\`=?`;return h.push(f),y?await D(b,h):await D({paradigm:r,queryString:b,queryValues:h})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +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&&(s+=` -URL: ${a.url}`),a?.body&&(s+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` -IP: ${i}`),s+=` +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(n+=` +IP: ${l}`),n+=` Date: ${o.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let i=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(43775),n=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,s.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(55511),n=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(a,o,i),c=n.Buffer.alloc(16,0),u=(0,s.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sa})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),n=t.n(s),a=t(29021),o=t.n(a);async function i(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53382);module.exports=t})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),a=t(67619),s=t(7447),o=t(64292);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:i,debug:c}){let u=(0,s.A)({fa:!0});i&&(u=(0,s.A)({local:!0})),t?.match(/^datasquirel$/)&&(u=(0,s.A)()),c&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(u,e,r);if(c&&console.log("varDatabaseDbHandler:results:",d),d&&l)try{return await (0,n.A)({unparsedResults:d,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),a=t(79428),s=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:l,keyLen:i,algorithm:c,bufferAllocSize:u}=(0,s.A)({encryptionKey:r});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 d=(0,n.scryptSync)(o,l,i),p=a.Buffer.alloc(u,0),f=(0,n.createDecipheriv)(c,d,p);try{let r=f.update(e,"hex","utf8");return r+=f.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),a=t(79428),s=t(32443);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:l,keyLen:i,algorithm:c,bufferAllocSize:u}=(0,s.A)({encryptionKey:r});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 d=(0,n.scryptSync)(o,l,i),p=a.Buffer.alloc(u,0),f=(0,n.createCipheriv)(c,d,p);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(64292),a=t(7447);async function s({paradigm:e,queryString:r,queryValues:t}){let s="Read Only"==e?(0,a.A)({ro:!0}):(0,a.A)({fa:!0});try{return await (0,n.A)(s,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(7447);async function a(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(9973),a=t.n(n);function s(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=53382);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 ec81e69..27bb383 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},81147:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>E});var a=t(89947),n=t(2706),o=t(96762),i=t(29021),l=t.n(i),u=t(48786),c=t(31495),d=t(60125),_=t(67619),f=t(69842),p=t(30802),g=t(76856);async function E(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,f.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:a,dbId:n,tableNameOld:o,payload:i,delegated:E}=e.body,{tableName:S,tableFullName:h,tableDescription:m}=i;if(!S?.match(/./)||S.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Bad Input"});try{let i=await (0,d.A)({databaseSlug:a,request:e,user:t,query:e.query});if(!await (0,c.A)({user:t,confirmedDelegetedUser:i,database:a,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),r.json({success:!1,msg:"Unauthorized"});let f=i?.rootUserId?i.rootUserId:t.id,b=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${f}/main.json`,A=JSON.parse(l().readFileSync(b,"utf8")),y=A.filter(e=>e.dbFullName===s)[0].tables.filter((e,r)=>{if(e.tableName===o)return!0});if(y&&y[0])y[0].tableName=S,y[0].tableNameOld=o,y[0].tableFullName=h,m&&(y[0].tableDescription=m),y[0].childrenTables&&y[0].childrenTables.forEach(e=>{try{A.filter(r=>r.dbFullName===e.dbNameFull)[0].tables.filter(r=>{if(r.tableName===e.tableName)return!0})[0].childTableName=S}catch(e){(0,_.A)({component:"/api/updateUserTable/lines-131-138",message:e.message,user:t})}});else throw Error("Table Does not exist");l().writeFileSync(`${b}`,JSON.stringify(A),"utf8"),await (0,p.A)({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:h,table_slug:S,table_description:m}}),E&&i&&await (0,u.A)("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[S,t.id,i.rootUserId,o,a]);let N=s.replace(/[^a-z\_0-9]/g,"");await (0,g.A)({userId:f,targetDatabase:N}),r.json({success:!0})}catch(e){(0,_.A)({component:"/api/updateUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let S=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:s})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(48786),a=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,s.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=l[0]?.priviledge?.match(o)):(l=await (0,s.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),u=!0)}catch(r){(0,a.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);async function a({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,s.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(48786),a=t(95969),n=t(29021),o=t.n(n),i=t(89159);async function l(e,r,t){try{let{keyCookieName:n,csrfCookieName:l}=(0,i.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,a.A)({encryptedString:e.cookies[n]});if(!u)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(u);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!o().existsSync(`${d}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=a}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var s=t(72583),a=t.n(s),n=t(92652),o=t(48786),i=t(37275),l=t(68829),u=t(7971);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:s,data:c,tableSchema:d,identifierColumnName:_,identifierValue:f,encryptionKey:p,encryptionSalt:g,useLocal:E}){if(!c||!Object.keys(c).length)return null;let S=!!E||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),h=E?u.A:S?o.A:i.A,m=Object.keys(c),b=[],A=[];for(let e=0;ee.fieldName===r):null,o=s&&s[0]?s[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=a()(t,n.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:p,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),b.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}b.push(`date_updated='${Date()}'`),b.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE \`${t}\`.\`${s}\` SET ${b.join(",")} WHERE \`${_}\`=?`;return A.push(f),S?await h(y,A):await h({paradigm:r,queryString:y,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>s});let s={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(79428);function n({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,s.scryptSync)(n,o,i),u=a.Buffer.alloc(16,0),c=(0,s.createCipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"utf8","hex");return r+=c.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;sn})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(9973),a=t.n(s),n=t(29021),o=t.n(n);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(81147));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},81147:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>A,routeModule:()=>b});var a={};t.r(a),t.d(a,{default:()=>S});var s=t(89947),n=t(2706),o=t(96762),i=t(29021),l=t.n(i),u=t(48786),c=t(31495),d=t(60125),p=t(67619),_=t(69842),f=t(30802),g=t(76856);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await (0,_.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:a,dbSlug:s,dbId:n,tableNameOld:o,payload:i,delegated:S}=e.body,{tableName:A,tableFullName:m,tableDescription:b}=i;if(!A?.match(/./)||A.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Bad Input"});try{let i=await (0,d.A)({databaseSlug:s,request:e,user:t,query:e.query});if(!await (0,c.A)({user:t,confirmedDelegetedUser:i,database:s,table:o,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),r.json({success:!1,msg:"Unauthorized"});let _=i?.rootUserId?i.rootUserId:t.id,D=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${_}/main.json`,y=JSON.parse(l().readFileSync(D,"utf8")),E=y.filter(e=>e.dbFullName===a)[0].tables.filter((e,r)=>{if(e.tableName===o)return!0});if(E&&E[0])E[0].tableName=A,E[0].tableNameOld=o,E[0].tableFullName=m,b&&(E[0].tableDescription=b),E[0].childrenTables&&E[0].childrenTables.forEach(e=>{try{y.filter(r=>r.dbFullName===e.dbNameFull)[0].tables.filter(r=>{if(r.tableName===e.tableName)return!0})[0].childTableName=A}catch(e){(0,p.A)({component:"/api/updateUserTable/lines-131-138",message:e.message,user:t})}});else throw Error("Table Does not exist");l().writeFileSync(`${D}`,JSON.stringify(y),"utf8"),await (0,f.A)({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:o,data:{table_name:m,table_slug:A,table_description:b}}),S&&i&&await (0,u.A)("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[A,t.id,i.rootUserId,o,s]);let h=a.replace(/[^a-z\_0-9]/g,"");await (0,g.A)({userId:_,targetDatabase:h}),r.json({success:!0})}catch(e){(0,p.A)({component:"/api/updateUserTable/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let A=(0,o.M)(a,"default"),m=(0,o.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:a})},31495:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(48786),s=t(67619);async function n({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await (0,a.A)("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=l[0]?.priviledge?.match(o)):(l=await (0,a.A)("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),u=!0)}catch(r){(0,s.A)({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},60125:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);async function s({request:e,databaseSlug:r,user:t,query:s}){try{let n=t.id,o=null;if(!s?.delegated)return{dbUserId:n};let i=s.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=(0,a.A)({encryptedString:e.cookies[u]});if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},69842:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(39908),s=t.n(a);async function n(e,r,t){let a=s()({req:e,level:t?"deep":void 0});return console.log(a),a.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var a=t(72583),s=t.n(a),n=t(92652),o=t(48786),i=t(37897),l=t(68829),u=t(62050);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:a,data:c,tableSchema:d,identifierColumnName:p,identifierValue:_,encryptionKey:f,encryptionSalt:g,useLocal:S}){if(!c||!Object.keys(c).length)return null;let A=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=S?u.A:A?o.A:i.A,b=Object.keys(c),D=[],y=[];for(let e=0;ee.fieldName===r):null,o=a&&a[0]?a[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(o?.richText||String(t).match(i))&&(t=s()(t,n.A)),o?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:f,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),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 E=`UPDATE \`${t}\`.\`${a}\` SET ${D.join(",")} WHERE \`${p}\`=?`;return y.push(_),A?await m(E,y):await m({paradigm:r,queryString:E,queryValues:y})}},92652:(e,r,t)=>{t.d(r,{A:()=>a});let a={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),s=t(79428),n=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,n.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,a.scryptSync)(o,i,l),p=s.Buffer.alloc(c,0),_=(0,a.createDecipheriv)(u,d,p);try{let r=_.update(e,"hex","utf8");return r+=_.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(55511),s=t(79428),n=t(32443);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,n.A)({encryptionKey:r});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 d=(0,a.scryptSync)(o,i,l),p=s.Buffer.alloc(c,0),_=(0,a.createCipheriv)(u,d,p);try{let r=_.update(e,"utf8","hex");return r+=_.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(7447);async function s(...e){let r=(0,a.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(64292),s=t(7447);async function n({paradigm:e,queryString:r,queryValues:t}){let n="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,a.A)(n,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{n?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(7447);async function s(...e){let r=(0,a.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(s(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;aa})},7447:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(9973),s=t.n(a);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>a});function a(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[9814],()=>t(81147));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json index 8de4c87..4ad927d 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/main.json","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package-shared/data/defaultFields.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 264cf0b..30345a5 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=2500,e.ids=[2500],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},72387:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>l,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),c=t(69842);async function u(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,c.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,n=(()=>{let r=Object.keys(e.body),n={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(n[r]=e.body[r]))}),n})(),s=await (0,i.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...n}});r.json({success:!!s?.affectedRows,msg:s?.affectedRows?"User Updated":s})}let l=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(48786),s=t(95969),o=t(29021),a=t.n(o),i=t(89159);async function c(e,r,t){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let u=(0,s.A)({encryptedString:e.cookies[o]});if(!u)throw Error("Couldn't decrypt auth cookie!");let l=JSON.parse(u);if(!l.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(l.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!a().existsSync(`${d}/${l.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==l.verification_status&&!t){let e=await (0,n.A)(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(l?.date&&Date.now()-l.date>6048e5)throw Error("Key expired!");return l}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=r;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=n;let c=r;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=s}}},30802:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37275),c=t(68829),u=t(7971);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:l,tableSchema:d,identifierColumnName:f,identifierValue:p,encryptionKey:_,encryptionSalt:E,useLocal:S}){if(!l||!Object.keys(l).length)return null;let h=!!S||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),y=S?u.A:h?a.A:i.A,g=Object.keys(l),m=[],A=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,c.A)({data:t,encryptionKey:_,encryptionSalt:E})),"object"==typeof t&&(t=JSON.stringify(t)),a?.pattern&&!new RegExp(a.pattern,a.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),m.push(`\`${r}\`=?`),"number"==typeof t?A.push(String(t)):A.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}m.push(`date_updated='${Date()}'`),m.push(`date_updated_code='${Date.now()}'`);let N=`UPDATE \`${t}\`.\`${n}\` SET ${m.join(",")} WHERE \`${f}\`=?`;return A.push(p),h?await y(N,A):await y({paradigm:r,queryString:N,queryValues:A})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),u=s.Buffer.alloc(16,0),l=(0,n.createDecipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"hex","utf8");return r+=l.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let o=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let c=(0,n.scryptSync)(o,a,i),u=s.Buffer.alloc(16,0),l=(0,n.createCipheriv)("aes-192-cbc",c,u);try{let r=l.update(e,"utf8","hex");return r+=l.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;no})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),o=t(29021),a=t.n(o);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=72387);module.exports=t})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2500,e.ids=[2500],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},72387:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>l,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>c});var s=t(89947),o=t(2706),a=t(96762),i=t(30802),u=t(69842);async function c(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await (0,u.A)(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{user_type:t}=e.body,n=(()=>{let r=Object.keys(e.body),n={};return r.forEach(r=>{!(t?.match(/database/)&&r?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(r?.match(/databases|confirm/)||(n[r]=e.body[r]))}),n})(),s=await (0,i.A)({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...n}});r.json({success:!!s?.affectedRows,msg:s?.affectedRows?"User Updated":s})}let l=(0,a.M)(n,"default"),d=(0,a.M)(n,"config"),p=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(39908),s=t.n(n);async function o(e,r,t){let n=s()({req:e,level:t?"deep":void 0});return console.log(n),n.payload}},30802:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(72583),s=t.n(n),o=t(92652),a=t(48786),i=t(37897),u=t(68829),c=t(62050);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:l,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:_,encryptionSalt:S,useLocal:y}){if(!l||!Object.keys(l).length)return null;let A=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=y?c.A:A?a.A:i.A,D=Object.keys(l),h=[],m=[];for(let e=0;ee.fieldName===r):null,a=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let i=/<[^>]+>/g;(a?.richText||String(t).match(i))&&(t=s()(t,o.A)),a?.encrypted&&(t=(0,u.A)({data:t,encryptionKey:_,encryptionSalt:S})),"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?m.push(String(t)):m.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 E=`UPDATE \`${t}\`.\`${n}\` SET ${h.join(",")} WHERE \`${p}\`=?`;return m.push(f),A?await g(E,m):await g({paradigm:r,queryString:E,queryValues:m})}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428),o=t(32443);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:a,salt:i,keyLen:u,algorithm:c,bufferAllocSize:l}=(0,o.A)({encryptionKey:r});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 d=(0,n.scryptSync)(a,i,u),p=s.Buffer.alloc(l,0),f=(0,n.createCipheriv)(c,d,p);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(64292),s=t(7447);async function o({paradigm:e,queryString:r,queryValues:t}){let o="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(o,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{o?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),s=t.n(n);function o(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=72387);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json index bc7aed0..6bf2e83 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-api-runtime.js"]} \ 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 73627fd..cce45db 100644 --- a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},55096:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>h,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),i=t(96762),o=t(29021),u=t.n(o),d=t(69842),c=t(67619),l=t(48786),_=t(33873),f=t.n(_),E=t(76856);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await (0,d.A)(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.schema,a=e.body.dbId;try{let e=await (0,l.A)("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[t.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],i=f().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`),o=JSON.parse(u().readFileSync(i,"utf-8")),d=o.find(e=>e.dbFullName==n.db_full_name);if(!d)throw Error("This Database doesn't exist");if(d.tables=s.tables,d.childrenDatabases)for(let e=0;ee.dbFullName===r);if(!t||!t.tables){d.childrenDatabases?.splice(e,1);continue}t.tables=s.tables}u().writeFileSync(`${i}`,JSON.stringify(o),"utf8"),await (0,E.A)({userId:t.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(s){(0,c.A)({component:"/api/acceptUserInvitation/catch-error",message:s.message,user:t,req:e}),r.json({success:!1})}}let h=(0,i.M)(s,"default"),A=(0,i.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user-schema/replace-database-schema",pathname:"/api/user-schema/replace-database-schema",bundlePath:"",filename:""},userland:s})},69842:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(48786),a=t(95969),n=t(29021),i=t.n(n),o=t(89159);async function u(e,r,t){try{let{keyCookieName:n,csrfCookieName:u}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let d=(0,a.A)({encryptedString:e.cookies[n]});if(!d)throw Error("Couldn't decrypt auth cookie!");let c=JSON.parse(d);if(!c.csrf_k)throw Error("No `csrf_k` present in user Object!");if(t&&!Object.keys(e.headers).find(e=>e.includes(c.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(t&&!i().existsSync(`${l}/${c.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==c.verification_status&&!t){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}if(c?.date&&Date.now()-c.date>6048e5)throw Error("Key expired!");return c}catch(r){return console.log(`userAuth Error for ${e.url}: ${r.message}`),null}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=r;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=t;let o=r;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let u=r;return e?.userId&&(u+=`user_${e.userId}_`),n&&(u+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:u+=a}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[2282],()=>t(55096));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,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}}})},55096:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>f,routeModule:()=>v});var t={};s.r(t),s.d(t,{default:()=>S});var a=s(89947),n=s(2706),o=s(96762),i=s(29021),c=s.n(i),u=s(69842),d=s(67619),l=s(48786),_=s(33873),D=s.n(_),p=s(76856);async function S(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=await (0,u.A)(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 (0,l.A)("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[s.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],o=D().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`),i=JSON.parse(c().readFileSync(o,"utf-8")),u=i.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}c().writeFileSync(`${o}`,JSON.stringify(i),"utf8"),await (0,p.A)({userId:s.id,targetDatabase:n.db_full_name}),r.json({success:!0})}catch(t){(0,d.A)({component:"/api/acceptUserInvitation/catch-error",message:t.message,user:s,req:e}),r.json({success:!1})}}let f=(0,o.M)(t,"default"),A=(0,o.M)(t,"config"),v=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})},69842:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(39908),a=s.n(t);async function n(e,r,s){let t=a()({req:e,level:s?"deep":void 0});return console.log(t),t.payload}},48786:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(7447);async function a(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},7447:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(9973),a=s.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[9814],()=>s(55096));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.nft.json b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json index a05f18e..fe413a4 100644 --- a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../jsonData/dbSchemas/main.json","../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../node_modules/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","../../../../../package-shared/data/defaultFields.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/dbSchemas/main.json","../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/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/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/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package-shared/data/defaultFields.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 f6c2cde..abe399e 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},71274:(e,a,t)=>{t.r(a),t.d(a,{config:()=>T,default:()=>N,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>h});var r=t(89947),l=t(2706),n=t(96762),d=t(67619),i=t(56081),u=t(48786),o=t(4820),c=t(21724),m=t(98e3),p=t(76856),f=t(7971);function g({data:e,fields:a,excludeData:t,excludeFields:s}){try{let r=[],l=[];return e&&Object.keys(e)?.[0]&&(l=Object.keys(e)),a&&(l=[...l,...a],l=[...new Set(l)]),(l=l.filter(e=>!t||!Object.keys(t).includes(e)).filter(e=>!s||!s.find(a=>a.fieldName==e))).forEach(a=>{let t=e?e[a]:null;if("string"==typeof t){let e={fieldName:a,dataType:t.length>255?"TEXT":"VARCHAR(255)"};t.match(/<[^>]+>/g)&&(e.richText=!0),r.push(e)}else"number"==typeof t?r.push({fieldName:a,dataType:"INT"}):r.push({fieldName:a,dataType:"VARCHAR(255)"})}),r}catch(e){return console.log(`grabSchemaFieldsFromData.ts ERROR: ${e.message}`),(0,d.A)({component:"grabSchemaFieldsFromData.ts",message:e.message}),[]}}async function A({userId:e,database:a,useLocal:s,payload:r}){try{let l=function(e){try{let a=t(8693),s=t(95610),r=e?.payload?g({data:e?.payload,excludeData:s,excludeFields:a.fields}):[];console.log("supplementalFields",r);let l=[...a.fields,...r];console.log("allFields",l);let n=[...s.slice(0,2),...l,...s.slice(2)];return a.fields=[...n],a}catch(e){return console.log(`grabNewUsersTableSchema.ts ERROR: ${e.message}`),(0,d.A)({component:"grabNewUsersTableSchema",message:e.message}),null}}({payload:r});if(!l)throw Error("Couldn't Get User Preset!");let n=(0,o.A)({userId:e});if(!n)throw Error("User schema data not found!");let i=n.find(e=>e.dbFullName===a);if(!i)throw Error("Couldn't Find Target Database!");let A=i?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof A&&A>0?i.tables[A]=l:i.tables.push(l),(0,c.A)({schemaData:n,userId:e});let b=s?await (0,f.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await (0,u.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return b?.[0]&&await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:b[0].id,db_slug:i.dbSlug,table_name:"Users",table_slug:"users"},useLocal:s}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,d.A)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}async function b({userId:e,database:a,newFields:t,newPayload:s}){try{let r=(0,o.A)({userId:e});if(!r)throw Error("User schema data not found!");let l=r.findIndex(e=>e.dbFullName===a);if(l<0)throw Error("Couldn't Find Target Database!");let n=r[l]?.tables.findIndex(e=>"users"===e.tableName),d=r[l].tables[n];if(!d?.fields?.[0])throw Error("Users Table Not Found!");let i=g({fields:t,data:s}),u=d.fields.findIndex(e=>"date_created"===e.fieldName);return d.fields.splice(u>=0?u:0,0,...i),(0,c.A)({schemaData:r,userId:e}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,d.A)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}var y=t(30944),_=t(83919);async function R({encryptionKey:e,payload:a,database:t,userId:s,useLocal:r}){let l=s||process.env.DSQL_API_USER_ID,n=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!n)return{success:!1,msg:"No encryption key provided",payload:null};if(!n?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let d=(0,_.A)({encryptionKey:n,password:String(a.password)});a.password=d;let i=`SHOW COLUMNS FROM ${t}.users`,u=await (0,y.A)({queryString:i,database:t,useLocal:r});if(u?.[0]||(await A({userId:Number(l),database:t,useLocal:r,payload:a}),u=await (0,y.A)({queryString:i,database:t,useLocal:r})),!u?.[0])return{success:!1,msg:"Could not create users table"};let o=u.map(e=>e.Field);for(let e=0;e{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),l=t(95969);let n=({key:e,database:a,table:t,user_id:s,media:n})=>{if(!e||!s)return null;try{let d=process.env.DSQL_API_KEYS_PATH;if(!d)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=(0,l.A)({encryptedString:e}),u=JSON.parse(i||""),o=r().existsSync(`${d}/${u.sign}`);if(String(u.user_id)!==String(s)||!o)return null;if(!u.target_database||n)return u;if(!a&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(a));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},4820:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),d=t.n(n);function i({userId:e}){try{let a=d().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},21724:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),d=t.n(n);function i({userId:e,schemaData:a}){try{let t=d().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return(0,s.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(43775),r=t(67619),l=t(48786),n=t(37275),d=t(7971);async function i({queryString:e,queryValuesArray:a,database:t,tableSchema:i,useLocal:u}){let o;let c=!!u||!!t?.match(/^datasquirel$/),m=u?d.A:c?l.A:n.A;try{o=e&&a&&Array.isArray(a)&&a[0]?c?await m(e,a):await m({paradigm:"Full Access",queryString:e,queryValues:a}):c?await m(e):await m({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,r.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&i)try{let e=o;return await (0,s.A)({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},83919:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(55511);function r({password:e,encryptionKey:a}){let t=a||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let r=(0,s.createHmac)("sha512",t);return r.update(e),r.digest("base64")}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1251,2282],()=>t(71274));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},71274:(e,a,t)=>{t.r(a),t.d(a,{config:()=>T,default:()=>N,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>h});var r=t(89947),l=t(2706),n=t(96762),i=t(67619),d=t(56081),u=t(48786),o=t(4820),c=t(21724),m=t(98e3),p=t(76856),f=t(62050);function g({data:e,fields:a,excludeData:t,excludeFields:s}){try{let r=[],l=[];return e&&Object.keys(e)?.[0]&&(l=Object.keys(e)),a&&(l=[...l,...a],l=[...new Set(l)]),(l=l.filter(e=>!t||!Object.keys(t).includes(e)).filter(e=>!s||!s.find(a=>a.fieldName==e))).forEach(a=>{let t=e?e[a]:null;if("string"==typeof t){let e={fieldName:a,dataType:t.length>255?"TEXT":"VARCHAR(255)"};t.match(/<[^>]+>/g)&&(e.richText=!0),r.push(e)}else"number"==typeof t?r.push({fieldName:a,dataType:"INT"}):r.push({fieldName:a,dataType:"VARCHAR(255)"})}),r}catch(e){return console.log(`grabSchemaFieldsFromData.ts ERROR: ${e.message}`),(0,i.A)({component:"grabSchemaFieldsFromData.ts",message:e.message}),[]}}async function A({userId:e,database:a,useLocal:s,payload:r}){try{let l=function(e){try{let a=t(8693),s=t(95610),r=e?.payload?g({data:e?.payload,excludeData:s,excludeFields:a.fields}):[];console.log("supplementalFields",r);let l=[...a.fields,...r];console.log("allFields",l);let n=[...s.slice(0,2),...l,...s.slice(2)];return a.fields=[...n],a}catch(e){return console.log(`grabNewUsersTableSchema.ts ERROR: ${e.message}`),(0,i.A)({component:"grabNewUsersTableSchema",message:e.message}),null}}({payload:r});if(!l)throw Error("Couldn't Get User Preset!");let n=(0,o.A)({userId:e});if(!n)throw Error("User schema data not found!");let d=n.find(e=>e.dbFullName===a);if(!d)throw Error("Couldn't Find Target Database!");let A=d?.tables.findIndex(e=>"users"===e.tableName);"number"==typeof A&&A>0?d.tables[A]=l:d.tables.push(l),(0,c.A)({schemaData:n,userId:e});let y=s?await (0,f.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]):await (0,u.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);return y?.[0]&&await (0,m.A)({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:y[0].id,db_slug:d.dbSlug,table_name:"Users",table_slug:"users"},useLocal:s}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,i.A)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}async function y({userId:e,database:a,newFields:t,newPayload:s}){try{let r=(0,o.A)({userId:e});if(!r)throw Error("User schema data not found!");let l=r.findIndex(e=>e.dbFullName===a);if(l<0)throw Error("Couldn't Find Target Database!");let n=r[l]?.tables.findIndex(e=>"users"===e.tableName),i=r[l].tables[n];if(!i?.fields?.[0])throw Error("Users Table Not Found!");let d=g({fields:t,data:s}),u=i.fields.findIndex(e=>"date_created"===e.fieldName);return i.fields.splice(u>=0?u:0,0,...d),(0,c.A)({schemaData:r,userId:e}),await (0,p.A)({userId:e,targetDatabase:a}),"Done!"}catch(a){return console.log(`addUsersTableToDb.ts ERROR: ${a.message}`),(0,i.A)({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}var b=t(30944),_=t(83919);async function R({encryptionKey:e,payload:a,database:t,userId:s,useLocal:r}){let l=s||process.env.DSQL_API_USER_ID,n=e||process.env.DSQL_ENCRYPTION_PASSWORD;if(!n)return{success:!1,msg:"No encryption key provided",payload:null};if(!n?.match(/.{8,}/))return{success:!1,msg:"Encryption key must be at least 8 characters long",payload:null};let i=(0,_.A)({encryptionKey:n,password:String(a.password)});a.password=i;let d=`SHOW COLUMNS FROM ${t}.users`,u=await (0,b.A)({queryString:d,database:t,useLocal:r});if(u?.[0]||(await A({userId:Number(l),database:t,useLocal:r,payload:a}),u=await (0,b.A)({queryString:d,database:t,useLocal:r})),!u?.[0])return{success:!1,msg:"Could not create users table"};let o=u.map(e=>e.Field);for(let e=0;e{t.d(a,{A:()=>n});var s=t(29021),r=t.n(s),l=t(95969);let n=({key:e,database:a,table:t,user_id:s,media:n})=>{if(!e||!s)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let d=(0,l.A)({encryptedString:e}),u=JSON.parse(d||""),o=r().existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(s)||!o)return null;if(!u.target_database||n)return u;if(!a&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(a));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},4820:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),i=t.n(n);function d({userId:e}){try{let a=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l().readFileSync(a,"utf-8"))}catch(e){return(0,s.A)({component:"grabUserSchemaData",message:e.message}),null}}},43775:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(95969);let r=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function l({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l",a.message),e}}},21724:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(67619),r=t(29021),l=t.n(r),n=t(33873),i=t.n(n);function d({userId:e,schemaData:a}){try{let t=i().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l().writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return(0,s.A)({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},30944:(e,a,t)=>{t.d(a,{A:()=>i});var s=t(43775),r=t(67619),l=t(7447),n=t(64292);async function i({queryString:e,queryValuesArray:a,database:t,tableSchema:i,useLocal:d,debug:u}){let o=(0,l.A)({fa:!0});d&&(o=(0,l.A)({local:!0})),t?.match(/^datasquirel$/)&&(o=(0,l.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",a));let c=await (0,n.A)(o,e,a);if(u&&console.log("varDatabaseDbHandler:results:",c),c&&i)try{return await (0,s.A)({unparsedResults:c,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,r.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(55511),r=t(79428),l=t(32443);function n({encryptedString:e,encryptionKey:a,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:n,salt:i,keyLen:d,algorithm:u,bufferAllocSize:o}=(0,l.A)({encryptionKey:a});if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,d),m=r.Buffer.alloc(o,0),p=(0,s.createDecipheriv)(u,c,m);try{let a=p.update(e,"hex","utf8");return a+=p.final("utf8")}catch(a){return console.log("Error in decrypting =>",a.message),e}}},83919:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(55511),r=t(32443);function l({password:e,encryptionKey:a}){let{key:t}=(0,r.A)({encryptionKey:a});if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let l=(0,s.createHmac)("sha512",t);return l.update(e),l.digest("base64")}},8693:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"TEXT"},{"fieldName":"image","dataType":"VARCHAR(250)"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),s=a.X(0,[1251,9814],()=>t(71274));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json index 18a640e..9915e58 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../jsonData/dbSchemas/main.json","../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package-shared/data/defaultFields.json","../../../../../../package-shared/data/presets/users.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/dbSchemas/main.json","../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package-shared/data/defaultFields.json","../../../../../../package-shared/data/presets/users.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js index ed5c20f..3e8cd39 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8078,e.ids=[8078],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},31483:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>g});var a=t(89947),s=t(2706),i=t(96762),l=t(67619),o=t(56081),u=t(61932),c=t(30944);async function d({dbFullName:e,deletedUserId:r,useLocal:t}){let n=`SELECT * FROM ${e}.users WHERE id = ?`,a=await (0,c.A)({queryString:n,queryValuesArray:[r],database:e,useLocal:t});return a?.[0]?{success:!0,result:await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}async function g(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{deletedUserId:n,database:a}=e.body,s=(0,o.A)({key:t,database:a?.db_slug,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");if(!s.full_access||!s.sign)return r.json({success:!1,msg:"Unauthorized"});let i=`datasquirel_user_${s.user_id}_${a}`,l=await d({dbFullName:i,deletedUserId:n});r.json(l)}catch(t){(0,l.A)({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let p=(0,i.M)(n,"default"),f=(0,i.M)(n,"config"),_=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),u=JSON.parse(o||""),c=a().existsSync(`${l}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(48786),a=t(37275),s=t(7971);async function i({dbContext:e,paradigm:r,dbFullName:t,tableName:i,identifierColumnName:l,identifierValue:o,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?s.A:c?n.A:a.A,g=`DELETE FROM \`${t}\`.\`${i}\` WHERE \`${l}\`=?`;return c?await d(g,[o]):await d({paradigm:r,queryString:g,queryValues:[o]})}catch(e){return null}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8078,e.ids=[8078],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},31483:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>S});var n={};t.r(n),t.d(n,{default:()=>_});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),l=t(56081),u=t(61932),c=t(30944);async function d({dbFullName:e,deletedUserId:r,useLocal:t}){let n=`SELECT * FROM ${e}.users WHERE id = ?`,s=await (0,c.A)({queryString:n,queryValuesArray:[r],database:e,useLocal:t});return s?.[0]?{success:!0,result:await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:"users",identifierColumnName:"id",identifierValue:r,useLocal:t})}:{success:!1,msg:"User not found"}}async function _(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{deletedUserId:n,database:s}=e.body,a=(0,l.A)({key:t,database:s?.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}_${s}`,i=await d({dbFullName:o,deletedUserId:n});r.json(i)}catch(t){(0,i.A)({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let p=(0,o.M)(n,"default"),f=(0,o.M)(n,"config"),S=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||o)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},61932:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(48786),s=t(37897),a=t(62050);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:i,identifierValue:l,useLocal:u}){try{let c=!!u||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),d=u?a.A:c?n.A:s.A,_=`DELETE FROM \`${t}\`.\`${o}\` WHERE \`${i}\`=?`;return c?await d(_,[l]):await d({paradigm:r,queryString:_,queryValues:[l]})}catch(e){return null}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(n+=` -URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(n+=` -IP: ${l}`),n+=` -Date: ${i.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let o=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` +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",n),s().appendFileSync("./.tmp/error.log",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),l=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?l.A:d?s.A:i.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&o)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",o,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31483);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(43775),s=t(67619),a=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:u}){let c=(0,a.A)({fa:!0});l&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,n.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,i,l),_=s.Buffer.alloc(c,0),p=(0,n.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(64292),s=t(7447);async function a({paradigm:e,queryString:r,queryValues:t}){let a="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(a,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{a?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31483);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json index afe84de..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ 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 9c207f6..0bf2f70 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=795,e.ids=[795],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},54014:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),o=t(96762),i=t(67619),l=t(56081),c=t(30944);async function u({fields:e,dbFullName:r,userId:t,useLocal:n}){let a=r.replace(/[^a-z0-9_]/g,""),s=`SELECT ${e.join(",")} FROM ${a}.users WHERE id=?`,o=t||process.env.DSQL_API_USER_ID,i=await (0,c.A)({queryString:s,queryValuesArray:[o],database:a,useLocal:n});return i&&i[0]?{success:!0,payload:i[0]}:{success:!1,payload:null}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:n,database:a}=e.body,s=(0,l.A)({key:t,database:a,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");if(!s.full_access||!s.sign)return r.json({success:!1,msg:"Unauthorized"});let o=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),i=`datasquirel_user_${s.user_id}_${a}`,c=await u({dbFullName:i,userId:n,fields:o});r.json(c)}catch(t){(0,i.A)({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let p=(0,o.M)(n,"default"),g=(0,o.M)(n,"config"),f=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),a=t.n(n),s=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),c=JSON.parse(l||""),u=a().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let o=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=795,e.ids=[795],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},54014:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>_,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),l=t(56081),u=t(30944);async function c({fields:e,dbFullName:r,userId:t,useLocal:n}){let s=r.replace(/[^a-z0-9_]/g,""),a=`SELECT ${e.join(",")} FROM ${s}.users WHERE id=?`,o=t||process.env.DSQL_API_USER_ID,i=await (0,u.A)({queryString:a,queryValuesArray:[o],database:s,useLocal:n});return i&&i[0]?{success:!0,payload:i[0]}:{success:!1,payload:null}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:n,database:s}=e.body,a=(0,l.A)({key:t,database:s,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}_${s}`,u=await c({dbFullName:i,userId:n,fields:o});r.json(u)}catch(t){(0,i.A)({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let _=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||o)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(n+=` -URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(n+=` +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()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` +========================================`,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)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),a=t(67619),s=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?s.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,o,i),c=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),a=t.n(n),s=t(29021),o=t.n(s);async function i(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=54014);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(43775),s=t(67619),a=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:u}){let c=(0,a.A)({fa:!0});l&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,n.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(55511),s=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(o,i,l),_=s.Buffer.alloc(c,0),p=(0,n.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=54014);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json index afe84de..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json index 441a353..a248a05 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json index 441a353..a248a05 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js index 8b5bdfa..1169a8e 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2738,e.ids=[2738],e.modules={76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96487:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>g});var n={};t.r(n),t.d(n,{default:()=>c});var i=t(89947),s=t(2706),a=t(96762),o=t(76154),l=t(67619),u=t(56081);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,n=(0,u.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,payload:null,msg:"Unauthorized"});let{token:i,clientId:s}=e.body,a=new o.OAuth2Client(s),l=await a.verifyIdToken({idToken:i,audience:s});if(!l?.getPayload()?.email_verified)return r.json({success:!1,payload:null,msg:"User not verified!"});let c=l.getPayload();r.json({success:!0,payload:c})}catch(t){(0,l.A)({component:"/api/user/grab-google-user-from-token/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"User fetch Error"})}}let d=(0,a.M)(n,"default"),f=(0,a.M)(n,"config"),g=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/grab-google-user-from-token",pathname:"/api/user/[user_id]/grab-google-user-from-token",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),i=t.n(n),s=t(95969);let a=({key:e,database:r,table:t,user_id:n,media:a})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||a)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2738,e.ids=[2738],e.modules={76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96487:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>p});var n={};t.r(n),t.d(n,{default:()=>c});var i=t(89947),o=t(2706),s=t(96762),a=t(76154),l=t(67619),u=t(56081);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,n=(0,u.A)({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,payload:null,msg:"Unauthorized"});let{token:i,clientId:o}=e.body,s=new a.OAuth2Client(o),l=await s.verifyIdToken({idToken:i,audience:o});if(!l?.getPayload()?.email_verified)return r.json({success:!1,payload:null,msg:"User not verified!"});let c=l.getPayload();r.json({success:!0,payload:c})}catch(t){(0,l.A)({component:"/api/user/grab-google-user-from-token/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"User fetch Error"})}}let d=(0,s.M)(n,"default"),f=(0,s.M)(n,"config"),p=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/user/[user_id]/grab-google-user-from-token",pathname:"/api/user/[user_id]/grab-google-user-from-token",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),i=t.n(n),o=t(95969);let s=({key:e,database:r,table:t,user_id:n,media:s})=>{if(!e||!n)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,o.A)({encryptedString:e}),u=JSON.parse(l||""),c=i().existsSync(`${a}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||s)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},67619:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(29021),i=t.n(n);async function o({user:e,message:r,component:t,noMail:n,req:o}){let s=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||o.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(n+=` -URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` -IP: ${o}`),n+=` -Date: ${a.toDateString()} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${s.toDateString()} ========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let l=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",n),i().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),i=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,a=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,a,o),u=i.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96487);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),i=t(79428),o=t(32443);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:s,salt:a,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,o.A)({encryptionKey:r});if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(s,a,l),f=i.Buffer.alloc(c,0),p=(0,n.createDecipheriv)(u,d,f);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96487);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json index 1dc796b..90d8a7d 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/agent-base/dist/src/index.js","../../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../../node_modules/agent-base/package.json","../../../../../../node_modules/arrify/index.js","../../../../../../node_modules/arrify/package.json","../../../../../../node_modules/base64-js/index.js","../../../../../../node_modules/base64-js/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../../node_modules/debug/package.json","../../../../../../node_modules/debug/src/browser.js","../../../../../../node_modules/debug/src/common.js","../../../../../../node_modules/debug/src/index.js","../../../../../../node_modules/debug/src/node.js","../../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../../node_modules/extend/index.js","../../../../../../node_modules/extend/package.json","../../../../../../node_modules/fast-text-encoding/package.json","../../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../../node_modules/gaxios/build/src/common.js","../../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../../node_modules/gaxios/build/src/index.js","../../../../../../node_modules/gaxios/build/src/retry.js","../../../../../../node_modules/gaxios/package.json","../../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../../node_modules/gcp-metadata/package.json","../../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../../node_modules/google-auth-library/package.json","../../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../../node_modules/google-p12-pem/package.json","../../../../../../node_modules/gtoken/build/src/index.js","../../../../../../node_modules/gtoken/package.json","../../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../../node_modules/https-proxy-agent/package.json","../../../../../../node_modules/is-stream/index.js","../../../../../../node_modules/is-stream/package.json","../../../../../../node_modules/json-bigint/index.js","../../../../../../node_modules/json-bigint/lib/parse.js","../../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../../node_modules/json-bigint/package.json","../../../../../../node_modules/jwa/index.js","../../../../../../node_modules/jwa/package.json","../../../../../../node_modules/jws/index.js","../../../../../../node_modules/jws/lib/data-stream.js","../../../../../../node_modules/jws/lib/sign-stream.js","../../../../../../node_modules/jws/lib/tostring.js","../../../../../../node_modules/jws/lib/verify-stream.js","../../../../../../node_modules/jws/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/ms/index.js","../../../../../../node_modules/ms/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/node-fetch/lib/index.js","../../../../../../node_modules/node-fetch/package.json","../../../../../../node_modules/node-forge/lib/aes.js","../../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../../node_modules/node-forge/lib/asn1.js","../../../../../../node_modules/node-forge/lib/baseN.js","../../../../../../node_modules/node-forge/lib/cipher.js","../../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../../node_modules/node-forge/lib/des.js","../../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../../node_modules/node-forge/lib/forge.js","../../../../../../node_modules/node-forge/lib/hmac.js","../../../../../../node_modules/node-forge/lib/index.js","../../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../../node_modules/node-forge/lib/kem.js","../../../../../../node_modules/node-forge/lib/log.js","../../../../../../node_modules/node-forge/lib/md.all.js","../../../../../../node_modules/node-forge/lib/md.js","../../../../../../node_modules/node-forge/lib/md5.js","../../../../../../node_modules/node-forge/lib/mgf.js","../../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../../node_modules/node-forge/lib/oids.js","../../../../../../node_modules/node-forge/lib/pbe.js","../../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../../node_modules/node-forge/lib/pem.js","../../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../../node_modules/node-forge/lib/pki.js","../../../../../../node_modules/node-forge/lib/prime.js","../../../../../../node_modules/node-forge/lib/prng.js","../../../../../../node_modules/node-forge/lib/pss.js","../../../../../../node_modules/node-forge/lib/random.js","../../../../../../node_modules/node-forge/lib/rc2.js","../../../../../../node_modules/node-forge/lib/rsa.js","../../../../../../node_modules/node-forge/lib/sha1.js","../../../../../../node_modules/node-forge/lib/sha256.js","../../../../../../node_modules/node-forge/lib/sha512.js","../../../../../../node_modules/node-forge/lib/ssh.js","../../../../../../node_modules/node-forge/lib/tls.js","../../../../../../node_modules/node-forge/lib/util.js","../../../../../../node_modules/node-forge/lib/x509.js","../../../../../../node_modules/node-forge/package.json","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/tr46/index.js","../../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../../node_modules/tr46/package.json","../../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../../node_modules/webidl-conversions/package.json","../../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../../node_modules/whatwg-url/package.json","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/agent-base/dist/src/index.js","../../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../../node_modules/agent-base/package.json","../../../../../../node_modules/arrify/index.js","../../../../../../node_modules/arrify/package.json","../../../../../../node_modules/base64-js/index.js","../../../../../../node_modules/base64-js/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../../node_modules/debug/package.json","../../../../../../node_modules/debug/src/browser.js","../../../../../../node_modules/debug/src/common.js","../../../../../../node_modules/debug/src/index.js","../../../../../../node_modules/debug/src/node.js","../../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../../node_modules/extend/index.js","../../../../../../node_modules/extend/package.json","../../../../../../node_modules/fast-text-encoding/package.json","../../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../../node_modules/gaxios/build/src/common.js","../../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../../node_modules/gaxios/build/src/index.js","../../../../../../node_modules/gaxios/build/src/retry.js","../../../../../../node_modules/gaxios/package.json","../../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../../node_modules/gcp-metadata/package.json","../../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../../node_modules/google-auth-library/package.json","../../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../../node_modules/google-p12-pem/package.json","../../../../../../node_modules/gtoken/build/src/index.js","../../../../../../node_modules/gtoken/package.json","../../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../../node_modules/https-proxy-agent/package.json","../../../../../../node_modules/is-stream/index.js","../../../../../../node_modules/is-stream/package.json","../../../../../../node_modules/json-bigint/index.js","../../../../../../node_modules/json-bigint/lib/parse.js","../../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../../node_modules/json-bigint/package.json","../../../../../../node_modules/jwa/index.js","../../../../../../node_modules/jwa/package.json","../../../../../../node_modules/jws/index.js","../../../../../../node_modules/jws/lib/data-stream.js","../../../../../../node_modules/jws/lib/sign-stream.js","../../../../../../node_modules/jws/lib/tostring.js","../../../../../../node_modules/jws/lib/verify-stream.js","../../../../../../node_modules/jws/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/ms/index.js","../../../../../../node_modules/ms/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/node-fetch/lib/index.js","../../../../../../node_modules/node-fetch/package.json","../../../../../../node_modules/node-forge/lib/aes.js","../../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../../node_modules/node-forge/lib/asn1.js","../../../../../../node_modules/node-forge/lib/baseN.js","../../../../../../node_modules/node-forge/lib/cipher.js","../../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../../node_modules/node-forge/lib/des.js","../../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../../node_modules/node-forge/lib/forge.js","../../../../../../node_modules/node-forge/lib/hmac.js","../../../../../../node_modules/node-forge/lib/index.js","../../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../../node_modules/node-forge/lib/kem.js","../../../../../../node_modules/node-forge/lib/log.js","../../../../../../node_modules/node-forge/lib/md.all.js","../../../../../../node_modules/node-forge/lib/md.js","../../../../../../node_modules/node-forge/lib/md5.js","../../../../../../node_modules/node-forge/lib/mgf.js","../../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../../node_modules/node-forge/lib/oids.js","../../../../../../node_modules/node-forge/lib/pbe.js","../../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../../node_modules/node-forge/lib/pem.js","../../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../../node_modules/node-forge/lib/pki.js","../../../../../../node_modules/node-forge/lib/prime.js","../../../../../../node_modules/node-forge/lib/prng.js","../../../../../../node_modules/node-forge/lib/pss.js","../../../../../../node_modules/node-forge/lib/random.js","../../../../../../node_modules/node-forge/lib/rc2.js","../../../../../../node_modules/node-forge/lib/rsa.js","../../../../../../node_modules/node-forge/lib/sha1.js","../../../../../../node_modules/node-forge/lib/sha256.js","../../../../../../node_modules/node-forge/lib/sha512.js","../../../../../../node_modules/node-forge/lib/ssh.js","../../../../../../node_modules/node-forge/lib/tls.js","../../../../../../node_modules/node-forge/lib/util.js","../../../../../../node_modules/node-forge/lib/x509.js","../../../../../../node_modules/node-forge/package.json","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/tr46/index.js","../../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../../node_modules/tr46/package.json","../../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../../node_modules/webidl-conversions/package.json","../../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../../node_modules/whatwg-url/package.json","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ 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 2c95c63..384b807 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2726,e.ids=[2726],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},93052:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>p});var a={};t.r(a),t.d(a,{default:()=>g});var n=t(89947),s=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944),c=t(83919);async function d({encryptionKey:e,email:r,username:t,password:a,database:n,additionalFields:s,email_login:i,email_login_code:o,email_login_field:l,token:d,skipPassword:g,social:m,useLocal:f}){let p=n.replace(/[^a-z0-9_]/g,"");if(r?.match(/ /)||t&&t?.match(/ /)||a&&a?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let _=a?(0,c.A)({encryptionKey:e,password:a}):null,y=await (0,u.A)({queryString:`SELECT * FROM ${p}.users WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:p,useLocal:f});if((!y||!y[0])&&!m)return{success:!1,payload:null,msg:"No user found"};let S=!1;if(y?.[0]&&!i&&g)S=!0;else if(y?.[0]&&!i)S=_===y[0].password;else if(y&&y[0]&&i&&o&&l){let e=y[0][l];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");S=r===o}if(!S)return{success:!1,msg:"Wrong password, no social login validity",payload:null};S&&i&&await (0,u.A)({queryString:`UPDATE ${p}.users SET ${l} = '' WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:p,useLocal:f});let A=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),E={id:y[0].id,first_name:y[0].first_name,last_name:y[0].last_name,username:y[0].username,email:y[0].email,phone:y[0].phone,social_id:y[0].social_id,image:y[0].image,image_thumbnail:y[0].image_thumbnail,verification_status:y[0].verification_status,social_login:y[0].social_login,social_platform:y[0].social_platform,csrf_k:A,more_data:y[0].more_user_data,logged_in_status:!0,date:Date.now()},h={success:!0,msg:"Login Successful",payload:E,userId:y[0].id,csrf:A};return s&&Array.isArray(s)&&s.length>0&&s.forEach(e=>{E[e]=y[0][e]}),h}async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:a,database:n,additionalFields:s,email_login:i,email_login_code:o,email_login_field:u,token:c,skipPassword:g}=e.body,m=e.headers.authorization,f=(0,l.A)({key:m,database:n,user_id:String(e.query.user_id)});if(!f?.user_id)throw Error("Api Credentials invalid!");if(!f.full_access||!f.sign)return r.json({success:!1,msg:"Unauthorized"});let p=a.email,_=a.username,y=a.password,S=`datasquirel_user_${f.user_id}_${n}`,A=await d({database:S,email:p,username:_,password:y,skipPassword:g,encryptionKey:t,additionalFields:s,email_login:i,email_login_code:o,email_login_field:u,token:c});r.json(A)}catch(t){(0,o.A)({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let m=(0,i.M)(a,"default"),f=(0,i.M)(a,"config"),p=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:a})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(29021),n=t.n(a),s=t(95969);let i=({key:e,database:r,table:t,user_id:a,media:i})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=n().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(a)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(29021),n=t.n(a);async function s({user:e,message:r,component:t,noMail:a,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||a||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2726,e.ids=[2726],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},81602:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762),i=t(67619),l=t(56081),u=t(30944),c=t(83919);async function d({encryptionKey:e,email:r,username:t,password:s,database:a,additionalFields:n,email_login:o,email_login_code:i,email_login_field:l,token:d,skipPassword:_,social:p,useLocal:g,dbUserId:f,debug:m}){let S=function({dbName:e,userId:r}){let t=e.replace(/[^a-z0-9\_]/g,"").replace(/datasquirel_user_\d+_/,"");return r?`datasquirel_user_${r}_`+t:t}({dbName:a,userId:f});if(r?.match(/ /)||t&&t?.match(/ /)||s&&s?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let y=s?(0,c.A)({encryptionKey:e,password:s}):null;m&&(console.log("apiLoginUser:database:",S),console.log("apiLoginUser:Finding User ..."));let A=await (0,u.A)({queryString:`SELECT * FROM ${S}.users WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:S,useLocal:g,debug:m});if(m&&console.log("apiLoginUser:foundUser:",A),(!A||!A[0])&&!p)return{success:!1,payload:null,msg:"No user found"};let D=!1;if(m&&console.log("apiLoginUser:isPasswordCorrect:",D),A?.[0]&&!o&&_)D=!0;else if(A?.[0]&&!o)m&&(console.log("apiLoginUser:hashedPassword:",y),console.log("apiLoginUser:foundUser[0].password:",A[0].password)),D=y===A[0].password;else if(A&&A[0]&&o&&i&&l){let e=A[0][l];if(m&&console.log("apiLoginUser:tempCode:",e),!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");D=r===i}if(!D)return{success:!1,msg:"Wrong password, no social login validity",payload:null};m&&(console.log("apiLoginUser:isPasswordCorrect:",D),console.log("apiLoginUser:email_login:",o)),D&&o&&await (0,u.A)({queryString:`UPDATE ${S}.users SET ${l} = '' WHERE email = ? OR username = ?`,queryValuesArray:[r,t],database:S,useLocal:g});let E=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),h={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:E,more_data:A[0].more_user_data,logged_in_status:!0,date:Date.now()};m&&(console.log("apiLoginUser:userPayload:",h),console.log("apiLoginUser:Sending Response Object ..."));let v={success:!0,msg:"Login Successful",payload:h,userId:A[0].id,csrf:E};return n&&Array.isArray(n)&&n.length>0&&n.forEach(e=>{h[e]=A[0][e]}),v}async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{encryptionKey:t,payload:s,database:a,additionalFields:n,email_login:o,email_login_code:i,email_login_field:u,token:c,skipPassword:_,dbUserId:p,dbSchema:g,social:f}=e.body,m=e.headers.authorization,S=(0,l.A)({key:m,database:a,user_id:String(e.query.user_id)});if(!S?.user_id)throw Error("Api Credentials invalid!");if(!S.full_access||!S.sign)return r.json({success:!1,msg:"Unauthorized"});let y=s.email,A=s.username,D=s.password,E=`datasquirel_user_${S.user_id}_${a}`,h=await d({database:E,email:y,username:A,password:D,skipPassword:_,encryptionKey:t,additionalFields:n,email_login:o,email_login_code:i,email_login_field:u,token:c,dbUserId:p});r.json(h)}catch(t){(0,i.A)({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let p=(0,o.M)(s,"default"),g=(0,o.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:s})},56081:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s),n=t(95969);let o=({key:e,database:r,table:t,user_id:s,media:o})=>{if(!e||!s)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,n.A)({encryptedString:e}),u=JSON.parse(l||""),c=a().existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(s)||!c)return null;if(!u.target_database||o)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function n({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(29021),a=t.n(s);async function n({user:e,message:r,component:t,noMail:s,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(a+=` -URL: ${s.url}`),s?.body&&(a+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(a+=` -IP: ${o}`),a+=` -Date: ${i.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",a),n().appendFileSync("./.tmp/error.log",` +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${o.toDateString()} +========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",s),a().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var a=t(43775),n=t(67619),s=t(48786),i=t(37275),o=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?o.A:d?s.A:i.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,n.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await (0,a.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var a=t(55511),n=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,a.scryptSync)(s,i,o),u=n.Buffer.alloc(16,0),c=(0,a.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(55511);function n({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,a.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>a});async function a(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function a(e,r,t){try{if("string"==typeof r){let a=await e.query(n(r),t);return JSON.parse(JSON.stringify(a))}if("object"!=typeof r)return null;{let t=[];for(let a=0;as})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var a=t(9973),n=t.n(a),s=t(29021),i=t.n(s);async function o(...e){let r=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93052);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(43775),a=t(67619),n=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:u}){let c=(0,n.A)({fa:!0});l&&(c=(0,n.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,n.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,s.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),a=t(79428),n=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,n.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(o,i,l),_=a.Buffer.alloc(c,0),p=(0,s.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(55511),a=t(32443);function n({password:e,encryptionKey:r}){let{key:t}=(0,a.A)({encryptionKey:r});if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let n=(0,s.createHmac)("sha512",t);return n.update(e),n.digest("base64")}},64292:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(a(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;ss})},7447:(e,r,t)=>{t.d(r,{A:()=>n});var s=t(9973),a=t.n(s);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=81602);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 afe84de..4a334c2 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":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.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 950ec0f..ca061b8 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=4458,e.ids=[4458],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},42276:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>g,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944);async function c({existingUser:e,database:r,additionalFields:t,useLocal:n}){let a=e?.id&&e.id.toString().match(/./)?await (0,u.A)({queryString:`SELECT * FROM ${r}.users WHERE id=?`,queryValuesArray:[e.id.toString()],database:r,useLocal:n}):null;if(!a||!a[0])return{success:!1,payload:null,msg:"No user found"};let s=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),i={id:a[0].id,first_name:a[0].first_name,last_name:a[0].last_name,username:a[0].username,email:a[0].email,phone:a[0].phone,social_id:a[0].social_id,image:a[0].image,image_thumbnail:a[0].image_thumbnail,verification_status:a[0].verification_status,social_login:a[0].social_login,social_platform:a[0].social_platform,csrf_k:s,more_data:a[0].more_user_data,logged_in_status:!0,date:Date.now()};return t&&Array.isArray(t)&&t.length>0&&t.forEach(e=>{i[e]=a[0][e]}),{success:!0,msg:"Login Successful",payload:i,csrf:s}}async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:n,additionalFields:a}=e.body,s=e.headers.authorization,i=(0,l.A)({key:s,database:n,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${i.user_id}_${n}`.replace(/[^a-z0-9_]/g,""),u=await c({database:o,existingUser:t,additionalFields:a});r.json(u)}catch(t){(0,o.A)({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let g=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),f=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,s.A)({encryptedString:e}),u=JSON.parse(l||""),c=a().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=4458,e.ids=[4458],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},42276:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>_});var s=t(89947),a=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30944);async function c({existingUser:e,database:r,additionalFields:t,useLocal:n}){let s=e?.id&&e.id.toString().match(/./)?await (0,u.A)({queryString:`SELECT * FROM ${r}.users WHERE id=?`,queryValuesArray:[e.id.toString()],database:r,useLocal:n}):null;if(!s||!s[0])return{success:!1,payload:null,msg:"No user found"};let a=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),i={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:a,more_data:s[0].more_user_data,logged_in_status:!0,date:Date.now()};return t&&Array.isArray(t)&&t.length>0&&t.forEach(e=>{i[e]=s[0][e]}),{success:!0,msg:"Login Successful",payload:i,csrf:a}}async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:n,additionalFields:s}=e.body,a=e.headers.authorization,i=(0,l.A)({key:a,database:n,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${i.user_id}_${n}`.replace(/[^a-z0-9_]/g,""),u=await c({database:o,existingUser:t,additionalFields:s});r.json(u)}catch(t){(0,o.A)({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}let d=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),a=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let _=u.target_database?.split(",").includes(String(r));if(_&&!u.target_table)return u;if(_&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(n+=` -URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(n+=` IP: ${o}`),n+=` Date: ${i.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let l=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` +========================================`,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)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),o=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:u}){let c;let d=!!u||!!t?.match(/^datasquirel$/),g=u?o.A:d?s.A:i.A;try{c=e&&r&&Array.isArray(r)&&r[0]?d?await g(e,r):await g({paradigm:"Full Access",queryString:e,queryValues:r}):d?await g(e):await g({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(s,i,o),u=a.Buffer.alloc(16,0),c=(0,n.createDecipheriv)("aes-192-cbc",l,u);try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function o(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=42276);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),s=t(67619),a=t(7447),i=t(64292);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:l,debug:u}){let c=(0,a.A)({fa:!0});l&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let _=await (0,i.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",_),_&&o)try{return await (0,n.A)({unparsedResults:_,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(_)return _;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428),a=t(32443);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});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 _=(0,n.scryptSync)(i,o,l),d=s.Buffer.alloc(c,0),p=(0,n.createDecipheriv)(u,_,d);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=42276);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json index afe84de..4a334c2 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ 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 15317c6..370420a 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js @@ -1,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=2860,e.ids=[2860],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},78794:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>S,routeModule:()=>y});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),a=t(2706),o=t(96762),i=t(67619),l=t(56081),c=t(30944),u=t(21572),d=t.n(u),p=t(89159),_=t(68829);async function m({email:e,database:r,email_login_field:t,mail_domain:n,mail_port:s,sender:a,mail_username:o,mail_password:i,html:l,useLocal:u,response:m,extraCookies:f}){if(e?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let S=Date.now(),g=`SELECT * FROM ${r}.users WHERE email = ?`,y=[e],E=await (0,c.A)({queryString:g,queryValuesArray:y,database:r,useLocal:u});if(!E||!E[0])return{success:!1,msg:"No user found"};if(!E?.[0]||!t)return{success:!1,msg:"Invalid Email/Password format"};{let g=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r="";for(let t=0;t<8;t++)r+=e[Math.floor(Math.random()*e.length)];return r}(),y=d().createTransport({host:n||process.env.DSQL_MAIL_HOST,port:s||(process.env.DSQL_MAIL_PORT?Number(process.env.DSQL_MAIL_PORT):465),secure:!0,auth:{user:o||process.env.DSQL_MAIL_EMAIL,pass:i||process.env.DSQL_MAIL_PASSWORD}}),E={};E.from=`"Datasquirel SSO" <${a||"support@datasquirel.com"}>`,E.sender=a||"support@datasquirel.com",E.to=e,E.subject="One Time Login Code",E.html=l.replace(/{{code}}/,g);let A=await y.sendMail(E);if(!A?.accepted)throw Error("Mail not Sent!");let D=`UPDATE ${r}.users SET ${t} = ? WHERE email = ?`,h=[g+`-${S}`,e];await (0,c.A)({queryString:D,queryValuesArray:h,database:r,useLocal:u});let v={success:!0,code:g,email:e,createdAt:S,msg:"Success"};if(m){let e=(0,p.A)().oneTimeCodeName,r=(0,_.A)({data:JSON.stringify(v)});if(!r)throw Error("apiSendEmailCode Error: Failed to encrypt payload");let t={name:e,value:r,sameSite:"Strict",path:"/",httpOnly:!0,secure:!0},n=function({cookies:e}){let r=[];for(let t=0;t{t.d(r,{A:()=>o});var n=t(29021),s=t.n(n),a=t(95969);let o=({key:e,database:r,table:t,user_id:n,media:o})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),c=JSON.parse(l||""),u=s().existsSync(`${i}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||o)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",n=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",s=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=n;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=s}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=2860,e.ids=[2860],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},78794:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),i=t(67619),l=t(56081),u=t(30944),c=t(21572),d=t.n(c),_=t(89159),p=t(68829);async function S({email:e,database:r,email_login_field:t,mail_domain:s,mail_port:n,sender:a,mail_username:o,mail_password:i,html:l,useLocal:c,response:S,extraCookies:f}){if(e?.match(/ /))return{success:!1,msg:"Invalid Email/Password format"};let m=Date.now(),g=`SELECT * FROM ${r}.users WHERE email = ?`,A=[e],y=await (0,u.A)({queryString:g,queryValuesArray:A,database:r,useLocal:c});if(!y||!y[0])return{success:!1,msg:"No user found"};if(!y?.[0]||!t)return{success:!1,msg:"Invalid Email/Password format"};{let g=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r="";for(let t=0;t<8;t++)r+=e[Math.floor(Math.random()*e.length)];return r}(),A=d().createTransport({host:s||process.env.DSQL_MAIL_HOST,port:n||(process.env.DSQL_MAIL_PORT?Number(process.env.DSQL_MAIL_PORT):465),secure:!0,auth:{user:o||process.env.DSQL_MAIL_EMAIL,pass:i||process.env.DSQL_MAIL_PASSWORD}}),y={};y.from=`"Datasquirel SSO" <${a||"support@datasquirel.com"}>`,y.sender=a||"support@datasquirel.com",y.to=e,y.subject="One Time Login Code",y.html=l.replace(/{{code}}/,g);let D=await A.sendMail(y);if(!D?.accepted)throw Error("Mail not Sent!");let E=`UPDATE ${r}.users SET ${t} = ? WHERE email = ?`,v=[g+`-${m}`,e];await (0,u.A)({queryString:E,queryValuesArray:v,database:r,useLocal:c});let h={success:!0,code:g,email:e,createdAt:m,msg:"Success"};if(S){let e=(0,_.A)().oneTimeCodeName,r=(0,p.A)({data:JSON.stringify(h)});if(!r)throw Error("apiSendEmailCode Error: Failed to encrypt payload");let t={name:e,value:r,sameSite:"Strict",path:"/",httpOnly:!0,secure:!0},s=function({cookies:e}){let r=[];for(let t=0;t{t.d(r,{A:()=>o});var s=t(29021),n=t.n(s),a=t(95969);let o=({key:e,database:r,table:t,user_id:s,media:o})=>{if(!e||!s)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=n().existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(s)||!c)return null;if(!u.target_database||o)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},89159:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){let r=process.env.DSQL_COOKIES_PREFIX||"dsql_",t=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=r;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=t;let i=r;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let l=r;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:l+=n}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(95969);let n=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(29021),n=t.n(s);async function a({user:e,message:r,component:t,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${r} -Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),a?.url&&(n+=` -URL: ${a.url}`),a?.body&&(n+=` -Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` -IP: ${i}`),n+=` +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` Date: ${o.toDateString()} -========================================`,s().existsSync("./.tmp/error.log")||s().writeFileSync("./.tmp/error.log","","utf-8");let l=s().readFileSync("./.tmp/error.log","utf-8");s().writeFileSync("./.tmp/error.log",n),s().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(43775),s=t(67619),a=t(48786),o=t(37275),i=t(7971);async function l({queryString:e,queryValuesArray:r,database:t,tableSchema:l,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?i.A:d?a.A:o.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,s.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&l)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(79428);function a({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let l=(0,n.scryptSync)(a,o,i),c=s.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",l,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;na})},7971:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(9973),s=t.n(n),a=t(29021),o=t.n(a);async function i(...e){let r=s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!o().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=78794);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>i});var s=t(43775),n=t(67619),a=t(7447),o=t(64292);async function i({queryString:e,queryValuesArray:r,database:t,tableSchema:i,useLocal:l,debug:u}){let c=(0,a.A)({fa:!0});l&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,o.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&i)try{return await (0,s.A)({unparsedResults:d,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,n.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428),a=t(32443);function o({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,s.scryptSync)(o,i,l),_=n.Buffer.alloc(c,0),p=(0,s.createDecipheriv)(u,d,_);try{let r=p.update(e,"hex","utf8");return r+=p.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(55511),n=t(79428),a=t(32443);function o({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:o,salt:i,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});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 d=(0,s.scryptSync)(o,i,l),_=n.Buffer.alloc(c,0),p=(0,s.createCipheriv)(u,d,_);try{let r=p.update(e,"utf8","hex");return r+=p.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},64292:(e,r,t)=>{async function s(e,r,t){try{if("string"==typeof r){let s=await e.query(n(r),t);return JSON.parse(JSON.stringify(s))}if("object"!=typeof r)return null;{let t=[];for(let s=0;ss})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var s=t(9973),n=t.n(s);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=78794);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json index 89d576d..2eccc9d 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/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/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/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ 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 d6467c4..9858844 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,16 +1,16 @@ -"use strict";(()=>{var e={};e.id=8288,e.ids=[8288],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18757:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>y,routeModule:()=>S});var n={};t.r(n),t.d(n,{default:()=>m});var a=t(89947),s=t(2706),i=t(96762),l=t(67619),o=t(56081),c=t(30802),u=t(68829),d=t(83919),p=t(30944);async function f({payload:e,dbFullName:r,updatedUserId:t,useLocal:n,dbSchema:a}){let s=`SELECT * FROM ${r}.users WHERE id = ?`,i=await (0,p.A)({queryString:s,queryValuesArray:[t],database:r,useLocal:n});if(!i?.[0])return{success:!1,msg:"User not found"};let l=(()=>{let r=Object.keys(e),t=(()=>{try{return a?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),n={};return r.forEach(r=>{let a=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let s=e[r];a?.encrypted&&(s=(0,u.A)({data:s})),n[r]=s}),n.password&&"string"==typeof n.password&&(n.password=(0,d.A)({password:n.password})),n})();return{success:!0,payload:await (0,c.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:l,useLocal:n})}}var g=t(4820);async function m(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:n,database:a,updatedUserId:s}=e.body,i=(0,o.A)({key:t,database:a,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let l=`datasquirel_user_${i.user_id}_${a}`,c=(0,g.A)({userId:i.user_id}),u=c?.find(e=>e.dbFullName===l),d=await f({dbFullName:l,payload:n,updatedUserId:s,dbSchema:u});r.json(d)}catch(t){(0,l.A)({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let y=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),S=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),a=t.n(n),s=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=(0,s.A)({encryptedString:e}),c=JSON.parse(o||""),u=a().existsSync(`${l}/${c.sign}`);if(String(c.user_id)!==String(n)||!u)return null;if(!c.target_database||i)return c;if(!r&&c.target_database)return null;let d=c.target_database?.split(",").includes(String(r));if(d&&!c.target_table)return c;if(d&&!t&&c.target_table)return null;if(c.target_table?.split(",").includes(String(t)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},30802:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(72583),a=t.n(n),s=t(92652),i=t(48786),l=t(37275),o=t(68829),c=t(7971);async function u({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:u,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:g,encryptionSalt:m,useLocal:y}){if(!u||!Object.keys(u).length)return null;let _=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),S=y?c.A:_?i.A:l.A,h=Object.keys(u),A=[],E=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let l=/<[^>]+>/g;(i?.richText||String(t).match(l))&&(t=a()(t,s.A)),i?.encrypted&&(t=(0,o.A)({data:t,encryptionKey:g,encryptionSalt:m})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),A.push(`\`${r}\`=?`),"number"==typeof t?E.push(String(t)):E.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}A.push(`date_updated='${Date()}'`),A.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE \`${t}\`.\`${n}\` SET ${A.join(",")} WHERE \`${p}\`=?`;return E.push(f),_?await S(D,E):await S({paradigm:r,queryString:D,queryValues:E})}},4820:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(67619),a=t(29021),s=t.n(a),i=t(33873),l=t.n(i);function o({userId:e}){try{let r=l().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s().readFileSync(r,"utf-8"))}catch(e){return(0,n.A)({component:"grabUserSchemaData",message:e.message}),null}}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(95969);let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function s({unparsedResults:e,tableSchema:r}){let t=[];try{for(let s=0;s",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(29021),a=t.n(n);async function s({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=8288,e.ids=[8288],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},18757:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>y,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>g});var s=t(89947),a=t(2706),i=t(96762),o=t(67619),l=t(56081),u=t(30802),c=t(68829),d=t(83919),p=t(30944);async function f({payload:e,dbFullName:r,updatedUserId:t,useLocal:n,dbSchema:s}){let a=`SELECT * FROM ${r}.users WHERE id = ?`,i=await (0,p.A)({queryString:a,queryValuesArray:[t],database:r,useLocal:n});if(!i?.[0])return{success:!1,msg:"User not found"};let o=(()=>{let r=Object.keys(e),t=(()=>{try{return s?.tables?.find(e=>"users"==e.tableName)}catch(e){return}})(),n={};return r.forEach(r=>{let s=t?.fields?.find(e=>e.fieldName==r);if(r?.match(/^date_|^id$|^uuid$/))return;let a=e[r];s?.encrypted&&(a=(0,c.A)({data:a})),n[r]=a}),n.password&&"string"==typeof n.password&&(n.password=(0,d.A)({password:n.password})),n})();return{success:!0,payload:await (0,u.A)({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:t,data:o,useLocal:n})}}var _=t(4820);async function g(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:n,database:s,updatedUserId:a}=e.body,i=(0,l.A)({key:t,database:s,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${i.user_id}_${s}`,u=(0,_.A)({userId:i.user_id}),c=u?.find(e=>e.dbFullName===o),d=await f({dbFullName:o,payload:n,updatedUserId:a,dbSchema:c});r.json(d)}catch(t){(0,o.A)({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let y=(0,i.M)(n,"default"),S=(0,i.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:n})},56081:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(29021),s=t.n(n),a=t(95969);let i=({key:e,database:r,table:t,user_id:n,media:i})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=(0,a.A)({encryptedString:e}),u=JSON.parse(l||""),c=s().existsSync(`${o}/${u.sign}`);if(String(u.user_id)!==String(n)||!c)return null;if(!u.target_database||i)return u;if(!r&&u.target_database)return null;let d=u.target_database?.split(",").includes(String(r));if(d&&!u.target_table)return u;if(d&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),{error:`api-cred ERROR: ${e.message}`}}}},30802:(e,r,t)=>{t.d(r,{A:()=>c});var n=t(72583),s=t.n(n),a=t(92652),i=t(48786),o=t(37897),l=t(68829),u=t(62050);async function c({dbContext:e,paradigm:r,dbFullName:t,tableName:n,data:c,tableSchema:d,identifierColumnName:p,identifierValue:f,encryptionKey:_,encryptionSalt:g,useLocal:y}){if(!c||!Object.keys(c).length)return null;let S=!!y||!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=y?u.A:S?i.A:o.A,A=Object.keys(c),h=[],D=[];for(let e=0;ee.fieldName===r):null,i=n&&n[0]?n[0]:null;if(null==t||void 0==t)continue;let o=/<[^>]+>/g;(i?.richText||String(t).match(o))&&(t=s()(t,a.A)),i?.encrypted&&(t=(0,l.A)({data:t,encryptionKey:_,encryptionSalt:g})),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),h.push(`\`${r}\`=?`),"number"==typeof t?D.push(String(t)):D.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let E=`UPDATE \`${t}\`.\`${n}\` SET ${h.join(",")} WHERE \`${p}\`=?`;return D.push(f),S?await m(E,D):await m({paradigm:r,queryString:E,queryValues:D})}},4820:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(67619),s=t(29021),a=t.n(s),i=t(33873),o=t.n(i);function l({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(0,n.A)({component:"grabUserSchemaData",message:e.message}),null}}},92652:(e,r,t)=>{t.d(r,{A:()=>n});let n={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},43775:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(95969);let s=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;async function a({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(29021),s=t.n(n);async function a({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== Error Message: ${r} Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` User Id: ${e?.id} User Name: ${e?.first_name} ${e?.last_name} -User Email: ${e?.email}`),s?.url&&(n+=` -URL: ${s.url}`),s?.body&&(n+=` -Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(n+=` -IP: ${l}`),n+=` +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` Date: ${i.toDateString()} -========================================`,a().existsSync("./.tmp/error.log")||a().writeFileSync("./.tmp/error.log","","utf-8");let o=a().readFileSync("./.tmp/error.log","utf-8");a().writeFileSync("./.tmp/error.log",n),a().appendFileSync("./.tmp/error.log",` +========================================`,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",` -${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),a=t(67619),s=t(48786),i=t(37275),l=t(7971);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:c}){let u;let d=!!c||!!t?.match(/^datasquirel$/),p=c?l.A:d?s.A:i.A;try{u=e&&r&&Array.isArray(r)&&r[0]?d?await p(e,r):await p({paradigm:"Full Access",queryString:e,queryValues:r}):d?await p(e):await p({paradigm:"Full Access",queryString:e})}catch(e){console.log(`varDatabaseDbHandler Error: ${e.message}`),(0,a.A)({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&o)try{let e=u;return await (0,n.A)({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,a.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),c=a.Buffer.alloc(16,0),u=(0,n.createDecipheriv)("aes-192-cbc",o,c);try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(55511),a=t(79428);function s({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let s=r||process.env.DSQL_ENCRYPTION_PASSWORD,i=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let o=(0,n.scryptSync)(s,i,l),c=a.Buffer.alloc(16,0),u=(0,n.createCipheriv)("aes-192-cbc",o,c);try{let r=u.update(e,"utf8","hex");return r+=u.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511);function a({password:e,encryptionKey:r}){let t=r||process.env.DSQL_ENCRYPTION_PASSWORD;if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,n.createHmac)("sha512",t);return a.update(e),a.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>n});async function n(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37275:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(a(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;ns})},7971:(e,r,t)=>{t.d(r,{A:()=>l});var n=t(9973),a=t.n(n),s=t(29021),i=t.n(s);async function l(...e){let r=a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!i().existsSync(r)){console.log(`${r} does not exist`);return}return{ca:i().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let t=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18757);module.exports=t})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},30944:(e,r,t)=>{t.d(r,{A:()=>o});var n=t(43775),s=t(67619),a=t(7447),i=t(64292);async function o({queryString:e,queryValuesArray:r,database:t,tableSchema:o,useLocal:l,debug:u}){let c=(0,a.A)({fa:!0});l&&(c=(0,a.A)({local:!0})),t?.match(/^datasquirel$/)&&(c=(0,a.A)()),u&&(console.log("varDatabaseDbHandler:query:",e),console.log("varDatabaseDbHandler:values:",r));let d=await (0,i.A)(c,e,r);if(u&&console.log("varDatabaseDbHandler:results:",d),d&&o)try{return await (0,n.A)({unparsedResults:d,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),(0,s.A)({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},95969:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428),a=t(32443);function i({encryptedString:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,n.scryptSync)(i,o,l),p=s.Buffer.alloc(c,0),f=(0,n.createDecipheriv)(u,d,p);try{let r=f.update(e,"hex","utf8");return r+=f.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}},68829:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(55511),s=t(79428),a=t(32443);function i({data:e,encryptionKey:r,encryptionSalt:t}){if(!e?.match(/./))return console.log("Encryption string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:u,bufferAllocSize:c}=(0,a.A)({encryptionKey:r});if(!i?.match(/.{8,}/))return console.log("Encryption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Encryption salt is invalid"),e;let d=(0,n.scryptSync)(i,o,l),p=s.Buffer.alloc(c,0),f=(0,n.createCipheriv)(u,d,p);try{let r=f.update(e,"utf8","hex");return r+=f.final("hex")}catch(r){return console.log("Error in encrypting =>",r.message),e}}},83919:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(55511),s=t(32443);function a({password:e,encryptionKey:r}){let{key:t}=(0,s.A)({encryptionKey:r});if(!t?.match(/.{8,}/))throw Error("Encryption key is invalid");let a=(0,n.createHmac)("sha512",t);return a.update(e),a.digest("base64")}},48786:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},37897:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(64292),s=t(7447);async function a({paradigm:e,queryString:r,queryValues:t}){let a="Read Only"==e?(0,s.A)({ro:!0}):(0,s.A)({fa:!0});try{return await (0,n.A)(a,r,t)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{a?.end()}}},62050:(e,r,t)=>{t.d(r,{A:()=>s});var n=t(7447);async function s(...e){let r=(0,n.A)();console.log("Querying ...");try{let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await r?.end()}}},64292:(e,r,t)=>{async function n(e,r,t){try{if("string"==typeof r){let n=await e.query(s(r),t);return JSON.parse(JSON.stringify(n))}if("object"!=typeof r)return null;{let t=[];for(let n=0;nn})},7447:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(9973),s=t.n(n);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},32443:(e,r,t)=>{t.d(r,{A:()=>n});function n(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,r){try{let r=Number(e);if("number"!=typeof r||isNaN(r))return 0;return Math.round(r)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=18757);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json index bb1b664..3cfd57d 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/dbSchemas/users/user-2/main.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json index d9291c4..cff116a 100644 --- a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-api-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../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","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-api-runtime.js"]} \ 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 c3946f4..6289cdb 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 cbd9481..31714d6 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 e2d2f0f..043e610 100644 --- a/dsql-app/.local_dist/server/pages/create-account.js +++ b/dsql-app/.local_dist/server/pages/create-account.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=8810,e.ids=[3220,8810],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},94212:(e,t,r)=>{r.r(t),r.d(t,{config:()=>q,default:()=>w,getServerSideProps:()=>C,getStaticPaths:()=>O,getStaticProps:()=>N,reportWebVitals:()=>L,routeModule:()=>T,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>Q,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>b,default:()=>P,getServerSideProps:()=>D});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),d=r(1013),m=r(91258),g=r(57660);function f(){let{query:e,invitingUser:t}=p().useContext(b);return(0,l.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"}),(0,l.jsxs)("div",{className:"w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10",children:[t?.first_name&&(0,l.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,l.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,l.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,l.jsx)(g.A,{query:e})]})]})}r(92702),r(77047);var h=r(71934);let x=require("sanitize-html");var _=r.n(x);let y={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}};var S=r(43651),j=r(55511),v=r(79428),E=r(16175);r(46169);var A=r(32572);r(41939);let b=p().createContext({});function P(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[n,a]=p().useState(null);return e.query?.invite?(0,l.jsx)(A.A,{}):(0,l.jsx)(d.A,{head:s,children:(0,l.jsx)(b.Provider,{value:{user:n,query:e.query,invitingUser:e.invitingUser},children:(0,l.jsx)("main",{children:(0,l.jsx)(f,{})})})})}async function D({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let w=(0,o.M)(s,"default"),N=(0,o.M)(s,"getStaticProps"),O=(0,o.M)(s,"getStaticPaths"),C=(0,o.M)(s,"getServerSideProps"),q=(0,o.M)(s,"config"),L=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),M=(0,o.M)(s,"unstable_getStaticPaths"),Q=(0,o.M)(s,"unstable_getStaticParams"),R=(0,o.M)(s,"unstable_getServerProps"),k=(0,o.M)(s,"unstable_getServerSideProps"),T=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},10621:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},32572:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var n=r(16757);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(n.A,{width:"25px",position:"relative"})})]})})}},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${p}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},43651:(e,t,r)=>{async function s(e,t,r){try{if("string"==typeof t){let s=await e.query(n(t),r);return JSON.parse(JSON.stringify(s))}if("object"!=typeof t)return null;{let r=[];for(let s=0;sa})},16175:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(9973),n=r.n(s),a=r(29021),o=r.n(a);async function i(...e){let t=n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!o().existsSync(t)){console.log(`${t} does not exist`);return}return{ca:o().readFileSync(`${e}/ca-cert.pem`),rejectUnauthorized:!1}}()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let r=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,8760],()=>r(94212));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8810,e.ids=[3220,8810],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},73124:(e,t,r)=>{r.r(t),r.d(t,{config:()=>M,default:()=>I,getServerSideProps:()=>L,getStaticPaths:()=>D,getStaticProps:()=>C,reportWebVitals:()=>T,routeModule:()=>G,unstable_getServerProps:()=>Y,unstable_getServerSideProps:()=>F,unstable_getStaticParams:()=>k,unstable_getStaticPaths:()=>Q,unstable_getStaticProps:()=>R});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>O,default:()=>q,getServerSideProps:()=>w});var n=r(63865),a=r(9455),i=r(30671),o=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),m=r(26228),d=r(91258),g=r(57660);function x(){let{query:e,invitingUser:t}=p().useContext(O);return(0,l.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"}),(0,l.jsxs)("div",{className:"w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10",children:[t?.first_name&&(0,l.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,l.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,l.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,l.jsx)(g.A,{query:e})]})]})}r(92702),r(77047);var h=r(71934);let f=require("sanitize-html");var y=r.n(f);let j={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}};var _=r(84640),S=r(51779);async function v({paradigm:e,queryString:t,queryValues:r}){let s="Read Only"==e?(0,S.A)({ro:!0}):(0,S.A)({fa:!0});try{return await (0,_.A)(s,t,r)}catch(e){return console.log(`DSQL_USER_DB_HANDLER Error: ${e.message}`),null}finally{s?.end()}}var P=r(55511),b=r(79428),A=r(48243);async function E(...e){let t=(0,S.A)();console.log("Querying ...");try{let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}finally{await t?.end()}}r(46169);var N=r(32572);r(41939);let O=p().createContext({});function q(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(d.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[n,a]=p().useState(null);return e.query?.invite?(0,l.jsx)(N.A,{}):(0,l.jsx)(m.A,{head:s,children:(0,l.jsx)(O.Provider,{value:{user:n,query:e.query,invitingUser:e.invitingUser},children:(0,l.jsx)("main",{children:(0,l.jsx)(x,{})})})})}async function w({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let I=(0,i.M)(s,"default"),C=(0,i.M)(s,"getStaticProps"),D=(0,i.M)(s,"getStaticPaths"),L=(0,i.M)(s,"getServerSideProps"),M=(0,i.M)(s,"config"),T=(0,i.M)(s,"reportWebVitals"),R=(0,i.M)(s,"unstable_getStaticProps"),Q=(0,i.M)(s,"unstable_getStaticPaths"),k=(0,i.M)(s,"unstable_getStaticParams"),Y=(0,i.M)(s,"unstable_getServerProps"),F=(0,i.M)(s,"unstable_getServerSideProps"),G=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:s})},10621:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},32572:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var n=r(16757);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(n.A,{width:"25px",position:"relative"})})]})})}},91258:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),n=r(82015),a=r.n(n);function i({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(39908),n=r.n(s);async function a(e,t,r){let s=n()({req:e,level:r?"deep":void 0});return console.log(s),s.payload}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:c+=n}}},84640:(e,t,r)=>{async function s(e,t,r){try{if("string"==typeof t){let s=await e.query(n(t),r);return JSON.parse(JSON.stringify(s))}if("object"!=typeof t)return null;{let r=[];for(let s=0;ss})},48243:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,7303],()=>r(73124));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/create-account.js.nft.json b/dsql-app/.local_dist/server/pages/create-account.js.nft.json index ca059b2..dbedc89 100644 --- a/dsql-app/.local_dist/server/pages/create-account.js.nft.json +++ b/dsql-app/.local_dist/server/pages/create-account.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/deepmerge/dist/cjs.js","../../../node_modules/deepmerge/package.json","../../../node_modules/dom-serializer/lib/foreignNames.js","../../../node_modules/dom-serializer/lib/index.js","../../../node_modules/dom-serializer/package.json","../../../node_modules/domelementtype/lib/index.js","../../../node_modules/domelementtype/package.json","../../../node_modules/domhandler/lib/index.js","../../../node_modules/domhandler/lib/node.js","../../../node_modules/domhandler/package.json","../../../node_modules/domutils/lib/feeds.js","../../../node_modules/domutils/lib/helpers.js","../../../node_modules/domutils/lib/index.js","../../../node_modules/domutils/lib/legacy.js","../../../node_modules/domutils/lib/manipulation.js","../../../node_modules/domutils/lib/querying.js","../../../node_modules/domutils/lib/stringify.js","../../../node_modules/domutils/lib/traversal.js","../../../node_modules/domutils/package.json","../../../node_modules/entities/lib/decode.js","../../../node_modules/entities/lib/decode_codepoint.js","../../../node_modules/entities/lib/encode.js","../../../node_modules/entities/lib/escape.js","../../../node_modules/entities/lib/generated/decode-data-html.js","../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../node_modules/entities/lib/generated/encode-html.js","../../../node_modules/entities/lib/index.js","../../../node_modules/entities/package.json","../../../node_modules/escape-string-regexp/index.js","../../../node_modules/escape-string-regexp/package.json","../../../node_modules/htmlparser2/lib/Parser.js","../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../node_modules/htmlparser2/lib/index.js","../../../node_modules/htmlparser2/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../node_modules/is-plain-object/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/nanoid/non-secure/index.cjs","../../../node_modules/nanoid/non-secure/package.json","../../../node_modules/nanoid/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/parse-srcset/package.json","../../../node_modules/parse-srcset/src/parse-srcset.js","../../../node_modules/picocolors/package.json","../../../node_modules/picocolors/picocolors.js","../../../node_modules/postcss/lib/at-rule.js","../../../node_modules/postcss/lib/comment.js","../../../node_modules/postcss/lib/container.js","../../../node_modules/postcss/lib/css-syntax-error.js","../../../node_modules/postcss/lib/declaration.js","../../../node_modules/postcss/lib/document.js","../../../node_modules/postcss/lib/fromJSON.js","../../../node_modules/postcss/lib/input.js","../../../node_modules/postcss/lib/lazy-result.js","../../../node_modules/postcss/lib/list.js","../../../node_modules/postcss/lib/map-generator.js","../../../node_modules/postcss/lib/no-work-result.js","../../../node_modules/postcss/lib/node.js","../../../node_modules/postcss/lib/parse.js","../../../node_modules/postcss/lib/parser.js","../../../node_modules/postcss/lib/postcss.js","../../../node_modules/postcss/lib/previous-map.js","../../../node_modules/postcss/lib/processor.js","../../../node_modules/postcss/lib/result.js","../../../node_modules/postcss/lib/root.js","../../../node_modules/postcss/lib/rule.js","../../../node_modules/postcss/lib/stringifier.js","../../../node_modules/postcss/lib/stringify.js","../../../node_modules/postcss/lib/symbols.js","../../../node_modules/postcss/lib/terminal-highlight.js","../../../node_modules/postcss/lib/tokenize.js","../../../node_modules/postcss/lib/warn-once.js","../../../node_modules/postcss/lib/warning.js","../../../node_modules/postcss/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/sanitize-html/index.js","../../../node_modules/sanitize-html/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/source-map-js/lib/array-set.js","../../../node_modules/source-map-js/lib/base64-vlq.js","../../../node_modules/source-map-js/lib/base64.js","../../../node_modules/source-map-js/lib/binary-search.js","../../../node_modules/source-map-js/lib/mapping-list.js","../../../node_modules/source-map-js/lib/quick-sort.js","../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../node_modules/source-map-js/lib/source-map-generator.js","../../../node_modules/source-map-js/lib/source-node.js","../../../node_modules/source-map-js/lib/util.js","../../../node_modules/source-map-js/package.json","../../../node_modules/source-map-js/source-map.js","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/deepmerge/dist/cjs.js","../../../node_modules/deepmerge/package.json","../../../node_modules/dom-serializer/lib/foreignNames.js","../../../node_modules/dom-serializer/lib/index.js","../../../node_modules/dom-serializer/package.json","../../../node_modules/domelementtype/lib/index.js","../../../node_modules/domelementtype/package.json","../../../node_modules/domhandler/lib/index.js","../../../node_modules/domhandler/lib/node.js","../../../node_modules/domhandler/package.json","../../../node_modules/domutils/lib/feeds.js","../../../node_modules/domutils/lib/helpers.js","../../../node_modules/domutils/lib/index.js","../../../node_modules/domutils/lib/legacy.js","../../../node_modules/domutils/lib/manipulation.js","../../../node_modules/domutils/lib/querying.js","../../../node_modules/domutils/lib/stringify.js","../../../node_modules/domutils/lib/traversal.js","../../../node_modules/domutils/package.json","../../../node_modules/entities/lib/decode.js","../../../node_modules/entities/lib/decode_codepoint.js","../../../node_modules/entities/lib/encode.js","../../../node_modules/entities/lib/escape.js","../../../node_modules/entities/lib/generated/decode-data-html.js","../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../node_modules/entities/lib/generated/encode-html.js","../../../node_modules/entities/lib/index.js","../../../node_modules/entities/package.json","../../../node_modules/escape-string-regexp/index.js","../../../node_modules/escape-string-regexp/package.json","../../../node_modules/htmlparser2/lib/Parser.js","../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../node_modules/htmlparser2/lib/index.js","../../../node_modules/htmlparser2/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../node_modules/is-plain-object/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/nanoid/non-secure/index.cjs","../../../node_modules/nanoid/non-secure/package.json","../../../node_modules/nanoid/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/parse-srcset/package.json","../../../node_modules/parse-srcset/src/parse-srcset.js","../../../node_modules/picocolors/package.json","../../../node_modules/picocolors/picocolors.js","../../../node_modules/postcss/lib/at-rule.js","../../../node_modules/postcss/lib/comment.js","../../../node_modules/postcss/lib/container.js","../../../node_modules/postcss/lib/css-syntax-error.js","../../../node_modules/postcss/lib/declaration.js","../../../node_modules/postcss/lib/document.js","../../../node_modules/postcss/lib/fromJSON.js","../../../node_modules/postcss/lib/input.js","../../../node_modules/postcss/lib/lazy-result.js","../../../node_modules/postcss/lib/list.js","../../../node_modules/postcss/lib/map-generator.js","../../../node_modules/postcss/lib/no-work-result.js","../../../node_modules/postcss/lib/node.js","../../../node_modules/postcss/lib/parse.js","../../../node_modules/postcss/lib/parser.js","../../../node_modules/postcss/lib/postcss.js","../../../node_modules/postcss/lib/previous-map.js","../../../node_modules/postcss/lib/processor.js","../../../node_modules/postcss/lib/result.js","../../../node_modules/postcss/lib/root.js","../../../node_modules/postcss/lib/rule.js","../../../node_modules/postcss/lib/stringifier.js","../../../node_modules/postcss/lib/stringify.js","../../../node_modules/postcss/lib/symbols.js","../../../node_modules/postcss/lib/terminal-highlight.js","../../../node_modules/postcss/lib/tokenize.js","../../../node_modules/postcss/lib/warn-once.js","../../../node_modules/postcss/lib/warning.js","../../../node_modules/postcss/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/sanitize-html/index.js","../../../node_modules/sanitize-html/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/source-map-js/lib/array-set.js","../../../node_modules/source-map-js/lib/base64-vlq.js","../../../node_modules/source-map-js/lib/base64.js","../../../node_modules/source-map-js/lib/binary-search.js","../../../node_modules/source-map-js/lib/mapping-list.js","../../../node_modules/source-map-js/lib/quick-sort.js","../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../node_modules/source-map-js/lib/source-map-generator.js","../../../node_modules/source-map-js/lib/source-node.js","../../../node_modules/source-map-js/lib/util.js","../../../node_modules/source-map-js/package.json","../../../node_modules/source-map-js/source-map.js","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs.js b/dsql-app/.local_dist/server/pages/docs.js index efabb35..b607748 100644 --- a/dsql-app/.local_dist/server/pages/docs.js +++ b/dsql-app/.local_dist/server/pages/docs.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7797,e.ids=[3220,7797],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}}})},77354:(e,t,s)=>{s.r(t),s.d(t,{config:()=>w,default:()=>S,getServerSideProps:()=>A,getStaticPaths:()=>v,getStaticProps:()=>b,reportWebVitals:()=>q,routeModule:()=>G,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>y});var a=s(63865),n=s(9455),i=s(30671),l=s(5583),o=s(19796),c=s(8732),m=s(82015),u=s.n(m),d=s(1013),p=s(91258);s(82271);var x=s(24093);function g(){return(0,c.jsxs)("section",{className:"py-14",children:[(0,c.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,c.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,c.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,c.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(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-5 z-0"})]})}var h=s(58526);function f({title:e,description:t,url:s}){return(0,c.jsxs)("a",{href:s,className:"card",children:[(0,c.jsxs)("div",{className:"flex-col items-start",children:[(0,c.jsx)("span",{className:"text-2xl font-semibold",children:e}),(0,c.jsx)("span",{className:"max-w-md text-slate-600",children:t})]}),(0,c.jsx)(h.A,{size:20})]})}function j(){return(0,c.jsx)("section",{className:"py-14",children:(0,c.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,c.jsx)(f,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,c.jsx)(f,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,c.jsx)(f,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}function P({pages:e,targetPage:t}){let s=`${t.title} | Datasquirel docs`,r=t.description,a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:s}),(0,c.jsx)("meta",{name:"description",content:r}),(0,c.jsx)(p.A,{pageTitle:s,pageDescription:r,pagePathname:"/"})]}),[n,i]=u().useState(null);return(0,c.jsx)(d.A,{head:a,user:n,children:(0,c.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,c.jsx)(x.A,{pages:e}),(0,c.jsxs)("main",{children:[(0,c.jsx)(g,{}),(0,c.jsx)(j,{})]})]})})}async function y(){return{redirect:{destination:"/docs/getting-started",permanent:!1}}}let S=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),v=(0,i.M)(r,"getStaticPaths"),A=(0,i.M)(r,"getServerSideProps"),w=(0,i.M)(r,"config"),q=(0,i.M)(r,"reportWebVitals"),M=(0,i.M)(r,"unstable_getStaticProps"),N=(0,i.M)(r,"unstable_getStaticPaths"),_=(0,i.M)(r,"unstable_getStaticParams"),k=(0,i.M)(r,"unstable_getServerProps"),I=(0,i.M)(r,"unstable_getServerSideProps"),G=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs",pathname:"/docs",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),n=s.n(a);function i({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let i=`${a}/${s.slug}`,l=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:i,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),l&&l[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(l,i)})]},n)})}(t,"/docs")})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},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,9796],()=>s(77354));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7797,e.ids=[3220,7797],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}}})},77354:(e,t,s)=>{s.r(t),s.d(t,{config:()=>w,default:()=>S,getServerSideProps:()=>A,getStaticPaths:()=>v,getStaticProps:()=>b,reportWebVitals:()=>q,routeModule:()=>G,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>y});var a=s(63865),n=s(9455),i=s(30671),l=s(5583),o=s(19796),c=s(8732),m=s(82015),u=s.n(m),d=s(26228),p=s(91258);s(82271);var x=s(24093);function g(){return(0,c.jsxs)("section",{className:"py-14",children:[(0,c.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,c.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,c.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,c.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(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-5 z-0"})]})}var h=s(58526);function f({title:e,description:t,url:s}){return(0,c.jsxs)("a",{href:s,className:"card",children:[(0,c.jsxs)("div",{className:"flex-col items-start",children:[(0,c.jsx)("span",{className:"text-2xl font-semibold",children:e}),(0,c.jsx)("span",{className:"max-w-md text-slate-600",children:t})]}),(0,c.jsx)(h.A,{size:20})]})}function j(){return(0,c.jsx)("section",{className:"py-14",children:(0,c.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,c.jsx)(f,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,c.jsx)(f,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,c.jsx)(f,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}function P({pages:e,targetPage:t}){let s=`${t.title} | Datasquirel docs`,r=t.description,a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:s}),(0,c.jsx)("meta",{name:"description",content:r}),(0,c.jsx)(p.A,{pageTitle:s,pageDescription:r,pagePathname:"/"})]}),[n,i]=u().useState(null);return(0,c.jsx)(d.A,{head:a,user:n,children:(0,c.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,c.jsx)(x.A,{pages:e}),(0,c.jsxs)("main",{children:[(0,c.jsx)(g,{}),(0,c.jsx)(j,{})]})]})})}async function y(){return{redirect:{destination:"/docs/getting-started",permanent:!1}}}let S=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),v=(0,i.M)(r,"getStaticPaths"),A=(0,i.M)(r,"getServerSideProps"),w=(0,i.M)(r,"config"),q=(0,i.M)(r,"reportWebVitals"),M=(0,i.M)(r,"unstable_getStaticProps"),N=(0,i.M)(r,"unstable_getStaticPaths"),_=(0,i.M)(r,"unstable_getStaticParams"),k=(0,i.M)(r,"unstable_getServerProps"),I=(0,i.M)(r,"unstable_getServerSideProps"),G=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs",pathname:"/docs",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),n=s.n(a);function i({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let i=`${a}/${s.slug}`,l=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:i,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),l&&l[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(l,i)})]},n)})}(t,"/docs")})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},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,9796],()=>s(77354));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs.js.nft.json b/dsql-app/.local_dist/server/pages/docs.js.nft.json index 770e6be..b1f20a8 100644 --- a/dsql-app/.local_dist/server/pages/docs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/docs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page].js b/dsql-app/.local_dist/server/pages/docs/[page].js index f2d11bd..1ed54ba 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page].js +++ b/dsql-app/.local_dist/server/pages/docs/[page].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5151,e.ids=[3220,5151],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}}})},59527:(e,t,s)=>{s.r(t),s.d(t,{config:()=>_,default:()=>P,getServerSideProps:()=>b,getStaticPaths:()=>v,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>O,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>f,getStaticPaths:()=>S,getStaticProps:()=>j});var a=s(63865),n=s(9455),l=s(30671),o=s(5583),i=s(19796),c=s(8732),p=s(82015),u=s.n(p),m=s(1013);s(91258),s(82271),s(24093),s(69237);var d=s(28187),g=s.n(d),x=s(9973),h=s.n(x);function f({pages:e,targetPage:t}){try{return(0,c.jsx)(u().Fragment,{})}catch(e){return(0,c.jsx)(m.A,{head:null,user:null,children:(0,c.jsx)("span",{children:"Redirection ..."})})}}async function j({params:e}){let t=h()({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"}});try{let s=await g().utils.connDbHandler(t,"SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),r=await g().utils.connDbHandler(t,"SELECT title, slug, description, content FROM docs_pages WHERE slug = ?",[e?.page]);return{props:{user:null,pages:s||[],targetPage:r[0]?r[0]:{}}}}catch(e){return{props:{user:null,pages:[],targetPage:{}}}}finally{t?.end()}}async function S(){return{paths:[],fallback:!1}}let P=(0,l.M)(r,"default"),y=(0,l.M)(r,"getStaticProps"),v=(0,l.M)(r,"getStaticPaths"),b=(0,l.M)(r,"getServerSideProps"),_=(0,l.M)(r,"config"),A=(0,l.M)(r,"reportWebVitals"),M=(0,l.M)(r,"unstable_getStaticProps"),D=(0,l.M)(r,"unstable_getStaticPaths"),w=(0,l.M)(r,"unstable_getStaticParams"),q=(0,l.M)(r,"unstable_getServerProps"),E=(0,l.M)(r,"unstable_getServerSideProps"),O=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs/[page]",pathname:"/docs/[page]",bundlePath:"",filename:""},components:{App:i.default,Document:o.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),n=s.n(a);function l({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let l=`${a}/${s.slug}`,o=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:l,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),o&&o[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(o,l)})]},n)})}(t,"/docs")})]})}s(82015)},69237:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({title:e,description:t}){return(0,r.jsxs)("section",{className:"py-14",children:[(0,r.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,r.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,r.jsx)("h1",{className:"m-0 leading-tight",children:e}),(0,r.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:t}})]})}),(0,r.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},28187:e=>{e.exports=require("@moduletrace/datasquirel")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},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,9796],()=>s(59527));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5151,e.ids=[3220,5151],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}}})},59527:(e,t,s)=>{s.r(t),s.d(t,{config:()=>_,default:()=>P,getServerSideProps:()=>b,getStaticPaths:()=>v,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>O,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>f,getStaticPaths:()=>S,getStaticProps:()=>j});var a=s(63865),n=s(9455),l=s(30671),o=s(5583),i=s(19796),c=s(8732),p=s(82015),u=s.n(p),m=s(26228);s(91258),s(82271),s(24093),s(69237);var d=s(28187),g=s.n(d),x=s(9973),h=s.n(x);function f({pages:e,targetPage:t}){try{return(0,c.jsx)(u().Fragment,{})}catch(e){return(0,c.jsx)(m.A,{head:null,user:null,children:(0,c.jsx)("span",{children:"Redirection ..."})})}}async function j({params:e}){let t=h()({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"}});try{let s=await g().utils.connDbHandler(t,"SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),r=await g().utils.connDbHandler(t,"SELECT title, slug, description, content FROM docs_pages WHERE slug = ?",[e?.page]);return{props:{user:null,pages:s||[],targetPage:r[0]?r[0]:{}}}}catch(e){return{props:{user:null,pages:[],targetPage:{}}}}finally{t?.end()}}async function S(){return{paths:[],fallback:!1}}let P=(0,l.M)(r,"default"),y=(0,l.M)(r,"getStaticProps"),v=(0,l.M)(r,"getStaticPaths"),b=(0,l.M)(r,"getServerSideProps"),_=(0,l.M)(r,"config"),A=(0,l.M)(r,"reportWebVitals"),M=(0,l.M)(r,"unstable_getStaticProps"),D=(0,l.M)(r,"unstable_getStaticPaths"),w=(0,l.M)(r,"unstable_getStaticParams"),q=(0,l.M)(r,"unstable_getServerProps"),E=(0,l.M)(r,"unstable_getServerSideProps"),O=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs/[page]",pathname:"/docs/[page]",bundlePath:"",filename:""},components:{App:i.default,Document:o.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),n=s.n(a);function l({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let l=`${a}/${s.slug}`,o=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:l,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),o&&o[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(o,l)})]},n)})}(t,"/docs")})]})}s(82015)},69237:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({title:e,description:t}){return(0,r.jsxs)("section",{className:"py-14",children:[(0,r.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,r.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,r.jsx)("h1",{className:"m-0 leading-tight",children:e}),(0,r.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:t}})]})}),(0,r.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},28187:e=>{e.exports=require("@moduletrace/datasquirel")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},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,9796],()=>s(59527));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json b/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json index 901ee72..2db93bb 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json +++ b/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/grabDbSSL.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-db-full-name.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-dsql-connection.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js index d405ada..39ab337 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js +++ b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=1980,e.ids=[1980,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}}})},29262:(e,t,s)=>{s.r(t),s.d(t,{config:()=>P,default:()=>f,getServerSideProps:()=>S,getStaticPaths:()=>j,getStaticProps:()=>h,reportWebVitals:()=>y,routeModule:()=>M,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>v});var r={};s.r(r),s.d(r,{default:()=>g,getStaticPaths:()=>x,getStaticProps:()=>d});var a=s(63865),n=s(9455),l=s(30671),o=s(5583),i=s(19796);s(8732),s(82015),s(1013),s(91258),s(82271),s(24093),s(69237);var c=s(9973),p=s.n(c),u=s(28187),m=s.n(u);function g({pages:e,targetPage:t}){return null}async function d({params:e}){let t=p()({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"}});try{let s=e?.["sub-page"],r=await m().utils.connDbHandler(t,"SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),a=r?.filter(t=>t.slug===e?.page&&1==t.level);if(!a)return{props:{user:null,pages:[],targetPage:{}}};let n=await m().utils.connDbHandler(t,"SELECT title, slug, description, content FROM docs_pages WHERE slug = ? AND level = ? AND parent_id = ?",[s,2,a[0]?.id]);return{props:{user:null,pages:r,targetPage:n?.[0]?n[0]:{}}}}catch(e){return{props:{user:null,pages:[],targetPage:{}}}}finally{t?.end()}}async function x(){return{paths:[],fallback:!1}}let f=(0,l.M)(r,"default"),h=(0,l.M)(r,"getStaticProps"),j=(0,l.M)(r,"getStaticPaths"),S=(0,l.M)(r,"getServerSideProps"),P=(0,l.M)(r,"config"),y=(0,l.M)(r,"reportWebVitals"),v=(0,l.M)(r,"unstable_getStaticProps"),b=(0,l.M)(r,"unstable_getStaticPaths"),_=(0,l.M)(r,"unstable_getStaticParams"),A=(0,l.M)(r,"unstable_getServerProps"),D=(0,l.M)(r,"unstable_getServerSideProps"),M=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs/[page]/[sub-page]",pathname:"/docs/[page]/[sub-page]",bundlePath:"",filename:""},components:{App:i.default,Document:o.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),n=s.n(a);function l({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let l=`${a}/${s.slug}`,o=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:l,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),o&&o[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(o,l)})]},n)})}(t,"/docs")})]})}s(82015)},69237:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({title:e,description:t}){return(0,r.jsxs)("section",{className:"py-14",children:[(0,r.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,r.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,r.jsx)("h1",{className:"m-0 leading-tight",children:e}),(0,r.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:t}})]})}),(0,r.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},28187:e=>{e.exports=require("@moduletrace/datasquirel")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},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,9796],()=>s(29262));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=1980,e.ids=[1980,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}}})},29262:(e,t,s)=>{s.r(t),s.d(t,{config:()=>P,default:()=>f,getServerSideProps:()=>S,getStaticPaths:()=>j,getStaticProps:()=>h,reportWebVitals:()=>y,routeModule:()=>M,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>v});var r={};s.r(r),s.d(r,{default:()=>g,getStaticPaths:()=>x,getStaticProps:()=>d});var a=s(63865),n=s(9455),l=s(30671),o=s(5583),i=s(19796);s(8732),s(82015),s(26228),s(91258),s(82271),s(24093),s(69237);var c=s(9973),p=s.n(c),u=s(28187),m=s.n(u);function g({pages:e,targetPage:t}){return null}async function d({params:e}){let t=p()({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"}});try{let s=e?.["sub-page"],r=await m().utils.connDbHandler(t,"SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),a=r?.filter(t=>t.slug===e?.page&&1==t.level);if(!a)return{props:{user:null,pages:[],targetPage:{}}};let n=await m().utils.connDbHandler(t,"SELECT title, slug, description, content FROM docs_pages WHERE slug = ? AND level = ? AND parent_id = ?",[s,2,a[0]?.id]);return{props:{user:null,pages:r,targetPage:n?.[0]?n[0]:{}}}}catch(e){return{props:{user:null,pages:[],targetPage:{}}}}finally{t?.end()}}async function x(){return{paths:[],fallback:!1}}let f=(0,l.M)(r,"default"),h=(0,l.M)(r,"getStaticProps"),j=(0,l.M)(r,"getStaticPaths"),S=(0,l.M)(r,"getServerSideProps"),P=(0,l.M)(r,"config"),y=(0,l.M)(r,"reportWebVitals"),v=(0,l.M)(r,"unstable_getStaticProps"),b=(0,l.M)(r,"unstable_getStaticPaths"),_=(0,l.M)(r,"unstable_getStaticParams"),A=(0,l.M)(r,"unstable_getServerProps"),D=(0,l.M)(r,"unstable_getServerSideProps"),M=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs/[page]/[sub-page]",pathname:"/docs/[page]/[sub-page]",bundlePath:"",filename:""},components:{App:i.default,Document:o.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),n=s.n(a);function l({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let l=`${a}/${s.slug}`,o=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:l,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),o&&o[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(o,l)})]},n)})}(t,"/docs")})]})}s(82015)},69237:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({title:e,description:t}){return(0,r.jsxs)("section",{className:"py-14",children:[(0,r.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,r.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,r.jsx)("h1",{className:"m-0 leading-tight",children:e}),(0,r.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:t}})]})}),(0,r.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},28187:e=>{e.exports=require("@moduletrace/datasquirel")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},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,9796],()=>s(29262));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json index 5b60aa4..1d8322b 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json +++ b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-db-full-name.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-dsql-connection.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ 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 eb9e246..914167e 100644 --- a/dsql-app/.local_dist/server/pages/email-verification.js +++ b/dsql-app/.local_dist/server/pages/email-verification.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=6712,e.ids=[3220,6712],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},70852:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>E,getServerSideProps:()=>A,getStaticPaths:()=>j,getStaticProps:()=>v,reportWebVitals:()=>b,routeModule:()=>I,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>k,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>y});var n=r(63865),i=r(9455),a=r(30671),o=r(5583),l=r(19796),c=r(8732),u=r(82015),d=r.n(u),m=r(92702),p=r(16757),f=r(46169),g=r(71205),h=r(1013),S=r(77047),x=r(71934);function _({user:e,verified:t}){let[r,s]=d().useState(!1),[n,i]=d().useState(null);return t?(0,c.jsx)(h.A,{head:(0,c.jsxs)(d().Fragment,{children:[(0,c.jsx)("title",{children:"Verify Email Address"}),(0,c.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,c.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,c.jsx)("div",{className:"login-block gap-2",children:(0,c.jsxs)("div",{className:"flex items-center gap-4",children:[(0,c.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,c.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})}):(0,c.jsx)(d().Fragment,{children:(0,c.jsx)(h.A,{head:(0,c.jsxs)(d().Fragment,{children:[(0,c.jsx)("title",{children:"Verify Email Address"}),(0,c.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,c.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,c.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[n&&(0,c.jsx)("div",{className:n.class+" w-full rounded py-2 px-4 flex justify-center",children:n.msg}),r&&(0,c.jsx)(p.A,{position:"absolute"}),(0,c.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,c.jsx)("span",{children:"Please click the button below to send verification link"}),(0,c.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),s(!0),(0,f.A)("/api/sendEmailVerificationLink").then(e=>{s(!1),e.success&&i({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,c.jsx)("span",{children:"Send Verification Link"})}),(0,c.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,c.jsx)("span",{children:"Go Back"})})]})})})})}async function y({req:e,res:t,query:r}){let s;let n=!1;try{s=await (0,m.A)(e,t);let i=r?.token;if(i){let e=(0,g.A)({encryptedString:i.toString()});if(e)try{s=JSON.parse(e)}catch(e){(0,S.A)({component:"email-verification/index-page-component/getServerSideProps/line-255",message:e.message,user:{}}),s=null,i=null}}if(!s)return{redirect:{destination:"/logout",permanent:!1}};if(s.verification_status?.toString().match(/^[1-5]$/))return{redirect:{destination:"/admin",permanent:!1}};let a=await (0,x.A)(`SELECT id FROM users WHERE verification_status > 0 AND id='${s.id}'`);if(a&&a[0])return{redirect:{destination:"/admin",permanent:!1}};if(s?.dateCode){let e=s.dateCode;Date.now()-parseInt(e)>18e5?(s=null,i=null):(await (0,x.A)(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),n=!0)}}catch(e){return(0,S.A)({component:"email-verification/index-page-component/getServerSideProps/main-catch-error",message:e.message,user:{}}),{redirect:{destination:"/logout",permanent:!1}}}return{props:{user:s,verified:n}}}let E=(0,a.M)(s,"default"),v=(0,a.M)(s,"getStaticProps"),j=(0,a.M)(s,"getStaticPaths"),A=(0,a.M)(s,"getServerSideProps"),P=(0,a.M)(s,"config"),b=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),k=(0,a.M)(s,"unstable_getStaticPaths"),w=(0,a.M)(s,"unstable_getStaticParams"),D=(0,a.M)(s,"unstable_getServerProps"),O=(0,a.M)(s,"unstable_getServerSideProps"),I=new n.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/email-verification",pathname:"/email-verification",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),n=r(71205),i=r(29021),a=r.n(i),o=r(41939);async function l(e,t,r){try{let{keyCookieName:i,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[i]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[i]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",i=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),i&&(a+=`${i}_`),a+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),i&&(o+=`${i}_`),o+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),i&&(l+=`${i}_`),{keyCookieName:a,csrfCookieName:o,oneTimeCodeName:l+=n}}},77047:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(29021),n=r.n(s);async function i({user:e,message:t,component:r,noMail:s,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=6712,e.ids=[3220,6712],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},70852:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>y,getServerSideProps:()=>E,getStaticPaths:()=>A,getStaticProps:()=>D,reportWebVitals:()=>j,routeModule:()=>w,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>L,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>x,getServerSideProps:()=>v});var n=r(63865),i=r(9455),a=r(30671),o=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),d=r(92702),m=r(16757),f=r(46169),g=r(71205),S=r(26228),h=r(77047),_=r(71934);function x({user:e,verified:t}){let[r,s]=p().useState(!1),[n,i]=p().useState(null);return t?(0,l.jsx)(S.A,{head:(0,l.jsxs)(p().Fragment,{children:[(0,l.jsx)("title",{children:"Verify Email Address"}),(0,l.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,l.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,l.jsx)("div",{className:"login-block gap-2",children:(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,l.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})}):(0,l.jsx)(p().Fragment,{children:(0,l.jsx)(S.A,{head:(0,l.jsxs)(p().Fragment,{children:[(0,l.jsx)("title",{children:"Verify Email Address"}),(0,l.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,l.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,l.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[n&&(0,l.jsx)("div",{className:n.class+" w-full rounded py-2 px-4 flex justify-center",children:n.msg}),r&&(0,l.jsx)(m.A,{position:"absolute"}),(0,l.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,l.jsx)("span",{children:"Please click the button below to send verification link"}),(0,l.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),s(!0),(0,f.A)("/api/sendEmailVerificationLink").then(e=>{s(!1),e.success&&i({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,l.jsx)("span",{children:"Send Verification Link"})}),(0,l.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,l.jsx)("span",{children:"Go Back"})})]})})})})}async function v({req:e,res:t,query:r}){let s;let n=!1;try{s=await (0,d.A)(e,t);let i=r?.token;if(i){let e=(0,g.A)({encryptedString:i.toString()});if(e)try{s=JSON.parse(e)}catch(e){(0,h.A)({component:"email-verification/index-page-component/getServerSideProps/line-255",message:e.message,user:{}}),s=null,i=null}}if(!s)return{redirect:{destination:"/logout",permanent:!1}};if(s.verification_status?.toString().match(/^[1-5]$/))return{redirect:{destination:"/admin",permanent:!1}};let a=await (0,_.A)(`SELECT id FROM users WHERE verification_status > 0 AND id='${s.id}'`);if(a&&a[0])return{redirect:{destination:"/admin",permanent:!1}};if(s?.dateCode){let e=s.dateCode;Date.now()-parseInt(e)>18e5?(s=null,i=null):(await (0,_.A)(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),n=!0)}}catch(e){return(0,h.A)({component:"email-verification/index-page-component/getServerSideProps/main-catch-error",message:e.message,user:{}}),{redirect:{destination:"/logout",permanent:!1}}}return{props:{user:s,verified:n}}}let y=(0,a.M)(s,"default"),D=(0,a.M)(s,"getStaticProps"),A=(0,a.M)(s,"getStaticPaths"),E=(0,a.M)(s,"getServerSideProps"),P=(0,a.M)(s,"config"),j=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),b=(0,a.M)(s,"unstable_getStaticPaths"),L=(0,a.M)(s,"unstable_getStaticParams"),R=(0,a.M)(s,"unstable_getServerProps"),O=(0,a.M)(s,"unstable_getServerSideProps"),w=new n.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/email-verification",pathname:"/email-verification",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(39908),n=r.n(s);async function i(e,t,r){let s=n()({req:e,level:r?"deep":void 0});return console.log(s),s.payload}},77047:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(29021),n=r.n(s);async function i({user:e,message:t,component:r,noMail:s,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -8,9 +8,9 @@ URL: ${i.url}`),i?.body&&(s+=` Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(s+=` IP: ${o}`),s+=` Date: ${a.toDateString()} -========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let l=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` +========================================`,n().existsSync("./.tmp/error.log")||n().writeFileSync("./.tmp/error.log","","utf-8");let c=n().readFileSync("./.tmp/error.log","utf-8");n().writeFileSync("./.tmp/error.log",s),n().appendFileSync("./.tmp/error.log",` -${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(55511),n=r(79428);function i({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let i=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=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(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(i,a,o),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(8732);r(82015);var n=r(20883);function i(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(70852));module.exports=s})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428),i=r(48243);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:a,salt:o,keyLen:c,algorithm:l,bufferAllocSize:u}=(0,i.A)({encryptionKey:t});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 p=(0,s.scryptSync)(a,o,c),d=n.Buffer.alloc(u,0),m=(0,s.createDecipheriv)(l,p,d);try{let t=m.update(e,"hex","utf8");return t+=m.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(51779);async function n(...e){let t=(0,s.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(9973),n=r.n(s);function i(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},48243:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(8732);r(82015);var n=r(20883);function i(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(70852));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/email-verification.js.nft.json b/dsql-app/.local_dist/server/pages/email-verification.js.nft.json index 770e6be..4679e91 100644 --- a/dsql-app/.local_dist/server/pages/email-verification.js.nft.json +++ b/dsql-app/.local_dist/server/pages/email-verification.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/index.html b/dsql-app/.local_dist/server/pages/index.html index 7c6d779..ff3ef34 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/index.js.nft.json b/dsql-app/.local_dist/server/pages/index.js.nft.json index 770e6be..b1f20a8 100644 --- a/dsql-app/.local_dist/server/pages/index.js.nft.json +++ b/dsql-app/.local_dist/server/pages/index.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ 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 e117acf..380811c 100644 --- a/dsql-app/.local_dist/server/pages/login.js +++ b/dsql-app/.local_dist/server/pages/login.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=676,e.ids=[676,3220],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},45581:(e,t,r)=>{r.r(t),r.d(t,{config:()=>L,default:()=>b,getServerSideProps:()=>D,getStaticPaths:()=>N,getStaticProps:()=>A,reportWebVitals:()=>q,routeModule:()=>T,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>O});var s={};r.r(s),r.d(s,{default:()=>P,getServerSideProps:()=>E});var a=r(63865),n=r(9455),i=r(30671),o=r(5583),l=r(19796),c=r(8732),u=r(82015),d=r.n(u),m=r(27912),p=r.n(m),f=r(45731),h=r(46169);async function g({e,setAlert:t,setLoading:r,query:s}){e.preventDefault(),r(!0);let a=e.target["email-or-username-input"],n=e.target.password;if(a?.value===""&&n?.value===""){a.classList.add("warning"),n.classList.add("warning"),t("No Email or Password Provided"),r(!1);return}if(n?.value===""){t(!1),n.classList.add("warning"),t(!0),r(!1);return}a.classList.remove("warning"),n.classList.remove("warning"),t(!1);let i={email:a.value,password:n.value,query:s};(0,h.A)("/api/loginUser",{method:"post",body:i}).then(async e=>{console.log(e),e.user&&e.user.auth?(localStorage.setItem("userid",e.user.userid),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.userPayload)),(0,f.A)().then(()=>{window.location.reload()})):(t(e.msg),r(!1))})}var x=r(16757),y=r(5406);let _=d().createContext({});function j({user:e,query:t}){let[r,s]=(0,u.useState)(!1),[a,n]=(0,u.useState)(!1);return(0,c.jsxs)(_.Provider,{value:{loading:a,setLoading:n,alert:r,setAlert:s,user:e},children:[(0,c.jsx)(y.A,{user:e,userType:"admin",setLoading:n}),(0,c.jsxs)("div",{className:"w-full justify-center relative",children:[(0,c.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,c.jsx)("hr",{className:"absolute"})]}),(0,c.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[a&&(0,c.jsx)(x.A,{}),r&&(0,c.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:r}),(0,c.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{g({e,setAlert:s,setLoading:n,query:t})},children:[(0,c.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:t?.email?t.email:"",required:!0,onInput:e=>{r&&s(!1)}}),(0,c.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{r&&s(!1)}}),(0,c.jsx)("button",{type:"submit",children:"Login"})]}),(0,c.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,c.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,c.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,c.jsx)("span",{children:"Dont have an account yet?"}),(0,c.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,c.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,c.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,c.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var v=r(92702),S=r(50139),w=r(32572);function P(e){return e.query.invite&&e.user?(0,c.jsx)(w.A,{}):(0,c.jsxs)(d().Fragment,{children:[(0,c.jsxs)(p(),{children:[(0,c.jsx)("title",{children:"Login to your account"}),(0,c.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,c.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,c.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,c.jsx)(S.A,{}),(0,c.jsx)("hr",{}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,c.jsx)(j,{user:e.user,query:e.query})]})})]})}async function E({req:e,res:t,query:r}){let s=await (0,v.A)(e,t);return s?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:s,query:r}}}let b=(0,i.M)(s,"default"),A=(0,i.M)(s,"getStaticProps"),N=(0,i.M)(s,"getStaticPaths"),D=(0,i.M)(s,"getServerSideProps"),L=(0,i.M)(s,"config"),q=(0,i.M)(s,"reportWebVitals"),O=(0,i.M)(s,"unstable_getStaticProps"),I=(0,i.M)(s,"unstable_getStaticPaths"),M=(0,i.M)(s,"unstable_getStaticParams"),k=(0,i.M)(s,"unstable_getServerProps"),C=(0,i.M)(s,"unstable_getServerSideProps"),T=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},32572:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);r(82015);var a=r(16757);function n(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},5406:(e,t,r)=>{function s({user:e,userType:t,setLoading:r}){return null}r.d(t,{A:()=>s}),r(8732),r(82015),r(46169),r(45731)},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),a=r(71205),n=r(29021),i=r.n(n),o=r(41939);async function l(e,t,r){try{let{keyCookieName:n,csrfCookieName:l}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,a.A)({encryptedString:e.cookies[n]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},45731:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),n&&(l+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:l+=a}}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(55511),a=r(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(n,i,o),c=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var a=r(20883);function n(){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(45581));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=676,e.ids=[676,3220],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,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}}})},45581:(e,t,s)=>{s.r(t),s.d(t,{config:()=>L,default:()=>N,getServerSideProps:()=>E,getStaticPaths:()=>M,getStaticProps:()=>_,reportWebVitals:()=>k,routeModule:()=>C,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>G,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>I});var r={};s.r(r),s.d(r,{default:()=>A,getServerSideProps:()=>q});var a=s(63865),n=s(9455),i=s(30671),o=s(5583),l=s(19796),c=s(8732),u=s(82015),d=s.n(u),m=s(27912),p=s.n(m),x=s(46169),g=s(76102),h=s.n(g);async function f({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(e=>{e.success&&e.payload?.logged_in_status?(h().auth.postLogin(e),window.location.reload()):e.msg&&(t(e.msg),s(!1))})}var j=s(16757),y=s(96997);let v=d().createContext({});function P({user:e,query:t}){let[s,r]=(0,u.useState)(!1),[a,n]=(0,u.useState)(!1);return(0,c.jsxs)(v.Provider,{value:{loading:a,setLoading:n,alert:s,setAlert:r,user:e},children:[(0,c.jsx)(y.A,{user:e,userType:"admin",setLoading:n}),(0,c.jsxs)("div",{className:"w-full justify-center relative",children:[(0,c.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,c.jsx)("hr",{className:"absolute"})]}),(0,c.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[a&&(0,c.jsx)(j.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=>{f({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 w=s(92702),b=s(50139),S=s(32572);function A(e){return e.query.invite&&e.user?(0,c.jsx)(S.A,{}):(0,c.jsxs)(d().Fragment,{children:[(0,c.jsxs)(p(),{children:[(0,c.jsx)("title",{children:"Login to your account"}),(0,c.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,c.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,c.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,c.jsx)(b.A,{}),(0,c.jsx)("hr",{}),(0,c.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,c.jsx)(P,{user:e.user,query:e.query})]})})]})}async function q({req:e,res:t,query:s}){let r=await (0,w.A)(e);return r?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:r,query:s}}}let N=(0,i.M)(r,"default"),_=(0,i.M)(r,"getStaticProps"),M=(0,i.M)(r,"getStaticPaths"),E=(0,i.M)(r,"getServerSideProps"),L=(0,i.M)(r,"config"),k=(0,i.M)(r,"reportWebVitals"),I=(0,i.M)(r,"unstable_getStaticProps"),D=(0,i.M)(r,"unstable_getStaticPaths"),G=(0,i.M)(r,"unstable_getStaticParams"),T=(0,i.M)(r,"unstable_getServerProps"),O=(0,i.M)(r,"unstable_getServerSideProps"),C=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:r})},32572:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);s(82015);var a=s(16757);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"})})]})})}},96997:(e,t,s)=>{function r({user:e,userType:t,setLoading:s}){return null}s.d(t,{A:()=>r}),s(8732),s(82015),s(46169)},92702:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(39908),a=s.n(r);async function n(e,t,s){let r=a()({req:e,level:s?"deep":void 0});return console.log(r),r.payload}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},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,9796],()=>s(45581));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/login.js.nft.json b/dsql-app/.local_dist/server/pages/login.js.nft.json index 770e6be..dc33acf 100644 --- a/dsql-app/.local_dist/server/pages/login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ 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 0066ccc..924f0a8 100644 --- a/dsql-app/.local_dist/server/pages/logout.js +++ b/dsql-app/.local_dist/server/pages/logout.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=7122,e.ids=[3220,7122],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},92192:(e,t,r)=>{r.r(t),r.d(t,{config:()=>A,default:()=>E,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>P,reportWebVitals:()=>b,routeModule:()=>k,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>y});var n=r(63865),o=r(9455),a=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(27912),m=r.n(p),g=r(29021),f=r.n(g),h=r(92702);r(46169),r(45731);var _=r(16757),x=r(41939);function S({user:e,query:t}){let r=(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Login you out"}),(0,l.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,l.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)(m(),{children:r}),(0,l.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,l.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,l.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,l.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,l.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,l.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,l.jsx)(_.A,{position:"relative",width:"20px"})]})})]})}async function y({req:e,res:t,query:r}){let s=await (0,h.A)(e,t);if(s){console.log(s.csrf_k);try{let e=process.env.DSQL_USER_LOGIN_KEYS_PATH,t=`${e}/${s.csrf_k}`;console.log("allowedAuthKeyPath",t),f().unlinkSync(t)}catch(e){console.log(`Logout API error: ${e.message}`)}}let{keyCookieName:n,csrfCookieName:o}=(0,x.A)();return t.setHeader("Set-Cookie",[`${n}=none;max-age=0`,`${o}=null;max-age=0`]),{props:{user:s,logged_out:!0,query:r}}}let E=(0,a.M)(s,"default"),P=(0,a.M)(s,"getStaticProps"),j=(0,a.M)(s,"getStaticPaths"),v=(0,a.M)(s,"getServerSideProps"),A=(0,a.M)(s,"config"),b=(0,a.M)(s,"reportWebVitals"),N=(0,a.M)(s,"unstable_getStaticProps"),D=(0,a.M)(s,"unstable_getStaticPaths"),O=(0,a.M)(s,"unstable_getStaticParams"),I=(0,a.M)(s,"unstable_getServerProps"),L=(0,a.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/logout",pathname:"/logout",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),o=r(29021),a=r.n(o),i=r(41939);async function c(e,t,r){try{let{keyCookieName:o,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[o]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!a().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},45731:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),a=t;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),o&&(c+=`${o}_`),{keyCookieName:a,csrfCookieName:i,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,a=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!a?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(o,a,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var n=r(20883);function o(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(92192));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7122,e.ids=[3220,7122],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,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}}})},44759:(e,t,s)=>{s.r(t),s.d(t,{config:()=>A,default:()=>y,getServerSideProps:()=>q,getStaticPaths:()=>v,getStaticProps:()=>b,reportWebVitals:()=>_,routeModule:()=>I,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>G,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>S});var n=s(63865),a=s(9455),i=s(30671),o=s(5583),c=s(19796),l=s(8732),u=s(82015),p=s.n(u),m=s(28187),d=s.n(m),g=s(92702);require("@moduletrace/datasquirel/dist/client/");var x=s(27912),h=s.n(x),j=s(16757);function f(){let e=(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)(h(),{children:e}),(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)(j.A,{position:"relative",width:"20px"})]})})]})}function P(){return(0,l.jsx)(f,{})}async function S({req:e,res:t,query:s}){let r=await (0,g.A)(e,t);return d().user.logoutUser({request:e,response:t}),{props:{user:r,logged_out:!0,query:s}}}let y=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),v=(0,i.M)(r,"getStaticPaths"),q=(0,i.M)(r,"getServerSideProps"),A=(0,i.M)(r,"config"),_=(0,i.M)(r,"reportWebVitals"),M=(0,i.M)(r,"unstable_getStaticProps"),w=(0,i.M)(r,"unstable_getStaticPaths"),E=(0,i.M)(r,"unstable_getStaticParams"),k=(0,i.M)(r,"unstable_getServerProps"),G=(0,i.M)(r,"unstable_getServerSideProps"),I=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/logout",pathname:"/logout",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:r})},92702:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(39908),n=s.n(r);async function a(e,t,s){let r=n()({req:e,level:s?"deep":void 0});return console.log(r),r.payload}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},28187:e=>{e.exports=require("@moduletrace/datasquirel")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},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,9796],()=>s(44759));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/logout.js.nft.json b/dsql-app/.local_dist/server/pages/logout.js.nft.json index 770e6be..a1aed57 100644 --- a/dsql-app/.local_dist/server/pages/logout.js.nft.json +++ b/dsql-app/.local_dist/server/pages/logout.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","../../../node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","../../../node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","../../../node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/client/index.js","../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","../../../node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","../../../node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","../../../node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/get.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/query/post.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/githubLogin.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/handleSocialDb.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/social-login/loginSocialUser.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-create-user.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-delete-user.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-get-user.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-login.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-reauth-user.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-send-email-code.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/api-update-user.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-github-login.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/api/users/social/api-google-login.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addAdminUserOnLogin.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addMariadbUser.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/addUsersTableToDb.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/addDbEntry.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/deleteDbEntry.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/runQuery.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/db/updateDbEntry.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/defaultFieldsRegexp.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/fullAccessDbHandler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabNewUsersTableSchema.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabSchemaFieldsFromData.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/grabUserSchemaData.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/handleNodemailer.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpRequest.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/httpsRequest.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/parseDbResults.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/serverError.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/setUserSchemaData.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/updateUsersTableSchema.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varDatabaseDbHandler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/encrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/hashPassword.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-delete-generator.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-generator.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/sql/sql-insert-generator.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/createDbFromSchema.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/createTable.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/dbHandler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/generateColumnDescription.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/noDatabaseDbHandler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/supplementTable.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/updateTable.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/shell/utils/varDatabaseDbHandler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/global-db/NO_DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/camelJoinedtoCamelSpace.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/db/conn-db-handler.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-db-full-name.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-dsql-connection.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/trim-sql.js","../../../node_modules/@moduletrace/datasquirel/dist/users/add-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/delete-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/get-token.js","../../../node_modules/@moduletrace/datasquirel/dist/users/get-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/login-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/logout-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/reauth-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/send-email-code.js","../../../node_modules/@moduletrace/datasquirel/dist/users/social/github-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/users/social/google-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/users/update-user.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/users/validate-temp-email-code.js","../../../node_modules/@moduletrace/datasquirel/dist/users/validate-token.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/delete-file.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-schema.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/post.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-file.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/upload-image.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/deepmerge/dist/cjs.js","../../../node_modules/deepmerge/package.json","../../../node_modules/dom-serializer/lib/foreignNames.js","../../../node_modules/dom-serializer/lib/index.js","../../../node_modules/dom-serializer/package.json","../../../node_modules/domelementtype/lib/index.js","../../../node_modules/domelementtype/package.json","../../../node_modules/domhandler/lib/index.js","../../../node_modules/domhandler/lib/node.js","../../../node_modules/domhandler/package.json","../../../node_modules/domutils/lib/feeds.js","../../../node_modules/domutils/lib/helpers.js","../../../node_modules/domutils/lib/index.js","../../../node_modules/domutils/lib/legacy.js","../../../node_modules/domutils/lib/manipulation.js","../../../node_modules/domutils/lib/querying.js","../../../node_modules/domutils/lib/stringify.js","../../../node_modules/domutils/lib/traversal.js","../../../node_modules/domutils/package.json","../../../node_modules/entities/lib/decode.js","../../../node_modules/entities/lib/decode_codepoint.js","../../../node_modules/entities/lib/encode.js","../../../node_modules/entities/lib/escape.js","../../../node_modules/entities/lib/generated/decode-data-html.js","../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../node_modules/entities/lib/generated/encode-html.js","../../../node_modules/entities/lib/index.js","../../../node_modules/entities/package.json","../../../node_modules/escape-string-regexp/index.js","../../../node_modules/escape-string-regexp/package.json","../../../node_modules/generate-password/main.js","../../../node_modules/generate-password/package.json","../../../node_modules/generate-password/src/generate.js","../../../node_modules/htmlparser2/lib/Parser.js","../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../node_modules/htmlparser2/lib/index.js","../../../node_modules/htmlparser2/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../node_modules/is-plain-object/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/nanoid/non-secure/index.cjs","../../../node_modules/nanoid/non-secure/package.json","../../../node_modules/nanoid/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/nodemailer/lib/addressparser/index.js","../../../node_modules/nodemailer/lib/base64/index.js","../../../node_modules/nodemailer/lib/dkim/index.js","../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../node_modules/nodemailer/lib/dkim/sign.js","../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../node_modules/nodemailer/lib/fetch/index.js","../../../node_modules/nodemailer/lib/json-transport/index.js","../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../node_modules/nodemailer/lib/mailer/index.js","../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../node_modules/nodemailer/lib/mime-node/index.js","../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../node_modules/nodemailer/lib/nodemailer.js","../../../node_modules/nodemailer/lib/punycode/index.js","../../../node_modules/nodemailer/lib/qp/index.js","../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../node_modules/nodemailer/lib/shared/index.js","../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../node_modules/nodemailer/lib/well-known/index.js","../../../node_modules/nodemailer/lib/well-known/services.json","../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../node_modules/nodemailer/package.json","../../../node_modules/parse-srcset/package.json","../../../node_modules/parse-srcset/src/parse-srcset.js","../../../node_modules/picocolors/package.json","../../../node_modules/picocolors/picocolors.js","../../../node_modules/postcss/lib/at-rule.js","../../../node_modules/postcss/lib/comment.js","../../../node_modules/postcss/lib/container.js","../../../node_modules/postcss/lib/css-syntax-error.js","../../../node_modules/postcss/lib/declaration.js","../../../node_modules/postcss/lib/document.js","../../../node_modules/postcss/lib/fromJSON.js","../../../node_modules/postcss/lib/input.js","../../../node_modules/postcss/lib/lazy-result.js","../../../node_modules/postcss/lib/list.js","../../../node_modules/postcss/lib/map-generator.js","../../../node_modules/postcss/lib/no-work-result.js","../../../node_modules/postcss/lib/node.js","../../../node_modules/postcss/lib/parse.js","../../../node_modules/postcss/lib/parser.js","../../../node_modules/postcss/lib/postcss.js","../../../node_modules/postcss/lib/previous-map.js","../../../node_modules/postcss/lib/processor.js","../../../node_modules/postcss/lib/result.js","../../../node_modules/postcss/lib/root.js","../../../node_modules/postcss/lib/rule.js","../../../node_modules/postcss/lib/stringifier.js","../../../node_modules/postcss/lib/stringify.js","../../../node_modules/postcss/lib/symbols.js","../../../node_modules/postcss/lib/terminal-highlight.js","../../../node_modules/postcss/lib/tokenize.js","../../../node_modules/postcss/lib/warn-once.js","../../../node_modules/postcss/lib/warning.js","../../../node_modules/postcss/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/sanitize-html/index.js","../../../node_modules/sanitize-html/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/source-map-js/lib/array-set.js","../../../node_modules/source-map-js/lib/base64-vlq.js","../../../node_modules/source-map-js/lib/base64.js","../../../node_modules/source-map-js/lib/binary-search.js","../../../node_modules/source-map-js/lib/mapping-list.js","../../../node_modules/source-map-js/lib/quick-sort.js","../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../node_modules/source-map-js/lib/source-map-generator.js","../../../node_modules/source-map-js/lib/source-node.js","../../../node_modules/source-map-js/lib/util.js","../../../node_modules/source-map-js/package.json","../../../node_modules/source-map-js/source-map.js","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ 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 4302759..d572af4 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 b9d6639..7d4feb9 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 2757f15..a8573bb 100644 --- a/dsql-app/.local_dist/server/pages/reset-password.js +++ b/dsql-app/.local_dist/server/pages/reset-password.js @@ -1,4 +1,4 @@ -"use strict";(()=>{var e={};e.id=7537,e.ids=[3220,7537],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},20416:(e,t,r)=>{r.r(t),r.d(t,{config:()=>D,default:()=>v,getServerSideProps:()=>N,getStaticPaths:()=>b,getStaticProps:()=>A,reportWebVitals:()=>O,routeModule:()=>k,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>R,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>w,default:()=>P,getServerSideProps:()=>E});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(1013),m=r(91258),g=r(16757),f=r(92702),h=r(46169),x=r(90048),S=r(71205),_=r(77047),y=r(27825),j=r.n(y);let w=d().createContext({});function P(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:r}),(0,l.jsx)("meta",{name:"description",content:s}),(0,l.jsx)(m.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,o]=d().useState(!1),[i,c]=d().useState(!1);return(0,l.jsx)(p.A,{head:n,user:e.user,children:(0,l.jsx)(w.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(g.A,{}),(0,l.jsx)("div",{className:"main-container flex-col items-start",children:i?(0,l.jsx)(x.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,l.jsxs)(d().Fragment,{children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,l.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,l.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{o(!0),e.preventDefault();let r=e.target,s=r.password.value,n=r["confirm-password"].classList.contains("warning");if(s?.length<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{o(!1)},500);return}if(n){window.alert("Passwords don't match"),setTimeout(()=>{o(!1)},500);return}(0,h.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{o(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&c(!0)})},children:[(0,l.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,l.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let t=e.target,r=t.closest("form");try{r.password.value.match(RegExp(`^${j().escapeRegExp(t.value)}$`))?t.classList.remove("warning"):t.classList.add("warning")}catch(t){(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:t.message,user:{}}}),e.target.classList.add("warning")}}}),(0,l.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function E({req:e,res:t,query:r}){let s=await (0,f.A)(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let n=null;try{let e=(0,S.A)({encryptedString:r.token.toString()}),t=JSON.parse(e||"");if(Date.now()-t.dateCode>36e5)return{redirect:{destination:"/",permanent:!1}};n=t.email}catch(e){return(0,_.A)({component:"reset-password-page-component/getServersideProps/lines-251-260",message:e.message,user:s}),{redirect:{destination:"/",permanent:!1}}}return n?.match(/./)?{props:{user:s,email:n}}:{redirect:{destination:"/",permanent:!1}}}let v=(0,o.M)(s,"default"),A=(0,o.M)(s,"getStaticProps"),b=(0,o.M)(s,"getStaticPaths"),N=(0,o.M)(s,"getServerSideProps"),D=(0,o.M)(s,"config"),O=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),R=(0,o.M)(s,"unstable_getStaticPaths"),q=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),L=(0,o.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),o=r.n(a),i=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,i.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!o().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:o,csrfCookieName:i,oneTimeCodeName:c+=n}}},77047:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(29021),n=r.n(s);async function a({user:e,message:t,component:r,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +"use strict";(()=>{var e={};e.id=7537,e.ids=[3220,7537],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},20416:(e,t,r)=>{r.r(t),r.d(t,{config:()=>R,default:()=>_,getServerSideProps:()=>N,getStaticPaths:()=>b,getStaticProps:()=>E,reportWebVitals:()=>q,routeModule:()=>M,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>T,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>w,default:()=>v,getServerSideProps:()=>A});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),p=r(82015),m=r.n(p),u=r(26228),d=r(91258),g=r(16757),h=r(92702),f=r(46169),x=r(90048),y=r(71205),j=r(77047),S=r(27825),P=r.n(S);let w=m().createContext({});function v(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:r}),(0,l.jsx)("meta",{name:"description",content:s}),(0,l.jsx)(d.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,o]=m().useState(!1),[i,c]=m().useState(!1);return(0,l.jsx)(u.A,{head:n,user:e.user,children:(0,l.jsx)(w.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(g.A,{}),(0,l.jsx)("div",{className:"main-container flex-col items-start",children:i?(0,l.jsx)(x.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,l.jsxs)(m().Fragment,{children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,l.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,l.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{o(!0),e.preventDefault();let r=e.target,s=r.password.value,n=r["confirm-password"].classList.contains("warning");if(s?.length<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{o(!1)},500);return}if(n){window.alert("Passwords don't match"),setTimeout(()=>{o(!1)},500);return}(0,f.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{o(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&c(!0)})},children:[(0,l.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,l.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let t=e.target,r=t.closest("form");try{r.password.value.match(RegExp(`^${P().escapeRegExp(t.value)}$`))?t.classList.remove("warning"):t.classList.add("warning")}catch(t){(0,f.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:t.message,user:{}}}),e.target.classList.add("warning")}}}),(0,l.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function A({req:e,res:t,query:r}){let s=await (0,h.A)(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let n=null;try{let e=(0,y.A)({encryptedString:r.token.toString()}),t=JSON.parse(e||"");if(Date.now()-t.dateCode>36e5)return{redirect:{destination:"/",permanent:!1}};n=t.email}catch(e){return(0,j.A)({component:"reset-password-page-component/getServersideProps/lines-251-260",message:e.message,user:s}),{redirect:{destination:"/",permanent:!1}}}return n?.match(/./)?{props:{user:s,email:n}}:{redirect:{destination:"/",permanent:!1}}}let _=(0,o.M)(s,"default"),E=(0,o.M)(s,"getStaticProps"),b=(0,o.M)(s,"getStaticPaths"),N=(0,o.M)(s,"getServerSideProps"),R=(0,o.M)(s,"config"),q=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),L=(0,o.M)(s,"unstable_getStaticPaths"),T=(0,o.M)(s,"unstable_getStaticParams"),D=(0,o.M)(s,"unstable_getServerProps"),O=(0,o.M)(s,"unstable_getServerSideProps"),M=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),n=r(82015),a=r.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(39908),n=r.n(s);async function a(e,t,r){let s=n()({req:e,level:r?"deep":void 0});return console.log(s),s.payload}},77047:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(29021),n=r.n(s);async function a({user:e,message:t,component:r,noMail:s,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== Error Message: ${t} Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` User Id: ${e?.id} @@ -13,4 +13,4 @@ Date: ${o.toDateString()} -${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,o=r||process.env.DSQL_ENCRYPTION_SALT,i=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,o,i),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(20416));module.exports=s})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428),a=r(48243);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:o,salt:i,keyLen:c,algorithm:l,bufferAllocSize:p}=(0,a.A)({encryptionKey:t});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 m=(0,s.scryptSync)(o,i,c),u=n.Buffer.alloc(p,0),d=(0,s.createDecipheriv)(l,m,u);try{let t=d.update(e,"hex","utf8");return t+=d.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},48243:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(20416));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/reset-password.js.nft.json b/dsql-app/.local_dist/server/pages/reset-password.js.nft.json index 770e6be..56a5750 100644 --- a/dsql-app/.local_dist/server/pages/reset-password.js.nft.json +++ b/dsql-app/.local_dist/server/pages/reset-password.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/send-password-reset-link.js b/dsql-app/.local_dist/server/pages/send-password-reset-link.js index ead22d2..d2c328f 100644 --- a/dsql-app/.local_dist/server/pages/send-password-reset-link.js +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=6827,e.ids=[3220,6827],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},90678:(e,t,r)=>{r.r(t),r.d(t,{config:()=>b,default:()=>v,getServerSideProps:()=>w,getStaticPaths:()=>A,getStaticProps:()=>E,reportWebVitals:()=>N,routeModule:()=>C,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>D,unstable_getStaticProps:()=>k});var s={};r.r(s),r.d(s,{SendPassResetContext:()=>S,default:()=>y,getServerSideProps:()=>P});var a=r(63865),n=r(9455),i=r(30671),o=r(5583),c=r(19796),l=r(8732),u=r(82015),d=r.n(u),p=r(1013),m=r(91258),h=r(16757),f=r(92702),g=r(46169),x=r(90048);let _=(0,r(82544).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function j({message:e}){return(0,l.jsxs)("div",{className:"info gray",children:[(0,l.jsx)(_,{}),(0,l.jsx)("span",{className:"font-normal",children:e})]})}let S=d().createContext({});function y(e){let t="Cloudbased SQL data management system | Datasquirel",r="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[a,n]=d().useState(!1),[i,o]=d().useState(!1);return(0,l.jsx)(p.A,{head:s,user:e.user,children:(0,l.jsx)(S.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(h.A,{}),i?(0,l.jsx)(x.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,l.jsx)("div",{className:"paper",children:(0,l.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,l.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{n(!0),e.preventDefault();let t=e.target["email-address"].value;(0,g.A)(`/api/sendPasswordResetLink?email=${t}`).then(e=>{console.log(e),setTimeout(()=>{n(!1)},500),e.success&&o(!0)})},children:[(0,l.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:e?.user?.logged_in_status?e.user.email:"",required:!0}),(0,l.jsx)("button",{children:"Send password reset Email"}),(0,l.jsx)(j,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function P({req:e,res:t}){let r=await (0,f.A)(e,t);return r?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:r}}}let v=(0,i.M)(s,"default"),E=(0,i.M)(s,"getStaticProps"),A=(0,i.M)(s,"getStaticPaths"),w=(0,i.M)(s,"getServerSideProps"),b=(0,i.M)(s,"config"),N=(0,i.M)(s,"reportWebVitals"),k=(0,i.M)(s,"unstable_getStaticProps"),D=(0,i.M)(s,"unstable_getStaticPaths"),O=(0,i.M)(s,"unstable_getStaticParams"),I=(0,i.M)(s,"unstable_getServerProps"),q=(0,i.M)(s,"unstable_getServerSideProps"),C=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:s})},90048:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);function a({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},91258:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),a=r(82015),n=r.n(a);function i({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:a}){return(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,s.jsxs)(n().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),a=r(71205),n=r(29021),i=r.n(n),o=r(41939);async function c(e,t,r){try{let{keyCookieName:n,csrfCookieName:c}=(0,o.A)();if(!e.cookies?.[n]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,a.A)({encryptedString:e.cookies[n]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",a=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",n=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),n&&(i+=`${n}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),n&&(o+=`${n}_`),o+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),n&&(c+=`${n}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:c+=a}}},71205:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(55511),a=r(79428);function n({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(n,i,o),l=a.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var a=r(20883);function n(){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(90678));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6827,e.ids=[3220,6827],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,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}}})},90678:(e,t,s)=>{s.r(t),s.d(t,{config:()=>q,default:()=>A,getServerSideProps:()=>k,getStaticPaths:()=>w,getStaticProps:()=>b,reportWebVitals:()=>M,routeModule:()=>G,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>I,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>_});var r={};s.r(r),s.d(r,{SendPassResetContext:()=>y,default:()=>S,getServerSideProps:()=>v});var a=s(63865),n=s(9455),i=s(30671),o=s(5583),l=s(19796),c=s(8732),m=s(82015),d=s.n(m),u=s(26228),p=s(91258),x=s(16757),h=s(92702),g=s(46169),j=s(90048);let f=(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 P({message:e}){return(0,c.jsxs)("div",{className:"info gray",children:[(0,c.jsx)(f,{}),(0,c.jsx)("span",{className:"font-normal",children:e})]})}let y=d().createContext({});function S(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)(p.A,{pageTitle:t,pageDescription:s,pagePathname:"/"})]}),[a,n]=d().useState(!1),[i,o]=d().useState(!1);return(0,c.jsx)(u.A,{head:r,user:e.user,children:(0,c.jsx)(y.Provider,{value:{user:e.user},children:(0,c.jsx)("main",{children:(0,c.jsxs)("section",{children:[a&&(0,c.jsx)(x.A,{}),i?(0,c.jsx)(j.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,g.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)(P,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function v({req:e,res:t}){let s=await (0,h.A)(e,t);return s?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:s}}}let A=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),w=(0,i.M)(r,"getStaticPaths"),k=(0,i.M)(r,"getServerSideProps"),q=(0,i.M)(r,"config"),M=(0,i.M)(r,"reportWebVitals"),_=(0,i.M)(r,"unstable_getStaticProps"),E=(0,i.M)(r,"unstable_getStaticPaths"),I=(0,i.M)(r,"unstable_getStaticParams"),C=(0,i.M)(r,"unstable_getServerProps"),D=(0,i.M)(r,"unstable_getServerSideProps"),G=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})},90048:(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)},91258:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),n=s.n(a);function i({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),a&&(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(39908),a=s.n(r);async function n(e,t,s){let r=a()({req:e,level:s?"deep":void 0});return console.log(r),r.payload}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},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,9796],()=>s(90678));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json b/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json index 770e6be..56a5750 100644 --- a/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su.js b/dsql-app/.local_dist/server/pages/su.js index a5b8042..542b191 100644 --- a/dsql-app/.local_dist/server/pages/su.js +++ b/dsql-app/.local_dist/server/pages/su.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5516,e.ids=[5516],e.modules={84231:(e,t,s)=>{s.r(t),s.d(t,{config:()=>y,default:()=>v,getServerSideProps:()=>P,getStaticPaths:()=>N,getStaticProps:()=>w,reportWebVitals:()=>_,routeModule:()=>D,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>A,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>S,getServerSideProps:()=>b});var a=s(63865),l=s(9455),i=s(30671),n=s(5583),o=s(19796),c=s(8732),u=s(82015),d=s.n(u),m=s(61197),p=s(40778),x=s(46169),h=s(16757),g=s(1360);function j({data:e}){Object.keys(e.users[0]);let[t,s]=d().useState(null),[r,a]=d().useState(0),[l,i]=d().useState(!1);return console.log(typeof t),(0,c.jsx)(d().Fragment,{children:(0,c.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,c.jsxs)("section",{className:"paper w-full",children:[(0,c.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,c.jsx)("div",{className:"flex-col items-stretch gap-10",children:e.users.map((e,t)=>(0,c.jsx)(g.A,{userObject:e},t+1))})]}),(0,c.jsxs)("section",{className:"paper",children:[(0,c.jsxs)("div",{className:"w-full justify-between",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,c.jsx)("div",{children:(0,c.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(i(!0),(0,x.A)("/api/admin/clearErrorLogs",{method:"POST"}).then(e=>{a(e=>e+1)}),setTimeout(()=>{i(!1)},2e3))},className:"outlined gray relative",children:[l&&(0,c.jsx)(h.A,{width:"20px"}),"Clear Error Log"]})})]}),t&&(0,c.jsx)("p",{dangerouslySetInnerHTML:{__html:t||"No Log"}}),"string"!=typeof t&&(0,c.jsx)(h.A,{position:"relative",width:"25px"})]})]})})}var f=s(71934);function S({user:e,data:t}){let s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsx)(p.A,{head:s,user:e,children:(0,c.jsx)(j,{data:t})})}async function b({req:e,res:t,query:s}){let r=await (0,m.A)(e);return r?.logged_in_status?{props:{user:r,data:{users:await (0,f.A)("SELECT * FROM users ORDER BY id DESC")}}}:{redirect:{destination:"/su/login",permanent:!1}}}let v=(0,i.M)(r,"default"),w=(0,i.M)(r,"getStaticProps"),N=(0,i.M)(r,"getStaticPaths"),P=(0,i.M)(r,"getServerSideProps"),y=(0,i.M)(r,"config"),_=(0,i.M)(r,"reportWebVitals"),M=(0,i.M)(r,"unstable_getStaticProps"),q=(0,i.M)(r,"unstable_getStaticPaths"),A=(0,i.M)(r,"unstable_getStaticParams"),C=(0,i.M)(r,"unstable_getServerProps"),E=(0,i.M)(r,"unstable_getServerSideProps"),D=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su",pathname:"/su",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:r})},1360:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),l=s.n(a);function i({userObject:e,userPage:t}){let s=Object.keys(e),[a,i]=l().useState(!1),[n,o]=l().useState(0),[c,u]=l().useState(!t);return(0,r.jsxs)("div",{className:"card col green w-full overflow-hidden"+(c?t?" h-[100px]":" h-[85px]":" "),children:[(0,r.jsxs)("div",{className:"items-center w-full",children:[(0,r.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,r.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,r.jsxs)("div",{className:"ml-auto",children:[(0,r.jsx)("button",{className:"outlined gray small-text",onClick:e=>{c?u(!1):u(!0)},children:c?"More Details":"Collapse"}),!t&&(0,r.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,r.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,a)=>(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("div",{children:(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,r.jsx)("b",{children:e[t]})]})}),a{u(!0)},children:"Collapse"})]})}},71934:(e,t,s)=>{s.d(t,{A:()=>r});async function r(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},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,9796,6622],()=>s(84231));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5516,e.ids=[5516],e.modules={84231:(e,s,r)=>{r.r(s),r.d(s,{config:()=>L,default:()=>f,getServerSideProps:()=>N,getStaticPaths:()=>b,getStaticProps:()=>j,reportWebVitals:()=>P,routeModule:()=>y,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>B,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>A});var t={};r.r(t),r.d(t,{default:()=>D,getServerSideProps:()=>v});var a=r(63865),n=r(9455),o=r(30671),l=r(5583),i=r(19796),c=r(8732),u=r(82015),d=r.n(u),p=r(61197),S=r(40778),m=r(46169),_=r(16757),h=r(1360);function x({data:e}){Object.keys(e.users[0]);let[s,r]=d().useState(null),[t,a]=d().useState(0),[n,o]=d().useState(!1);return console.log(typeof s),(0,c.jsx)(d().Fragment,{children:(0,c.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,c.jsxs)("section",{className:"paper w-full",children:[(0,c.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,c.jsx)("div",{className:"flex-col items-stretch gap-10",children:e.users.map((e,s)=>(0,c.jsx)(h.A,{userObject:e},s+1))})]}),(0,c.jsxs)("section",{className:"paper",children:[(0,c.jsxs)("div",{className:"w-full justify-between",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,c.jsx)("div",{children:(0,c.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(o(!0),(0,m.A)("/api/admin/clearErrorLogs",{method:"POST"}).then(e=>{a(e=>e+1)}),setTimeout(()=>{o(!1)},2e3))},className:"outlined gray relative",children:[n&&(0,c.jsx)(_.A,{width:"20px"}),"Clear Error Log"]})})]}),s&&(0,c.jsx)("p",{dangerouslySetInnerHTML:{__html:s||"No Log"}}),"string"!=typeof s&&(0,c.jsx)(_.A,{position:"relative",width:"25px"})]})]})})}var g=r(71934);function D({user:e,data:s}){let r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsx)(S.A,{head:r,user:e,children:(0,c.jsx)(x,{data:s})})}async function v({req:e,res:s,query:r}){let t=await (0,p.A)(e);return t?.logged_in_status?{props:{user:t,data:{users:await (0,g.A)("SELECT * FROM users ORDER BY id DESC")}}}:{redirect:{destination:"/su/login",permanent:!1}}}let f=(0,o.M)(t,"default"),j=(0,o.M)(t,"getStaticProps"),b=(0,o.M)(t,"getStaticPaths"),N=(0,o.M)(t,"getServerSideProps"),L=(0,o.M)(t,"config"),P=(0,o.M)(t,"reportWebVitals"),A=(0,o.M)(t,"unstable_getStaticProps"),w=(0,o.M)(t,"unstable_getStaticPaths"),O=(0,o.M)(t,"unstable_getStaticParams"),E=(0,o.M)(t,"unstable_getServerProps"),B=(0,o.M)(t,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su",pathname:"/su",bundlePath:"",filename:""},components:{App:i.default,Document:l.default},userland:t})},1360:(e,s,r)=>{r.d(s,{A:()=>o});var t=r(8732),a=r(82015),n=r.n(a);function o({userObject:e,userPage:s}){let r=Object.keys(e),[a,o]=n().useState(!1),[l,i]=n().useState(0),[c,u]=n().useState(!s);return(0,t.jsxs)("div",{className:"card col green w-full overflow-hidden"+(c?s?" h-[100px]":" h-[85px]":" "),children:[(0,t.jsxs)("div",{className:"items-center w-full",children:[(0,t.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(s?" w-16 h-16":" w-12 h-12")}),!s&&(0,t.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,t.jsxs)("div",{className:"ml-auto",children:[(0,t.jsx)("button",{className:"outlined gray small-text",onClick:e=>{c?u(!1):u(!0)},children:c?"More Details":"Collapse"}),!s&&(0,t.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,t.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((s,a)=>(0,t.jsxs)(n().Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("span",{style:{wordBreak:"break-all"},children:[s,":"," ",(0,t.jsx)("b",{children:e[s]})]})}),a{u(!0)},children:"Collapse"})]})}},71934:(e,s,r)=>{r.d(s,{A:()=>a});var t=r(51779);async function a(...e){let s=(0,t.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let r=await s.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},51779:(e,s,r)=>{r.d(s,{A:()=>n});var t=r(9973),a=r.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var s=require("../webpack-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[883,9821,9796,6622],()=>r(84231));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su.js.nft.json b/dsql-app/.local_dist/server/pages/su.js.nft.json index 770e6be..9476499 100644 --- a/dsql-app/.local_dist/server/pages/su.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/backups.js.nft.json b/dsql-app/.local_dist/server/pages/su/backups.js.nft.json index 0d12e41..7da5e0f 100644 --- a/dsql-app/.local_dist/server/pages/su/backups.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/backups.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/console.js.nft.json b/dsql-app/.local_dist/server/pages/su/console.js.nft.json index f358686..c206283 100644 --- a/dsql-app/.local_dist/server/pages/su/console.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/console.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@socket.io/component-emitter/lib/cjs/index.js","../../../../node_modules/@socket.io/component-emitter/lib/cjs/package.json","../../../../node_modules/@socket.io/component-emitter/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/ansi-regex/index.js","../../../../node_modules/ansi-regex/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/debug/package.json","../../../../node_modules/debug/src/browser.js","../../../../node_modules/debug/src/common.js","../../../../node_modules/debug/src/index.js","../../../../node_modules/debug/src/node.js","../../../../node_modules/engine.io-client/build/cjs/contrib/has-cors.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/cjs/globals.node.js","../../../../node_modules/engine.io-client/build/cjs/index.js","../../../../node_modules/engine.io-client/build/cjs/package.json","../../../../node_modules/engine.io-client/build/cjs/socket.js","../../../../node_modules/engine.io-client/build/cjs/transport.js","../../../../node_modules/engine.io-client/build/cjs/transports/index.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-fetch.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-xhr.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.node.js","../../../../node_modules/engine.io-client/build/cjs/transports/webtransport.js","../../../../node_modules/engine.io-client/build/cjs/util.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/esm-debug/globals.node.js","../../../../node_modules/engine.io-client/build/esm-debug/index.js","../../../../node_modules/engine.io-client/build/esm-debug/package.json","../../../../node_modules/engine.io-client/build/esm-debug/socket.js","../../../../node_modules/engine.io-client/build/esm-debug/transport.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/index.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/webtransport.js","../../../../node_modules/engine.io-client/build/esm-debug/util.js","../../../../node_modules/engine.io-client/package.json","../../../../node_modules/engine.io-parser/build/cjs/commons.js","../../../../node_modules/engine.io-parser/build/cjs/decodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/encodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/index.js","../../../../node_modules/engine.io-parser/build/cjs/package.json","../../../../node_modules/engine.io-parser/build/esm/commons.js","../../../../node_modules/engine.io-parser/build/esm/decodePacket.js","../../../../node_modules/engine.io-parser/build/esm/encodePacket.js","../../../../node_modules/engine.io-parser/build/esm/index.js","../../../../node_modules/engine.io-parser/build/esm/package.json","../../../../node_modules/engine.io-parser/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/ms/index.js","../../../../node_modules/ms/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/socket.io-client/build/cjs/contrib/backo2.js","../../../../node_modules/socket.io-client/build/cjs/index.js","../../../../node_modules/socket.io-client/build/cjs/manager.js","../../../../node_modules/socket.io-client/build/cjs/on.js","../../../../node_modules/socket.io-client/build/cjs/socket.js","../../../../node_modules/socket.io-client/build/cjs/url.js","../../../../node_modules/socket.io-client/build/esm-debug/contrib/backo2.js","../../../../node_modules/socket.io-client/build/esm-debug/index.js","../../../../node_modules/socket.io-client/build/esm-debug/manager.js","../../../../node_modules/socket.io-client/build/esm-debug/on.js","../../../../node_modules/socket.io-client/build/esm-debug/package.json","../../../../node_modules/socket.io-client/build/esm-debug/socket.js","../../../../node_modules/socket.io-client/build/esm-debug/url.js","../../../../node_modules/socket.io-client/package.json","../../../../node_modules/socket.io-parser/build/cjs/binary.js","../../../../node_modules/socket.io-parser/build/cjs/index.js","../../../../node_modules/socket.io-parser/build/cjs/is-binary.js","../../../../node_modules/socket.io-parser/build/cjs/package.json","../../../../node_modules/socket.io-parser/build/esm-debug/binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/index.js","../../../../node_modules/socket.io-parser/build/esm-debug/is-binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/package.json","../../../../node_modules/socket.io-parser/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js","../../../../node_modules/xmlhttprequest-ssl/package.json","../../../../node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","../../../../node_modules/xterm-addon-fit/package.json","../../../../node_modules/xterm/lib/xterm.js","../../../../node_modules/xterm/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@socket.io/component-emitter/lib/cjs/index.js","../../../../node_modules/@socket.io/component-emitter/lib/cjs/package.json","../../../../node_modules/@socket.io/component-emitter/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/ansi-regex/index.js","../../../../node_modules/ansi-regex/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/debug/package.json","../../../../node_modules/debug/src/browser.js","../../../../node_modules/debug/src/common.js","../../../../node_modules/debug/src/index.js","../../../../node_modules/debug/src/node.js","../../../../node_modules/engine.io-client/build/cjs/contrib/has-cors.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/cjs/globals.node.js","../../../../node_modules/engine.io-client/build/cjs/index.js","../../../../node_modules/engine.io-client/build/cjs/package.json","../../../../node_modules/engine.io-client/build/cjs/socket.js","../../../../node_modules/engine.io-client/build/cjs/transport.js","../../../../node_modules/engine.io-client/build/cjs/transports/index.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-fetch.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-xhr.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.node.js","../../../../node_modules/engine.io-client/build/cjs/transports/webtransport.js","../../../../node_modules/engine.io-client/build/cjs/util.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/esm-debug/globals.node.js","../../../../node_modules/engine.io-client/build/esm-debug/index.js","../../../../node_modules/engine.io-client/build/esm-debug/package.json","../../../../node_modules/engine.io-client/build/esm-debug/socket.js","../../../../node_modules/engine.io-client/build/esm-debug/transport.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/index.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/webtransport.js","../../../../node_modules/engine.io-client/build/esm-debug/util.js","../../../../node_modules/engine.io-client/package.json","../../../../node_modules/engine.io-parser/build/cjs/commons.js","../../../../node_modules/engine.io-parser/build/cjs/decodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/encodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/index.js","../../../../node_modules/engine.io-parser/build/cjs/package.json","../../../../node_modules/engine.io-parser/build/esm/commons.js","../../../../node_modules/engine.io-parser/build/esm/decodePacket.js","../../../../node_modules/engine.io-parser/build/esm/encodePacket.js","../../../../node_modules/engine.io-parser/build/esm/index.js","../../../../node_modules/engine.io-parser/build/esm/package.json","../../../../node_modules/engine.io-parser/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/ms/index.js","../../../../node_modules/ms/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/socket.io-client/build/cjs/contrib/backo2.js","../../../../node_modules/socket.io-client/build/cjs/index.js","../../../../node_modules/socket.io-client/build/cjs/manager.js","../../../../node_modules/socket.io-client/build/cjs/on.js","../../../../node_modules/socket.io-client/build/cjs/socket.js","../../../../node_modules/socket.io-client/build/cjs/url.js","../../../../node_modules/socket.io-client/build/esm-debug/contrib/backo2.js","../../../../node_modules/socket.io-client/build/esm-debug/index.js","../../../../node_modules/socket.io-client/build/esm-debug/manager.js","../../../../node_modules/socket.io-client/build/esm-debug/on.js","../../../../node_modules/socket.io-client/build/esm-debug/package.json","../../../../node_modules/socket.io-client/build/esm-debug/socket.js","../../../../node_modules/socket.io-client/build/esm-debug/url.js","../../../../node_modules/socket.io-client/package.json","../../../../node_modules/socket.io-parser/build/cjs/binary.js","../../../../node_modules/socket.io-parser/build/cjs/index.js","../../../../node_modules/socket.io-parser/build/cjs/is-binary.js","../../../../node_modules/socket.io-parser/build/cjs/package.json","../../../../node_modules/socket.io-parser/build/esm-debug/binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/index.js","../../../../node_modules/socket.io-parser/build/esm-debug/is-binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/package.json","../../../../node_modules/socket.io-parser/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js","../../../../node_modules/xmlhttprequest-ssl/package.json","../../../../node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","../../../../node_modules/xterm-addon-fit/package.json","../../../../node_modules/xterm/lib/xterm.js","../../../../node_modules/xterm/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs.js b/dsql-app/.local_dist/server/pages/su/docs.js index a7992ff..10b7c99 100644 --- a/dsql-app/.local_dist/server/pages/su/docs.js +++ b/dsql-app/.local_dist/server/pages/su/docs.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3402,e.ids=[3402],e.modules={12025:(e,t,s)=>{s.r(t),s.d(t,{config:()=>S,default:()=>g,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>f,reportWebVitals:()=>b,routeModule:()=>k,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>_,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>P,unstable_getStaticProps:()=>w});var a={};s.r(a),s.d(a,{default:()=>h,getServerSideProps:()=>x});var r=s(63865),i=s(9455),l=s(30671),n=s(5583),o=s(19796),d=s(8732);s(82015);var c=s(61197),u=s(40778),p=s(93035),m=s(71934);function h({user:e,data:t}){let s=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(u.A,{head:s,user:e,children:(0,d.jsx)(p.A,{data:t})})}async function x({req:e,res:t,query:s}){let a=await (0,c.A)(e);return a?.logged_in_status?{props:{user:a,data:{docPages:await (0,m.A)("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let g=(0,l.M)(a,"default"),f=(0,l.M)(a,"getStaticProps"),j=(0,l.M)(a,"getStaticPaths"),v=(0,l.M)(a,"getServerSideProps"),S=(0,l.M)(a,"config"),b=(0,l.M)(a,"reportWebVitals"),w=(0,l.M)(a,"unstable_getStaticProps"),P=(0,l.M)(a,"unstable_getStaticPaths"),y=(0,l.M)(a,"unstable_getStaticParams"),N=(0,l.M)(a,"unstable_getServerProps"),_=(0,l.M)(a,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs",pathname:"/su/docs",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:a})},55904:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(82015),i=s.n(r);function l({children:e,column:t,className:s}){let r=i().useRef();return(0,a.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(s?" "+s:""),ref:r,children:e})}},93035:(e,t,s)=>{s.d(t,{A:()=>m});var a=s(8732),r=s(82015),i=s.n(r),l=s(46169),n=s(16757),o=s(82544);let d=(0,o.A)("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),c=(0,o.A)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);function u({docPageObject:e}){let[t,s]=i().useState(!1),[r,o]=i().useState([]);return(0,a.jsxs)("div",{className:"card col relative cursor-pointer",onClick:t=>{t.target?.closest(".cancel-link")?t.preventDefault():window.location.pathname=`/su/docs/pages/${e.id}`},children:[t&&(0,a.jsx)(n.A,{width:"20px"}),(0,a.jsxs)("div",{className:"w-full items-start",children:[(0,a.jsx)(d,{}),(0,a.jsxs)("div",{className:"flex-col items-start gap-0 relative z-10",children:[(0,a.jsx)("span",{className:"title",children:e.title}),(0,a.jsx)("span",{className:"-my-3",dangerouslySetInnerHTML:{__html:e.description||""}})]}),(0,a.jsxs)("div",{className:"ml-auto cancel-link",children:[(0,a.jsx)("button",{onClick:()=>{window.location.href=`/su/docs/edit-page?id=${e.id}`},className:"outlined small-text light-gray",children:"Edit Page"}),(0,a.jsx)("button",{onClick:()=>{window.confirm("Delete this page?")&&(s(!0),(0,l.A)("/api/admin/docs/delete-page",{method:"post",body:e}).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{s(!1)},1e3)}))},className:"outlined small-text light-gray",children:"Delete Page"})]})]}),r&&(0,a.jsxs)("div",{className:"-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c,{}),(0,a.jsx)("span",{className:"text-slate-300 font-semibold",children:"Children Pages"})]}),r.map((e,t)=>(0,a.jsxs)("div",{className:"card w-full",onClick:()=>{window.location.pathname=`/su/docs/pages/${e.id}`},children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{children:e.title})]},t))]})]})}var p=s(55904);function m({data:e}){let{env:t}=e,s=e.docPages,[r,o]=i().useState(!1);function d(e){window.confirm(e?"Update Docs DB from JSON file?":"Update docs json file?")&&(o(!0),(0,l.A)("/api/admin/docs/persist",{method:"post",body:{pull:e}}).then(t=>{t.success?window.alert(e?"Docs database table Updated Sucessfully!":"JSON data written Successfully!"):window.alert("Operation failed!"),setTimeout(()=>{o(!1)},1e3)}).catch(e=>{setTimeout(()=>{o(!1)},1e3)}))}return(0,a.jsxs)(i().Fragment,{children:[r&&(0,a.jsx)(n.A,{}),(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Documentation Pages"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("a",{href:"/su/docs/create-page",className:"button",children:"Create Page"}),(0,a.jsxs)(p.A,{children:[(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{d(!1)},children:"Push"}),(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{d(!0)},children:"Pull"})]})]})]}),(0,a.jsx)("div",{className:"paper flex-col items-stretch gap-10 w-full",children:s.map((e,t)=>(0,a.jsx)(u,{docPageObject:e},t))})]})]})}},71934:(e,t,s)=>{s.d(t,{A:()=>a});async function a(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622],()=>s(12025));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3402,e.ids=[3402],e.modules={12025:(e,t,r)=>{r.r(t),r.d(t,{config:()=>_,default:()=>m,getServerSideProps:()=>b,getStaticPaths:()=>v,getStaticProps:()=>x,reportWebVitals:()=>f,routeModule:()=>E,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>h});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>P});var a=r(63865),i=r(9455),o=r(30671),u=r(5583),n=r(19796),d=r(8732);r(82015);var l=r(61197),p=r(40778),c=r(93035),g=r(71934);function S({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(p.A,{head:r,user:e,children:(0,d.jsx)(c.A,{data:t})})}async function P({req:e,res:t,query:r}){let s=await (0,l.A)(e);return s?.logged_in_status?{props:{user:s,data:{docPages:await (0,g.A)("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let m=(0,o.M)(s,"default"),x=(0,o.M)(s,"getStaticProps"),v=(0,o.M)(s,"getStaticPaths"),b=(0,o.M)(s,"getServerSideProps"),_=(0,o.M)(s,"config"),f=(0,o.M)(s,"reportWebVitals"),h=(0,o.M)(s,"unstable_getStaticProps"),q=(0,o.M)(s,"unstable_getStaticPaths"),M=(0,o.M)(s,"unstable_getStaticParams"),j=(0,o.M)(s,"unstable_getServerProps"),A=(0,o.M)(s,"unstable_getServerSideProps"),E=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs",pathname:"/su/docs",bundlePath:"",filename:""},components:{App:n.default,Document:u.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,6622,9240],()=>r(12025));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs.js.nft.json index 0d12e41..759c0a8 100644 --- a/dsql-app/.local_dist/server/pages/su/docs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/create-page.js b/dsql-app/.local_dist/server/pages/su/docs/create-page.js index 802ed84..98adc17 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/create-page.js +++ b/dsql-app/.local_dist/server/pages/su/docs/create-page.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=179,e.ids=[179],e.modules={78918:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>P,getServerSideProps:()=>v,getStaticPaths:()=>b,getStaticProps:()=>x,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>M});var a={};r.r(a),r.d(a,{default:()=>S,getServerSideProps:()=>m});var s=r(63865),i=r(9455),o=r(30671),u=r(5583),n=r(19796),d=r(8732);r(82015);var p=r(61197),c=r(40778),l=r(55016),g=r(71934);function S({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(c.A,{head:r,user:e,children:(0,d.jsx)(l.A,{data:t,user:e})})}async function m({req:e,res:t,query:r}){let a=await (0,p.A)(e);return a?.logged_in_status?{props:{user:a,data:{docPages:await (0,g.A)("SELECT * FROM docs_pages WHERE level=0")}}}:{redirect:{destination:"/su/login",permanent:!1}}}let P=(0,o.M)(a,"default"),x=(0,o.M)(a,"getStaticProps"),b=(0,o.M)(a,"getStaticPaths"),v=(0,o.M)(a,"getServerSideProps"),f=(0,o.M)(a,"config"),h=(0,o.M)(a,"reportWebVitals"),M=(0,o.M)(a,"unstable_getStaticProps"),q=(0,o.M)(a,"unstable_getStaticPaths"),_=(0,o.M)(a,"unstable_getStaticParams"),j=(0,o.M)(a,"unstable_getServerProps"),A=(0,o.M)(a,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/create-page",pathname:"/su/docs/create-page",bundlePath:"",filename:""},components:{App:n.default,Document:u.default},userland:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(78918));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=179,e.ids=[179],e.modules={78918:(e,t,r)=>{r.r(t),r.d(t,{config:()=>q,default:()=>x,getServerSideProps:()=>v,getStaticPaths:()=>b,getStaticProps:()=>P,reportWebVitals:()=>f,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>h});var a={};r.r(a),r.d(a,{default:()=>S,getServerSideProps:()=>m});var s=r(63865),i=r(9455),o=r(30671),u=r(5583),n=r(19796),d=r(8732);r(82015);var p=r(61197),c=r(40778),l=r(55016),g=r(71934);function S({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(c.A,{head:r,user:e,children:(0,d.jsx)(l.A,{data:t,user:e})})}async function m({req:e,res:t,query:r}){let a=await (0,p.A)(e);return a?.logged_in_status?{props:{user:a,data:{docPages:await (0,g.A)("SELECT * FROM docs_pages WHERE level=0")}}}:{redirect:{destination:"/su/login",permanent:!1}}}let x=(0,o.M)(a,"default"),P=(0,o.M)(a,"getStaticProps"),b=(0,o.M)(a,"getStaticPaths"),v=(0,o.M)(a,"getServerSideProps"),q=(0,o.M)(a,"config"),f=(0,o.M)(a,"reportWebVitals"),h=(0,o.M)(a,"unstable_getStaticProps"),M=(0,o.M)(a,"unstable_getStaticPaths"),_=(0,o.M)(a,"unstable_getStaticParams"),j=(0,o.M)(a,"unstable_getServerProps"),A=(0,o.M)(a,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/create-page",pathname:"/su/docs/create-page",bundlePath:"",filename:""},components:{App:n.default,Document:u.default},userland:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(78918));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json index 6785e40..23f121d 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js index 1ee3cba..2187647 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js +++ b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5700,e.ids=[5700],e.modules={55564:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>x,getServerSideProps:()=>f,getStaticPaths:()=>b,getStaticProps:()=>P,reportWebVitals:()=>v,routeModule:()=>y,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>M});var a={};r.r(a),r.d(a,{default:()=>S,getServerSideProps:()=>m});var s=r(63865),i=r(9455),n=r(30671),o=r(5583),u=r(19796),d=r(8732);r(82015);var p=r(61197),c=r(40778),l=r(55016),g=r(71934);function S({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(c.A,{head:r,user:e,children:(0,d.jsx)(l.A,{data:t,user:e})})}async function m({req:e,res:t,query:r}){let a=await (0,p.A)(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let s=await (0,g.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return s&&Array.isArray(s)&&s[0]?{props:{user:a,data:s[0]}}:{redirect:{destination:"/su/docs",permanent:!1}}}let x=(0,n.M)(a,"default"),P=(0,n.M)(a,"getStaticProps"),b=(0,n.M)(a,"getStaticPaths"),f=(0,n.M)(a,"getServerSideProps"),h=(0,n.M)(a,"config"),v=(0,n.M)(a,"reportWebVitals"),M=(0,n.M)(a,"unstable_getStaticProps"),q=(0,n.M)(a,"unstable_getStaticPaths"),_=(0,n.M)(a,"unstable_getStaticParams"),A=(0,n.M)(a,"unstable_getServerProps"),j=(0,n.M)(a,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/edit-page",pathname:"/su/docs/edit-page",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(55564));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5700,e.ids=[5700],e.modules={55564:(e,t,r)=>{r.r(t),r.d(t,{config:()=>q,default:()=>x,getServerSideProps:()=>f,getStaticPaths:()=>b,getStaticProps:()=>P,reportWebVitals:()=>v,routeModule:()=>y,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>h});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>m});var a=r(63865),i=r(9455),o=r(30671),n=r(5583),u=r(19796),d=r(8732);r(82015);var p=r(61197),c=r(40778),l=r(55016),g=r(71934);function S({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(c.A,{head:r,user:e,children:(0,d.jsx)(l.A,{data:t,user:e})})}async function m({req:e,res:t,query:r}){let s=await (0,p.A)(e);if(!s?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let a=await (0,g.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return a&&Array.isArray(a)&&a[0]?{props:{user:s,data:a[0]}}:{redirect:{destination:"/su/docs",permanent:!1}}}let x=(0,o.M)(s,"default"),P=(0,o.M)(s,"getStaticProps"),b=(0,o.M)(s,"getStaticPaths"),f=(0,o.M)(s,"getServerSideProps"),q=(0,o.M)(s,"config"),v=(0,o.M)(s,"reportWebVitals"),h=(0,o.M)(s,"unstable_getStaticProps"),M=(0,o.M)(s,"unstable_getStaticPaths"),_=(0,o.M)(s,"unstable_getStaticParams"),A=(0,o.M)(s,"unstable_getServerProps"),j=(0,o.M)(s,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/edit-page",pathname:"/su/docs/edit-page",bundlePath:"",filename:""},components:{App:u.default,Document:n.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(55564));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json index 6785e40..23f121d 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages.js b/dsql-app/.local_dist/server/pages/su/docs/pages.js index 2d6b0a6..af240ed 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages.js +++ b/dsql-app/.local_dist/server/pages/su/docs/pages.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=99,e.ids=[99],e.modules={94572:(e,t,s)=>{s.r(t),s.d(t,{config:()=>S,default:()=>g,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>f,reportWebVitals:()=>b,routeModule:()=>k,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>_,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>P,unstable_getStaticProps:()=>w});var a={};s.r(a),s.d(a,{default:()=>h,getServerSideProps:()=>x});var r=s(63865),i=s(9455),l=s(30671),n=s(5583),o=s(19796),d=s(8732);s(82015);var c=s(61197),u=s(40778),p=s(93035),m=s(71934);function h({user:e,data:t}){let s=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(u.A,{head:s,user:e,children:(0,d.jsx)(p.A,{data:t})})}async function x({req:e,res:t,query:s}){let a=await (0,c.A)(e);return a?.logged_in_status?{props:{user:a,data:{docPages:await (0,m.A)("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let g=(0,l.M)(a,"default"),f=(0,l.M)(a,"getStaticProps"),j=(0,l.M)(a,"getStaticPaths"),v=(0,l.M)(a,"getServerSideProps"),S=(0,l.M)(a,"config"),b=(0,l.M)(a,"reportWebVitals"),w=(0,l.M)(a,"unstable_getStaticProps"),P=(0,l.M)(a,"unstable_getStaticPaths"),y=(0,l.M)(a,"unstable_getStaticParams"),N=(0,l.M)(a,"unstable_getServerProps"),_=(0,l.M)(a,"unstable_getServerSideProps"),k=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/pages",pathname:"/su/docs/pages",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:a})},55904:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(82015),i=s.n(r);function l({children:e,column:t,className:s}){let r=i().useRef();return(0,a.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(s?" "+s:""),ref:r,children:e})}},93035:(e,t,s)=>{s.d(t,{A:()=>m});var a=s(8732),r=s(82015),i=s.n(r),l=s(46169),n=s(16757),o=s(82544);let d=(0,o.A)("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),c=(0,o.A)("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);function u({docPageObject:e}){let[t,s]=i().useState(!1),[r,o]=i().useState([]);return(0,a.jsxs)("div",{className:"card col relative cursor-pointer",onClick:t=>{t.target?.closest(".cancel-link")?t.preventDefault():window.location.pathname=`/su/docs/pages/${e.id}`},children:[t&&(0,a.jsx)(n.A,{width:"20px"}),(0,a.jsxs)("div",{className:"w-full items-start",children:[(0,a.jsx)(d,{}),(0,a.jsxs)("div",{className:"flex-col items-start gap-0 relative z-10",children:[(0,a.jsx)("span",{className:"title",children:e.title}),(0,a.jsx)("span",{className:"-my-3",dangerouslySetInnerHTML:{__html:e.description||""}})]}),(0,a.jsxs)("div",{className:"ml-auto cancel-link",children:[(0,a.jsx)("button",{onClick:()=>{window.location.href=`/su/docs/edit-page?id=${e.id}`},className:"outlined small-text light-gray",children:"Edit Page"}),(0,a.jsx)("button",{onClick:()=>{window.confirm("Delete this page?")&&(s(!0),(0,l.A)("/api/admin/docs/delete-page",{method:"post",body:e}).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{s(!1)},1e3)}))},className:"outlined small-text light-gray",children:"Delete Page"})]})]}),r&&(0,a.jsxs)("div",{className:"-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c,{}),(0,a.jsx)("span",{className:"text-slate-300 font-semibold",children:"Children Pages"})]}),r.map((e,t)=>(0,a.jsxs)("div",{className:"card w-full",onClick:()=>{window.location.pathname=`/su/docs/pages/${e.id}`},children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{children:e.title})]},t))]})]})}var p=s(55904);function m({data:e}){let{env:t}=e,s=e.docPages,[r,o]=i().useState(!1);function d(e){window.confirm(e?"Update Docs DB from JSON file?":"Update docs json file?")&&(o(!0),(0,l.A)("/api/admin/docs/persist",{method:"post",body:{pull:e}}).then(t=>{t.success?window.alert(e?"Docs database table Updated Sucessfully!":"JSON data written Successfully!"):window.alert("Operation failed!"),setTimeout(()=>{o(!1)},1e3)}).catch(e=>{setTimeout(()=>{o(!1)},1e3)}))}return(0,a.jsxs)(i().Fragment,{children:[r&&(0,a.jsx)(n.A,{}),(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Documentation Pages"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("a",{href:"/su/docs/create-page",className:"button",children:"Create Page"}),(0,a.jsxs)(p.A,{children:[(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{d(!1)},children:"Push"}),(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{d(!0)},children:"Pull"})]})]})]}),(0,a.jsx)("div",{className:"paper flex-col items-stretch gap-10 w-full",children:s.map((e,t)=>(0,a.jsx)(u,{docPageObject:e},t))})]})]})}},71934:(e,t,s)=>{s.d(t,{A:()=>a});async function a(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622],()=>s(94572));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=99,e.ids=[99],e.modules={94572:(e,t,r)=>{r.r(t),r.d(t,{config:()=>_,default:()=>m,getServerSideProps:()=>b,getStaticPaths:()=>v,getStaticProps:()=>x,reportWebVitals:()=>f,routeModule:()=>E,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>q,unstable_getStaticProps:()=>h});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>P});var a=r(63865),i=r(9455),o=r(30671),u=r(5583),n=r(19796),d=r(8732);r(82015);var p=r(61197),l=r(40778),c=r(93035),g=r(71934);function S({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(l.A,{head:r,user:e,children:(0,d.jsx)(c.A,{data:t})})}async function P({req:e,res:t,query:r}){let s=await (0,p.A)(e);return s?.logged_in_status?{props:{user:s,data:{docPages:await (0,g.A)("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let m=(0,o.M)(s,"default"),x=(0,o.M)(s,"getStaticProps"),v=(0,o.M)(s,"getStaticPaths"),b=(0,o.M)(s,"getServerSideProps"),_=(0,o.M)(s,"config"),f=(0,o.M)(s,"reportWebVitals"),h=(0,o.M)(s,"unstable_getStaticProps"),q=(0,o.M)(s,"unstable_getStaticPaths"),M=(0,o.M)(s,"unstable_getStaticParams"),j=(0,o.M)(s,"unstable_getServerProps"),A=(0,o.M)(s,"unstable_getServerSideProps"),E=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/pages",pathname:"/su/docs/pages",bundlePath:"",filename:""},components:{App:n.default,Document:u.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,6622,9240],()=>r(94572));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json index bdd5bfa..c430028 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js index 98ff368..456f584 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js +++ b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=4795,e.ids=[4795],e.modules={90702:(e,t,r)=>{r.r(t),r.d(t,{config:()=>q,default:()=>f,getServerSideProps:()=>M,getStaticPaths:()=>v,getStaticProps:()=>h,reportWebVitals:()=>_,routeModule:()=>D,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>j});var a={};r.r(a),r.d(a,{default:()=>P,getServerSideProps:()=>b});var s=r(63865),i=r(9455),n=r(30671),o=r(5583),u=r(19796),d=r(8732),c=r(82015),p=r.n(c),l=r(61197),g=r(40778),S=r(55016);function m({data:e,user:t}){let{targetDocPage:r}=e;return(0,d.jsx)(p().Fragment,{children:(0,d.jsx)(S.A,{data:r,user:t})})}var x=r(71934);function P({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(g.A,{head:r,user:e,children:(0,d.jsx)(m,{data:t,user:e})})}async function b({req:e,res:t,query:r}){let a=await (0,l.A)(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let s=await (0,x.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return s&&Array.isArray(s)&&s[0]?{props:{user:a,data:{targetDocPage:s[0]}}}:{redirect:{destination:"/su/docs",permanent:!1}}}let f=(0,n.M)(a,"default"),h=(0,n.M)(a,"getStaticProps"),v=(0,n.M)(a,"getStaticPaths"),M=(0,n.M)(a,"getServerSideProps"),q=(0,n.M)(a,"config"),_=(0,n.M)(a,"reportWebVitals"),j=(0,n.M)(a,"unstable_getStaticProps"),A=(0,n.M)(a,"unstable_getStaticPaths"),y=(0,n.M)(a,"unstable_getStaticParams"),E=(0,n.M)(a,"unstable_getServerProps"),w=(0,n.M)(a,"unstable_getServerSideProps"),D=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/pages/[id]",pathname:"/su/docs/pages/[id]",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:a})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(90702));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4795,e.ids=[4795],e.modules={90702:(e,t,r)=>{r.r(t),r.d(t,{config:()=>M,default:()=>f,getServerSideProps:()=>v,getStaticPaths:()=>q,getStaticProps:()=>h,reportWebVitals:()=>_,routeModule:()=>D,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>j});var s={};r.r(s),r.d(s,{default:()=>P,getServerSideProps:()=>b});var a=r(63865),i=r(9455),n=r(30671),o=r(5583),u=r(19796),d=r(8732),p=r(82015),c=r.n(p),l=r(61197),g=r(40778),m=r(55016);function S({data:e,user:t}){let{targetDocPage:r}=e;return(0,d.jsx)(c().Fragment,{children:(0,d.jsx)(m.A,{data:r,user:t})})}var x=r(71934);function P({user:e,data:t}){let r=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,d.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,d.jsx)(g.A,{head:r,user:e,children:(0,d.jsx)(S,{data:t,user:e})})}async function b({req:e,res:t,query:r}){let s=await (0,l.A)(e);if(!s?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let a=await (0,x.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return a&&Array.isArray(a)&&a[0]?{props:{user:s,data:{targetDocPage:a[0]}}}:{redirect:{destination:"/su/docs",permanent:!1}}}let f=(0,n.M)(s,"default"),h=(0,n.M)(s,"getStaticProps"),q=(0,n.M)(s,"getStaticPaths"),v=(0,n.M)(s,"getServerSideProps"),M=(0,n.M)(s,"config"),_=(0,n.M)(s,"reportWebVitals"),j=(0,n.M)(s,"unstable_getStaticProps"),A=(0,n.M)(s,"unstable_getStaticPaths"),y=(0,n.M)(s,"unstable_getStaticParams"),E=(0,n.M)(s,"unstable_getServerProps"),w=(0,n.M)(s,"unstable_getServerSideProps"),D=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/docs/pages/[id]",pathname:"/su/docs/pages/[id]",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:s})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},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")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796,6622,3155,6903],()=>r(90702));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json index 5c28805..ee9de7a 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3496.js","../../../../chunks/3634.js","../../../../chunks/3704.js","../../../../chunks/3791.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5839.js","../../../../chunks/5954.js","../../../../chunks/6160.js","../../../../chunks/6202.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/8704.js","../../../../chunks/8760.js","../../../../chunks/883.js","../../../../chunks/9796.js","../../../../chunks/9821.js","../../../../chunks/9901.js","../../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1251.js","../../../../chunks/1579.js","../../../../chunks/194.js","../../../../chunks/2282.js","../../../../chunks/3155.js","../../../../chunks/3474.js","../../../../chunks/3704.js","../../../../chunks/4627.js","../../../../chunks/5392.js","../../../../chunks/5771.js","../../../../chunks/5954.js","../../../../chunks/6133.js","../../../../chunks/6202.js","../../../../chunks/6247.js","../../../../chunks/6521.js","../../../../chunks/6622.js","../../../../chunks/6903.js","../../../../chunks/725.js","../../../../chunks/7303.js","../../../../chunks/7769.js","../../../../chunks/8704.js","../../../../chunks/883.js","../../../../chunks/9136.js","../../../../chunks/9240.js","../../../../chunks/9796.js","../../../../chunks/9814.js","../../../../chunks/9821.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/envar.js.nft.json b/dsql-app/.local_dist/server/pages/su/envar.js.nft.json index 0d12e41..7da5e0f 100644 --- a/dsql-app/.local_dist/server/pages/su/envar.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/envar.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json b/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json index 0d12e41..7da5e0f 100644 --- a/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json b/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json index 1c6d828..4a958d1 100644 --- a/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/servers.json","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../node_modules/tailwind-merge/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/servers.json","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../node_modules/tailwind-merge/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ 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 f0391ae..d17244b 100644 --- a/dsql-app/.local_dist/server/pages/su/login.js +++ b/dsql-app/.local_dist/server/pages/su/login.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=9634,e.ids=[3220,9634],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},38954:(e,t,r)=>{r.r(t),r.d(t,{config:()=>j,default:()=>S,getServerSideProps:()=>v,getStaticPaths:()=>E,getStaticProps:()=>y,reportWebVitals:()=>A,routeModule:()=>L,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>P});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>g});var n=r(63865),o=r(9455),i=r(30671),a=r(5583),l=r(19796),c=r(8732);r(82015);var u=r(27912),d=r.n(u),p=r(61197),m=r(46169),h=r(92702),f=r(89923);function _(){let e=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,c.jsx)(d(),{children:e}),(0,c.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,c.jsx)(x,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,m.A)("/api/admin/loginSuUser",{method:"post",body:{email:t.email.value,password:t.password.value,authKey:t["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,c.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,c.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,c.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,c.jsx)("button",{children:"Login"})]})]})]})}async function g({req:e,res:t,query:r}){let s=await (0,h.A)(e,t,!0);(0,f.A)(s)&&console.log("Admin User Detected ...");let n=await (0,p.A)(e);return n?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:n}}}function x(){return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,c.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,c.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,c.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,c.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,c.jsxs)("ul",{className:"p-0",children:[(0,c.jsxs)("li",{children:["Password:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,c.jsxs)("li",{children:["Auth Key:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}let S=(0,i.M)(s,"default"),y=(0,i.M)(s,"getStaticProps"),E=(0,i.M)(s,"getStaticPaths"),v=(0,i.M)(s,"getServerSideProps"),j=(0,i.M)(s,"config"),A=(0,i.M)(s,"reportWebVitals"),P=(0,i.M)(s,"unstable_getStaticProps"),b=(0,i.M)(s,"unstable_getStaticPaths"),w=(0,i.M)(s,"unstable_getStaticParams"),D=(0,i.M)(s,"unstable_getServerProps"),N=(0,i.M)(s,"unstable_getServerSideProps"),L=new n.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:a.default},userland:s})},61197:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(71205),n=r(41939);async function o(e){let{keyCookieName:t,csrfCookieName:r}=(0,n.A)(),o=`${t}_su`;if(!e.cookies?.[o])return console.log("No auth key cookie found"),null;let i=(0,s.A)({encryptedString:e.cookies[o]});if(!i)return console.log("No user payload found"),null;let a=JSON.parse(i);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},92702:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(71934),n=r(71205),o=r(29021),i=r.n(o),a=r(41939);async function l(e,t,r){try{let{keyCookieName:o,csrfCookieName:l}=(0,a.A)();if(!e.cookies?.[o]?.match(/./))throw Error("Request Cookies not Found!");let c=(0,n.A)({encryptedString:e.cookies[o]});if(!c)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(c);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${d}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},89923:(e,t,r)=>{r.d(t,{A:()=>s});function s(e,t){return t?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",o=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),o&&(i+=`${o}_`),i+=r;let a=t;e?.userId&&(a+=`user_${e.userId}_`),o&&(a+=`${o}_`),a+=s;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),o&&(l+=`${o}_`),{keyCookieName:i,csrfCookieName:a,oneTimeCodeName:l+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(55511),n=r(79428);function o({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let o=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,a=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!o?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let l=(0,s.scryptSync)(o,i,a),c=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",l,c);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var n=r(20883);function o(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(38954));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9634,e.ids=[3220,9634],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,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}}})},38954:(e,t,s)=>{s.r(t),s.d(t,{config:()=>E,default:()=>S,getServerSideProps:()=>j,getStaticPaths:()=>v,getStaticProps:()=>y,reportWebVitals:()=>P,routeModule:()=>D,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>N,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>A});var r={};s.r(r),s.d(r,{default:()=>f,getServerSideProps:()=>_});var n=s(63865),a=s(9455),i=s(30671),o=s(5583),l=s(19796),c=s(8732);s(82015);var u=s(27912),d=s.n(u),p=s(61197),m=s(46169),h=s(92702),g=s(89923);function f(){let e=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,c.jsx)(d(),{children:e}),(0,c.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,c.jsx)(x,{}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,m.A)("/api/admin/loginSuUser",{method:"post",body:{email:t.email.value,password:t.password.value,authKey:t["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,c.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,c.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,c.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,c.jsx)("button",{children:"Login"})]})]})]})}async function _({req:e,res:t,query:s}){let r=await (0,h.A)(e,t,!0);(0,g.A)(r)&&console.log("Admin User Detected ...");let n=await (0,p.A)(e);return n?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:n}}}function x(){return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,c.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,c.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,c.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,c.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,c.jsxs)("ul",{className:"p-0",children:[(0,c.jsxs)("li",{children:["Password:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,c.jsxs)("li",{children:["Auth Key:"," ",(0,c.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,c.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}let S=(0,i.M)(r,"default"),y=(0,i.M)(r,"getStaticProps"),v=(0,i.M)(r,"getStaticPaths"),j=(0,i.M)(r,"getServerSideProps"),E=(0,i.M)(r,"config"),P=(0,i.M)(r,"reportWebVitals"),A=(0,i.M)(r,"unstable_getStaticProps"),b=(0,i.M)(r,"unstable_getStaticPaths"),N=(0,i.M)(r,"unstable_getStaticParams"),I=(0,i.M)(r,"unstable_getServerProps"),L=(0,i.M)(r,"unstable_getServerSideProps"),D=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:r})},61197:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(71205),n=s(41939);async function a(e){let{keyCookieName:t,csrfCookieName:s}=(0,n.A)(),a=`${t}_su`;if(!e.cookies?.[a])return console.log("No auth key cookie found"),null;let i=(0,r.A)({encryptedString:e.cookies[a]});if(!i)return console.log("No user payload found"),null;let o=JSON.parse(i);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}},92702:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(39908),n=s.n(r);async function a(e,t,s){let r=n()({req:e,level:s?"deep":void 0});return console.log(r),r.payload}},89923:(e,t,s)=>{s.d(t,{A:()=>r});function r(e,t){return t?!!(e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")):!!(e?.id&&"1"==String(e?.id))}},41939:(e,t,s)=>{s.d(t,{A:()=>r});function r(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=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=s;let o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=r;let l=t;return e?.userId&&(l+=`user_${e.userId}_`),a&&(l+=`${a}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:l+=n}}},71205:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(55511),n=s(79428),a=s(48243);function i({encryptedString:e,encryptionKey:t,encryptionSalt:s}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let{key:i,salt:o,keyLen:l,algorithm:c,bufferAllocSize:u}=(0,a.A)({encryptionKey:t});if(!i?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=(0,r.scryptSync)(i,o,l),p=n.Buffer.alloc(u,0),m=(0,r.createDecipheriv)(c,d,p);try{let t=m.update(e,"hex","utf8");return t+=m.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},48243:(e,t,s)=>{s.d(t,{A:()=>r});function r(e){return{key:e?.encryptionKey||process.env.DSQL_ENCRYPTION_PASSWORD,keyLen:process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24,salt:e?.encryptionSalt||process.env.DSQL_ENCRYPTION_SALT,apiKey:e?.apiKey||process.env.DSQL_API_KEY,algorithm:e?.algorithm||process.env.DSQL_ENCRYPTION_ALGORITHM||"aes-192-cbc",bufferAllocSize:e?.bufferAllocSize||(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE?function(e,t){try{let t=Number(e);if("number"!=typeof t||isNaN(t))return 0;return Math.round(t)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE):void 0)||16}}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},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,9796],()=>s(38954));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/login.js.nft.json b/dsql-app/.local_dist/server/pages/su/login.js.nft.json index 0d12e41..367883c 100644 --- a/dsql-app/.local_dist/server/pages/su/login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/servers.js b/dsql-app/.local_dist/server/pages/su/servers.js index ee13016..5afcbcd 100644 --- a/dsql-app/.local_dist/server/pages/su/servers.js +++ b/dsql-app/.local_dist/server/pages/su/servers.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3821,e.ids=[3821],e.modules={95755:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{config:()=>x,default:()=>u,getServerSideProps:()=>g,getStaticPaths:()=>h,getStaticProps:()=>p,reportWebVitals:()=>f,routeModule:()=>w,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>m});var a=t(63865),n=t(9455),i=t(30671),l=t(5583),c=t(19796),o=t(49690),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,i.M)(o,"default"),p=(0,i.M)(o,"getStaticProps"),h=(0,i.M)(o,"getStaticPaths"),g=(0,i.M)(o,"getServerSideProps"),x=(0,i.M)(o,"config"),f=(0,i.M)(o,"reportWebVitals"),m=(0,i.M)(o,"unstable_getStaticProps"),v=(0,i.M)(o,"unstable_getStaticPaths"),S=(0,i.M)(o,"unstable_getStaticParams"),y=(0,i.M)(o,"unstable_getServerProps"),j=(0,i.M)(o,"unstable_getServerSideProps"),w=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su/servers",pathname:"/su/servers",bundlePath:"",filename:""},components:{App:c.default,Document:l.default},userland:o});s()}catch(e){s(e)}})},73872:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>c});var a=t(8732);t(82015);var n=t(96089),i=t(75979),l=e([i]);function c({slugText:e,justIcon:r,noIcon:t,title:s,outlined:l,extraClasses:c}){return(0,a.jsxs)("div",{className:(0,i.twMerge)("button small-text hover:!bg-transparent",l?" outlined gray bg-white":" ghost light-gray",c),onClick:r=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:l?void 0:{padding:0},children:[!t&&(0,a.jsx)(n.A,{size:l?15:20}),!r&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}i=(l.then?(await l)():l)[0],s()}catch(e){s(e)}})},57168:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>o});var a=t(8732),n=t(73872),i=t(2459),l=t(75979),c=e([n,l]);function o({server:e,noLoadBalance:r}){return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(i.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:e.host}),r?(0,a.jsx)(a.Fragment,{}):e.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,l.twMerge)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:e.users?.map((e,r)=>a.jsx(d,{user:e},r))})})]})}function d({user:e}){return(0,a.jsx)("li",{className:(0,l.twMerge)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:e.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(n.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}[n,l]=c.then?(await c)():c,s()}catch(e){s(e)}})},66097:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>d});var a=t(8732),n=t(19796),i=t(82015),l=t.n(i),c=t(57168),o=e([c]);function d(){let e=l().useContext(n.AppContext).pageProps;e.user;let r=e.servers;return(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,a.jsx)("span",{children:"All Servers"})]}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{children:"Add Server"})})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:r.map((e,r)=>(0,a.jsx)(c.A,{server:e,noLoadBalance:!0},r))}),(0,a.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}c=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},77489:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(29021),a=t.n(s),n=t(60374),i=t(33873),l=t.n(i);function c(){let e=process.env.DSQL_SU_USER_ID||"1",r=l().resolve(process.cwd(),`./jsonData/dbSchemas/users/user-${e}`),t=`${r}/servers.json`;return{dir:r,path:t}}function o(){try{!function(){try{let e=c();if(!a().existsSync(e.path)){let r={host:String(process.env.DSQL_DB_TARGET_IP_ADDRESS),port:3306,primary:!0,loadBalanced:!0,users:[{host:String(process.env.DSQL_DB_HOST),name:"root",password:process.env.DSQL_MARIADB_ROOT_PASSWORD||"password"}]};a().writeFileSync(e.path,JSON.stringify([r]))}}catch(e){return console.log(`Error checking servers ${e.message}`),!1}}();let e=c();return n.A.parse(a().readFileSync(e.path,"utf-8"))}catch(e){console.log(`Error getting servers ${e.message}`);return}}},96089:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},71934:(e,r,t)=>{t.d(r,{A:()=>s});async function s(...e){let r=global.DSQL_DB_CONN;try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let t=await r.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},60374:(e,r,t)=>{t.d(r,{A:()=>s});let s={parse:function(e,r){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,r)}catch(e){return}}},stringify:function(e,r,t){try{return JSON.stringify(e,r||void 0,t)}catch(e){return}}}},49690:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{default:()=>f,getServerSideProps:()=>m});var a=t(8732);t(82015);var n=t(29021),i=t.n(n),l=t(61197),c=t(40778),o=t(77489),d=t(66097),u=t(71934),p=t(33873),h=t.n(p),g=t(60374),x=e([d]);function f({user:e,data:r}){let t=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(c.A,{head:t,user:e,children:(0,a.jsx)(d.A,{})})}async function m({req:e,res:r,query:t}){try{let r=await (0,l.A)(e);if(!r?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let t=(0,o.A)();if(!t)throw Error("No servers found");t.find(e=>e.primary);let s=(await (0,u.A)("SELECT user,host,password FROM mysql.user")).filter(e=>e.User.match(/^dsql_user|^root/i));return i().writeFileSync(h().resolve(process.cwd(),"./.tmp/wrt.json"),String(g.A.stringify(s,null,4)),"utf8"),{props:{user:r,servers:t}}}catch(e){return{redirect:{destination:"/su",permanent:!1}}}}d=(x.then?(await x)():x)[0],s()}catch(e){s(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[883,9821,9796,6622],()=>t(95755));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3821,e.ids=[3821],e.modules={95755:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.r(r),s.d(r,{config:()=>v,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>S,getStaticProps:()=>p,reportWebVitals:()=>_,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>D,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>g});var a=s(63865),n=s(9455),i=s(30671),o=s(5583),c=s(19796),l=s(49690),d=e([l]);l=(d.then?(await d)():d)[0];let u=(0,i.M)(l,"default"),p=(0,i.M)(l,"getStaticProps"),S=(0,i.M)(l,"getStaticPaths"),h=(0,i.M)(l,"getServerSideProps"),v=(0,i.M)(l,"config"),_=(0,i.M)(l,"reportWebVitals"),g=(0,i.M)(l,"unstable_getStaticProps"),x=(0,i.M)(l,"unstable_getStaticPaths"),f=(0,i.M)(l,"unstable_getStaticParams"),m=(0,i.M)(l,"unstable_getServerProps"),D=(0,i.M)(l,"unstable_getServerSideProps"),y=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su/servers",pathname:"/su/servers",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:l});t()}catch(e){t(e)}})},73872:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.d(r,{A:()=>c});var a=s(8732);s(82015);var n=s(96089),i=s(75979),o=e([i]);function c({slugText:e,justIcon:r,noIcon:s,title:t,outlined:o,extraClasses:c}){return(0,a.jsxs)("div",{className:(0,i.twMerge)("button small-text hover:!bg-transparent",o?" outlined gray bg-white":" ghost light-gray",c),onClick:r=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:o?void 0:{padding:0},children:[!s&&(0,a.jsx)(n.A,{size:o?15:20}),!r&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:t||"Copy Slug"})]})}i=(o.then?(await o)():o)[0],t()}catch(e){t(e)}})},57168:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.d(r,{A:()=>l});var a=s(8732),n=s(73872),i=s(2459),o=s(75979),c=e([n,o]);function l({server:e,noLoadBalance:r}){return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(i.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:e.host}),r?(0,a.jsx)(a.Fragment,{}):e.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,o.twMerge)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:e.users?.map((e,r)=>a.jsx(d,{user:e},r))})})]})}function d({user:e}){return(0,a.jsx)("li",{className:(0,o.twMerge)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:e.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(n.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}[n,o]=c.then?(await c)():c,t()}catch(e){t(e)}})},66097:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.d(r,{A:()=>d});var a=s(8732),n=s(19796),i=s(82015),o=s.n(i),c=s(57168),l=e([c]);function d(){let e=o().useContext(n.AppContext).pageProps;e.user;let r=e.servers;return(0,a.jsxs)(o().Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,a.jsx)("span",{children:"All Servers"})]}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{children:"Add Server"})})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:r.map((e,r)=>(0,a.jsx)(c.A,{server:e,noLoadBalance:!0},r))}),(0,a.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}c=(l.then?(await l)():l)[0],t()}catch(e){t(e)}})},77489:(e,r,s)=>{s.d(r,{A:()=>l});var t=s(29021),a=s.n(t),n=s(60374),i=s(33873),o=s.n(i);function c(){let e=process.env.DSQL_SU_USER_ID||"1",r=o().resolve(process.cwd(),`./jsonData/dbSchemas/users/user-${e}`),s=`${r}/servers.json`;return{dir:r,path:s}}function l(){try{!function(){try{let e=c();if(!a().existsSync(e.path)){let r={host:String(process.env.DSQL_DB_TARGET_IP_ADDRESS),port:3306,primary:!0,loadBalanced:!0,users:[{host:String(process.env.DSQL_DB_HOST),name:"root",password:process.env.DSQL_MARIADB_ROOT_PASSWORD||"password"}]};a().writeFileSync(e.path,JSON.stringify([r]))}}catch(e){return console.log(`Error checking servers ${e.message}`),!1}}();let e=c();return n.A.parse(a().readFileSync(e.path,"utf-8"))}catch(e){console.log(`Error getting servers ${e.message}`);return}}},96089:(e,r,s)=>{s.d(r,{A:()=>t});let t=(0,s(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},71934:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(51779);async function a(...e){let r=(0,t.A)();try{if(!r)throw Error("No Connection provided to DB_HANDLER function!");let s=await r.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await r?.end()}}},60374:(e,r,s)=>{s.d(r,{A:()=>t});let t={parse:function(e,r){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,r)}catch(e){return}}},stringify:function(e,r,s){try{return JSON.stringify(e,r||void 0,s)}catch(e){return}}}},51779:(e,r,s)=>{s.d(r,{A:()=>n});var t=s(9973),a=s.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},49690:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.r(r),s.d(r,{default:()=>_,getServerSideProps:()=>g});var a=s(8732);s(82015);var n=s(29021),i=s.n(n),o=s(61197),c=s(40778),l=s(77489),d=s(66097),u=s(71934),p=s(33873),S=s.n(p),h=s(60374),v=e([d]);function _({user:e,data:r}){let s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(c.A,{head:s,user:e,children:(0,a.jsx)(d.A,{})})}async function g({req:e,res:r,query:s}){try{let r=await (0,o.A)(e);if(!r?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let s=(0,l.A)();if(!s)throw Error("No servers found");s.find(e=>e.primary);let t=(await (0,u.A)("SELECT user,host,password FROM mysql.user")).filter(e=>e.User.match(/^dsql_user|^root/i));return i().writeFileSync(S().resolve(process.cwd(),"./.tmp/wrt.json"),String(h.A.stringify(t,null,4)),"utf8"),{props:{user:r,servers:s}}}catch(e){return{redirect:{destination:"/su",permanent:!1}}}}d=(v.then?(await v)():v)[0],t()}catch(e){t(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var r=require("../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[883,9821,9796,6622],()=>s(95755));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/servers.js.nft.json b/dsql-app/.local_dist/server/pages/su/servers.js.nft.json index 1f08b10..09d55b4 100644 --- a/dsql-app/.local_dist/server/pages/su/servers.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/servers.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../.tmp/wrt.json","../../../../jsonData/dbSchemas/users/user-1/servers.json","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../node_modules/tailwind-merge/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../.tmp/wrt.json","../../../../jsonData/dbSchemas/users/user-1/servers.json","../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../node_modules/tailwind-merge/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users.js b/dsql-app/.local_dist/server/pages/su/users.js index 40890c7..27c980d 100644 --- a/dsql-app/.local_dist/server/pages/su/users.js +++ b/dsql-app/.local_dist/server/pages/su/users.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=5109,e.ids=[5109],e.modules={9591:(e,t,s)=>{s.r(t),s.d(t,{config:()=>N,default:()=>b,getServerSideProps:()=>w,getStaticPaths:()=>v,getStaticProps:()=>S,reportWebVitals:()=>P,routeModule:()=>D,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>_});var r={};s.r(r),s.d(r,{default:()=>f,getServerSideProps:()=>j});var a=s(63865),l=s(9455),i=s(30671),n=s(5583),o=s(19796),u=s(8732),c=s(82015),d=s.n(c),m=s(61197),p=s(40778),x=s(1360);function h({data:e}){return(0,u.jsx)(d().Fragment,{children:(0,u.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,u.jsxs)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:[(0,u.jsx)("h2",{className:"text-xl m-0",children:"Users"}),(0,u.jsx)("a",{href:"/su/users/new",className:"button",children:"Add User"})]}),(0,u.jsx)("div",{className:"flex-col items-stretch gap-10 w-full",children:e.users.map((e,t)=>(0,u.jsx)(x.A,{userObject:e},t+1))})]})})}var g=s(71934);function f({user:e,data:t}){let s=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,u.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,u.jsx)(p.A,{head:s,user:e,children:(0,u.jsx)(h,{data:t})})}async function j({req:e,res:t,query:s}){let r=await (0,m.A)(e);return r?.logged_in_status?{props:{user:r,data:{users:(await (0,g.A)("SELECT * FROM users")).reverse()}}}:{redirect:{destination:"/su/login",permanent:!1}}}let b=(0,i.M)(r,"default"),S=(0,i.M)(r,"getStaticProps"),v=(0,i.M)(r,"getStaticPaths"),w=(0,i.M)(r,"getServerSideProps"),N=(0,i.M)(r,"config"),P=(0,i.M)(r,"reportWebVitals"),_=(0,i.M)(r,"unstable_getStaticProps"),y=(0,i.M)(r,"unstable_getStaticPaths"),M=(0,i.M)(r,"unstable_getStaticParams"),q=(0,i.M)(r,"unstable_getServerProps"),A=(0,i.M)(r,"unstable_getServerSideProps"),D=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su/users",pathname:"/su/users",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:r})},1360:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),l=s.n(a);function i({userObject:e,userPage:t}){let s=Object.keys(e),[a,i]=l().useState(!1),[n,o]=l().useState(0),[u,c]=l().useState(!t);return(0,r.jsxs)("div",{className:"card col green w-full overflow-hidden"+(u?t?" h-[100px]":" h-[85px]":" "),children:[(0,r.jsxs)("div",{className:"items-center w-full",children:[(0,r.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,r.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,r.jsxs)("div",{className:"ml-auto",children:[(0,r.jsx)("button",{className:"outlined gray small-text",onClick:e=>{u?c(!1):c(!0)},children:u?"More Details":"Collapse"}),!t&&(0,r.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,r.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,a)=>(0,r.jsxs)(l().Fragment,{children:[(0,r.jsx)("div",{children:(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,r.jsx)("b",{children:e[t]})]})}),a{c(!0)},children:"Collapse"})]})}},71934:(e,t,s)=>{s.d(t,{A:()=>r});async function r(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},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,9796,6622],()=>s(9591));module.exports=r})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5109,e.ids=[5109],e.modules={9591:(e,s,r)=>{r.r(s),r.d(s,{config:()=>j,default:()=>v,getServerSideProps:()=>b,getStaticPaths:()=>f,getStaticProps:()=>g,reportWebVitals:()=>N,routeModule:()=>B,unstable_getServerProps:()=>w,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>A,unstable_getStaticPaths:()=>P,unstable_getStaticProps:()=>L});var t={};r.r(t),r.d(t,{default:()=>x,getServerSideProps:()=>D});var a=r(63865),n=r(9455),l=r(30671),o=r(5583),i=r(19796),c=r(8732),u=r(82015),d=r.n(u),p=r(61197),S=r(40778),_=r(1360);function m({data:e}){return(0,c.jsx)(d().Fragment,{children:(0,c.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,c.jsxs)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"Users"}),(0,c.jsx)("a",{href:"/su/users/new",className:"button",children:"Add User"})]}),(0,c.jsx)("div",{className:"flex-col items-stretch gap-10 w-full",children:e.users.map((e,s)=>(0,c.jsx)(_.A,{userObject:e},s+1))})]})})}var h=r(71934);function x({user:e,data:s}){let r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,c.jsx)(S.A,{head:r,user:e,children:(0,c.jsx)(m,{data:s})})}async function D({req:e,res:s,query:r}){let t=await (0,p.A)(e);return t?.logged_in_status?{props:{user:t,data:{users:(await (0,h.A)("SELECT * FROM users")).reverse()}}}:{redirect:{destination:"/su/login",permanent:!1}}}let v=(0,l.M)(t,"default"),g=(0,l.M)(t,"getStaticProps"),f=(0,l.M)(t,"getStaticPaths"),b=(0,l.M)(t,"getServerSideProps"),j=(0,l.M)(t,"config"),N=(0,l.M)(t,"reportWebVitals"),L=(0,l.M)(t,"unstable_getStaticProps"),P=(0,l.M)(t,"unstable_getStaticPaths"),A=(0,l.M)(t,"unstable_getStaticParams"),w=(0,l.M)(t,"unstable_getServerProps"),O=(0,l.M)(t,"unstable_getServerSideProps"),B=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su/users",pathname:"/su/users",bundlePath:"",filename:""},components:{App:i.default,Document:o.default},userland:t})},1360:(e,s,r)=>{r.d(s,{A:()=>l});var t=r(8732),a=r(82015),n=r.n(a);function l({userObject:e,userPage:s}){let r=Object.keys(e),[a,l]=n().useState(!1),[o,i]=n().useState(0),[c,u]=n().useState(!s);return(0,t.jsxs)("div",{className:"card col green w-full overflow-hidden"+(c?s?" h-[100px]":" h-[85px]":" "),children:[(0,t.jsxs)("div",{className:"items-center w-full",children:[(0,t.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(s?" w-16 h-16":" w-12 h-12")}),!s&&(0,t.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,t.jsxs)("div",{className:"ml-auto",children:[(0,t.jsx)("button",{className:"outlined gray small-text",onClick:e=>{c?u(!1):u(!0)},children:c?"More Details":"Collapse"}),!s&&(0,t.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,t.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((s,a)=>(0,t.jsxs)(n().Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("span",{style:{wordBreak:"break-all"},children:[s,":"," ",(0,t.jsx)("b",{children:e[s]})]})}),a{u(!0)},children:"Collapse"})]})}},71934:(e,s,r)=>{r.d(s,{A:()=>a});var t=r(51779);async function a(...e){let s=(0,t.A)();try{if(!s)throw Error("No Connection provided to DB_HANDLER function!");let r=await s.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await s?.end()}}},51779:(e,s,r)=>{r.d(s,{A:()=>n});var t=r(9973),a=r.n(t);function n(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||a()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")}};var s=require("../../webpack-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[883,9821,9796,6622],()=>r(9591));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users.js.nft.json b/dsql-app/.local_dist/server/pages/su/users.js.nft.json index 0d12e41..759c0a8 100644 --- a/dsql-app/.local_dist/server/pages/su/users.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/users.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3496.js","../../chunks/3634.js","../../chunks/3704.js","../../chunks/3791.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5839.js","../../chunks/5954.js","../../chunks/6160.js","../../chunks/6202.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/8704.js","../../chunks/8760.js","../../chunks/883.js","../../chunks/9796.js","../../chunks/9821.js","../../chunks/9901.js","../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/bignumber.js/bignumber.js","../../../../node_modules/bignumber.js/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/safe-buffer/index.js","../../../../node_modules/safe-buffer/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1251.js","../../chunks/1579.js","../../chunks/194.js","../../chunks/2282.js","../../chunks/3155.js","../../chunks/3474.js","../../chunks/3704.js","../../chunks/4627.js","../../chunks/5392.js","../../chunks/5771.js","../../chunks/5954.js","../../chunks/6133.js","../../chunks/6202.js","../../chunks/6247.js","../../chunks/6521.js","../../chunks/6622.js","../../chunks/6903.js","../../chunks/725.js","../../chunks/7303.js","../../chunks/7769.js","../../chunks/8704.js","../../chunks/883.js","../../chunks/9136.js","../../chunks/9240.js","../../chunks/9796.js","../../chunks/9814.js","../../chunks/9821.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/[single].js b/dsql-app/.local_dist/server/pages/su/users/[single].js index 3675600..11f3b9c 100644 --- a/dsql-app/.local_dist/server/pages/su/users/[single].js +++ b/dsql-app/.local_dist/server/pages/su/users/[single].js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3632,e.ids=[3632],e.modules={17981:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{config:()=>p,default:()=>u,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>h,reportWebVitals:()=>f,routeModule:()=>b,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>j});var r=s(63865),l=s(9455),i=s(30671),n=s(5583),c=s(19796),o=s(24747),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,i.M)(o,"default"),h=(0,i.M)(o,"getStaticProps"),m=(0,i.M)(o,"getStaticPaths"),x=(0,i.M)(o,"getServerSideProps"),p=(0,i.M)(o,"config"),f=(0,i.M)(o,"reportWebVitals"),j=(0,i.M)(o,"unstable_getStaticProps"),g=(0,i.M)(o,"unstable_getStaticPaths"),y=(0,i.M)(o,"unstable_getStaticParams"),v=(0,i.M)(o,"unstable_getServerProps"),w=(0,i.M)(o,"unstable_getServerSideProps"),b=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su/users/[single]",pathname:"/su/users/[single]",bundlePath:"",filename:""},components:{App:c.default,Document:n.default},userland:o});a()}catch(e){a(e)}})},6789:(e,t,s)=>{s.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:s,language:a="javascript",entry:r,jsonTextEditors:l,editorRef:i,readOnly:n,initialContent:c,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{s?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==a)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:n,...o}),i&&t?.fieldName&&(l?.current.push({fieldName:t.fieldName,ref:i}),i.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(58526);function l({selectOptions:e,name:t,onChangeHandler:s,required:l,setAlert:i,title:n,defaultValue:c,info:o,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.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:[n&&(0,a.jsxs)("label",{htmlFor:t,children:[n,l?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:l,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:s,title:r}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:r},t+1)})}),(0,a.jsx)(r.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:u,onMouseLeave:u,onClick:u,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"})}}s(82015)},84894:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});var r=s(8732);s(46169);var l=s(82015),i=s.n(l);s(6789);var n=s(75979),c=e([n]);function o({editorRef:e,content:t,readOnly:s,language:a="javascript",options:l,wrapperProps:c}){try{let e=i().useRef(),[t,s]=i().useState(0);return(0,r.jsx)("div",{...c,ref:e,className:(0,n.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}n=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},59023:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(23293);function l(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(r.A,{})})}s(82015)},64126:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732),r=s(82015),l=s.n(r),i=s(96089);function n({content:e,language:t,style:s,showCopy:r}){let[n,c]=l().useState(!1),o=()=>{c(!0)},d={};return(0,a.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:s?{...s,...d}:d,children:[(0,a.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,a.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(()=>{o()})},children:(0,a.jsx)(i.A,{className:"text-white",size:20})})]})}},83180:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>x});var r=s(8732),l=s(82015),i=s.n(l),n=s(1360),c=s(59023),o=s(11201),d=s(46169),u=s(16757),h=s(58506),m=e([h]);function x({data:e}){let t=e.user,[s,a]=i().useState(0),[l,m]=i().useState(!1);return(0,r.jsxs)(i().Fragment,{children:[(0,r.jsxs)("div",{className:"w-full justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]}),(0,r.jsx)("span",{className:"info w-auto gray font-normal",children:t.email})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("button",{onClick:e=>{window.confirm(`Create a new backup for ${t.first_name}?`)&&(m(!0),(0,d.A)("/api/admin/addUserBackup",{method:"post",body:{user:t}}).then(e=>{console.log(e),e.success&&a(e=>e+1),setTimeout(()=>{m(!1)},1e3)}))},className:"relative",children:[l&&(0,r.jsx)(u.A,{width:"20px"}),"Backup User"]})})]}),(0,r.jsx)(n.A,{userObject:t,userPage:!0}),(0,r.jsx)(o.A,{user:t,refresh:s,setRefresh:a}),(0,r.jsx)(h.A,{user:t,refresh:s,setRefresh:a})]})}h=(m.then?(await m)():m)[0],a()}catch(e){a(e)}})},11201:(e,t,s)=>{s.d(t,{A:()=>c});var a=s(8732),r=s(82015),l=s.n(r),i=s(16757);s(46169);var n=s(47338);function c({user:e,refresh:t,setRefresh:s}){let[r,c]=l().useState(!1),[o,d]=l().useState([]);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Backups"}),!o&&(0,a.jsx)(i.A,{width:"20px",position:"relative"}),o&&!o[0]&&(0,a.jsx)("div",{children:"This user has no backups"}),o&&o[0]&&o.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((t,s)=>{let r=new Date(parseInt(t));return(0,a.jsxs)("a",{href:`/su/users/${e.id}/${t}`,className:"card w-full items-center",children:[(0,a.jsx)(n.A,{}),(0,a.jsx)("b",{children:"Backup:"}),(0,a.jsx)("span",{children:r.toString()})]},t)})]})}},1360:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732),r=s(82015),l=s.n(r);function i({userObject:e,userPage:t}){let s=Object.keys(e),[r,i]=l().useState(!1),[n,c]=l().useState(0),[o,d]=l().useState(!t);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?d(!1):d(!0)},children:o?"More Details":"Collapse"}),!t&&(0,a.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,r)=>(0,a.jsxs)(l().Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,a.jsx)("b",{children:e[t]})]})}),r{d(!0)},children:"Collapse"})]})}},58506:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>d});var r=s(8732),l=s(82015),i=s.n(l);s(46169);var n=s(50233),c=s(97012),o=e([c]);function d({user:e,refresh:t,setRefresh:s}){let[a,l]=i().useState(!1),[o,d]=i().useState(null),[u,h]=i().useState(null);return(0,r.jsxs)("div",{className:"paper w-full",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"User Data"}),o&&(0,r.jsx)(n.A,{user:e,rootFilesArray:o}),u&&(0,r.jsx)(c.A,{user:e,databases:u})]})}c=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},97012:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>h});var r=s(8732),l=s(82015),i=s.n(l),n=s(16757),c=s(46169),o=s(64457),d=s(80830),u=e([o]);function h({user:e,databases:t}){try{let s=i().useRef(),a=i().useRef(),l=i().useRef(t[0]),[u,h]=i().useState(!1),[m,x]=i().useState(!1),[p,f]=i().useState(0),[j,g]=i().useState(t[0]),[y,v]=i().useState([]);return(0,r.jsxs)("div",{className:"paper w-full",children:[(0,r.jsx)("h3",{className:"text-lg m-0",children:(0,r.jsx)("span",{children:"Database Shell"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(d.A,{selectOptions:t.map(t=>({payload:t,title:t?.replace(RegExp(`datasquirel_user_${e.id}_`),"")})),name:"select-database",onChangeHandler:e=>{g(e.target.value),l.current=e.target.value},title:"Databases"}),j&&y&&(0,r.jsx)(d.A,{selectOptions:y.map(e=>({payload:e,title:e})),name:"select-database-table",title:"Tables"})]}),(0,r.jsxs)("div",{className:"w-full flex-col relative",children:[(0,r.jsx)("div",{ref:s,id:"ace-editor-wrapper",style:{height:"100px"}}),(0,r.jsxs)("button",{className:"absolute right-4 bottom-4"+(u?" pointer-events-none opacity-70":""),onClick:e=>{!function(){h(!0);let e=a.current?a.current.getValue():null;if(!e?.match(/./))return;let t=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,c.A)("/api/admin/runUserDbQuery",{method:"post",body:{database:l.current,query:t}},!0).then(e=>{e.success?x(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{h(!1)},500)})}()},children:[u&&(0,r.jsx)(n.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),u?"Running Query ...":"Run Query"]})]}),m&&!u&&(0,r.jsx)(o.A,{data:m,user:e})]})}catch(e){return console.log(e),(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("section",{className:"card",children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})})}}o=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},64457:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});var r=s(8732),l=s(84894),i=s(82015),n=s.n(i),c=e([l]);function o({data:e,user:t}){try{return Object.keys(e[0]),(0,r.jsx)(n().Fragment,{children:(0,r.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,r.jsx)(l.A,{content:JSON.stringify(e,null,4)})})})}catch(e){return(0,r.jsx)(n().Fragment,{children:(0,r.jsx)("span",{children:"No results"})})}}l=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},50233:(e,t,s)=>{s.d(t,{A:()=>m});var a=s(8732),r=s(82015),l=s.n(r),i=s(64126),n=s(46169),c=s(66916);function o({user:e,file:t,activeFile:s,setActiveFile:r}){return(0,a.jsxs)("button",{className:"justify-start gap-4"+(s?.path===`${t.root}/${t.name}`?" dark":" light-gray"),onClick:s=>{(0,n.A)("/api/admin/grabFile",{method:"post",body:{user:e,type:"file",path:`${t.root}/${t.name}`}}).then(e=>{if(e.success)try{r({title:t.name,path:`${t.root}/${t.name}`,data:JSON.stringify(JSON.parse(e.data),null,4)})}catch(s){r({title:t.name,path:`${t.root}/${t.name}`,data:e.data})}})},children:[(0,a.jsx)(c.A,{}),t.name]})}var d=s(96089),u=s(54677);function h({user:e,file:t,activeFile:s,setActiveFile:r}){let[i,n]=l().useState(null),[c,m]=l().useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full items-start relative",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(d.A,{fontSize:"small",className:"text-slate-400"}),t.name,(0,a.jsx)(u.A,{className:"ml-auto absolute right-2"})]}),t.content&&(0,a.jsx)("div",{className:"flex-col w-full pl-4 items-start ml-2",style:{borderLeft:"1px solid var(--slate-200)"},children:t.content.map((t,l)=>t?.type?.match(/file/i)?(0,a.jsx)(o,{user:e,file:t,activeFile:s,setActiveFile:r},l):(0,a.jsx)(h,{user:e,file:t,activeFile:s,setActiveFile:r},l))})]})}function m({user:e,rootFilesArray:t}){let[s,r]=l().useState(null);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:"User Files"}),(0,a.jsxs)("div",{className:"w-full items-start max-w-7xl",children:[(0,a.jsx)("div",{className:"flex-col items-stretch w-[40%]",children:t.map((t,l)=>t?.type?.match(/file/)?(0,a.jsx)(o,{user:e,file:t,activeFile:s||void 0,setActiveFile:r},l):(0,a.jsx)(h,{user:e,file:t,activeFile:s||void 0,setActiveFile:r},l))}),(0,a.jsx)("div",{className:"grow flex-col items-start justify-start w-[60%] h-full -mt-4",children:s&&(0,a.jsx)(i.A,{content:s.data||"",language:"javascript"})})]})]})}},23293:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},96089:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},47338:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FolderSync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},54677:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},71934:(e,t,s)=>{s.d(t,{A:()=>a});async function a(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},24747:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{default:()=>h,getServerSideProps:()=>m});var r=s(8732),l=s(82015),i=s.n(l),n=s(61197),c=s(40778),o=s(83180),d=s(71934),u=e([o]);function h({user:e,data:t}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"}),(0,r.jsxs)(i().Fragment,{children:[(0,r.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,r.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"})]})]});return(0,r.jsx)(c.A,{head:s,user:e,children:(0,r.jsx)(o.A,{data:t})})}async function m({req:e,res:t,query:s}){let a=await (0,n.A)(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let r=await (0,d.A)(`SELECT * FROM users WHERE id='${s.single}'`);return r?.[0]?{props:{user:a,data:{user:r?.[0]||{}}}}:{redirect:{destination:"/su/users",permanent:!1}}}o=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622],()=>s(17981));module.exports=a})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3632,e.ids=[3632],e.modules={17981:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>h,reportWebVitals:()=>f,routeModule:()=>w,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>v});var r=s(63865),l=s(9455),n=s(30671),i=s(5583),c=s(19796),o=s(24747),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,n.M)(o,"default"),h=(0,n.M)(o,"getStaticProps"),m=(0,n.M)(o,"getStaticPaths"),p=(0,n.M)(o,"getServerSideProps"),x=(0,n.M)(o,"config"),f=(0,n.M)(o,"reportWebVitals"),v=(0,n.M)(o,"unstable_getStaticProps"),j=(0,n.M)(o,"unstable_getStaticPaths"),g=(0,n.M)(o,"unstable_getStaticParams"),y=(0,n.M)(o,"unstable_getServerProps"),S=(0,n.M)(o,"unstable_getServerSideProps"),w=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su/users/[single]",pathname:"/su/users/[single]",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:o});a()}catch(e){a(e)}})},6789:(e,t,s)=>{s.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:s,language:a="javascript",entry:r,jsonTextEditors:l,editorRef:n,readOnly:i,initialContent:c,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{s?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==a)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...o}),n&&t?.fieldName&&(l?.current.push({fieldName:t.fieldName,ref:n}),n.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},80830:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(58526);function l({selectOptions:e,name:t,onChangeHandler:s,required:l,setAlert:n,title:i,defaultValue:c,info:o,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.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:[i&&(0,a.jsxs)("label",{htmlFor:t,children:[i,l?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:l,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:s,title:r}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:r},t+1)})}),(0,a.jsx)(r.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:u,onMouseLeave:u,onClick:u,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"})}}s(82015)},84894:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});var r=s(8732);s(46169);var l=s(82015),n=s.n(l);s(6789);var i=s(75979),c=e([i]);function o({editorRef:e,content:t,readOnly:s,language:a="javascript",options:l,wrapperProps:c}){try{let e=n().useRef(),[t,s]=n().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)(n().Fragment,{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},59023:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(23293);function l(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(r.A,{})})}s(82015)},64126:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732),r=s(82015),l=s.n(r),n=s(96089);function i({content:e,language:t,style:s,showCopy:r}){let[i,c]=l().useState(!1),o=()=>{c(!0)},d={};return(0,a.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:s?{...s,...d}:d,children:[(0,a.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,a.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(()=>{o()})},children:(0,a.jsx)(n.A,{className:"text-white",size:20})})]})}},83180:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>p});var r=s(8732),l=s(82015),n=s.n(l),i=s(1360),c=s(59023),o=s(11201),d=s(46169),u=s(16757),h=s(58506),m=e([h]);function p({data:e}){let t=e.user,[s,a]=n().useState(0),[l,m]=n().useState(!1);return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsxs)("div",{className:"w-full justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]}),(0,r.jsx)("span",{className:"info w-auto gray font-normal",children:t.email})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("button",{onClick:e=>{window.confirm(`Create a new backup for ${t.first_name}?`)&&(m(!0),(0,d.A)("/api/admin/addUserBackup",{method:"post",body:{user:t}}).then(e=>{console.log(e),e.success&&a(e=>e+1),setTimeout(()=>{m(!1)},1e3)}))},className:"relative",children:[l&&(0,r.jsx)(u.A,{width:"20px"}),"Backup User"]})})]}),(0,r.jsx)(i.A,{userObject:t,userPage:!0}),(0,r.jsx)(o.A,{user:t,refresh:s,setRefresh:a}),(0,r.jsx)(h.A,{user:t,refresh:s,setRefresh:a})]})}h=(m.then?(await m)():m)[0],a()}catch(e){a(e)}})},11201:(e,t,s)=>{s.d(t,{A:()=>c});var a=s(8732),r=s(82015),l=s.n(r),n=s(16757);s(46169);var i=s(47338);function c({user:e,refresh:t,setRefresh:s}){let[r,c]=l().useState(!1),[o,d]=l().useState([]);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Backups"}),!o&&(0,a.jsx)(n.A,{width:"20px",position:"relative"}),o&&!o[0]&&(0,a.jsx)("div",{children:"This user has no backups"}),o&&o[0]&&o.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((t,s)=>{let r=new Date(parseInt(t));return(0,a.jsxs)("a",{href:`/su/users/${e.id}/${t}`,className:"card w-full items-center",children:[(0,a.jsx)(i.A,{}),(0,a.jsx)("b",{children:"Backup:"}),(0,a.jsx)("span",{children:r.toString()})]},t)})]})}},1360:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732),r=s(82015),l=s.n(r);function n({userObject:e,userPage:t}){let s=Object.keys(e),[r,n]=l().useState(!1),[i,c]=l().useState(0),[o,d]=l().useState(!t);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?d(!1):d(!0)},children:o?"More Details":"Collapse"}),!t&&(0,a.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,r)=>(0,a.jsxs)(l().Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,a.jsx)("b",{children:e[t]})]})}),r{d(!0)},children:"Collapse"})]})}},58506:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>d});var r=s(8732),l=s(82015),n=s.n(l);s(46169);var i=s(50233),c=s(97012),o=e([c]);function d({user:e,refresh:t,setRefresh:s}){let[a,l]=n().useState(!1),[o,d]=n().useState(null),[u,h]=n().useState(null);return(0,r.jsxs)("div",{className:"paper w-full",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"User Data"}),o&&(0,r.jsx)(i.A,{user:e,rootFilesArray:o}),u&&(0,r.jsx)(c.A,{user:e,databases:u})]})}c=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},97012:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>h});var r=s(8732),l=s(82015),n=s.n(l),i=s(16757),c=s(46169),o=s(64457),d=s(80830),u=e([o]);function h({user:e,databases:t}){try{let s=n().useRef(),a=n().useRef(),l=n().useRef(t[0]),[u,h]=n().useState(!1),[m,p]=n().useState(!1),[x,f]=n().useState(0),[v,j]=n().useState(t[0]),[g,y]=n().useState([]);return(0,r.jsxs)("div",{className:"paper w-full",children:[(0,r.jsx)("h3",{className:"text-lg m-0",children:(0,r.jsx)("span",{children:"Database Shell"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(d.A,{selectOptions:t.map(t=>({payload:t,title:t?.replace(RegExp(`datasquirel_user_${e.id}_`),"")})),name:"select-database",onChangeHandler:e=>{j(e.target.value),l.current=e.target.value},title:"Databases"}),v&&g&&(0,r.jsx)(d.A,{selectOptions:g.map(e=>({payload:e,title:e})),name:"select-database-table",title:"Tables"})]}),(0,r.jsxs)("div",{className:"w-full flex-col relative",children:[(0,r.jsx)("div",{ref:s,id:"ace-editor-wrapper",style:{height:"100px"}}),(0,r.jsxs)("button",{className:"absolute right-4 bottom-4"+(u?" pointer-events-none opacity-70":""),onClick:e=>{!function(){h(!0);let e=a.current?a.current.getValue():null;if(!e?.match(/./))return;let t=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,c.A)("/api/admin/runUserDbQuery",{method:"post",body:{database:l.current,query:t}},!0).then(e=>{e.success?p(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{h(!1)},500)})}()},children:[u&&(0,r.jsx)(i.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),u?"Running Query ...":"Run Query"]})]}),m&&!u&&(0,r.jsx)(o.A,{data:m,user:e})]})}catch(e){return console.log(e),(0,r.jsx)(n().Fragment,{children:(0,r.jsx)("section",{className:"card",children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})})}}o=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},64457:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});var r=s(8732),l=s(84894),n=s(82015),i=s.n(n),c=e([l]);function o({data:e,user:t}){try{return Object.keys(e[0]),(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,r.jsx)(l.A,{content:JSON.stringify(e,null,4)})})})}catch(e){return(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("span",{children:"No results"})})}}l=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},50233:(e,t,s)=>{s.d(t,{A:()=>m});var a=s(8732),r=s(82015),l=s.n(r),n=s(64126),i=s(46169),c=s(66916);function o({user:e,file:t,activeFile:s,setActiveFile:r}){return(0,a.jsxs)("button",{className:"justify-start gap-4"+(s?.path===`${t.root}/${t.name}`?" dark":" light-gray"),onClick:s=>{(0,i.A)("/api/admin/grabFile",{method:"post",body:{user:e,type:"file",path:`${t.root}/${t.name}`}}).then(e=>{if(e.success)try{r({title:t.name,path:`${t.root}/${t.name}`,data:JSON.stringify(JSON.parse(e.data),null,4)})}catch(s){r({title:t.name,path:`${t.root}/${t.name}`,data:e.data})}})},children:[(0,a.jsx)(c.A,{}),t.name]})}var d=s(96089),u=s(54677);function h({user:e,file:t,activeFile:s,setActiveFile:r}){let[n,i]=l().useState(null),[c,m]=l().useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full items-start relative",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(d.A,{fontSize:"small",className:"text-slate-400"}),t.name,(0,a.jsx)(u.A,{className:"ml-auto absolute right-2"})]}),t.content&&(0,a.jsx)("div",{className:"flex-col w-full pl-4 items-start ml-2",style:{borderLeft:"1px solid var(--slate-200)"},children:t.content.map((t,l)=>t?.type?.match(/file/i)?(0,a.jsx)(o,{user:e,file:t,activeFile:s,setActiveFile:r},l):(0,a.jsx)(h,{user:e,file:t,activeFile:s,setActiveFile:r},l))})]})}function m({user:e,rootFilesArray:t}){let[s,r]=l().useState(null);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:"User Files"}),(0,a.jsxs)("div",{className:"w-full items-start max-w-7xl",children:[(0,a.jsx)("div",{className:"flex-col items-stretch w-[40%]",children:t.map((t,l)=>t?.type?.match(/file/)?(0,a.jsx)(o,{user:e,file:t,activeFile:s||void 0,setActiveFile:r},l):(0,a.jsx)(h,{user:e,file:t,activeFile:s||void 0,setActiveFile:r},l))}),(0,a.jsx)("div",{className:"grow flex-col items-start justify-start w-[60%] h-full -mt-4",children:s&&(0,a.jsx)(n.A,{content:s.data||"",language:"javascript"})})]})]})}},23293:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},96089:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},47338:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FolderSync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},54677:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},71934:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(51779);async function r(...e){let t=(0,a.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(9973),r=s.n(a);function l(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||r()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},24747:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{default:()=>h,getServerSideProps:()=>m});var r=s(8732),l=s(82015),n=s.n(l),i=s(61197),c=s(40778),o=s(83180),d=s(71934),u=e([o]);function h({user:e,data:t}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"}),(0,r.jsxs)(n().Fragment,{children:[(0,r.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,r.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"})]})]});return(0,r.jsx)(c.A,{head:s,user:e,children:(0,r.jsx)(o.A,{data:t})})}async function m({req:e,res:t,query:s}){let a=await (0,i.A)(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let r=await (0,d.A)(`SELECT * FROM users WHERE id='${s.single}'`);return r?.[0]?{props:{user:a,data:{user:r?.[0]||{}}}}:{redirect:{destination:"/su/users",permanent:!1}}}o=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9796,6622],()=>s(17981));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json b/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json index 1c025f7..2f68b07 100644 --- a/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../node_modules/tailwind-merge/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../node_modules/tailwind-merge/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json b/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json index bdd5bfa..71933b0 100644 --- a/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3496.js","../../../chunks/3634.js","../../../chunks/3704.js","../../../chunks/3791.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5839.js","../../../chunks/5954.js","../../../chunks/6160.js","../../../chunks/6202.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/8704.js","../../../chunks/8760.js","../../../chunks/883.js","../../../chunks/9796.js","../../../chunks/9821.js","../../../chunks/9901.js","../../../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1251.js","../../../chunks/1579.js","../../../chunks/194.js","../../../chunks/2282.js","../../../chunks/3155.js","../../../chunks/3474.js","../../../chunks/3704.js","../../../chunks/4627.js","../../../chunks/5392.js","../../../chunks/5771.js","../../../chunks/5954.js","../../../chunks/6133.js","../../../chunks/6202.js","../../../chunks/6247.js","../../../chunks/6521.js","../../../chunks/6622.js","../../../chunks/6903.js","../../../chunks/725.js","../../../chunks/7303.js","../../../chunks/7769.js","../../../chunks/8704.js","../../../chunks/883.js","../../../chunks/9136.js","../../../chunks/9240.js","../../../chunks/9796.js","../../../chunks/9814.js","../../../chunks/9821.js","../../../webpack-runtime.js"]} \ 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 7d969e8..870af60 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 33cb693..470fac3 100644 --- a/dsql-app/.local_dist/server/pages/unsubscribe.js +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js @@ -1 +1 @@ -"use strict";(()=>{var e={};e.id=3751,e.ids=[3220,3751],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},41531:(e,t,r)=>{r.r(t),r.d(t,{config:()=>P,default:()=>S,getServerSideProps:()=>E,getStaticPaths:()=>y,getStaticProps:()=>b,reportWebVitals:()=>v,routeModule:()=>w,unstable_getServerProps:()=>O,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>A});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>j});var n=r(63865),a=r(9455),i=r(30671),o=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),m=r(16757),d=r(91258),h=r(92702),x=r(46169),f=r(1013),g=r(71934);function _({user:e,email:t,productionEnvironment:r,existingAlerts:s}){let n="Unsubscribe | Datasquirel",a="Unsubscribe from email alerts",i=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:n}),(0,l.jsx)("meta",{name:"description",content:a}),(0,l.jsx)(d.A,{pageTitle:n,pageDescription:a,pagePathname:"/unsubscribe"})]}),[o,c]=p().useState(!1);return(0,l.jsx)(p().Fragment,{children:(0,l.jsx)(f.A,{head:i,user:e,productionEnvironment:r,children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[o&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("div",{className:"flex-col",children:[(0,l.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!t&&(0,l.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,l.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,l.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),t&&(0,l.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:r=>{r.preventDefault(),c(!0);let s=r.target;(0,x.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:s.alerts_checkbox.checked,userId:e?.id?e.id:null}}).then(e=>{console.log(e),c(!1)})},children:[(0,l.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!s,className:"w-6 h-6"}),(0,l.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,l.jsx)("button",{children:"Save Settings"})]})]})]})})})})}async function j({req:e,res:t,query:r}){let s=process.env.DSQL_HOST_ENV,n=await (0,h.A)(e,t),a=r.email?r.email:n?.email?n.email:null,i=await (0,g.A)(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:n,email:a,productionEnvironment:s,existingAlerts:!i[0]}}}let S=(0,i.M)(s,"default"),b=(0,i.M)(s,"getStaticProps"),y=(0,i.M)(s,"getStaticPaths"),E=(0,i.M)(s,"getServerSideProps"),P=(0,i.M)(s,"config"),v=(0,i.M)(s,"reportWebVitals"),A=(0,i.M)(s,"unstable_getStaticProps"),N=(0,i.M)(s,"unstable_getStaticPaths"),D=(0,i.M)(s,"unstable_getStaticParams"),O=(0,i.M)(s,"unstable_getServerProps"),k=(0,i.M)(s,"unstable_getServerSideProps"),w=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:c.default,Document:o.default},userland:s})},91258:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),n=r(82015),a=r.n(n);function i({pageTitle:e,pageDescription:t,pagePathname:r,aceEditor:n}){return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,r)=>{r.d(t,{A:()=>c});var s=r(71934),n=r(71205),a=r(29021),i=r.n(a),o=r(41939);async function c(e,t,r){try{let{keyCookieName:a,csrfCookieName:c}=(0,o.A)();if(!e.cookies?.[a]?.match(/./))throw Error("Request Cookies not Found!");let l=(0,n.A)({encryptedString:e.cookies[a]});if(!l)throw Error("Couldn't decrypt auth cookie!");let u=JSON.parse(l);if(!u.csrf_k)throw Error("No `csrf_k` present in user Object!");if(r&&!Object.keys(e.headers).find(e=>e.includes(u.csrf_k)))throw Error("Deep Auth Failed. `csrf` key not found in request headers!");let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)throw Error("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.");if(r&&!i().existsSync(`${p}/${u.csrf_k}`))throw Error("Key not found in Auth Keys Folder!");if(0==u.verification_status&&!r){let e=await (0,s.A)(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}if(u?.date&&Date.now()-u.date>6048e5)throw Error("Key expired!");return u}catch(t){return console.log(`userAuth Error for ${e.url}: ${t.message}`),null}}},41939:(e,t,r)=>{r.d(t,{A:()=>s});function s(e){let t=process.env.DSQL_COOKIES_PREFIX||"dsql_",r=process.env.DSQL_COOKIES_KEY_NAME||"key",s=process.env.DSQL_COOKIES_CSRF_NAME||"csrf",n=process.env.DSQL_COOKIES_ONE_TIME_CODE_NAME||"one-time-code",a=e?.database?.replace(/^datasquirel_user_\d+_/,"")||process.env.DSQL_DB_NAME?.replace(/^datasquirel_user_\d+_/,""),i=t;e?.userId&&(i+=`user_${e.userId}_`),a&&(i+=`${a}_`),i+=r;let o=t;e?.userId&&(o+=`user_${e.userId}_`),a&&(o+=`${a}_`),o+=s;let c=t;return e?.userId&&(c+=`user_${e.userId}_`),a&&(c+=`${a}_`),{keyCookieName:i,csrfCookieName:o,oneTimeCodeName:c+=n}}},71205:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(55511),n=r(79428);function a({encryptedString:e,encryptionKey:t,encryptionSalt:r}){if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=(0,s.scryptSync)(a,i,o),l=n.Buffer.alloc(16,0),u=(0,s.createDecipheriv)("aes-192-cbc",c,l);try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});async function s(...e){let t=global.DSQL_DB_CONN;try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},5583:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var n=r(20883);function a(){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}});var r=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[883,9821,9796],()=>r(41531));module.exports=s})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3751,e.ids=[3220,3751],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,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}}})},41531:(e,t,s)=>{s.r(t),s.d(t,{config:()=>P,default:()=>f,getServerSideProps:()=>v,getStaticPaths:()=>D,getStaticProps:()=>b,reportWebVitals:()=>A,routeModule:()=>M,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>y});var r={};s.r(r),s.d(r,{default:()=>_,getServerSideProps:()=>j});var n=s(63865),a=s(9455),o=s(30671),i=s(5583),c=s(19796),l=s(8732),p=s(82015),u=s.n(p),m=s(16757),d=s(91258),x=s(92702),h=s(46169),g=s(26228),S=s(71934);function _({user:e,email:t,productionEnvironment:s,existingAlerts:r}){let n="Unsubscribe | Datasquirel",a="Unsubscribe from email alerts",o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:n}),(0,l.jsx)("meta",{name:"description",content:a}),(0,l.jsx)(d.A,{pageTitle:n,pageDescription:a,pagePathname:"/unsubscribe"})]}),[i,c]=u().useState(!1);return(0,l.jsx)(u().Fragment,{children:(0,l.jsx)(g.A,{head:o,user:e,productionEnvironment:s,children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[i&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("div",{className:"flex-col",children:[(0,l.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!t&&(0,l.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,l.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,l.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),t&&(0,l.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:s=>{s.preventDefault(),c(!0);let r=s.target;(0,h.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 (0,x.A)(e,t),a=s.email?s.email:n?.email?n.email:null,o=await (0,S.A)(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:n,email:a,productionEnvironment:r,existingAlerts:!o[0]}}}let f=(0,o.M)(r,"default"),b=(0,o.M)(r,"getStaticProps"),D=(0,o.M)(r,"getStaticPaths"),v=(0,o.M)(r,"getServerSideProps"),P=(0,o.M)(r,"config"),A=(0,o.M)(r,"reportWebVitals"),y=(0,o.M)(r,"unstable_getStaticProps"),L=(0,o.M)(r,"unstable_getStaticPaths"),E=(0,o.M)(r,"unstable_getStaticParams"),N=(0,o.M)(r,"unstable_getServerProps"),O=(0,o.M)(r,"unstable_getServerSideProps"),M=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(8732),n=s(82015),a=s.n(n);function o({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:n}){return(0,r.jsxs)(a().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,r.jsxs)(a().Fragment,{children:[(0,r.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,r.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},92702:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(39908),n=s.n(r);async function a(e,t,s){let r=n()({req:e,level:s?"deep":void 0});return console.log(r),r.payload}},71934:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(51779);async function n(...e){let t=(0,r.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let s=await t.query(...e);return JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(9973),n=s.n(r);function a(e){return e?.ro?DSQL_READ_ONLY_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||n()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(){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)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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")},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,9796],()=>s(41531));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json b/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json index 770e6be..4679e91 100644 --- a/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3496.js","../chunks/3634.js","../chunks/3704.js","../chunks/3791.js","../chunks/4627.js","../chunks/5392.js","../chunks/5839.js","../chunks/5954.js","../chunks/6160.js","../chunks/6202.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/8704.js","../chunks/8760.js","../chunks/883.js","../chunks/9796.js","../chunks/9821.js","../chunks/9901.js","../webpack-runtime.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/auth/write-auth-files.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/backend/cookies/get-auth-cookie-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/functions/dsql/decrypt.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/backend/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/grab-keys.js","../../../node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","../../../node_modules/@moduletrace/datasquirel/dist/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/bignumber.js/bignumber.js","../../../node_modules/bignumber.js/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/safe-buffer/index.js","../../../node_modules/safe-buffer/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1251.js","../chunks/1579.js","../chunks/194.js","../chunks/2282.js","../chunks/3155.js","../chunks/3474.js","../chunks/3704.js","../chunks/4627.js","../chunks/5392.js","../chunks/5771.js","../chunks/5954.js","../chunks/6133.js","../chunks/6202.js","../chunks/6247.js","../chunks/6521.js","../chunks/6622.js","../chunks/6903.js","../chunks/725.js","../chunks/7303.js","../chunks/7769.js","../chunks/8704.js","../chunks/883.js","../chunks/9136.js","../chunks/9240.js","../chunks/9796.js","../chunks/9814.js","../chunks/9821.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/static/BYGBoTeiBrkCn0j6XrihZ/_buildManifest.js b/dsql-app/.local_dist/static/BYGBoTeiBrkCn0j6XrihZ/_buildManifest.js deleted file mode 100644 index cb99636..0000000 --- a/dsql-app/.local_dist/static/BYGBoTeiBrkCn0j6XrihZ/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,a,e,d,i,t,c,n,u,b,r,g,l,_,m,h,p,f,k,o,j,y,w,v,I,B,F){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:j,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:u,numHashes:j,bitArray:[]},"/":[y,"static/css/60c48dd4b3301227.css","static/chunks/pages/index-d8f75819eb449ffc.js"],"/404":["static/chunks/pages/404-386ef30594132ecb.js"],"/500":["static/chunks/pages/500-81f6b715960091f2.js"],"/_error":["static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":[y,"static/chunks/pages/about-69331c972566352a.js"],"/admin":[s,m,"static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":[s,m,"static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js"],"/admin/[user_id]/databases":[s,m,"static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/add-database":[c,s,w,"static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js"],"/admin/[user_id]/databases/[single]":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js"],"/admin/[user_id]/databases/[single]/connect":[a,s,e,i,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js"],"/admin/[user_id]/databases/[single]/edit-database":[a,c,s,e,w,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js"],"/admin/[user_id]/databases/[single]/schema":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js"],"/admin/[user_id]/databases/[single]/shell":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js"],"/admin/[user_id]/databases/[single]/tables":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[b,a,r,s,e,i,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[b,a,n,r,h,s,e,i,t,g,l,p,v,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[b,a,r,s,e,i,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[a,n,h,s,e,i,t,l,p,v,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[a,n,"static/chunks/7287-dadce6acb3d43d67.js",s,e,t,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[a,n,h,s,e,l,p,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[b,a,r,s,e,i,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/users":[a,s,e,t,_,"static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js"],"/admin/[user_id]/databases/[single]/users/add-user":[a,c,s,e,i,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js"],"/admin/[user_id]/databases/[single]/users/[user]":[a,c,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js"],"/admin/[user_id]/media":[c,s,I,"static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js"],"/admin/[user_id]/media/[...folder]":[c,s,I,"static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js"],"/admin/[user_id]/schema":[a,s,"static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js"],"/admin/[user_id]/settings":[c,s,f,B,"static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js"],"/admin/[user_id]/users":[s,_,"static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":[s,_,"static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":[s,_,"static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":[c,s,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js"],"/blog":["static/chunks/pages/blog-8c70d46c8352664e.js"],"/contact":["static/chunks/pages/contact-f2a4f3c2e97b25fb.js"],"/create-account":[f,B,"static/chunks/pages/create-account-59f89a25241640f4.js"],"/docs":["static/chunks/pages/docs-354599f34e0b3ced.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js"],"/email-verification":["static/chunks/pages/email-verification-fec9fecfdcb56e8d.js"],"/login":[f,"static/chunks/pages/login-f10f3645e54e61fd.js"],"/logout":["static/chunks/pages/logout-455304f72b658ce6.js"],"/privacy":["static/chunks/pages/privacy-3a1d5e267140271e.js"],"/redirect":["static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/pages/reset-password-404836a50d6e9e32.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js"],"/su":[d,"static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":[d,"static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js",d,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":[d,F,"static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":[n,d,i,k,"static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":[n,d,i,k,"static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":[d,F,"static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":[n,d,i,k,"static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":[d,"static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":[d,"static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":[a,d,"static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js"],"/su/login":["static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":[a,d,"static/chunks/pages/su/servers-d48477ad4489744d.js"],"/su/users":[d,"static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/new":[d,"static/chunks/pages/su/users/new-8a739402db28044b.js"],"/su/users/[single]":[a,d,"static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js"],"/terms":["static/chunks/pages/terms-37fb4519d728aa13.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-e6a608d5b8cea536.js"],sortedPages:["/","/404","/500","/_app","/_error","/about","/admin","/admin/[user_id]","/admin/[user_id]/api-keys","/admin/[user_id]/connect","/admin/[user_id]/databases","/admin/[user_id]/databases/add-database","/admin/[user_id]/databases/[single]","/admin/[user_id]/databases/[single]/connect","/admin/[user_id]/databases/[single]/edit-database","/admin/[user_id]/databases/[single]/schema","/admin/[user_id]/databases/[single]/shell","/admin/[user_id]/databases/[single]/tables","/admin/[user_id]/databases/[single]/tables/add-table","/admin/[user_id]/databases/[single]/tables/[single_table]","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","/admin/[user_id]/databases/[single]/tables/[single_table]/entries","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","/admin/[user_id]/databases/[single]/tables/[single_table]/fields","/admin/[user_id]/databases/[single]/users","/admin/[user_id]/databases/[single]/users/add-social-logins","/admin/[user_id]/databases/[single]/users/add-user","/admin/[user_id]/databases/[single]/users/[user]","/admin/[user_id]/databases/[single]/users/[user]/change-password","/admin/[user_id]/media","/admin/[user_id]/media/[...folder]","/admin/[user_id]/schema","/admin/[user_id]/settings","/admin/[user_id]/users","/admin/[user_id]/users/add-user","/admin/[user_id]/users/databases","/admin/[user_id]/users/databases/[database]","/admin/[user_id]/users/databases/[database]/[user]","/blog","/contact","/create-account","/docs","/docs/[page]","/docs/[page]/[sub-page]","/email-verification","/login","/logout","/privacy","/redirect","/reset-password","/send-password-reset-link","/su","/su/backups","/su/console","/su/docs","/su/docs/create-page","/su/docs/edit-page","/su/docs/pages","/su/docs/pages/[id]","/su/envar","/su/error-logs","/su/load-balancing","/su/login","/su/servers","/su/users","/su/users/new","/su/users/[single]","/terms","/unsubscribe"]}}("static/chunks/7391-b72414be460cf0f0.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8076-c34ce8d8512255e7.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-aa7e9f2130cd81f0.js","static/chunks/8261-3c3582fc434ee275.js","static/chunks/9660-628b42bc1127aefa.js",0,"static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6460-ab4ab8caec784ffc.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/9950-e6be92fc61deb6e3.js","static/chunks/2829-608af754738e12fc.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/6999-765fb1dc8daf2756.js","static/chunks/4261-1181ad7559234ce0.js",0,NaN,"static/chunks/3298-73758aefe44233a6.js","static/chunks/3867-2967250ea22dd40a.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/2480-c3f2e7fac796ce00.js","static/chunks/4060-34ac8bf5371932b9.js","static/chunks/6099-150cc189810f2bfd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/H18gzOjVUv9E4GCco-0Rs/_buildManifest.js b/dsql-app/.local_dist/static/H18gzOjVUv9E4GCco-0Rs/_buildManifest.js new file mode 100644 index 0000000..5483290 --- /dev/null +++ b/dsql-app/.local_dist/static/H18gzOjVUv9E4GCco-0Rs/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,a,e,d,i,t,c,n,u,r,b,g,l,_,m,f,h,p,k,o,j,y,w,v,I,B,F){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:y,bitArray:[]},__routerFilterDynamic:{numItems:0,errorRate:1e-4,numBits:u,numHashes:y,bitArray:[]},"/":[w,"static/css/60c48dd4b3301227.css","static/chunks/pages/index-f4368d8e4e652a17.js"],"/404":["static/chunks/pages/404-9880de8d6a22dd12.js"],"/500":["static/chunks/pages/500-3ae265ebb1fb2898.js"],"/_error":["static/chunks/pages/_error-133b121cd6670ef3.js"],"/about":[w,"static/chunks/pages/about-54414f59f6957c50.js"],"/admin":[s,m,"static/chunks/pages/admin-eaa52fa698c19034.js"],"/admin/[user_id]":[s,m,"static/chunks/pages/admin/[user_id]-61bef31d3a4e9e7a.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-2c8109e5388827d9.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-364ec8656f8ec17d.js"],"/admin/[user_id]/databases":[s,m,"static/chunks/pages/admin/[user_id]/databases-23779acb61fbe51a.js"],"/admin/[user_id]/databases/add-database":[i,s,f,v,"static/chunks/pages/admin/[user_id]/databases/add-database-2339ca478d7ae04e.js"],"/admin/[user_id]/databases/[single]":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]-d46a6f8520fb0f98.js"],"/admin/[user_id]/databases/[single]/connect":[a,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-adbc0491ae2ebe2b.js"],"/admin/[user_id]/databases/[single]/edit-database":[a,i,s,e,f,v,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1fa62e8a98f0558f.js"],"/admin/[user_id]/databases/[single]/schema":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-36ce4fa776487307.js"],"/admin/[user_id]/databases/[single]/shell":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-7f3f6c277320a54e.js"],"/admin/[user_id]/databases/[single]/tables":[a,s,e,c,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-987bf588cbdcec1c.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[r,a,b,s,e,t,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-e39fba476a9e1ad8.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[r,a,n,b,h,s,e,t,c,g,l,p,I,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-f34ee3fd9517cd2c.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[r,a,b,s,e,t,c,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-38aa98661e043781.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[a,n,h,s,e,t,c,l,p,I,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ebcd5c78ed2bf0ee.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[a,n,"static/chunks/7287-a0cc766f27863bfc.js",s,e,c,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-e609e60d52830241.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[a,n,h,s,e,l,p,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-8e1a59a792f137ba.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[r,a,b,s,e,t,c,g,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab177e1e5adacaef.js"],"/admin/[user_id]/databases/[single]/users":[a,s,e,c,_,"static/chunks/pages/admin/[user_id]/databases/[single]/users-8c51f0fefd294914.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[a,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d336e424d1e0ebac.js"],"/admin/[user_id]/databases/[single]/users/add-user":[a,i,s,e,t,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-2f84f689db965c75.js"],"/admin/[user_id]/databases/[single]/users/[user]":[a,i,s,e,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-1eafec6fde026d0e.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-bed64535d8eb2ad5.js"],"/admin/[user_id]/media":[i,s,B,"static/chunks/pages/admin/[user_id]/media-f2e686b58b412be8.js"],"/admin/[user_id]/media/[...folder]":[i,s,B,"static/chunks/pages/admin/[user_id]/media/[...folder]-235f83b98f9f8c89.js"],"/admin/[user_id]/schema":[a,s,"static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js"],"/admin/[user_id]/settings":[i,s,f,k,"static/chunks/pages/admin/[user_id]/settings-cda1d1faa0aab729.js"],"/admin/[user_id]/users":[s,_,"static/chunks/pages/admin/[user_id]/users-52b7048018746ac0.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-2423cd3e4b75b0ee.js"],"/admin/[user_id]/users/databases":[s,_,"static/chunks/pages/admin/[user_id]/users/databases-ef511feca7c10b56.js"],"/admin/[user_id]/users/databases/[database]":[s,_,"static/chunks/pages/admin/[user_id]/users/databases/[database]-76e13995132a5d19.js"],"/admin/[user_id]/users/databases/[database]/[user]":[i,s,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-01fbcda5d58677e8.js"],"/blog":["static/chunks/pages/blog-cf9f462c9f1c79b1.js"],"/contact":["static/chunks/pages/contact-015582f94d67d7a7.js"],"/create-account":[k,"static/chunks/pages/create-account-7bb20b64ad6eb40f.js"],"/docs":["static/chunks/pages/docs-eb06d9879a01da6a.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-21bb67b33655c0e4.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-b127761336e2c313.js"],"/email-verification":["static/chunks/pages/email-verification-b9eba009160729b0.js"],"/login":[i,k,"static/chunks/pages/login-4d7e5dc8974c6b4f.js"],"/logout":[i,"static/chunks/pages/logout-5713792f28342582.js"],"/privacy":["static/chunks/pages/privacy-2af1bbeba3506b4f.js"],"/redirect":["static/chunks/pages/redirect-28627072d73850c2.js"],"/reset-password":["static/chunks/pages/reset-password-6b15512e80d3b798.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-757b50458fb65f03.js"],"/su":[d,"static/chunks/pages/su-56e8a64a3be59f73.js"],"/su/backups":[d,"static/chunks/pages/su/backups-033362c47c6541f4.js"],"/su/console":["static/chunks/ed150ef9-468dbc55986083e4.js","static/chunks/2793-d85659f470ce8842.js",d,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-c8b9bd49e5191033.js"],"/su/docs":[d,F,"static/chunks/pages/su/docs-49dc94fa2828f090.js"],"/su/docs/create-page":[n,d,t,o,"static/chunks/pages/su/docs/create-page-3b58b3bb388f340b.js"],"/su/docs/edit-page":[n,d,t,o,"static/chunks/pages/su/docs/edit-page-85a0ca0be5537063.js"],"/su/docs/pages":[d,F,"static/chunks/pages/su/docs/pages-2a88e2094d85ce52.js"],"/su/docs/pages/[id]":[n,d,t,o,"static/chunks/pages/su/docs/pages/[id]-4d39f3debc44f352.js"],"/su/envar":[d,"static/chunks/pages/su/envar-8c4d450d1932f9d6.js"],"/su/error-logs":[d,"static/chunks/pages/su/error-logs-d4ffbb81ddac6cec.js"],"/su/load-balancing":[a,d,"static/chunks/pages/su/load-balancing-795c8e791cf6f943.js"],"/su/login":["static/chunks/pages/su/login-218c9150552b8800.js"],"/su/servers":[a,d,"static/chunks/pages/su/servers-2ebfc87f21d94901.js"],"/su/users":[d,"static/chunks/pages/su/users-519384d02df33446.js"],"/su/users/new":[d,"static/chunks/pages/su/users/new-8a739402db28044b.js"],"/su/users/[single]":[a,d,"static/chunks/pages/su/users/[single]-41de29bb2522359b.js"],"/terms":["static/chunks/pages/terms-d72b3b55d9844241.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-2c980eb18878b40b.js"],sortedPages:["/","/404","/500","/_app","/_error","/about","/admin","/admin/[user_id]","/admin/[user_id]/api-keys","/admin/[user_id]/connect","/admin/[user_id]/databases","/admin/[user_id]/databases/add-database","/admin/[user_id]/databases/[single]","/admin/[user_id]/databases/[single]/connect","/admin/[user_id]/databases/[single]/edit-database","/admin/[user_id]/databases/[single]/schema","/admin/[user_id]/databases/[single]/shell","/admin/[user_id]/databases/[single]/tables","/admin/[user_id]/databases/[single]/tables/add-table","/admin/[user_id]/databases/[single]/tables/[single_table]","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","/admin/[user_id]/databases/[single]/tables/[single_table]/entries","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","/admin/[user_id]/databases/[single]/tables/[single_table]/fields","/admin/[user_id]/databases/[single]/users","/admin/[user_id]/databases/[single]/users/add-social-logins","/admin/[user_id]/databases/[single]/users/add-user","/admin/[user_id]/databases/[single]/users/[user]","/admin/[user_id]/databases/[single]/users/[user]/change-password","/admin/[user_id]/media","/admin/[user_id]/media/[...folder]","/admin/[user_id]/schema","/admin/[user_id]/settings","/admin/[user_id]/users","/admin/[user_id]/users/add-user","/admin/[user_id]/users/databases","/admin/[user_id]/users/databases/[database]","/admin/[user_id]/users/databases/[database]/[user]","/blog","/contact","/create-account","/docs","/docs/[page]","/docs/[page]/[sub-page]","/email-verification","/login","/logout","/privacy","/redirect","/reset-password","/send-password-reset-link","/su","/su/backups","/su/console","/su/docs","/su/docs/create-page","/su/docs/edit-page","/su/docs/pages","/su/docs/pages/[id]","/su/envar","/su/error-logs","/su/load-balancing","/su/login","/su/servers","/su/users","/su/users/new","/su/users/[single]","/terms","/unsubscribe"]}}("static/chunks/7391-2cf158002dcd120b.js","static/chunks/6428-c106bf6efb539d8c.js","static/chunks/8076-c8df432e3a6a7868.js","static/chunks/5810-7c3a3c4731750dc7.js","static/chunks/1335-9b647f464da8b044.js","static/chunks/9268-6ca91a807cecf2b4.js","static/chunks/2438-ac276572cee5ba87.js","static/chunks/9660-628b42bc1127aefa.js",0,"static/chunks/94726e6d-33de6887e71ace1a.js","static/chunks/6460-15d2e5543b20c3c6.js","static/chunks/8311-87e8d6ec01c2e05f.js","static/chunks/1580-68f706d212c5eb63.js","static/chunks/6383-02bec644b1a9f0a8.js","static/chunks/9950-f96c0c56ed7fb229.js","static/chunks/8319-0fac4a0bd5bb0c06.js","static/chunks/2829-608af754738e12fc.js","static/chunks/6830-80ccce098977dfd6.js","static/chunks/7384-e241cdc2266f0106.js","static/chunks/4261-1181ad7559234ce0.js",0,NaN,"static/chunks/3298-73758aefe44233a6.js","static/chunks/6272-34d9d0c839440fe4.js","static/chunks/4403-dd72a46996d6c5f9.js","static/chunks/9551-762af3f63f78e37c.js","static/chunks/6099-150cc189810f2bfd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/BYGBoTeiBrkCn0j6XrihZ/_ssgManifest.js b/dsql-app/.local_dist/static/H18gzOjVUv9E4GCco-0Rs/_ssgManifest.js similarity index 100% rename from dsql-app/.local_dist/static/BYGBoTeiBrkCn0j6XrihZ/_ssgManifest.js rename to dsql-app/.local_dist/static/H18gzOjVUv9E4GCco-0Rs/_ssgManifest.js diff --git a/dsql-app/.local_dist/static/chunks/1335-9b647f464da8b044.js b/dsql-app/.local_dist/static/chunks/1335-9b647f464da8b044.js new file mode 100644 index 0000000..0ab2f74 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/1335-9b647f464da8b044.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1335],{489:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({clientId:e,redirectUrl:t,setLoading:n,scopes:i}){n&&n(!0);let o=i?i.join("%20"):"read:user",r=`https://github.com/login/oauth/authorize?client_id=${e}&scope=${o}&redirect_uri=${t}`;window.location.assign(r)}},8557:function(e,t){let n;var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{u(i.next(e))}catch(e){r(e)}}function l(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}u((i=i.apply(e,t||[])).next())})};function o({google:e,clientId:t,setLoading:n,triggerPrompt:i}){return setTimeout(()=>{null==n||n(!1)},3e3),new Promise((n,o)=>{e.accounts.oauth2.initTokenClient({client_id:t,scope:"email profile",callback:function(e){n(e.access_token)}}).requestAccessToken(),i&&e.accounts.id.prompt(function(e){console.log(e)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i(this,void 0,void 0,function*(){var t,i;null===(t=e.setLoading)||void 0===t||t.call(e,!0);let r=yield new Promise((t,i)=>{n=setInterval(()=>{let i=window.google;i&&(window.clearInterval(n),t(o(Object.assign(Object.assign({},e),{google:i}))))},500)});return null===(i=e.setLoading)||void 0===i||i.call(e,!1),r})},t.googleLogin=o},7946:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{u(i.next(e))}catch(e){r(e)}}function l(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i(this,void 0,void 0,function*(){try{let t;let n=localStorage.getItem("user");try{t=JSON.parse(n||"")}catch(e){console.log(e)}if(!t)return!1;let i=(0,r.default)(),o=(null==i?void 0:i.datasquirel_social_id)&&"string"==typeof i.datasquirel_social_id&&!i.datasquirel_social_id.match(/^null$/i)?i.datasquirel_social_id:null;return localStorage.setItem("user","{}"),localStorage.removeItem("csrf"),document.cookie="datasquirel_social_id=null;samesite=strict;path=/",yield new Promise((t,n)=>{if(!o||(null==o?void 0:o.match(/^null$/i)))t(!0);else{let n=null==e?void 0:e.googleClientId;if(n){let e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.className="social-script-tag",document.body.appendChild(e),e.onload=function(e){let i=window.google;i&&(i.accounts.id.initialize({client_id:n}),i.accounts.id.revoke(o,e=>{console.log(e.error),t(!0)}))}}else t(!0)}})}catch(e){return!1}})};let r=o(n(2406))},4490:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){try{if(!e.payload||!e.payload.csrf_k)return!1;return localStorage.setItem("csrf",e.payload.csrf_k),localStorage.setItem("user",JSON.stringify(e.payload)),!0}catch(e){return!1}}},1335:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=i(n(8753)),r=i(n(4715)),a=i(n(1168)),l=i(n(8557)),u=i(n(489)),c=i(n(7946)),s=i(n(1028)),d=i(n(1028)),f=i(n(4727)),g=i(n(8168)),h=i(n(834)),p=i(n(8226)),m=i(n(4567)),y=i(n(4490)),v={imageInputToBase64:r.default,imageInputFileToBase64:o.default,inputFileToBase64:a.default},_={google:{getAccessToken:l.default},github:{getAccessToken:u.default},logout:c.default,postLogin:y.default},w={serializeQuery:f.default,serializeCookies:g.default,EJSON:h.default,numberfy:p.default,slugify:m.default},b={fetchApi:s.default,clientFetch:d.default};t.default={media:v,auth:_,fetch:b,utils:w}},8753:function(e,t){var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{u(i.next(e))}catch(e){r(e)}}function l(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n(this,arguments,void 0,function*({imageInputFile:e,maxWidth:t,imagePreviewNode:n}){try{let i,o,r=e.name.replace(/\..*/,""),a=document.createElement("canvas"),l=e.type,u=t||null,c=URL.createObjectURL(e),s=new Image;return s.src=c,i=yield new Promise((e,t)=>{s.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},s.onload=function(t){let i=t.target;if(URL.revokeObjectURL(i.src),u){let e=u/s.naturalWidth;a.width=s.naturalWidth{a.toBlob(t=>{e(null==t?void 0:t.size)},l,.95)}),{imageBase64:null==i?void 0:i.replace(/.*?base64,/,""),imageBase64Full:i,imageName:r,imageSize:o}}catch(e){return console.log("Image Processing Error! =>",e.message),{imageBase64:void 0,imageBase64Full:void 0,imageName:void 0,imageSize:void 0}}})}},4715:function(e,t){var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{u(i.next(e))}catch(e){r(e)}}function l(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n(this,arguments,void 0,function*({imageInput:e,maxWidth:t,mimeType:n}){var i,o;try{let r,a=document.querySelector("[data-imagepreview='image']"),l=null===(i=e.files)||void 0===i?void 0:i[0].name.replace(/\..*/,""),u=n||"image/jpeg",c=t||null,s=null===(o=e.files)||void 0===o?void 0:o[0],d=s?URL.createObjectURL(s):void 0,f=new Image;if(d)return f.src=d,{imageBase64:null==(r=yield new Promise((e,t)=>{f.onerror=function(){URL.revokeObjectURL(this.src),window.alert("Cannot load image!")},f.onload=function(t){let n=t.target;URL.revokeObjectURL(n.src);let i=document.createElement("canvas");if(c){let e=c/f.naturalWidth;i.width=f.naturalWidth{e.src=r}),e(r)}}))?void 0:r.replace(/.*?base64,/,""),imageBase64Full:r,imageName:l};return{}}catch(e){return console.log("Image Processing Error! =>",e.message),{}}})}},1168:function(e,t){var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{u(i.next(e))}catch(e){r(e)}}function l(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n(this,arguments,void 0,function*({inputFile:e,allowedRegex:t}){var n;if(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.match(t||/image\/*|\/pdf/)))return window.alert(`We currently don't support ${e.type} file types. Support is coming soon. For now we support only images and PDFs.`),{fileName:e.name};try{let t=e.name.replace(/\..*/,""),n=yield new Promise((t,n)=>{var i=new FileReader;i.readAsDataURL(e),i.onload=function(){var e;t(null===(e=i.result)||void 0===e?void 0:e.toString())},i.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:null==n?void 0:n.replace(/.*?base64,/,""),fileBase64Full:n,fileName:t,fileSize:e.size,fileType:e.type}}catch(t){return console.log("File Processing Error! =>",t.message),{fileName:e.name}}})}},2406:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=document.cookie;if(!e||"string"!=typeof e)return null;let t=e.split(";"),n={};return t.forEach(e=>{let[t,i]=e.split("=");t&&"string"==typeof t&&(n[t.replace(/^ +| +$/,"")]=i&&"string"==typeof i?i.replace(/^ +| +$/,""):null)}),n}},834:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={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,n){try{return JSON.stringify(e,t||void 0,n)}catch(e){return}}}},8226:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){try{let n=Number(e);if("number"!=typeof n||isNaN(n))return 0;if(t)return Number(n.toFixed(t));return Math.round(n)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}},8168:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({cookies:e}){let t=[];for(let n=0;n{if(!t||!e[t])return;let n=e[t];if("object"==typeof n){let e=o.default.stringify(n);i.push(`${t}=${encodeURIComponent(String(e))}`)}else"string"==typeof n||"number"==typeof n?i.push(`${t}=${encodeURIComponent(n)}`):i.push(`${t}=${String(n)}`)}),t+=i.join("&")};let o=i(n(834))},4567:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){try{return String(e).trim().toLowerCase().replace(/ {2,}/g," ").replace(/ /g,"-").replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-").replace(/^-/,"").replace(/-$/,"")}catch(e){return console.log(`Slugify ERROR: ${e.message}`),""}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2438-aa7e9f2130cd81f0.js b/dsql-app/.local_dist/static/chunks/2438-ac276572cee5ba87.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/2438-aa7e9f2130cd81f0.js rename to dsql-app/.local_dist/static/chunks/2438-ac276572cee5ba87.js index f18c508..4602e24 100644 --- a/dsql-app/.local_dist/static/chunks/2438-aa7e9f2130cd81f0.js +++ b/dsql-app/.local_dist/static/chunks/2438-ac276572cee5ba87.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2438],{2438:(e,l,a)=>{a.d(l,{A:()=>r,p:()=>d});var t=a(4848),s=a(6540),n=a(6729),i=a(8064);function r(e){var l,a,r;let{database:o,tables:c,setTargetTable:u,confirmedDelegetedUser:m,query:h,user:p}=e;return null==m||m.delegated,null==m||null===(l=m.priviledges)||void 0===l||l.match(/Edit Tables/i),null==m||null===(a=m.priviledges)||void 0===a||a.match(/Delete Tables/i),null==m||null===(r=m.priviledges)||void 0===r||r.match(/Create Tables/i),(0,t.jsxs)(s.Fragment,{children:[o.active_clone&&p?(0,t.jsx)(i.A,{database:o,user:p}):(0,t.jsx)(t.Fragment,{}),o.remote_connected?(0,t.jsx)(d,{database:o}):(0,t.jsx)(t.Fragment,{}),(0,t.jsxs)("section",{className:"paper gray",children:[c&&c[0]?(0,t.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,t.jsx)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/databases/").concat(o.db_slug,"/tables"),className:"button outlined gray small-text",children:"See All Tables"})]}):(0,t.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,t.jsx)("hr",{}),p?(0,t.jsx)(n.A,{database:o,tables:c,setTargetTable:u,confirmedDelegetedUser:m,query:h,user:p}):null]})]})}function d(e){var l;let{database:a}=e;return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:null===(l=a.remote_db_full_name)||void 0===l?void 0:l.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,t.jsx)("a",{className:"font-bold text-inherit",href:a.remote_connection_host,target:"_blank",children:a.remote_connection_host})," ","Host"]})})}},6729:(e,l,a)=>{a.d(l,{A:()=>w});var t=a(4848),s=a(6540),n=a(5139),i=a(5655),r=a(900),d=a(8190),o=a(8453);function c(e){var l,a,c,u;let{table:m,setTargetTable:h,database:p,confirmedDelegetedUser:f,query:x,icons:b,user:v}=e,g=null==f?void 0:f.delegated,j=null==f?void 0:null===(l=f.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i),N=null==f?void 0:null===(a=f.priviledges)||void 0===a?void 0:a.match(/Delete Tables/i);null==f||null===(c=f.priviledges)||void 0===c||c.match(/Create Table/i);let{active_clone:y,active_clone_parent_db:w,remote_connected:_}=p;return(0,t.jsxs)("a",{href:"/admin/".concat(null==v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/").concat(m.table_slug),className:"card w-full items-center justify-between py-4"+((null==m?void 0:m.child_table)?" green":""),onClick:e=>{e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,t.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,t.jsx)(d.A,{size:20,opacity:.3}),(0,t.jsx)("span",{className:"title",style:{fontSize:"16px"},children:m.table_name}),(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(u=m.date_created)||void 0===u?void 0:u.substring(0,21)]})]}),(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(r.A,{children:[(0,t.jsx)(n.A,{slugText:m.table_slug||"",outlined:!0}),(!g||g&&j)&&!w&&!_&&(0,t.jsx)(s.Fragment,{children:(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{window.location.pathname="/admin/".concat(null==v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/").concat(m.table_slug,"/edit-table")},children:(0,t.jsx)("span",{children:"Edit"})})}),!w&&!m.child_table&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{window.location.href="/admin/".concat(null==v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/add-table?clone=true&clone_db=").concat(p.db_slug,"&clone_table=").concat(m.table_slug)},children:(0,t.jsx)("span",{children:"Clone"})}),(!g||g&&N)&&!w&&!_&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{h(m),(0,i.PB)("delete-table-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(o.A,{className:"text-slate-600",size:20})]})]})}var u=a(9020),m=a(3078),h=a(1710),p=a(2750);function f(e){let{database:l}=e,a=s.useRef(),[n,i]=s.useState(!1);return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:a}),(0,t.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:e=>{var t,s;null===(t=a.current)||void 0===t||t.addEventListener("change",e=>{var a;let t=e.target;if(!(null===(a=t.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected");return}(0,m.A)({inputFile:t.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(i(!0),(0,u.A)("/api/importDatabase",{method:"post",body:{database:l,fileBase64:e.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{i(!1)},1e3)}))})}),null===(s=a.current)||void 0===s||s.click()},children:[n&&(0,t.jsx)(h.A,{}),(0,t.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,t.jsx)(p.A,{}),(0,t.jsx)("span",{className:"",children:"Import Database"})]})]})}var x=a(4769);function b(e){let{database:l}=e,a=s.useRef(),[n,i]=s.useState(!1);return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:a}),(0,t.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:e=>{var t,s;null===(t=a.current)||void 0===t||t.addEventListener("change",e=>{var a;let t=e.target;if(!(null===(a=t.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected");return}(0,m.A)({inputFile:t.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(i(!0),(0,u.A)("/api/importDatabaseSchema",{method:"post",body:{database:l,fileBase64:e.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{i(!1)},1e3)}))})}),null===(s=a.current)||void 0===s||s.click()},children:[n&&(0,t.jsx)(h.A,{}),(0,t.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,t.jsx)(x.A,{}),(0,t.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}var v=a(2836),g=a(7845),j=a(1333),N=a(7220),y=a(2276);function w(e){var l,a,n;let{database:i,tables:r,setTargetTable:d,confirmedDelegetedUser:o,query:u,user:m}=e,h=null==o?void 0:o.delegated;null==o||null===(l=o.priviledges)||void 0===l||l.match(/Edit Tables/i),null==o||null===(a=o.priviledges)||void 0===a||a.match(/Delete Tables/i);let p=null==o?void 0:null===(n=o.priviledges)||void 0===n?void 0:n.match(/Create Table/i),x=(!r||!r[0])&&!h||(!r||!r[0])&&!!h&&!!p,{active_clone:w,active_clone_parent_db:_,remote_connected:A}=i;return(0,t.jsx)(s.Fragment,{children:(0,t.jsxs)("div",{className:"w-full flex-col",children:[r&&r[0]&&r.map(e=>(0,t.jsx)(c,{table:e,setTargetTable:d,database:i,confirmedDelegetedUser:o,query:u,icons:{edit:(0,t.jsx)(v.A,{}),duplicate:(0,t.jsx)(g.A,{}),delete:(0,t.jsx)(j.A,{}),copy:(0,t.jsx)(N.A,{})},user:m},e.id)),x&&!_&&!A&&(0,t.jsx)(s.Fragment,{children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,t.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(i.db_slug,"/tables/add-table"),className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,t.jsx)(y.A,{}),(0,t.jsx)("span",{className:"",children:"Add Table"})]}),(0,t.jsx)(f,{database:i}),(0,t.jsx)(b,{database:i})]})}),(!r||!r[0])&&h&&(0,t.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}},8064:(e,l,a)=>{a.d(l,{A:()=>s});var t=a(4848);function s(e){var l;let{database:a,user:s}=e,n=null===(l=a.active_clone_parent_db)||void 0===l?void 0:l.replace(/datasquirel_user_\d+_/,""),i="/admin/".concat(null==s?void 0:s.id,"/databases/").concat(n);return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:(0,t.jsx)("a",{href:i,target:"_blank",className:"query-url",children:n})})]})})}a(6540)},5655:(e,l,a)=>{a.d(l,{Ay:()=>i,PB:()=>r,fs:()=>d});var t=a(4848),s=a(6897),n=a(6540);function i(e){let{children:l,title:a,data:i,fullPage:r,wrapperClasses:o,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return r?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(o||""),"data-popupid":a||null,style:u,children:[m?(0,t.jsx)(n.Fragment,{children:l}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":i?JSON.stringify(i):"",children:l}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,t.jsx)(s.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,t.jsx)(n.Fragment,{children:l}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":i?JSON.stringify(i):"",children:[l,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function r(e,l){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",null==l||l(a))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,l,a)=>{a.d(l,{A:()=>n});var t=a(4848),s=a(6540);function n(e){let{children:l,column:a,className:n}=e,i=s.useRef();return s.useEffect(()=>{try{let e=i.current;if(!e)throw Error("No Button Group Wrapper!");let l=e.childNodes,t=Array.from(l);if((null==t?void 0:t.length)===1)return;t.forEach((e,l)=>{let s=e;if(s.classList.contains("dropdown-wrapper")){let l=Array.from(e.childNodes).filter(e=>{var l;return(null==e?void 0:null===(l=e.nodeName)||void 0===l?void 0:l.match(/button/i))||e.classList.contains("button")});l&&l[0]&&(s=l[0])}l0&&(s.style[a?"borderTop":"borderLeft"]="none",s.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,s.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,t.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(n?" "+n:""),ref:i,children:l})}},3078:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{inputFile:l}=e;try{let e=l.name.replace(/\..*/,""),a=await new Promise((e,a)=>{var t=new FileReader;t.readAsDataURL(l),t.onload=function(){e(t.result)},t.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:a.replace(/.*?base64,/,""),fileBase64Full:a,fileName:e,fileSize:l.size,fileType:l.type}}catch(e){return console.log("Image Processing Error! =>",e.message),{fileBase64:null,fileBase64Full:null,fileName:l.name,fileSize:null,fileType:null}}}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2438],{2438:(e,l,a)=>{a.d(l,{A:()=>r,p:()=>d});var t=a(4848),s=a(6540),n=a(6729),i=a(8064);function r(e){var l,a,r;let{database:o,tables:c,setTargetTable:u,confirmedDelegetedUser:m,query:h,user:p}=e;return null==m||m.delegated,null==m||null===(l=m.priviledges)||void 0===l||l.match(/Edit Tables/i),null==m||null===(a=m.priviledges)||void 0===a||a.match(/Delete Tables/i),null==m||null===(r=m.priviledges)||void 0===r||r.match(/Create Tables/i),(0,t.jsxs)(s.Fragment,{children:[o.active_clone&&p?(0,t.jsx)(i.A,{database:o,user:p}):(0,t.jsx)(t.Fragment,{}),o.remote_connected?(0,t.jsx)(d,{database:o}):(0,t.jsx)(t.Fragment,{}),(0,t.jsxs)("section",{className:"paper gray",children:[c&&c[0]?(0,t.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,t.jsx)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/databases/").concat(o.db_slug,"/tables"),className:"button outlined gray small-text",children:"See All Tables"})]}):(0,t.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,t.jsx)("hr",{}),p?(0,t.jsx)(n.A,{database:o,tables:c,setTargetTable:u,confirmedDelegetedUser:m,query:h,user:p}):null]})]})}function d(e){var l;let{database:a}=e;return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:null===(l=a.remote_db_full_name)||void 0===l?void 0:l.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,t.jsx)("a",{className:"font-bold text-inherit",href:a.remote_connection_host,target:"_blank",children:a.remote_connection_host})," ","Host"]})})}},6729:(e,l,a)=>{a.d(l,{A:()=>w});var t=a(4848),s=a(6540),n=a(5139),i=a(5655),r=a(900),d=a(8190),o=a(8453);function c(e){var l,a,c,u;let{table:m,setTargetTable:h,database:p,confirmedDelegetedUser:f,query:x,icons:b,user:v}=e,g=null==f?void 0:f.delegated,j=null==f?void 0:null===(l=f.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i),N=null==f?void 0:null===(a=f.priviledges)||void 0===a?void 0:a.match(/Delete Tables/i);null==f||null===(c=f.priviledges)||void 0===c||c.match(/Create Table/i);let{active_clone:y,active_clone_parent_db:w,remote_connected:_}=p;return(0,t.jsxs)("a",{href:"/admin/".concat(null==v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/").concat(m.table_slug),className:"card w-full items-center justify-between py-4"+((null==m?void 0:m.child_table)?" green":""),onClick:e=>{e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,t.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,t.jsx)(d.A,{size:20,opacity:.3}),(0,t.jsx)("span",{className:"title",style:{fontSize:"16px"},children:m.table_name}),(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(u=m.date_created)||void 0===u?void 0:u.substring(0,21)]})]}),(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(r.A,{children:[(0,t.jsx)(n.A,{slugText:m.table_slug||"",outlined:!0}),(!g||g&&j)&&!w&&!_&&(0,t.jsx)(s.Fragment,{children:(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{window.location.pathname="/admin/".concat(null==v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/").concat(m.table_slug,"/edit-table")},children:(0,t.jsx)("span",{children:"Edit"})})}),!w&&!m.child_table&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{window.location.href="/admin/".concat(null==v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/add-table?clone=true&clone_db=").concat(p.db_slug,"&clone_table=").concat(m.table_slug)},children:(0,t.jsx)("span",{children:"Clone"})}),(!g||g&&N)&&!w&&!_&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{h(m),(0,i.PB)("delete-table-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(o.A,{className:"text-slate-600",size:20})]})]})}var u=a(9020),m=a(3078),h=a(1710),p=a(2750);function f(e){let{database:l}=e,a=s.useRef(),[n,i]=s.useState(!1);return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:a}),(0,t.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:e=>{var t,s;null===(t=a.current)||void 0===t||t.addEventListener("change",e=>{var a;let t=e.target;if(!(null===(a=t.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected");return}(0,m.A)({inputFile:t.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(i(!0),(0,u.A)("/api/importDatabase",{method:"post",body:{database:l,fileBase64:e.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{i(!1)},1e3)}))})}),null===(s=a.current)||void 0===s||s.click()},children:[n&&(0,t.jsx)(h.A,{}),(0,t.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,t.jsx)(p.A,{}),(0,t.jsx)("span",{className:"",children:"Import Database"})]})]})}var x=a(4769);function b(e){let{database:l}=e,a=s.useRef(),[n,i]=s.useState(!1);return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:a}),(0,t.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:e=>{var t,s;null===(t=a.current)||void 0===t||t.addEventListener("change",e=>{var a;let t=e.target;if(!(null===(a=t.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected");return}(0,m.A)({inputFile:t.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(i(!0),(0,u.A)("/api/importDatabaseSchema",{method:"post",body:{database:l,fileBase64:e.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{i(!1)},1e3)}))})}),null===(s=a.current)||void 0===s||s.click()},children:[n&&(0,t.jsx)(h.A,{}),(0,t.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,t.jsx)(x.A,{}),(0,t.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}var v=a(2836),g=a(7845),j=a(1333),N=a(4839),y=a(2276);function w(e){var l,a,n;let{database:i,tables:r,setTargetTable:d,confirmedDelegetedUser:o,query:u,user:m}=e,h=null==o?void 0:o.delegated;null==o||null===(l=o.priviledges)||void 0===l||l.match(/Edit Tables/i),null==o||null===(a=o.priviledges)||void 0===a||a.match(/Delete Tables/i);let p=null==o?void 0:null===(n=o.priviledges)||void 0===n?void 0:n.match(/Create Table/i),x=(!r||!r[0])&&!h||(!r||!r[0])&&!!h&&!!p,{active_clone:w,active_clone_parent_db:_,remote_connected:A}=i;return(0,t.jsx)(s.Fragment,{children:(0,t.jsxs)("div",{className:"w-full flex-col",children:[r&&r[0]&&r.map(e=>(0,t.jsx)(c,{table:e,setTargetTable:d,database:i,confirmedDelegetedUser:o,query:u,icons:{edit:(0,t.jsx)(v.A,{}),duplicate:(0,t.jsx)(g.A,{}),delete:(0,t.jsx)(j.A,{}),copy:(0,t.jsx)(N.A,{})},user:m},e.id)),x&&!_&&!A&&(0,t.jsx)(s.Fragment,{children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,t.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(i.db_slug,"/tables/add-table"),className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,t.jsx)(y.A,{}),(0,t.jsx)("span",{className:"",children:"Add Table"})]}),(0,t.jsx)(f,{database:i}),(0,t.jsx)(b,{database:i})]})}),(!r||!r[0])&&h&&(0,t.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}},8064:(e,l,a)=>{a.d(l,{A:()=>s});var t=a(4848);function s(e){var l;let{database:a,user:s}=e,n=null===(l=a.active_clone_parent_db)||void 0===l?void 0:l.replace(/datasquirel_user_\d+_/,""),i="/admin/".concat(null==s?void 0:s.id,"/databases/").concat(n);return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:(0,t.jsx)("a",{href:i,target:"_blank",className:"query-url",children:n})})]})})}a(6540)},5655:(e,l,a)=>{a.d(l,{Ay:()=>i,PB:()=>r,fs:()=>d});var t=a(4848),s=a(6897),n=a(6540);function i(e){let{children:l,title:a,data:i,fullPage:r,wrapperClasses:o,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return r?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(o||""),"data-popupid":a||null,style:u,children:[m?(0,t.jsx)(n.Fragment,{children:l}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":i?JSON.stringify(i):"",children:l}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,t.jsx)(s.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,t.jsx)(n.Fragment,{children:l}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":i?JSON.stringify(i):"",children:[l,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function r(e,l){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",null==l||l(a))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,l,a)=>{a.d(l,{A:()=>n});var t=a(4848),s=a(6540);function n(e){let{children:l,column:a,className:n}=e,i=s.useRef();return s.useEffect(()=>{try{let e=i.current;if(!e)throw Error("No Button Group Wrapper!");let l=e.childNodes,t=Array.from(l);if((null==t?void 0:t.length)===1)return;t.forEach((e,l)=>{let s=e;if(s.classList.contains("dropdown-wrapper")){let l=Array.from(e.childNodes).filter(e=>{var l;return(null==e?void 0:null===(l=e.nodeName)||void 0===l?void 0:l.match(/button/i))||e.classList.contains("button")});l&&l[0]&&(s=l[0])}l0&&(s.style[a?"borderTop":"borderLeft"]="none",s.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,s.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,t.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(n?" "+n:""),ref:i,children:l})}},3078:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{inputFile:l}=e;try{let e=l.name.replace(/\..*/,""),a=await new Promise((e,a)=>{var t=new FileReader;t.readAsDataURL(l),t.onload=function(){e(t.result)},t.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:a.replace(/.*?base64,/,""),fileBase64Full:a,fileName:e,fileSize:l.size,fileType:l.type}}catch(e){return console.log("Image Processing Error! =>",e.message),{fileBase64:null,fileBase64Full:null,fileName:l.name,fileSize:null,fileType:null}}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3867-2967250ea22dd40a.js b/dsql-app/.local_dist/static/chunks/3867-2967250ea22dd40a.js deleted file mode 100644 index 571a740..0000000 --- a/dsql-app/.local_dist/static/chunks/3867-2967250ea22dd40a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3867],{7168:(e,a,t)=>{let l;t.d(a,{A:()=>g});var s=t(4848),i=t(6540),n=t(8589),d=t(6234),o=t(9020),r=t(65);async function c(e){var a,t,l,s,i,n,d;let{e:c,setLoading:u,dbImage:m,database:p,user:h}=e;u(!0);let g={db_description:(null===(t=c.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?c.target.database_description.value:null,db_name:(null===(s=c.target.database_name)||void 0===s?void 0:null===(l=s.value)||void 0===l?void 0:l.match(/./))?c.target.database_name.value:null,db_slug:(null===(n=c.target.database_slug)||void 0===n?void 0:null===(i=n.value)||void 0===i?void 0:i.match(/./))?c.target.database_slug.value:null,db_full_name:p.db_full_name,id:p.id,active_clone:p.active_clone,active_clone_parent_db:p.active_clone_parent_db};if(m){if("string"==typeof m)g.db_image=m;else if("object"==typeof m){let e=await (0,o.A)("/api/addUserMedia",{method:"post",body:{media:[m],folder:g.db_slug.replace(/_/g,"-"),type:"image"}},!0);g.db_image=(null==e?void 0:null===(d=e.mediaData[0])||void 0===d?void 0:d.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else g.db_image="/images/database-placeholder.png";(0,o.A)("/api/updateUserDatabase",{method:"post",body:g},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.pathname="/admin/".concat(null==h?void 0:h.id,"/databases"),setTimeout(()=>{u(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{u(!1)},1e3))})}var u=t(1335);let m=t.n(u)().fetch.fetchApi;async function p(e){var a,t,l;let{e:s,setLoading:i,dbImage:n,keepUpdated:d,keepDataUpdated:o,query:c,user:u}=e;i(!0);let p={db_name:s.target.database_name.value,db_slug:s.target.database_slug.value,db_description:(null===(t=s.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?s.target.database_description.value:null};if(n){if("string"==typeof n)p.db_image=n;else if("object"==typeof n){let e=await m("/api/addUserMedia",{method:"post",body:{media:[n],folder:p.db_slug.replace(/_/g,"-"),type:"image"}},!0);p.db_image=(null==e?void 0:null===(l=e.mediaData[0])||void 0===l?void 0:l.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}(null==c?void 0:c.duplicate)&&(p.duplicate=c.duplicate,p.keepUpdated=!!d&&d,p.keepDataUpdated=!!o&&o),m("/api/createUserDatabase",{method:"POST",body:p},!0).then(e=>{e.success?(0,r.A)().then(()=>{window.location.pathname="/admin/".concat(null==u?void 0:u.id,"/databases/").concat(p.db_slug)}):setTimeout(()=>{i(!1)},1e3)})}var h=t(2408);function g(e){let{user:a,dbImage:t,setDbImage:o,database:r,setLoading:u,query:m}=e;async function g(e){return(null==r?void 0:r.db_slug)===e?null:await (0,n.A)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})}let[b,f]=i.useState(null),[v,x]=i.useState(!1),[_,w]=i.useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),r?c({e,setLoading:u,dbImage:t,database:r,user:a}):p({e,setLoading:u,dbImage:t,keepUpdated:v,keepDataUpdated:_,query:m,user:a})},children:[b&&(0,s.jsx)(d.A,{message:b}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{g(e).then(e=>{(null==e?void 0:e.result)?(t.database_slug.classList.add("warning"),f("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),f(null))})},300)}},defaultValue:r?r.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),f(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{g(t).then(e=>{(null==e?void 0:e.result)?(a.classList.add("warning"),f("Duplicate Database Name")):(a.classList.remove("warning"),f(null))})},300)},defaultValue:r?r.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:r?r.db_description:""})]}),(null==m?void 0:m.duplicate)&&(0,s.jsx)(i.Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(h.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?x(!0):x(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[r?"Update":"Create"," Database"]})]})}},3605:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(4848),s=t(6540),i=t(2659),n=t(5655),d=t(900);function o(e){let{user:a,dbImage:t,setDbImage:o,database:r}=e,c=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(d.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,n.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{var a,t;let l=e.target;null==l||null===(t=l.closest("#edit-database-image-option-wrapper"))||void 0===t||null===(a=t.querySelector("input"))||void 0===a||a.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];o(await (0,i.A)({imageInputFile:t,maxWidth:400}))}})]})]})}},2592:(e,a,t)=>{t.d(a,{A:()=>o});var l=t(4848),s=t(6540),i=t(9020),n=t(5655),d=t(1710);function o(e){let{setDbImage:a}=e,[t,o]=s.useState(!0);s.useState(null);let[r,c]=s.useState(null);return s.useEffect(()=>{(0,i.A)("/api/getUserMedia").then(e=>{o(!1),c(e.media)})},[]),(0,l.jsxs)(n.Ay,{title:"user-media-popup",children:[t&&(0,l.jsx)(d.A,{width:"20px"}),(0,l.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,l.jsx)("div",{className:"grid grid-cols-2",children:(null==r?void 0:r[0])&&r.filter(e=>"image"==e.media_type).map((e,t)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:t=>{a(e.media_thumbnail_url||null),(0,n.fs)()},children:(0,l.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1))})]})}},2408:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:n,baseText:d,smallText:o,className:r}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(n?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:t.map((e,t)=>{let{payload:n,title:r,onChangeHandler:c,fixed:u,jsx:m}=e,p=e.name?"".concat(a,"-").concat(e.name):n?a+"-"+n:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(o?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(o?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:p,id:p,onChange:a=>{s&&s(null),c&&c(a,e)},value:n,style:{minWidth:"20px"},...e.props}),m||(0,l.jsx)("label",{htmlFor:p,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(d||o?" text-base":" text-lg"),children:r})]},t+1)})})}t(6540)},6234:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{message:a}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}t(6540)},5655:(e,a,t)=>{t.d(a,{Ay:()=>n,PB:()=>d,fs:()=>o});var l=t(4848),s=t(6897),i=t(6540);function n(e){let{children:a,title:t,data:n,fullPage:d,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return d?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":t||null,style:u,children:[m?(0,l.jsx)(i.Fragment,{children:a}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:a}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),c&&c()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[m?(0,l.jsx)(i.Fragment,{children:a}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[a,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]})}function d(e,a){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==a||a(t))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(4848),s=t(6540);function i(e){let{children:a,column:t,className:i}=e,n=s.useRef();return s.useEffect(()=>{try{let e=n.current;if(!e)throw Error("No Button Group Wrapper!");let a=e.childNodes,l=Array.from(a);if((null==l?void 0:l.length)===1)return;l.forEach((e,a)=>{let s=e;if(s.classList.contains("dropdown-wrapper")){let a=Array.from(e.childNodes).filter(e=>{var a;return(null==e?void 0:null===(a=e.nodeName)||void 0===a?void 0:a.match(/button/i))||e.classList.contains("button")});a&&a[0]&&(s=a[0])}a0&&(s.style[t?"borderTop":"borderLeft"]="none",s.style[t?"borderTopRightRadius":"borderTopLeftRadius"]=0,s.style[t?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,l.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(i?" "+i:""),ref:n,children:a})}},8589:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(9020);async function s(e){let{tableName:a,columnName:t,value:s,dbFullName:i,dispatch:n,userId:d,dbId:o}=e;return await (0,l.A)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(s).concat(i?"&dbFullName="+i:"").concat(d?"&userId="+d:"").concat(o?"&dbId="+o:""))}},2659:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(1335);let s=t.n(l)().media.imageInputFileToBase64},6897:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4060-34ac8bf5371932b9.js b/dsql-app/.local_dist/static/chunks/4060-34ac8bf5371932b9.js deleted file mode 100644 index 092bbd8..0000000 --- a/dsql-app/.local_dist/static/chunks/4060-34ac8bf5371932b9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4060],{6234:(e,a,s)=>{s.d(a,{A:()=>t});var l=s(4848);function t(e){let{message:a}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}s(6540)},4060:(e,a,s)=>{let l;s.d(a,{A:()=>c});var t=s(4848),r=s(6540),n=s(9020);async function i(e){let{e:a,setLoading:s,user:l,image:t,query:r}=e;s(!0);let i={first_name:a.target.first_name.value,last_name:a.target.last_name.value,email:l?null:a.target.email_address.value,username:l?null:a.target.username.value,password:l?null:a.target.password.value,image:t||null};(null==r?void 0:r.invite)&&(i.inviteObject=r),(0,n.A)(l?"/api/updateUser":"/api/registerUser",{method:"post",body:i},!!l).then(e=>{console.log(e),!l&&(null==e?void 0:e.insertId)?(localStorage.setItem("id",e.insertId),(0,n.A)("/api/loginUser",{method:"post",body:{email:i.email,password:i.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):l&&(null==e?void 0:e.user)?window.location.reload():(null==e?void 0:e.msg)&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{s(!1)},2e3)})}var o=s(6234),d=s(1710),m=s(6999);function c(e){let{user:a,query:s,image:c}=e,u=(null==s?void 0:s.email)?s.email:(null==a?void 0:a.email)?a.email:"",[p,g]=r.useState(null),[x,f]=r.useState(!1);return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[x&&(0,t.jsx)(d.A,{}),!a&&(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("hr",{className:"opacity-0"}),(0,t.jsx)(m.A,{user:null,userType:"admin",setLoading:f}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]})]}),(0,t.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),window.confirm("Update Account Information?")&&i({e,setLoading:f,user:a,image:c,query:s})},children:[p&&(0,t.jsx)(o.A,{message:p}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,t.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),g(null)):a.classList.add("warning")},defaultValue:a?a.first_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,t.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),g(null)):a.classList.add("warning")},defaultValue:a?a.last_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"username",children:"Username"}),(0,t.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),g(null)):a.classList.add("warning"),window.clearTimeout(l),l=setTimeout(()=>{(0,n.A)("/api/checkDuplicateData?type=username&value=".concat(a.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(g("Username Already Exists"),a.classList.add("warning")):(g(null),a.classList.remove("warning"))})},300)},defaultValue:a?a.username:"",required:!a,readOnly:!!a})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let a=e.target;window.clearTimeout(l),l=setTimeout(()=>{(0,n.A)("/api/checkDuplicateData?type=email&value=".concat(a.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(g("Email Already Exists"),a.classList.add("warning")):(g(null),a.classList.remove("warning"))})},300)},defaultValue:u,required:!0,readOnly:!!a})]}),!a&&(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"password",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,t.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let s=e.target;(null===(a=s.closest("form"))||void 0===a?void 0:a.password.value)===s.value?s.classList.remove("warning"):s.classList.add("warning")},required:!0})]}),(0,t.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,t.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,t.jsx)("button",{type:"submit",className:"w-full",children:a?(0,t.jsx)("span",{children:"Update Account Info"}):(0,t.jsx)("span",{children:"Create Account"})}),!a&&(0,t.jsx)(r.Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,t.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6272-34d9d0c839440fe4.js b/dsql-app/.local_dist/static/chunks/6272-34d9d0c839440fe4.js new file mode 100644 index 0000000..76dae43 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6272-34d9d0c839440fe4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6272],{7168:(e,a,t)=>{let l;t.d(a,{A:()=>g});var s=t(4848),i=t(6540),d=t(8589),n=t(6234),c=t(9020),o=t(65);async function r(e){var a,t,l,s,i,d,n;let{e:r,setLoading:u,dbImage:m,database:p,user:b}=e;u(!0);let g={db_description:(null===(t=r.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?r.target.database_description.value:null,db_name:(null===(s=r.target.database_name)||void 0===s?void 0:null===(l=s.value)||void 0===l?void 0:l.match(/./))?r.target.database_name.value:null,db_slug:(null===(d=r.target.database_slug)||void 0===d?void 0:null===(i=d.value)||void 0===i?void 0:i.match(/./))?r.target.database_slug.value:null,db_full_name:p.db_full_name,id:p.id,active_clone:p.active_clone,active_clone_parent_db:p.active_clone_parent_db};if(m){if("string"==typeof m)g.db_image=m;else if("object"==typeof m){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[m],folder:g.db_slug.replace(/_/g,"-"),type:"image"}},!0);g.db_image=(null==e?void 0:null===(n=e.mediaData[0])||void 0===n?void 0:n.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else g.db_image="/images/database-placeholder.png";(0,c.A)("/api/updateUserDatabase",{method:"post",body:g},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.pathname="/admin/".concat(null==b?void 0:b.id,"/databases"),setTimeout(()=>{u(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{u(!1)},1e3))})}var u=t(1335);let m=t.n(u)().fetch.fetchApi;async function p(e){var a,t,l;let{e:s,setLoading:i,dbImage:d,keepUpdated:n,keepDataUpdated:c,query:r,user:u}=e;i(!0);let p={db_name:s.target.database_name.value,db_slug:s.target.database_slug.value,db_description:(null===(t=s.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?s.target.database_description.value:null};if(d){if("string"==typeof d)p.db_image=d;else if("object"==typeof d){let e=await m("/api/addUserMedia",{method:"post",body:{media:[d],folder:p.db_slug.replace(/_/g,"-"),type:"image"}},!0);p.db_image=(null==e?void 0:null===(l=e.mediaData[0])||void 0===l?void 0:l.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}(null==r?void 0:r.duplicate)&&(p.duplicate=r.duplicate,p.keepUpdated=!!n&&n,p.keepDataUpdated=!!c&&c),m("/api/createUserDatabase",{method:"POST",body:p},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.pathname="/admin/".concat(null==u?void 0:u.id,"/databases/").concat(p.db_slug)}):setTimeout(()=>{i(!1)},1e3)})}var b=t(2408);function g(e){let{user:a,dbImage:t,setDbImage:c,database:o,setLoading:u,query:m}=e;async function g(e){return(null==o?void 0:o.db_slug)===e?null:await (0,d.A)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})}let[h,v]=i.useState(null),[f,_]=i.useState(!1),[x,w]=i.useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),o?r({e,setLoading:u,dbImage:t,database:o,user:a}):p({e,setLoading:u,dbImage:t,keepUpdated:f,keepDataUpdated:x,query:m,user:a})},children:[h&&(0,s.jsx)(n.A,{message:h}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),v(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{g(e).then(e=>{(null==e?void 0:e.result)?(t.database_slug.classList.add("warning"),v("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),v(null))})},300)}},defaultValue:o?o.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),v(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{g(t).then(e=>{(null==e?void 0:e.result)?(a.classList.add("warning"),v("Duplicate Database Name")):(a.classList.remove("warning"),v(null))})},300)},defaultValue:o?o.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:o?o.db_description:""})]}),(null==m?void 0:m.duplicate)&&(0,s.jsx)(i.Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(b.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?_(!0):_(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[o?"Update":"Create"," Database"]})]})}},3605:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(4848),s=t(6540),i=t(2659),d=t(5655),n=t(900);function c(e){let{user:a,dbImage:t,setDbImage:c,database:o}=e,r=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:r,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(n.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,d.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{var a,t;let l=e.target;null==l||null===(t=l.closest("#edit-database-image-option-wrapper"))||void 0===t||null===(a=t.querySelector("input"))||void 0===a||a.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];c(await (0,i.A)({imageInputFile:t,maxWidth:400}))}})]})]})}},2408:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(4848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:d,baseText:n,smallText:c,className:o}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(d?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((e,t)=>{let{payload:d,title:o,onChangeHandler:r,fixed:u,jsx:m}=e,p=e.name?"".concat(a,"-").concat(e.name):d?a+"-"+d:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(c?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(c?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:p,id:p,onChange:a=>{s&&s(null),r&&r(a,e)},value:d,style:{minWidth:"20px"},...e.props}),m||(0,l.jsx)("label",{htmlFor:p,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(n||c?" text-base":" text-lg"),children:o})]},t+1)})})}t(6540)},8589:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(9020);async function s(e){let{tableName:a,columnName:t,value:s,dbFullName:i,dispatch:d,userId:n,dbId:c}=e;return await (0,l.A)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(s).concat(i?"&dbFullName="+i:"").concat(n?"&userId="+n:"").concat(c?"&dbId="+c:""))}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6460-ab4ab8caec784ffc.js b/dsql-app/.local_dist/static/chunks/6460-15d2e5543b20c3c6.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/6460-ab4ab8caec784ffc.js rename to dsql-app/.local_dist/static/chunks/6460-15d2e5543b20c3c6.js index 8b6f6b2..3e76128 100644 --- a/dsql-app/.local_dist/static/chunks/6460-ab4ab8caec784ffc.js +++ b/dsql-app/.local_dist/static/chunks/6460-15d2e5543b20c3c6.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6460],{8383:(t,e,i)=>{i.r(e),i.d(e,{Flip:()=>tV,default:()=>tV});var n,r,s,a,o,l,h,p,u,c="transform",f=c+"Origin",d=function(t){var e=t.ownerDocument||t;for(!(c in t.style)&&("msTransform"in t.style)&&(f=(c="msTransform")+"Origin");e.parentNode&&(e=e.parentNode););if(r=window,h=new C,e){n=e,s=e.documentElement,a=e.body,(p=n.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),o=e.createElement("div"),l=e&&(e.body||e.firstElementChild);l&&l.appendChild&&(l.appendChild(i),i.appendChild(o),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),u=o.offsetParent!==i,l.removeChild(i))}return e},g=function(t){for(var e,i;t&&t!==a;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e},m=[],y=[],v=function(){return r.pageYOffset||n.scrollTop||s.scrollTop||a.scrollTop||0},x=function(){return r.pageXOffset||n.scrollLeft||s.scrollLeft||a.scrollLeft||0},b=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},w=function t(e,i){if(e.parentNode&&(n||d(e))){var r=b(e),s=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=r?i?"rect":"g":"div",h=2!==i?0:100,p=3===i?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=n.createElementNS?n.createElementNS(s.replace(/^https/,"http"),a):n.createElement(a);return i&&(r?(l||(l=t(e)),c.setAttribute("width",.01),c.setAttribute("height",.01),c.setAttribute("transform","translate("+h+","+p+")"),l.appendChild(c)):(o||((o=t(e)).style.cssText=u),c.style.cssText=u+"width:0.1px;height:0.1px;top:"+p+"px;left:"+h+"px",o.appendChild(c))),c}throw"Need document and parent."},_=function(t){for(var e=new C,i=0;i1?_(n):n.getItem(0).matrix:h).a*s.x+n.c*s.y,p=n.b*s.x+n.d*s.y):(n=new C,a=p=0),e&&"g"===t.tagName.toLowerCase()&&(a=p=0),(v?g:M).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+p)+")");else{if(a=p=0,u)for(n=t.offsetParent,s=t;s&&(s=s.parentNode)&&s!==n&&s.parentNode;)(r.getComputedStyle(s)[c]+"").length>4&&(a=s.offsetLeft,p=s.offsetTop,s=0);if("absolute"!==(d=r.getComputedStyle(t)).position&&"fixed"!==d.position)for(n=t.offsetParent;M&&M!==n;)a+=M.scrollLeft||0,p+=M.scrollTop||0,M=M.parentNode;(s=i.style).top=t.offsetTop-p+"px",s.left=t.offsetLeft-a+"px",s[c]=d[c],s[f]=d[f],s.position="fixed"===d.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i},O=function(t,e,i,n,r,s,a){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=s,t.f=a,t},C=function(){function t(t,e,i,n,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===s&&(s=0),O(this,t,e,i,n,r,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,s=this.f,a=t*n-e*i||1e-10;return O(this,n/a,-e/a,-i/a,t/a,(i*s-n*r)/a,-(t*s-e*r)/a)},e.multiply=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f,o=t.a,l=t.c,h=t.b,p=t.d,u=t.e,c=t.f;return O(this,o*e+h*n,o*i+h*r,l*e+p*n,l*i+p*r,s+u*e+c*n,a+u*i+c*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&s===t.e&&a===t.f},e.apply=function(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,s=this.b,a=this.c,o=this.d,l=this.e,h=this.f;return e.x=i*r+n*a+l||0,e.y=i*s+n*o+h||0,e},t}();function A(t,e,i,s){if(!t||!t.parentNode||(n||d(t)).documentElement===t)return new C;var a=g(t),o=b(t)?m:y,l=M(t,i),h=o[0].getBoundingClientRect(),p=o[1].getBoundingClientRect(),u=o[2].getBoundingClientRect(),c=l.parentNode,f=!s&&function t(e){return"fixed"===r.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),w=new C((p.left-h.left)/100,(p.top-h.top)/100,(u.left-h.left)/100,(u.top-h.top)/100,h.left+(f?0:x()),h.top+(f?0:v()));if(c.removeChild(l),a)for(h=a.length;h--;)(p=a[h]).scaleX=p.scaleY=0,p.renderTransform(1,p);return e?w.inverse():w}var S,E,P,B,V,T,Y,z,X=1,L=function(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})},I={},F=180/Math.PI,N=Math.PI/180,q={},H={},D={},R=function(t){return"string"==typeof t?t.split(" ").join("").split(","):t},j=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),W=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),J=function(t){return S(t)[0]||console.warn("Element not found:",t)},Z=function(t){return Math.round(1e4*t)/1e4||0},G=function(t,e,i){return t.forEach(function(t){return t.classList[i](e)})},U={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},$={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},K=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},Q=function(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n},tt={},te=function(t){var e=tt[t]=R(t);return D[t]=e.concat(W),e},ti=function(t){var e=t._gsap||E.core.getCache(t);return e.gmCache===E.ticker.frame?e.gMatrix:(e.gmCache=E.ticker.frame,e.gMatrix=A(t,!0,!1,!0))},tn=function t(e,i,n){void 0===n&&(n=0);for(var r=e.parentNode,s=1e3*Math.pow(10,n)*(i?-1:1),a=i?-(900*s):0;e;)a+=s,e=e.previousSibling;return r?a+t(r,i,n+1):a},tr=function(t,e,i){return t.forEach(function(t){return t.d=tn(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t},ts=function(t,e){for(var i,n,r=t.element.style,s=t.css=t.css||[],a=e.length;a--;)n=r[i=e[a]]||r.getPropertyValue(i),s.push(n?i:H[i]||(H[i]=K(i)),n);return r},ta=function(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n0&&I&&(h.style.opacity=tc?y.opacity-v.opacity:"0"),tv(y,v,L,H)):v.isVisible!==y.isVisible&&(v.isVisible?!y.isVisible&&(v.css=y.css,ti.push(v),tn.splice(l--,1),k&&z&&tv(y,v,L,H)):(y.isVisible&&K.push(y),tn.splice(l--,1))),L||(h.style.maxWidth=Math.max(y.width,v.width)+"px",h.style.maxHeight=Math.max(y.height,v.height)+"px",h.style.minWidth=Math.min(y.width,v.width)+"px",h.style.minHeight=Math.min(y.height,v.height)+"px"),z&&Y&&h.classList.add(Y)):tn.splice(l--,1),f.push(y);if(Y&&(e=f.map(function(t){return t.element}),z&&e.forEach(function(t){return t.classList.remove(Y)})),tk(!1),L?(R.scaleX=function(t){return tn[t].a.scaleX},R.scaleY=function(t){return tn[t].a.scaleY}):(R.width=function(t){return tn[t].a.width+"px"},R.height=function(t){return tn[t].a.height+"px"},R.autoRound=i.autoRound||!1),R.x=function(t){return tn[t].a.x+"px"},R.y=function(t){return tn[t].a.y+"px"},R.rotation=function(t){return tn[t].a.rotation+(N?360*th(t,c[t],c):0)},R.skewX=function(t){return tn[t].a.skewX},c=tn.map(function(t){return t.t}),(X||0===X)&&(R.modifiers={zIndex:function(){return X}},R.zIndex=X,R.immediateRender=!1!==i.immediateRender),I&&(R.opacity=function(t){return tn[t].sd<0?0:tn[t].sd>0?tn[t].a.opacity:"+=0"}),ta.length){F=E.utils.distribute(F);var e,n=c.slice(ta.length);R.stagger=function(t,e){return F(~ta.indexOf(e)?c.indexOf(tn[t].swap.t):t,e,n)}}if(j.forEach(function(t){return i[t]&&J.eventCallback(t,i[t],i[t+"Params"])}),O&&c.length)for(a in Z=Q(R,U),"scale"in O&&(O.scaleX=O.scaleY=O.scale,delete O.scale),O)(s=Q(O[a],$))[a]=R[a],!("duration"in s)&&"duration"in R&&(s.duration=R.duration),s.stagger=R.stagger,tf.call(J,c,s,0),delete Z[a];(c.length||ti.length||K.length)&&(Y&&J.add(function(){return G(e,Y,J._zTime<0?"remove":"add")},0)&&!S&&G(e,Y,"add"),c.length&&tf.call(J,c,Z,0)),ty(w,K,J),ty(_,ti,J);var r=P&&P.timeline;r&&(r.add(J,0),P._final.push(function(){return to(tn,!b)})),o=J.duration(),J.call(function(){var t=J.time()>=o;t&&!r&&to(tn,!b),Y&&G(e,Y,t?"remove":"add")})},M&&(k=tn.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),P?(k&&(r=P._abs).push.apply(r,tp(tn,k)),P._run.push(m)):(k&&tu(tp(tn,k)),m());var td=P?P.timeline:J;return td.revert=function(){return tC(td,1,1)},td},tO=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},tC=function(t,e,i){if(t&&1>t.progress()&&(!t.paused()||i))return e&&(tO(t),e<2&&t.progress(1),t.kill()),!0},tA=function(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,s=r.length;s--;)i[(e=r[s]).id]?n[e.id]=e:i[e.id]=e},tS=function(){function t(t,e,i){if(this.props=e&&e.props,this.simple=!!(e&&e.simple),i)this.targets=tm(t),this.elementStates=t,tA(this);else{this.targets=S(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);P&&!n&&P._kill.push(this),this.update(n||!!P)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map(function(t){return new tE(t,e.props,e.simple)}),tA(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,tA(this),this},e.fit=function(t,e,i){for(var n,r,s=tr(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,o=0;og.indexOf(i)&&v(t,e,i)};for(n in h)s=m[n],a=y[n],r=(e=s?tb(t,this,n):h[n]).element,i=p[n],a?(l=i.isVisible||!a.isVisible&&r===i.element?i:a,(o=!s||e.isVisible||s.isVisible||l.element!==s.element?e:s).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:u).push(o.element,l.element),g.push(o.element,l.element)):v(o,l,o.element),s&&o.element===s.element&&(s=h[n]),x(o.element!==i.element&&s?s:o,i,i.element),x(s&&s.element===a.element?s:o,a,a.element),s&&x(s,a.element===s.element?a:i,s.element)):(i?i.isDifferent(e)?v(e,i,r):u.push(r):f.push(r),s&&x(s,i,s.element));for(n in p)!h[n]&&(d.push(p[n].element),y[n]&&d.push(y[n].element));return{changed:c,unchanged:u,enter:f,leave:d}},e.recordInlineStyles=function(){for(var t=D[this.props]||W,e=this.elementStates.length;e--;)ts(this.elementStates[e],t)},e.interrupt=function(t){var e=this,i=[];this.targets.forEach(function(n){var r=n._flip,s=tC(r,t?0:1);t&&s&&0>i.indexOf(r)&&r.add(function(){return e.updateVisibility()}),s&&i.push(r)}),!t&&i.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!i.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(J(t))]},e.makeAbsolute=function(){return tr(this.elementStates.slice(0),!0,!0).map(th)},t}(),tE=function(){function t(t,e,i){this.element=t,this.update(e,i)}var e=t.prototype;return e.isDifferent=function(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,e){var i=this.element,n=E.getProperty(i),r=E.core.getCache(i),s=i.getBoundingClientRect(),a=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),o=e?new C(1,0,0,1,s.left+x(),s.top+v()):A(i,!1,!1,!0);this.getProp=n,this.element=i,this.id=tg(i),this.matrix=o,this.cache=r,this.bounds=s,this.isVisible=!!(s.width||s.height||s.left||s.top),this.display=n("display"),this.position=n("position"),this.parent=i.parentNode,this.x=n("x"),this.y=n("y"),this.scaleX=r.scaleX,this.scaleY=r.scaleY,this.rotation=n("rotation"),this.skewX=n("skewX"),this.opacity=n("opacity"),this.width=a?a.width:T(n("width","px"),.04),this.height=a?a.height:T(n("height","px"),.04),t&&tf(this,tt[t]||te(t)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&k(i).inverse(),this.simple=e||1===Z(o.a)&&!Z(o.b)&&!Z(o.c)&&1===Z(o.d),this.uncache=0},t}(),tP=function(){function t(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var e=t.prototype;return e.getStateById=function(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},e.kill=function(){this.batch.remove(this)},t}(),tB=function(){function t(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new tS,this.timeline=E.timeline()}var e=t.prototype;return e.add=function(t){var e=this.actions.filter(function(e){return e.vars===t});return e.length?e[0]:(e=new tP("function"==typeof t?{animate:t}:t,this),this.actions.push(e),e)},e.remove=function(t){var e=this.actions.indexOf(t);return e>=0&&this.actions.splice(e,1),this},e.getState=function(t){var e=this,i=P,n=B;return P=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(i){i.vars.getState&&(i.states.length=0,B=i,i.state=i.vars.getState(i)),t&&i.states.forEach(function(t){return e.state.add(t)})}),B=n,P=i,this.killConflicts(),this},e.animate=function(){var t,e,i=this,n=P,r=this.timeline,s=this.actions.length;for(P=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,s=t.targets;s&&s.length&&(n||r)&&(e=new tS,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(tV.getState(s))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),tu(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),L(i,"onComplete"))}),P=n;s--;)this.actions[s].vars.once&&this.actions[s].kill();return L(this,"onStart"),r.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach(function(i){if(i.vars.loadState){var n,r=function r(s){s&&(i.targets=s),~(n=e.indexOf(r))&&(e.splice(n,1),e.length||t())};e.push(r),i.vars.loadState(r)}}),e.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(e){return e.interrupt(t)}),this},e.run=function(t,e){var i=this;return this!==P&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete I[this.id]},t}(),tV=function(){function t(){}return t.getState=function(e,i){var n=tx(e,i);return B&&B.states.push(n),i&&i.batch&&t.batch(i.batch).state.add(n),n},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),tM(t,tx(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return tM(t,tx(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,i){return tM(t,e,i)},t.fit=function(t,e,i){var n=i?Q(i,$):{},r=i||n,s=r.absolute,a=r.scale,o=r.getVars,l=r.props,h=r.runBackwards,p=r.onComplete,u=r.simple,c=i&&i.fitChild&&J(i.fitChild),f=tc(e,l,u,t),d=tc(t,0,u,f),g=l?D[l]:W,m=E.context();return l&&td(n,f.props),ts(d,g),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ta(d),p&&p.apply(this,arguments)}),s&&th(d,f),n=tv(d,f,a||c,l,c,n.duration||o?n:0),m&&!o&&m.add(function(){return function(){return ta(d)}}),o?n:n.duration?E.to(d.element,n):null},t.makeAbsolute=function(t,e){return(t instanceof tS?t:new tS(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),I[t]||(I[t]=new tB(t))},t.killFlipsOf=function(t,e){(t instanceof tS?t.targets:S(t)).forEach(function(t){return t&&tC(t._flip,!1!==e?1:2)})},t.isFlipping=function(e){var i=t.getByTarget(e);return!!i&&i.isActive()},t.getByTarget=function(t){return(J(t)||q)._flip},t.getElementState=function(t,e){return new tE(J(t),e)},t.convertCoordinates=function(t,e,i){var n=A(e,!0,!0).multiply(A(t));return i?n.apply(i):n},t.register=function(t){if(V="undefined"!=typeof document&&document.body){E=t,d(V),S=E.utils.toArray,Y=E.core.getStyleSaver;var e=E.utils.snap(.1);T=function(t,i){return e(parseFloat(t)+i)}}},t}();tV.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(tV)},6517:(t,e,i)=>{i.d(e,{Ay:()=>tb});var n,r,s,a,o,l,h,p=i(8607),u={},c=180/Math.PI,f=Math.PI/180,d=Math.atan2,g=/([A-Z])/g,m=/(left|right|width|margin|padding|x)/i,y=/[\s,\(]\S/,v={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},x=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},b=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},w=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},_=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},k=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},M=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},O=function(t,e,i){return t.style[e]=i},C=function(t,e,i){return t.style.setProperty(e,i)},A=function(t,e,i){return t._gsap[e]=i},S=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},E=function(t,e,i,n,r){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},P=function(t,e,i,n,r){var s=t._gsap;s[e]=i,s.renderTransform(r,s)},B="transform",V=B+"Origin",T=function t(e,i){var n=this,r=this.target,s=r.style,a=r._gsap;if(e in u&&s){if(this.tfm=this.tfm||{},"transform"===e)return v.transform.split(",").forEach(function(e){return t.call(n,e,i)});if(~(e=v[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=$(r,t)}):this.tfm[e]=a.x?a[e]:$(r,e),e===V&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(B)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(V,i,"")),e=B}(s||i)&&this.props.push(e,i,s[e])},Y=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},z=function(){var t,e,i=this.props,n=this.target,r=n.style,s=n._gsap;for(t=0;t=0?F[r]:"")+t},q=function(){"undefined"!=typeof window&&window.document&&(r=(n=window.document).documentElement,a=L("div")||{style:{}},L("div"),V=(B=N(B))+"Origin",a.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",h=!!N("perspective"),l=p.os.core.reverting,s=1)},H=function t(e){var i,n=L("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(r.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return s&&(a?s.insertBefore(this,a):s.appendChild(this)),r.removeChild(n),this.style.cssText=o,i},D=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},R=function(t){var e;try{e=t.getBBox()}catch(i){e=H.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===H||(e=H.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+D(t,["x","cx","x1"])||0,y:+D(t,["y","cy","y1"])||0,width:0,height:0}},j=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&R(t))},W=function(t,e){if(e){var i,n=t.style;e in u&&e!==V&&(e=B),n.removeProperty?(("ms"===(i=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),n.removeProperty("--"===i?e:e.replace(g,"-$1").toLowerCase())):n.removeAttribute(e)}},J=function(t,e,i,n,r,s){var a=new p.J7(t._pt,e,i,0,1,s?M:k);return t._pt=a,a.b=n,a.e=r,t._props.push(i),a},Z={deg:1,rad:1,turn:1},G={grid:1,flex:1},U=function t(e,i,r,s){var o,l,h,c,f=parseFloat(r)||0,d=(r+"").trim().substr((f+"").length)||"px",g=a.style,y=m.test(i),v="svg"===e.tagName.toLowerCase(),x=(v?"client":"offset")+(y?"Width":"Height"),b="px"===s,w="%"===s;if(s===d||!f||Z[s]||Z[d])return f;if("px"===d||b||(f=t(e,i,r,"px")),c=e.getCTM&&j(e),(w||"%"===d)&&(u[i]||~i.indexOf("adius")))return o=c?e.getBBox()[y?"width":"height"]:e[x],(0,p.E_)(w?f/o*100:f/100*o);if(g[y?"width":"height"]=100+(b?d:s),l=~i.indexOf("adius")||"em"===s&&e.appendChild&&!v?e:e.parentNode,c&&(l=(e.ownerSVGElement||{}).parentNode),l&&l!==n&&l.appendChild||(l=n.body),(h=l._gsap)&&w&&h.width&&y&&h.time===p.au.time&&!h.uncache)return(0,p.E_)(f/h.width*100);if(w&&("height"===i||"width"===i)){var _=e.style[i];e.style[i]=100+s,o=e[x],_?e.style[i]=_:W(e,i)}else(w||"%"===d)&&!G[I(l,"display")]&&(g.position=I(e,"position")),l===e&&(g.position="static"),l.appendChild(a),o=a[x],l.removeChild(a),g.position="absolute";return y&&w&&((h=(0,p.a0)(l)).time=p.au.time,h.width=l[x]),(0,p.E_)(b?o*f/100:o&&f?100/o*f:0)},$=function(t,e,i,n){var r;return s||q(),e in v&&"transform"!==e&&~(e=v[e]).indexOf(",")&&(e=e.split(",")[0]),u[e]&&"transform"!==e?(r=th(t,n),r="transformOrigin"!==e?r[e]:r.svg?r.origin:tp(I(t,V))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=ti[e]&&ti[e](t,e,i)||I(t,e)||(0,p.n)(t,e)||("opacity"===e?1:0)),i&&!~(r+"").trim().indexOf(" ")?U(t,e,r,i)+i:r},K=function(t,e,i,n){if(!i||"none"===i){var r=N(e,t,1),s=r&&I(t,r,1);s&&s!==i?(e=r,i=s):"borderColor"===e&&(i=I(t,"borderTopColor"))}var a,o,l,h,u,c,f,d,g,m,y,v=new p.J7(this._pt,t.style,e,0,1,p.l1),x=0,b=0;if(v.b=i,v.e=n,i+="","auto"==(n+="")&&(c=t.style[e],t.style[e]=n,n=I(t,e)||n,c?t.style[e]=c:W(t,e)),a=[i,n],(0,p.Uc)(a),i=a[0],n=a[1],l=i.match(p.vM)||[],(n.match(p.vM)||[]).length){for(;o=p.vM.exec(n);)f=o[0],g=n.substring(x,o.index),u?u=(u+1)%5:("rgba("===g.substr(-5)||"hsla("===g.substr(-5))&&(u=1),f!==(c=l[b++]||"")&&(h=parseFloat(c)||0,y=c.substr((h+"").length),"="===f.charAt(1)&&(f=(0,p.B0)(h,f)+y),d=parseFloat(f),m=f.substr((d+"").length),x=p.vM.lastIndex-m.length,m||(m=m||p.Yz.units[e]||y,x!==n.length||(n+=m,v.e+=m)),y!==m&&(h=U(t,e,c,m)||0),v._pt={_next:v._pt,p:g||1===b?g:",",s:h,c:d-h,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=x-1;)u[i=o[r]]&&(n=1,i="transformOrigin"===i?V:B),W(s,i);n&&(W(s,B),l&&(l.svg&&s.removeAttribute("transform"),th(s,1),l.uncache=1,Y(a)))}},ti={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var s=t._pt=new p.J7(t._pt,e,i,0,0,te);return s.u=n,s.pr=-10,s.tween=r,t._props.push(i),1}}},tn=[1,0,0,1,0,0],tr={},ts=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ta=function(t){var e=I(t,B);return ts(e)?tn:e.substr(7).match(p.vX).map(p.E_)},to=function(t,e){var i,n,s,a,o=t._gsap||(0,p.a0)(t),l=t.style,h=ta(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(s=t.transform.baseVal.consolidate().matrix).a,s.b,s.c,s.d,s.e,s.f]).join(",")?tn:h:(h!==tn||t.offsetParent||t===r||o.svg||(s=l.display,l.display="block",(i=t.parentNode)&&t.offsetParent||(a=1,n=t.nextElementSibling,r.appendChild(t)),h=ta(t),s?l.display=s:W(t,"display"),a&&(n?i.insertBefore(t,n):i?i.appendChild(t):r.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},tl=function(t,e,i,n,r,s){var a,o,l,h,p=t._gsap,u=r||to(t,!0),c=p.xOrigin||0,f=p.yOrigin||0,d=p.xOffset||0,g=p.yOffset||0,m=u[0],y=u[1],v=u[2],x=u[3],b=u[4],w=u[5],_=e.split(" "),k=parseFloat(_[0])||0,M=parseFloat(_[1])||0;i?u!==tn&&(o=m*x-y*v)&&(l=x/o*k+-v/o*M+(v*w-x*b)/o,h=-y/o*k+m/o*M-(m*w-y*b)/o,k=l,M=h):(k=(a=R(t)).x+(~_[0].indexOf("%")?k/100*a.width:k),M=a.y+(~(_[1]||_[0]).indexOf("%")?M/100*a.height:M)),n||!1!==n&&p.smooth?(b=k-c,w=M-f,p.xOffset=d+(b*m+w*v)-b,p.yOffset=g+(b*y+w*x)-w):p.xOffset=p.yOffset=0,p.xOrigin=k,p.yOrigin=M,p.smooth=!!n,p.origin=e,p.originIsAbsolute=!!i,t.style[V]="0px 0px",s&&(J(s,p,"xOrigin",c,k),J(s,p,"yOrigin",f,M),J(s,p,"xOffset",d,p.xOffset),J(s,p,"yOffset",g,p.yOffset)),t.setAttribute("data-svg-origin",k+" "+M)},th=function(t,e){var i=t._gsap||new p.n6(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,s,a,o,l,u,g,m,y,v,x,b,w,_,k,M,O,C,A,S,E,P,T,Y,z,X,L,F,N,q,H,D=t.style,R=i.scaleX<0,W=getComputedStyle(t),J=I(t,V)||"0";return n=r=s=l=u=g=m=y=v=0,a=o=1,i.svg=!!(t.getCTM&&j(t)),W.translate&&(("none"!==W.translate||"none"!==W.scale||"none"!==W.rotate)&&(D[B]=("none"!==W.translate?"translate3d("+(W.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==W.rotate?"rotate("+W.rotate+") ":"")+("none"!==W.scale?"scale("+W.scale.split(" ").join(",")+") ":"")+("none"!==W[B]?W[B]:"")),D.scale=D.rotate=D.translate="none"),w=to(t,i.svg),i.svg&&(i.uncache?(Y=t.getBBox(),J=i.xOrigin-Y.x+"px "+(i.yOrigin-Y.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),tl(t,T||J,!!T||i.originIsAbsolute,!1!==i.smooth,w)),x=i.xOrigin||0,b=i.yOrigin||0,w!==tn&&(O=w[0],C=w[1],A=w[2],S=w[3],n=E=w[4],r=P=w[5],6===w.length?(a=Math.sqrt(O*O+C*C),o=Math.sqrt(S*S+A*A),l=O||C?d(C,O)*c:0,(m=A||S?d(A,S)*c+l:0)&&(o*=Math.abs(Math.cos(m*f))),i.svg&&(n-=x-(x*O+b*A),r-=b-(x*C+b*S))):(H=w[6],N=w[7],X=w[8],L=w[9],F=w[10],q=w[11],n=w[12],r=w[13],s=w[14],u=(_=d(H,F))*c,_&&(T=E*(k=Math.cos(-_))+X*(M=Math.sin(-_)),Y=P*k+L*M,z=H*k+F*M,X=-(E*M)+X*k,L=-(P*M)+L*k,F=-(H*M)+F*k,q=-(N*M)+q*k,E=T,P=Y,H=z),g=(_=d(-A,F))*c,_&&(T=O*(k=Math.cos(-_))-X*(M=Math.sin(-_)),Y=C*k-L*M,z=A*k-F*M,q=S*M+q*k,O=T,C=Y,A=z),l=(_=d(C,O))*c,_&&(T=O*(k=Math.cos(_))+C*(M=Math.sin(_)),Y=E*k+P*M,C=C*k-O*M,P=P*k-E*M,O=T,E=Y),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,g=180-g),a=(0,p.E_)(Math.sqrt(O*O+C*C+A*A)),o=(0,p.E_)(Math.sqrt(P*P+H*H)),m=Math.abs(_=d(E,P))>2e-4?_*c:0,v=q?1/(q<0?-q:q):0),i.svg&&(T=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!ts(I(t,B)),T&&t.setAttribute("transform",T))),Math.abs(m)>90&&270>Math.abs(m)&&(R?(a*=-1,m+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,m+=m<=0?180:-180)),e=e||i.uncache,i.x=n-((i.xPercent=n&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+"px",i.y=r-((i.yPercent=r&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+"px",i.z=s+"px",i.scaleX=(0,p.E_)(a),i.scaleY=(0,p.E_)(o),i.rotation=(0,p.E_)(l)+"deg",i.rotationX=(0,p.E_)(u)+"deg",i.rotationY=(0,p.E_)(g)+"deg",i.skewX=m+"deg",i.skewY=y+"deg",i.transformPerspective=v+"px",(i.zOrigin=parseFloat(J.split(" ")[2])||!e&&i.zOrigin||0)&&(D[V]=tp(J)),i.xOffset=i.yOffset=0,i.force3D=p.Yz.force3D,i.renderTransform=i.svg?tg:h?td:tc,i.uncache=0,i},tp=function(t){return(t=t.split(" "))[0]+" "+t[1]},tu=function(t,e,i){var n=(0,p.l_)(e);return(0,p.E_)(parseFloat(e)+parseFloat(U(t,"x",i+"px",n)))+n},tc=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,td(t,e)},tf="0deg",td=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,h=i.rotationY,p=i.rotationX,u=i.skewX,c=i.skewY,d=i.scaleX,g=i.scaleY,m=i.transformPerspective,y=i.force3D,v=i.target,x=i.zOrigin,b="",w="auto"===y&&t&&1!==t||!0===y;if(x&&(p!==tf||h!==tf)){var _,k=parseFloat(h)*f,M=Math.sin(k),O=Math.cos(k);s=tu(v,s,-(M*(_=Math.cos(k=parseFloat(p)*f))*x)),a=tu(v,a,-(-Math.sin(k)*x)),o=tu(v,o,-(O*_*x)+x)}"0px"!==m&&(b+="perspective("+m+") "),(n||r)&&(b+="translate("+n+"%, "+r+"%) "),(w||"0px"!==s||"0px"!==a||"0px"!==o)&&(b+="0px"!==o||w?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+") "),l!==tf&&(b+="rotate("+l+") "),h!==tf&&(b+="rotateY("+h+") "),p!==tf&&(b+="rotateX("+p+") "),(u!==tf||c!==tf)&&(b+="skew("+u+", "+c+") "),(1!==d||1!==g)&&(b+="scale("+d+", "+g+") "),v.style[B]=b||"translate(0, 0)"},tg=function(t,e){var i,n,r,s,a,o=e||this,l=o.xPercent,h=o.yPercent,u=o.x,c=o.y,d=o.rotation,g=o.skewX,m=o.skewY,y=o.scaleX,v=o.scaleY,x=o.target,b=o.xOrigin,w=o.yOrigin,_=o.xOffset,k=o.yOffset,M=o.forceCSS,O=parseFloat(u),C=parseFloat(c);d=parseFloat(d),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),d+=m),d||g?(d*=f,g*=f,i=Math.cos(d)*y,n=Math.sin(d)*y,r=-(Math.sin(d-g)*v),s=Math.cos(d-g)*v,g&&(m*=f,r*=a=Math.sqrt(1+(a=Math.tan(g-m))*a),s*=a,m&&(i*=a=Math.sqrt(1+(a=Math.tan(m))*a),n*=a)),i=(0,p.E_)(i),n=(0,p.E_)(n),r=(0,p.E_)(r),s=(0,p.E_)(s)):(i=y,s=v,n=r=0),(O&&!~(u+"").indexOf("px")||C&&!~(c+"").indexOf("px"))&&(O=U(x,"x",u,"px"),C=U(x,"y",c,"px")),(b||w||_||k)&&(O=(0,p.E_)(O+b-(b*i+w*r)+_),C=(0,p.E_)(C+w-(b*n+w*s)+k)),(l||h)&&(a=x.getBBox(),O=(0,p.E_)(O+l/100*a.width),C=(0,p.E_)(C+h/100*a.height)),a="matrix("+i+","+n+","+r+","+s+","+O+","+C+")",x.setAttribute("transform",a),M&&(x.style[B]=a)},tm=function(t,e,i,n,r){var s,a,o=(0,p.vQ)(r),l=parseFloat(r)*(o&&~r.indexOf("rad")?c:1)-n,h=n+l+"deg";return o&&("short"===(s=r.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===s&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===s&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),t._pt=a=new p.J7(t._pt,e,i,n,l,b),a.e=h,a.u="deg",t._props.push(i),a},ty=function(t,e){for(var i in e)t[i]=e[i];return t},tv=function(t,e,i){var n,r,s,a,o,l,h,c=ty({},i._gsap),f=i.style;for(r in c.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),f[B]=e,n=th(i,1),W(i,B),i.setAttribute("transform",s)):(s=getComputedStyle(i)[B],f[B]=e,n=th(i,1),f[B]=s),u)(s=c[r])!==(a=n[r])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)&&(o=(0,p.l_)(s)!==(h=(0,p.l_)(a))?U(i,r,s,h):parseFloat(s),l=parseFloat(a),t._pt=new p.J7(t._pt,n,r,o,l-o,x),t._pt.u=h||0,t._props.push(r));ty(n,c)};(0,p.fA)("padding,margin,Width,Radius",function(t,e){var i="Right",n="Bottom",r="Left",s=(e<3?["Top",i,n,r]:["Top"+r,"Top"+i,n+i,n+r]).map(function(i){return e<2?t+i:"border"+i+t});ti[e>1?"border"+t:t]=function(t,e,i,n,r){var a,o;if(arguments.length<4)return 5===(o=(a=s.map(function(e){return $(t,e,i)})).join(" ")).split(a[0]).length?a[0]:o;a=(n+"").split(" "),o={},s.forEach(function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]}),t.init(e,o,r)}});var tx={name:"css",register:q,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,r){var a,o,l,h,c,f,d,g,m,b,k,M,O,C,A,S,E=this._props,P=t.style,T=i.vars.startAt;for(d in s||q(),this.styles=this.styles||X(t),S=this.styles.props,this.tween=i,e)if("autoRound"!==d&&(o=e[d],!(p.wU[d]&&(0,p.Zm)(d,e,i,n,t,r)))){if(c=typeof o,f=ti[d],"function"===c&&(c=typeof(o=o.call(i,n,t,r))),"string"===c&&~o.indexOf("random(")&&(o=(0,p.Vy)(o)),f)f(this,t,d,o,i)&&(A=1);else if("--"===d.substr(0,2))a=(getComputedStyle(t).getPropertyValue(d)+"").trim(),o+="",p.qA.lastIndex=0,p.qA.test(a)||(g=(0,p.l_)(a),m=(0,p.l_)(o)),m?g!==m&&(a=U(t,d,a,m)+m):g&&(o+=g),this.add(P,"setProperty",a,o,n,r,0,0,d),E.push(d),S.push(d,0,P[d]);else if("undefined"!==c){if(T&&d in T?(a="function"==typeof T[d]?T[d].call(i,n,t,r):T[d],(0,p.vQ)(a)&&~a.indexOf("random(")&&(a=(0,p.Vy)(a)),(0,p.l_)(a+"")||"auto"===a||(a+=p.Yz.units[d]||(0,p.l_)($(t,d))||""),"="===(a+"").charAt(1)&&(a=$(t,d))):a=$(t,d),h=parseFloat(a),(b="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),l=parseFloat(o),d in v&&("autoAlpha"===d&&(1===h&&"hidden"===$(t,"visibility")&&l&&(h=0),S.push("visibility",0,P.visibility),J(this,P,"visibility",h?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==d&&"transform"!==d&&~(d=v[d]).indexOf(",")&&(d=d.split(",")[0])),k=d in u){if(this.styles.save(d),M||((O=t._gsap).renderTransform&&!e.parseTransform||th(t,e.parseTransform),C=!1!==e.smoothOrigin&&O.smooth,(M=this._pt=new p.J7(this._pt,P,B,0,1,O.renderTransform,O,0,-1)).dep=1),"scale"===d)this._pt=new p.J7(this._pt,O,"scaleY",O.scaleY,(b?(0,p.B0)(O.scaleY,b+l):l)-O.scaleY||0,x),this._pt.u=0,E.push("scaleY",d),d+="X";else if("transformOrigin"===d){S.push(V,0,P[V]),o=tt(o),O.svg?tl(t,o,0,C,0,this):((m=parseFloat(o.split(" ")[2])||0)!==O.zOrigin&&J(this,O,"zOrigin",O.zOrigin,m),J(this,P,d,tp(a),tp(o)));continue}else if("svgOrigin"===d){tl(t,o,1,C,0,this);continue}else if(d in tr){tm(this,O,d,h,b?(0,p.B0)(h,b+o):o);continue}else if("smoothOrigin"===d){J(this,O,"smooth",O.smooth,o);continue}else if("force3D"===d){O[d]=o;continue}else if("transform"===d){tv(this,o,t);continue}}else d in P||(d=N(d)||d);if(k||(l||0===l)&&(h||0===h)&&!y.test(o)&&d in P)g=(a+"").substr((h+"").length),l||(l=0),m=(0,p.l_)(o)||(d in p.Yz.units?p.Yz.units[d]:g),g!==m&&(h=U(t,d,a,m)),this._pt=new p.J7(this._pt,k?O:P,d,h,(b?(0,p.B0)(h,b+l):l)-h,k||"px"!==m&&"zIndex"!==d||!1===e.autoRound?x:_),this._pt.u=m||0,g!==m&&"%"!==m&&(this._pt.b=a,this._pt.r=w);else if(d in P)K.call(this,t,d,a,b?b+o:o);else if(d in t)this.add(t,d,a||t[d],b?b+o:o,n,r);else if("parseTransform"!==d){(0,p.dg)(d,o);continue}k||(d in P?S.push(d,0,P[d]):S.push(d,1,a||t[d])),E.push(d)}}A&&(0,p.St)(this)},render:function(t,e){if(e.tween._time||!l())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:$,aliases:v,getSetter:function(t,e,i){var n=v[e];return n&&0>n.indexOf(",")&&(e=n),e in u&&e!==V&&(t._gsap.x||$(t,"x"))?i&&o===i?"scale"===e?S:A:(o=i||{},"scale"===e?E:P):t.style&&!(0,p.OF)(t.style[e])?O:~e.indexOf("-")?C:(0,p.Dx)(t,e)},core:{_removeProperty:W,_getMatrix:to}};p.os.utils.checkPrefix=N,p.os.core.getStyleSaver=X,function(t,e,i,n){var r=(0,p.fA)(t+","+e+","+i,function(t){u[t]=1});(0,p.fA)(e,function(t){p.Yz.units[t]="deg",tr[t]=1}),v[r[13]]=t+","+e,(0,p.fA)(n,function(t){var e=t.split(":");v[e[1]]=r[e[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),(0,p.fA)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){p.Yz.units[t]="px"}),p.os.registerPlugin(tx);var tb=p.os.registerPlugin(tx)||p.os;tb.core.Tween},5014:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6460],{8383:(t,e,i)=>{i.r(e),i.d(e,{Flip:()=>tV,default:()=>tV});var n,r,s,a,o,l,h,p,u,c="transform",f=c+"Origin",d=function(t){var e=t.ownerDocument||t;for(!(c in t.style)&&("msTransform"in t.style)&&(f=(c="msTransform")+"Origin");e.parentNode&&(e=e.parentNode););if(r=window,h=new C,e){n=e,s=e.documentElement,a=e.body,(p=n.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),o=e.createElement("div"),l=e&&(e.body||e.firstElementChild);l&&l.appendChild&&(l.appendChild(i),i.appendChild(o),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),u=o.offsetParent!==i,l.removeChild(i))}return e},g=function(t){for(var e,i;t&&t!==a;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e},m=[],y=[],v=function(){return r.pageYOffset||n.scrollTop||s.scrollTop||a.scrollTop||0},x=function(){return r.pageXOffset||n.scrollLeft||s.scrollLeft||a.scrollLeft||0},b=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},w=function t(e,i){if(e.parentNode&&(n||d(e))){var r=b(e),s=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=r?i?"rect":"g":"div",h=2!==i?0:100,p=3===i?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",c=n.createElementNS?n.createElementNS(s.replace(/^https/,"http"),a):n.createElement(a);return i&&(r?(l||(l=t(e)),c.setAttribute("width",.01),c.setAttribute("height",.01),c.setAttribute("transform","translate("+h+","+p+")"),l.appendChild(c)):(o||((o=t(e)).style.cssText=u),c.style.cssText=u+"width:0.1px;height:0.1px;top:"+p+"px;left:"+h+"px",o.appendChild(c))),c}throw"Need document and parent."},_=function(t){for(var e=new C,i=0;i1?_(n):n.getItem(0).matrix:h).a*s.x+n.c*s.y,p=n.b*s.x+n.d*s.y):(n=new C,a=p=0),e&&"g"===t.tagName.toLowerCase()&&(a=p=0),(v?g:M).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+p)+")");else{if(a=p=0,u)for(n=t.offsetParent,s=t;s&&(s=s.parentNode)&&s!==n&&s.parentNode;)(r.getComputedStyle(s)[c]+"").length>4&&(a=s.offsetLeft,p=s.offsetTop,s=0);if("absolute"!==(d=r.getComputedStyle(t)).position&&"fixed"!==d.position)for(n=t.offsetParent;M&&M!==n;)a+=M.scrollLeft||0,p+=M.scrollTop||0,M=M.parentNode;(s=i.style).top=t.offsetTop-p+"px",s.left=t.offsetLeft-a+"px",s[c]=d[c],s[f]=d[f],s.position="fixed"===d.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i},O=function(t,e,i,n,r,s,a){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=s,t.f=a,t},C=function(){function t(t,e,i,n,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===s&&(s=0),O(this,t,e,i,n,r,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,s=this.f,a=t*n-e*i||1e-10;return O(this,n/a,-e/a,-i/a,t/a,(i*s-n*r)/a,-(t*s-e*r)/a)},e.multiply=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f,o=t.a,l=t.c,h=t.b,p=t.d,u=t.e,c=t.f;return O(this,o*e+h*n,o*i+h*r,l*e+p*n,l*i+p*r,s+u*e+c*n,a+u*i+c*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&s===t.e&&a===t.f},e.apply=function(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,s=this.b,a=this.c,o=this.d,l=this.e,h=this.f;return e.x=i*r+n*a+l||0,e.y=i*s+n*o+h||0,e},t}();function A(t,e,i,s){if(!t||!t.parentNode||(n||d(t)).documentElement===t)return new C;var a=g(t),o=b(t)?m:y,l=M(t,i),h=o[0].getBoundingClientRect(),p=o[1].getBoundingClientRect(),u=o[2].getBoundingClientRect(),c=l.parentNode,f=!s&&function t(e){return"fixed"===r.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),w=new C((p.left-h.left)/100,(p.top-h.top)/100,(u.left-h.left)/100,(u.top-h.top)/100,h.left+(f?0:x()),h.top+(f?0:v()));if(c.removeChild(l),a)for(h=a.length;h--;)(p=a[h]).scaleX=p.scaleY=0,p.renderTransform(1,p);return e?w.inverse():w}var S,E,P,B,V,T,Y,z,X=1,L=function(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})},I={},F=180/Math.PI,N=Math.PI/180,q={},H={},D={},R=function(t){return"string"==typeof t?t.split(" ").join("").split(","):t},j=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),W=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),J=function(t){return S(t)[0]||console.warn("Element not found:",t)},Z=function(t){return Math.round(1e4*t)/1e4||0},G=function(t,e,i){return t.forEach(function(t){return t.classList[i](e)})},U={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},$={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},K=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},Q=function(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n},tt={},te=function(t){var e=tt[t]=R(t);return D[t]=e.concat(W),e},ti=function(t){var e=t._gsap||E.core.getCache(t);return e.gmCache===E.ticker.frame?e.gMatrix:(e.gmCache=E.ticker.frame,e.gMatrix=A(t,!0,!1,!0))},tn=function t(e,i,n){void 0===n&&(n=0);for(var r=e.parentNode,s=1e3*Math.pow(10,n)*(i?-1:1),a=i?-(900*s):0;e;)a+=s,e=e.previousSibling;return r?a+t(r,i,n+1):a},tr=function(t,e,i){return t.forEach(function(t){return t.d=tn(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t},ts=function(t,e){for(var i,n,r=t.element.style,s=t.css=t.css||[],a=e.length;a--;)n=r[i=e[a]]||r.getPropertyValue(i),s.push(n?i:H[i]||(H[i]=K(i)),n);return r},ta=function(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n0&&I&&(h.style.opacity=tc?y.opacity-v.opacity:"0"),tv(y,v,L,H)):v.isVisible!==y.isVisible&&(v.isVisible?!y.isVisible&&(v.css=y.css,ti.push(v),tn.splice(l--,1),k&&z&&tv(y,v,L,H)):(y.isVisible&&K.push(y),tn.splice(l--,1))),L||(h.style.maxWidth=Math.max(y.width,v.width)+"px",h.style.maxHeight=Math.max(y.height,v.height)+"px",h.style.minWidth=Math.min(y.width,v.width)+"px",h.style.minHeight=Math.min(y.height,v.height)+"px"),z&&Y&&h.classList.add(Y)):tn.splice(l--,1),f.push(y);if(Y&&(e=f.map(function(t){return t.element}),z&&e.forEach(function(t){return t.classList.remove(Y)})),tk(!1),L?(R.scaleX=function(t){return tn[t].a.scaleX},R.scaleY=function(t){return tn[t].a.scaleY}):(R.width=function(t){return tn[t].a.width+"px"},R.height=function(t){return tn[t].a.height+"px"},R.autoRound=i.autoRound||!1),R.x=function(t){return tn[t].a.x+"px"},R.y=function(t){return tn[t].a.y+"px"},R.rotation=function(t){return tn[t].a.rotation+(N?360*th(t,c[t],c):0)},R.skewX=function(t){return tn[t].a.skewX},c=tn.map(function(t){return t.t}),(X||0===X)&&(R.modifiers={zIndex:function(){return X}},R.zIndex=X,R.immediateRender=!1!==i.immediateRender),I&&(R.opacity=function(t){return tn[t].sd<0?0:tn[t].sd>0?tn[t].a.opacity:"+=0"}),ta.length){F=E.utils.distribute(F);var e,n=c.slice(ta.length);R.stagger=function(t,e){return F(~ta.indexOf(e)?c.indexOf(tn[t].swap.t):t,e,n)}}if(j.forEach(function(t){return i[t]&&J.eventCallback(t,i[t],i[t+"Params"])}),O&&c.length)for(a in Z=Q(R,U),"scale"in O&&(O.scaleX=O.scaleY=O.scale,delete O.scale),O)(s=Q(O[a],$))[a]=R[a],!("duration"in s)&&"duration"in R&&(s.duration=R.duration),s.stagger=R.stagger,tf.call(J,c,s,0),delete Z[a];(c.length||ti.length||K.length)&&(Y&&J.add(function(){return G(e,Y,J._zTime<0?"remove":"add")},0)&&!S&&G(e,Y,"add"),c.length&&tf.call(J,c,Z,0)),ty(w,K,J),ty(_,ti,J);var r=P&&P.timeline;r&&(r.add(J,0),P._final.push(function(){return to(tn,!b)})),o=J.duration(),J.call(function(){var t=J.time()>=o;t&&!r&&to(tn,!b),Y&&G(e,Y,t?"remove":"add")})},M&&(k=tn.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),P?(k&&(r=P._abs).push.apply(r,tp(tn,k)),P._run.push(m)):(k&&tu(tp(tn,k)),m());var td=P?P.timeline:J;return td.revert=function(){return tC(td,1,1)},td},tO=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},tC=function(t,e,i){if(t&&1>t.progress()&&(!t.paused()||i))return e&&(tO(t),e<2&&t.progress(1),t.kill()),!0},tA=function(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,s=r.length;s--;)i[(e=r[s]).id]?n[e.id]=e:i[e.id]=e},tS=function(){function t(t,e,i){if(this.props=e&&e.props,this.simple=!!(e&&e.simple),i)this.targets=tm(t),this.elementStates=t,tA(this);else{this.targets=S(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);P&&!n&&P._kill.push(this),this.update(n||!!P)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map(function(t){return new tE(t,e.props,e.simple)}),tA(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,tA(this),this},e.fit=function(t,e,i){for(var n,r,s=tr(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,o=0;og.indexOf(i)&&v(t,e,i)};for(n in h)s=m[n],a=y[n],r=(e=s?tb(t,this,n):h[n]).element,i=p[n],a?(l=i.isVisible||!a.isVisible&&r===i.element?i:a,(o=!s||e.isVisible||s.isVisible||l.element!==s.element?e:s).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:u).push(o.element,l.element),g.push(o.element,l.element)):v(o,l,o.element),s&&o.element===s.element&&(s=h[n]),x(o.element!==i.element&&s?s:o,i,i.element),x(s&&s.element===a.element?s:o,a,a.element),s&&x(s,a.element===s.element?a:i,s.element)):(i?i.isDifferent(e)?v(e,i,r):u.push(r):f.push(r),s&&x(s,i,s.element));for(n in p)!h[n]&&(d.push(p[n].element),y[n]&&d.push(y[n].element));return{changed:c,unchanged:u,enter:f,leave:d}},e.recordInlineStyles=function(){for(var t=D[this.props]||W,e=this.elementStates.length;e--;)ts(this.elementStates[e],t)},e.interrupt=function(t){var e=this,i=[];this.targets.forEach(function(n){var r=n._flip,s=tC(r,t?0:1);t&&s&&0>i.indexOf(r)&&r.add(function(){return e.updateVisibility()}),s&&i.push(r)}),!t&&i.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!i.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(J(t))]},e.makeAbsolute=function(){return tr(this.elementStates.slice(0),!0,!0).map(th)},t}(),tE=function(){function t(t,e,i){this.element=t,this.update(e,i)}var e=t.prototype;return e.isDifferent=function(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,e){var i=this.element,n=E.getProperty(i),r=E.core.getCache(i),s=i.getBoundingClientRect(),a=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),o=e?new C(1,0,0,1,s.left+x(),s.top+v()):A(i,!1,!1,!0);this.getProp=n,this.element=i,this.id=tg(i),this.matrix=o,this.cache=r,this.bounds=s,this.isVisible=!!(s.width||s.height||s.left||s.top),this.display=n("display"),this.position=n("position"),this.parent=i.parentNode,this.x=n("x"),this.y=n("y"),this.scaleX=r.scaleX,this.scaleY=r.scaleY,this.rotation=n("rotation"),this.skewX=n("skewX"),this.opacity=n("opacity"),this.width=a?a.width:T(n("width","px"),.04),this.height=a?a.height:T(n("height","px"),.04),t&&tf(this,tt[t]||te(t)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&k(i).inverse(),this.simple=e||1===Z(o.a)&&!Z(o.b)&&!Z(o.c)&&1===Z(o.d),this.uncache=0},t}(),tP=function(){function t(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var e=t.prototype;return e.getStateById=function(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},e.kill=function(){this.batch.remove(this)},t}(),tB=function(){function t(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new tS,this.timeline=E.timeline()}var e=t.prototype;return e.add=function(t){var e=this.actions.filter(function(e){return e.vars===t});return e.length?e[0]:(e=new tP("function"==typeof t?{animate:t}:t,this),this.actions.push(e),e)},e.remove=function(t){var e=this.actions.indexOf(t);return e>=0&&this.actions.splice(e,1),this},e.getState=function(t){var e=this,i=P,n=B;return P=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(i){i.vars.getState&&(i.states.length=0,B=i,i.state=i.vars.getState(i)),t&&i.states.forEach(function(t){return e.state.add(t)})}),B=n,P=i,this.killConflicts(),this},e.animate=function(){var t,e,i=this,n=P,r=this.timeline,s=this.actions.length;for(P=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,s=t.targets;s&&s.length&&(n||r)&&(e=new tS,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(tV.getState(s))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),tu(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),L(i,"onComplete"))}),P=n;s--;)this.actions[s].vars.once&&this.actions[s].kill();return L(this,"onStart"),r.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach(function(i){if(i.vars.loadState){var n,r=function r(s){s&&(i.targets=s),~(n=e.indexOf(r))&&(e.splice(n,1),e.length||t())};e.push(r),i.vars.loadState(r)}}),e.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(e){return e.interrupt(t)}),this},e.run=function(t,e){var i=this;return this!==P&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete I[this.id]},t}(),tV=function(){function t(){}return t.getState=function(e,i){var n=tx(e,i);return B&&B.states.push(n),i&&i.batch&&t.batch(i.batch).state.add(n),n},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),tM(t,tx(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return tM(t,tx(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,i){return tM(t,e,i)},t.fit=function(t,e,i){var n=i?Q(i,$):{},r=i||n,s=r.absolute,a=r.scale,o=r.getVars,l=r.props,h=r.runBackwards,p=r.onComplete,u=r.simple,c=i&&i.fitChild&&J(i.fitChild),f=tc(e,l,u,t),d=tc(t,0,u,f),g=l?D[l]:W,m=E.context();return l&&td(n,f.props),ts(d,g),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ta(d),p&&p.apply(this,arguments)}),s&&th(d,f),n=tv(d,f,a||c,l,c,n.duration||o?n:0),m&&!o&&m.add(function(){return function(){return ta(d)}}),o?n:n.duration?E.to(d.element,n):null},t.makeAbsolute=function(t,e){return(t instanceof tS?t:new tS(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),I[t]||(I[t]=new tB(t))},t.killFlipsOf=function(t,e){(t instanceof tS?t.targets:S(t)).forEach(function(t){return t&&tC(t._flip,!1!==e?1:2)})},t.isFlipping=function(e){var i=t.getByTarget(e);return!!i&&i.isActive()},t.getByTarget=function(t){return(J(t)||q)._flip},t.getElementState=function(t,e){return new tE(J(t),e)},t.convertCoordinates=function(t,e,i){var n=A(e,!0,!0).multiply(A(t));return i?n.apply(i):n},t.register=function(t){if(V="undefined"!=typeof document&&document.body){E=t,d(V),S=E.utils.toArray,Y=E.core.getStyleSaver;var e=E.utils.snap(.1);T=function(t,i){return e(parseFloat(t)+i)}}},t}();tV.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(tV)},6517:(t,e,i)=>{i.d(e,{Ay:()=>tb});var n,r,s,a,o,l,h,p=i(8607),u={},c=180/Math.PI,f=Math.PI/180,d=Math.atan2,g=/([A-Z])/g,m=/(left|right|width|margin|padding|x)/i,y=/[\s,\(]\S/,v={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},x=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},b=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},w=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},_=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},k=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},M=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},O=function(t,e,i){return t.style[e]=i},C=function(t,e,i){return t.style.setProperty(e,i)},A=function(t,e,i){return t._gsap[e]=i},S=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},E=function(t,e,i,n,r){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},P=function(t,e,i,n,r){var s=t._gsap;s[e]=i,s.renderTransform(r,s)},B="transform",V=B+"Origin",T=function t(e,i){var n=this,r=this.target,s=r.style,a=r._gsap;if(e in u&&s){if(this.tfm=this.tfm||{},"transform"===e)return v.transform.split(",").forEach(function(e){return t.call(n,e,i)});if(~(e=v[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=$(r,t)}):this.tfm[e]=a.x?a[e]:$(r,e),e===V&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(B)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(V,i,"")),e=B}(s||i)&&this.props.push(e,i,s[e])},Y=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},z=function(){var t,e,i=this.props,n=this.target,r=n.style,s=n._gsap;for(t=0;t=0?F[r]:"")+t},q=function(){"undefined"!=typeof window&&window.document&&(r=(n=window.document).documentElement,a=L("div")||{style:{}},L("div"),V=(B=N(B))+"Origin",a.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",h=!!N("perspective"),l=p.os.core.reverting,s=1)},H=function t(e){var i,n=L("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(r.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return s&&(a?s.insertBefore(this,a):s.appendChild(this)),r.removeChild(n),this.style.cssText=o,i},D=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},R=function(t){var e;try{e=t.getBBox()}catch(i){e=H.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===H||(e=H.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+D(t,["x","cx","x1"])||0,y:+D(t,["y","cy","y1"])||0,width:0,height:0}},j=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&R(t))},W=function(t,e){if(e){var i,n=t.style;e in u&&e!==V&&(e=B),n.removeProperty?(("ms"===(i=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),n.removeProperty("--"===i?e:e.replace(g,"-$1").toLowerCase())):n.removeAttribute(e)}},J=function(t,e,i,n,r,s){var a=new p.J7(t._pt,e,i,0,1,s?M:k);return t._pt=a,a.b=n,a.e=r,t._props.push(i),a},Z={deg:1,rad:1,turn:1},G={grid:1,flex:1},U=function t(e,i,r,s){var o,l,h,c,f=parseFloat(r)||0,d=(r+"").trim().substr((f+"").length)||"px",g=a.style,y=m.test(i),v="svg"===e.tagName.toLowerCase(),x=(v?"client":"offset")+(y?"Width":"Height"),b="px"===s,w="%"===s;if(s===d||!f||Z[s]||Z[d])return f;if("px"===d||b||(f=t(e,i,r,"px")),c=e.getCTM&&j(e),(w||"%"===d)&&(u[i]||~i.indexOf("adius")))return o=c?e.getBBox()[y?"width":"height"]:e[x],(0,p.E_)(w?f/o*100:f/100*o);if(g[y?"width":"height"]=100+(b?d:s),l=~i.indexOf("adius")||"em"===s&&e.appendChild&&!v?e:e.parentNode,c&&(l=(e.ownerSVGElement||{}).parentNode),l&&l!==n&&l.appendChild||(l=n.body),(h=l._gsap)&&w&&h.width&&y&&h.time===p.au.time&&!h.uncache)return(0,p.E_)(f/h.width*100);if(w&&("height"===i||"width"===i)){var _=e.style[i];e.style[i]=100+s,o=e[x],_?e.style[i]=_:W(e,i)}else(w||"%"===d)&&!G[I(l,"display")]&&(g.position=I(e,"position")),l===e&&(g.position="static"),l.appendChild(a),o=a[x],l.removeChild(a),g.position="absolute";return y&&w&&((h=(0,p.a0)(l)).time=p.au.time,h.width=l[x]),(0,p.E_)(b?o*f/100:o&&f?100/o*f:0)},$=function(t,e,i,n){var r;return s||q(),e in v&&"transform"!==e&&~(e=v[e]).indexOf(",")&&(e=e.split(",")[0]),u[e]&&"transform"!==e?(r=th(t,n),r="transformOrigin"!==e?r[e]:r.svg?r.origin:tp(I(t,V))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=ti[e]&&ti[e](t,e,i)||I(t,e)||(0,p.n)(t,e)||("opacity"===e?1:0)),i&&!~(r+"").trim().indexOf(" ")?U(t,e,r,i)+i:r},K=function(t,e,i,n){if(!i||"none"===i){var r=N(e,t,1),s=r&&I(t,r,1);s&&s!==i?(e=r,i=s):"borderColor"===e&&(i=I(t,"borderTopColor"))}var a,o,l,h,u,c,f,d,g,m,y,v=new p.J7(this._pt,t.style,e,0,1,p.l1),x=0,b=0;if(v.b=i,v.e=n,i+="","auto"==(n+="")&&(c=t.style[e],t.style[e]=n,n=I(t,e)||n,c?t.style[e]=c:W(t,e)),a=[i,n],(0,p.Uc)(a),i=a[0],n=a[1],l=i.match(p.vM)||[],(n.match(p.vM)||[]).length){for(;o=p.vM.exec(n);)f=o[0],g=n.substring(x,o.index),u?u=(u+1)%5:("rgba("===g.substr(-5)||"hsla("===g.substr(-5))&&(u=1),f!==(c=l[b++]||"")&&(h=parseFloat(c)||0,y=c.substr((h+"").length),"="===f.charAt(1)&&(f=(0,p.B0)(h,f)+y),d=parseFloat(f),m=f.substr((d+"").length),x=p.vM.lastIndex-m.length,m||(m=m||p.Yz.units[e]||y,x!==n.length||(n+=m,v.e+=m)),y!==m&&(h=U(t,e,c,m)||0),v._pt={_next:v._pt,p:g||1===b?g:",",s:h,c:d-h,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=x-1;)u[i=o[r]]&&(n=1,i="transformOrigin"===i?V:B),W(s,i);n&&(W(s,B),l&&(l.svg&&s.removeAttribute("transform"),th(s,1),l.uncache=1,Y(a)))}},ti={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var s=t._pt=new p.J7(t._pt,e,i,0,0,te);return s.u=n,s.pr=-10,s.tween=r,t._props.push(i),1}}},tn=[1,0,0,1,0,0],tr={},ts=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ta=function(t){var e=I(t,B);return ts(e)?tn:e.substr(7).match(p.vX).map(p.E_)},to=function(t,e){var i,n,s,a,o=t._gsap||(0,p.a0)(t),l=t.style,h=ta(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(s=t.transform.baseVal.consolidate().matrix).a,s.b,s.c,s.d,s.e,s.f]).join(",")?tn:h:(h!==tn||t.offsetParent||t===r||o.svg||(s=l.display,l.display="block",(i=t.parentNode)&&t.offsetParent||(a=1,n=t.nextElementSibling,r.appendChild(t)),h=ta(t),s?l.display=s:W(t,"display"),a&&(n?i.insertBefore(t,n):i?i.appendChild(t):r.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},tl=function(t,e,i,n,r,s){var a,o,l,h,p=t._gsap,u=r||to(t,!0),c=p.xOrigin||0,f=p.yOrigin||0,d=p.xOffset||0,g=p.yOffset||0,m=u[0],y=u[1],v=u[2],x=u[3],b=u[4],w=u[5],_=e.split(" "),k=parseFloat(_[0])||0,M=parseFloat(_[1])||0;i?u!==tn&&(o=m*x-y*v)&&(l=x/o*k+-v/o*M+(v*w-x*b)/o,h=-y/o*k+m/o*M-(m*w-y*b)/o,k=l,M=h):(k=(a=R(t)).x+(~_[0].indexOf("%")?k/100*a.width:k),M=a.y+(~(_[1]||_[0]).indexOf("%")?M/100*a.height:M)),n||!1!==n&&p.smooth?(b=k-c,w=M-f,p.xOffset=d+(b*m+w*v)-b,p.yOffset=g+(b*y+w*x)-w):p.xOffset=p.yOffset=0,p.xOrigin=k,p.yOrigin=M,p.smooth=!!n,p.origin=e,p.originIsAbsolute=!!i,t.style[V]="0px 0px",s&&(J(s,p,"xOrigin",c,k),J(s,p,"yOrigin",f,M),J(s,p,"xOffset",d,p.xOffset),J(s,p,"yOffset",g,p.yOffset)),t.setAttribute("data-svg-origin",k+" "+M)},th=function(t,e){var i=t._gsap||new p.n6(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,s,a,o,l,u,g,m,y,v,x,b,w,_,k,M,O,C,A,S,E,P,T,Y,z,X,L,F,N,q,H,D=t.style,R=i.scaleX<0,W=getComputedStyle(t),J=I(t,V)||"0";return n=r=s=l=u=g=m=y=v=0,a=o=1,i.svg=!!(t.getCTM&&j(t)),W.translate&&(("none"!==W.translate||"none"!==W.scale||"none"!==W.rotate)&&(D[B]=("none"!==W.translate?"translate3d("+(W.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==W.rotate?"rotate("+W.rotate+") ":"")+("none"!==W.scale?"scale("+W.scale.split(" ").join(",")+") ":"")+("none"!==W[B]?W[B]:"")),D.scale=D.rotate=D.translate="none"),w=to(t,i.svg),i.svg&&(i.uncache?(Y=t.getBBox(),J=i.xOrigin-Y.x+"px "+(i.yOrigin-Y.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),tl(t,T||J,!!T||i.originIsAbsolute,!1!==i.smooth,w)),x=i.xOrigin||0,b=i.yOrigin||0,w!==tn&&(O=w[0],C=w[1],A=w[2],S=w[3],n=E=w[4],r=P=w[5],6===w.length?(a=Math.sqrt(O*O+C*C),o=Math.sqrt(S*S+A*A),l=O||C?d(C,O)*c:0,(m=A||S?d(A,S)*c+l:0)&&(o*=Math.abs(Math.cos(m*f))),i.svg&&(n-=x-(x*O+b*A),r-=b-(x*C+b*S))):(H=w[6],N=w[7],X=w[8],L=w[9],F=w[10],q=w[11],n=w[12],r=w[13],s=w[14],u=(_=d(H,F))*c,_&&(T=E*(k=Math.cos(-_))+X*(M=Math.sin(-_)),Y=P*k+L*M,z=H*k+F*M,X=-(E*M)+X*k,L=-(P*M)+L*k,F=-(H*M)+F*k,q=-(N*M)+q*k,E=T,P=Y,H=z),g=(_=d(-A,F))*c,_&&(T=O*(k=Math.cos(-_))-X*(M=Math.sin(-_)),Y=C*k-L*M,z=A*k-F*M,q=S*M+q*k,O=T,C=Y,A=z),l=(_=d(C,O))*c,_&&(T=O*(k=Math.cos(_))+C*(M=Math.sin(_)),Y=E*k+P*M,C=C*k-O*M,P=P*k-E*M,O=T,E=Y),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,g=180-g),a=(0,p.E_)(Math.sqrt(O*O+C*C+A*A)),o=(0,p.E_)(Math.sqrt(P*P+H*H)),m=Math.abs(_=d(E,P))>2e-4?_*c:0,v=q?1/(q<0?-q:q):0),i.svg&&(T=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!ts(I(t,B)),T&&t.setAttribute("transform",T))),Math.abs(m)>90&&270>Math.abs(m)&&(R?(a*=-1,m+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,m+=m<=0?180:-180)),e=e||i.uncache,i.x=n-((i.xPercent=n&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+"px",i.y=r-((i.yPercent=r&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+"px",i.z=s+"px",i.scaleX=(0,p.E_)(a),i.scaleY=(0,p.E_)(o),i.rotation=(0,p.E_)(l)+"deg",i.rotationX=(0,p.E_)(u)+"deg",i.rotationY=(0,p.E_)(g)+"deg",i.skewX=m+"deg",i.skewY=y+"deg",i.transformPerspective=v+"px",(i.zOrigin=parseFloat(J.split(" ")[2])||!e&&i.zOrigin||0)&&(D[V]=tp(J)),i.xOffset=i.yOffset=0,i.force3D=p.Yz.force3D,i.renderTransform=i.svg?tg:h?td:tc,i.uncache=0,i},tp=function(t){return(t=t.split(" "))[0]+" "+t[1]},tu=function(t,e,i){var n=(0,p.l_)(e);return(0,p.E_)(parseFloat(e)+parseFloat(U(t,"x",i+"px",n)))+n},tc=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,td(t,e)},tf="0deg",td=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,h=i.rotationY,p=i.rotationX,u=i.skewX,c=i.skewY,d=i.scaleX,g=i.scaleY,m=i.transformPerspective,y=i.force3D,v=i.target,x=i.zOrigin,b="",w="auto"===y&&t&&1!==t||!0===y;if(x&&(p!==tf||h!==tf)){var _,k=parseFloat(h)*f,M=Math.sin(k),O=Math.cos(k);s=tu(v,s,-(M*(_=Math.cos(k=parseFloat(p)*f))*x)),a=tu(v,a,-(-Math.sin(k)*x)),o=tu(v,o,-(O*_*x)+x)}"0px"!==m&&(b+="perspective("+m+") "),(n||r)&&(b+="translate("+n+"%, "+r+"%) "),(w||"0px"!==s||"0px"!==a||"0px"!==o)&&(b+="0px"!==o||w?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+") "),l!==tf&&(b+="rotate("+l+") "),h!==tf&&(b+="rotateY("+h+") "),p!==tf&&(b+="rotateX("+p+") "),(u!==tf||c!==tf)&&(b+="skew("+u+", "+c+") "),(1!==d||1!==g)&&(b+="scale("+d+", "+g+") "),v.style[B]=b||"translate(0, 0)"},tg=function(t,e){var i,n,r,s,a,o=e||this,l=o.xPercent,h=o.yPercent,u=o.x,c=o.y,d=o.rotation,g=o.skewX,m=o.skewY,y=o.scaleX,v=o.scaleY,x=o.target,b=o.xOrigin,w=o.yOrigin,_=o.xOffset,k=o.yOffset,M=o.forceCSS,O=parseFloat(u),C=parseFloat(c);d=parseFloat(d),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),d+=m),d||g?(d*=f,g*=f,i=Math.cos(d)*y,n=Math.sin(d)*y,r=-(Math.sin(d-g)*v),s=Math.cos(d-g)*v,g&&(m*=f,r*=a=Math.sqrt(1+(a=Math.tan(g-m))*a),s*=a,m&&(i*=a=Math.sqrt(1+(a=Math.tan(m))*a),n*=a)),i=(0,p.E_)(i),n=(0,p.E_)(n),r=(0,p.E_)(r),s=(0,p.E_)(s)):(i=y,s=v,n=r=0),(O&&!~(u+"").indexOf("px")||C&&!~(c+"").indexOf("px"))&&(O=U(x,"x",u,"px"),C=U(x,"y",c,"px")),(b||w||_||k)&&(O=(0,p.E_)(O+b-(b*i+w*r)+_),C=(0,p.E_)(C+w-(b*n+w*s)+k)),(l||h)&&(a=x.getBBox(),O=(0,p.E_)(O+l/100*a.width),C=(0,p.E_)(C+h/100*a.height)),a="matrix("+i+","+n+","+r+","+s+","+O+","+C+")",x.setAttribute("transform",a),M&&(x.style[B]=a)},tm=function(t,e,i,n,r){var s,a,o=(0,p.vQ)(r),l=parseFloat(r)*(o&&~r.indexOf("rad")?c:1)-n,h=n+l+"deg";return o&&("short"===(s=r.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===s&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===s&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),t._pt=a=new p.J7(t._pt,e,i,n,l,b),a.e=h,a.u="deg",t._props.push(i),a},ty=function(t,e){for(var i in e)t[i]=e[i];return t},tv=function(t,e,i){var n,r,s,a,o,l,h,c=ty({},i._gsap),f=i.style;for(r in c.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),f[B]=e,n=th(i,1),W(i,B),i.setAttribute("transform",s)):(s=getComputedStyle(i)[B],f[B]=e,n=th(i,1),f[B]=s),u)(s=c[r])!==(a=n[r])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)&&(o=(0,p.l_)(s)!==(h=(0,p.l_)(a))?U(i,r,s,h):parseFloat(s),l=parseFloat(a),t._pt=new p.J7(t._pt,n,r,o,l-o,x),t._pt.u=h||0,t._props.push(r));ty(n,c)};(0,p.fA)("padding,margin,Width,Radius",function(t,e){var i="Right",n="Bottom",r="Left",s=(e<3?["Top",i,n,r]:["Top"+r,"Top"+i,n+i,n+r]).map(function(i){return e<2?t+i:"border"+i+t});ti[e>1?"border"+t:t]=function(t,e,i,n,r){var a,o;if(arguments.length<4)return 5===(o=(a=s.map(function(e){return $(t,e,i)})).join(" ")).split(a[0]).length?a[0]:o;a=(n+"").split(" "),o={},s.forEach(function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]}),t.init(e,o,r)}});var tx={name:"css",register:q,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,r){var a,o,l,h,c,f,d,g,m,b,k,M,O,C,A,S,E=this._props,P=t.style,T=i.vars.startAt;for(d in s||q(),this.styles=this.styles||X(t),S=this.styles.props,this.tween=i,e)if("autoRound"!==d&&(o=e[d],!(p.wU[d]&&(0,p.Zm)(d,e,i,n,t,r)))){if(c=typeof o,f=ti[d],"function"===c&&(c=typeof(o=o.call(i,n,t,r))),"string"===c&&~o.indexOf("random(")&&(o=(0,p.Vy)(o)),f)f(this,t,d,o,i)&&(A=1);else if("--"===d.substr(0,2))a=(getComputedStyle(t).getPropertyValue(d)+"").trim(),o+="",p.qA.lastIndex=0,p.qA.test(a)||(g=(0,p.l_)(a),m=(0,p.l_)(o)),m?g!==m&&(a=U(t,d,a,m)+m):g&&(o+=g),this.add(P,"setProperty",a,o,n,r,0,0,d),E.push(d),S.push(d,0,P[d]);else if("undefined"!==c){if(T&&d in T?(a="function"==typeof T[d]?T[d].call(i,n,t,r):T[d],(0,p.vQ)(a)&&~a.indexOf("random(")&&(a=(0,p.Vy)(a)),(0,p.l_)(a+"")||"auto"===a||(a+=p.Yz.units[d]||(0,p.l_)($(t,d))||""),"="===(a+"").charAt(1)&&(a=$(t,d))):a=$(t,d),h=parseFloat(a),(b="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),l=parseFloat(o),d in v&&("autoAlpha"===d&&(1===h&&"hidden"===$(t,"visibility")&&l&&(h=0),S.push("visibility",0,P.visibility),J(this,P,"visibility",h?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==d&&"transform"!==d&&~(d=v[d]).indexOf(",")&&(d=d.split(",")[0])),k=d in u){if(this.styles.save(d),M||((O=t._gsap).renderTransform&&!e.parseTransform||th(t,e.parseTransform),C=!1!==e.smoothOrigin&&O.smooth,(M=this._pt=new p.J7(this._pt,P,B,0,1,O.renderTransform,O,0,-1)).dep=1),"scale"===d)this._pt=new p.J7(this._pt,O,"scaleY",O.scaleY,(b?(0,p.B0)(O.scaleY,b+l):l)-O.scaleY||0,x),this._pt.u=0,E.push("scaleY",d),d+="X";else if("transformOrigin"===d){S.push(V,0,P[V]),o=tt(o),O.svg?tl(t,o,0,C,0,this):((m=parseFloat(o.split(" ")[2])||0)!==O.zOrigin&&J(this,O,"zOrigin",O.zOrigin,m),J(this,P,d,tp(a),tp(o)));continue}else if("svgOrigin"===d){tl(t,o,1,C,0,this);continue}else if(d in tr){tm(this,O,d,h,b?(0,p.B0)(h,b+o):o);continue}else if("smoothOrigin"===d){J(this,O,"smooth",O.smooth,o);continue}else if("force3D"===d){O[d]=o;continue}else if("transform"===d){tv(this,o,t);continue}}else d in P||(d=N(d)||d);if(k||(l||0===l)&&(h||0===h)&&!y.test(o)&&d in P)g=(a+"").substr((h+"").length),l||(l=0),m=(0,p.l_)(o)||(d in p.Yz.units?p.Yz.units[d]:g),g!==m&&(h=U(t,d,a,m)),this._pt=new p.J7(this._pt,k?O:P,d,h,(b?(0,p.B0)(h,b+l):l)-h,k||"px"!==m&&"zIndex"!==d||!1===e.autoRound?x:_),this._pt.u=m||0,g!==m&&"%"!==m&&(this._pt.b=a,this._pt.r=w);else if(d in P)K.call(this,t,d,a,b?b+o:o);else if(d in t)this.add(t,d,a||t[d],b?b+o:o,n,r);else if("parseTransform"!==d){(0,p.dg)(d,o);continue}k||(d in P?S.push(d,0,P[d]):S.push(d,1,a||t[d])),E.push(d)}}A&&(0,p.St)(this)},render:function(t,e){if(e.tween._time||!l())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:$,aliases:v,getSetter:function(t,e,i){var n=v[e];return n&&0>n.indexOf(",")&&(e=n),e in u&&e!==V&&(t._gsap.x||$(t,"x"))?i&&o===i?"scale"===e?S:A:(o=i||{},"scale"===e?E:P):t.style&&!(0,p.OF)(t.style[e])?O:~e.indexOf("-")?C:(0,p.Dx)(t,e)},core:{_removeProperty:W,_getMatrix:to}};p.os.utils.checkPrefix=N,p.os.core.getStyleSaver=X,function(t,e,i,n){var r=(0,p.fA)(t+","+e+","+i,function(t){u[t]=1});(0,p.fA)(e,function(t){p.Yz.units[t]="deg",tr[t]=1}),v[r[13]]=t+","+e,(0,p.fA)(n,function(t){var e=t.split(":");v[e[1]]=r[e[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),(0,p.fA)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){p.Yz.units[t]="px"}),p.os.registerPlugin(tx);var tb=p.os.registerPlugin(tx)||p.os;tb.core.Tween},5014:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6999-765fb1dc8daf2756.js b/dsql-app/.local_dist/static/chunks/6999-765fb1dc8daf2756.js deleted file mode 100644 index 17c949e..0000000 --- a/dsql-app/.local_dist/static/chunks/6999-765fb1dc8daf2756.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6999],{6999:(e,c,a)=>{function s(e){let{user:c,userType:a,setLoading:s}=e;return null}a.d(c,{A:()=>s}),a(4848),a(6540),a(9020),a(8639)},8639:(e,c,a)=>{a.d(c,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7287-dadce6acb3d43d67.js b/dsql-app/.local_dist/static/chunks/7287-a0cc766f27863bfc.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/7287-dadce6acb3d43d67.js rename to dsql-app/.local_dist/static/chunks/7287-a0cc766f27863bfc.js index 7c6b636..7b6a593 100644 --- a/dsql-app/.local_dist/static/chunks/7287-dadce6acb3d43d67.js +++ b/dsql-app/.local_dist/static/chunks/7287-a0cc766f27863bfc.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7287],{5471:(e,t,y)=>{let h=y(5979),{mergeAttributesWithElements:a}=y(8205);e.exports=(e,t={})=>h(a(e),t)},5979:e=>{e.exports=(e,t={})=>{let y=t.char||" ",h=t.count||2,a=0,l=[];return e.reverse().reduce((e,t)=>{l.length&&a&&l[a]&&l[a]===t.substring(1,l[a].length+1)&&(l.splice(a,1),a--);let i=y.repeat(a?a*h:0),r=[`${i}${t}`,...e];return"{let t=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");e.exports={mergeAttributesWithElements:e=>{let y=t(e).split("\n"),h=[],a="";for(let e=0;e")){h.push(`${a}${t.slice(0,-2)} />`),a="";continue}if(t.endsWith(">")){h.push(`${a}${t.startsWith(">")||t.startsWith("<")?"":" "}${t}`),a="";continue}a+=a.length?` ${t}`:t}return h},removeEmptyLines:t}},5014:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},1356:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},9894:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},7845:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7220:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},6446:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).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"}]])},7273:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7287],{5471:(e,t,y)=>{let h=y(5979),{mergeAttributesWithElements:a}=y(8205);e.exports=(e,t={})=>h(a(e),t)},5979:e=>{e.exports=(e,t={})=>{let y=t.char||" ",h=t.count||2,a=0,l=[];return e.reverse().reduce((e,t)=>{l.length&&a&&l[a]&&l[a]===t.substring(1,l[a].length+1)&&(l.splice(a,1),a--);let i=y.repeat(a?a*h:0),r=[`${i}${t}`,...e];return"{let t=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");e.exports={mergeAttributesWithElements:e=>{let y=t(e).split("\n"),h=[],a="";for(let e=0;e")){h.push(`${a}${t.slice(0,-2)} />`),a="";continue}if(t.endsWith(">")){h.push(`${a}${t.startsWith(">")||t.startsWith("<")?"":" "}${t}`),a="";continue}a+=a.length?` ${t}`:t}return h},removeEmptyLines:t}},5014:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},1356:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},9894:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},7845:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4839:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},6446:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).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"}]])},7273:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,y)=>{"use strict";y.d(t,{A:()=>h});let h=(0,y(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7384-e241cdc2266f0106.js b/dsql-app/.local_dist/static/chunks/7384-e241cdc2266f0106.js new file mode 100644 index 0000000..77cf3eb --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/7384-e241cdc2266f0106.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7384],{7384:(e,u,n)=>{n.d(u,{A:()=>l}),n(4848),n(6540),n(9020);function l(e){let{user:u,userType:n,setLoading:l}=e;return null}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7391-b72414be460cf0f0.js b/dsql-app/.local_dist/static/chunks/7391-2cf158002dcd120b.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/7391-b72414be460cf0f0.js rename to dsql-app/.local_dist/static/chunks/7391-2cf158002dcd120b.js index 6494e20..e8c14f7 100644 --- a/dsql-app/.local_dist/static/chunks/7391-b72414be460cf0f0.js +++ b/dsql-app/.local_dist/static/chunks/7391-2cf158002dcd120b.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7391],{3647:(e,s,a)=>{a.d(s,{A:()=>n});var t=a(4848),l=a(6540);function n(e){let{confirmedDelegetedUser:s,linksArray:a,user:n}=e,[i,r]=l.useState(a||null);return(l.useEffect(()=>{var e;if(a)return;let s=window.location.pathname,t=s.split("/"),l=[];l.push({title:"Home",path:s.match(/admin/)?"/admin":"/"}),null===(e=window.location.search)||void 0===e||e.match(/delegated=true/),t.forEach((e,s,a)=>{!(null==e?void 0:e.match(/./))||1==s||e.match(/^\d+$/)&&n&&!l.find(e=>!!e.title.match(/^entries$|^users$/))||l.push({title:e,path:(()=>{let e="";for(let t=0;ts)&&l.match(/./)&&(e+="/".concat(l))}return e})()})}),r(l)},[]),i&&i[1])?(0,t.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:i.map((e,s,a)=>s===i.length-1?(0,t.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,t.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,t.jsx)(l.Fragment,{})}},4839:(e,s,a)=>{a.d(s,{A:()=>x});var t=a(4848),l=a(6540),n=a(9020),i=a(65),r=a(1710),c=a(9753),d=a(7273),o=a(7216);function x(){let[e,s]=l.useState(!0),[a,x]=l.useState(0),[h,m]=l.useState(0);return(l.useEffect(()=>{a||(0,n.A)("/api/getDiskUsage").then(e=>{(null==e?void 0:e.total)&&(x(e.total),localStorage.setItem("disk_usage",e.total)),s(!1)})},[]),e)?(0,t.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,t.jsx)(r.A,{width:"15px",position:"relative"})}):(0,t.jsx)(l.Fragment,{children:a?(0,t.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{m(e=>e+1),s(!1)})},children:[e&&(0,t.jsx)(r.A,{width:"15px"}),(0,t.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,t.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:a&&a.toFixed(2)}),(0,t.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,t.jsx)(d.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,t.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,t.jsx)(o.A,{}),(0,t.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},65:(e,s,a)=>{a.d(s,{A:()=>l});var t=a(9020);async function l(){let e=await (0,t.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},8181:(e,s,a)=>{a.d(s,{A:()=>k});var t=a(4848),l=a(6540),n=a(3368),i=a.n(n),r=a(6232),c=a(8631),d=a(9140),o=a(1915),x=a(4909),h=a(5014),m=a(2894),u=a(9508),j=a(5922);function p(e){let{user:s}=e,[a,n]=l.useState(!0);return(0,t.jsxs)("aside",{className:"aside"+(a?" mobile-collapsed":" mobile-expanded"),children:[(0,t.jsx)(r.A,{adminAside:!0,collapseAsideMobile:a,setCollapseAsideMobile:n}),(0,t.jsx)("hr",{className:"opacity-0 mt-4"}),(0,t.jsxs)("div",{className:"main-links"+(a?" hidden lg:flex":" "),children:[(0,t.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,t.jsx)(c.A,{size:20}),(0,t.jsx)("span",{children:"Dashboard"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/databases"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/databases"),children:[(0,t.jsx)(d.A,{size:20}),(0,t.jsx)("span",{children:"Databases"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/media"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/media"),children:[(0,t.jsx)(o.A,{size:20}),(0,t.jsx)("span",{children:"Media"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/users"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/users"),children:[(0,t.jsx)(x.A,{size:20}),(0,t.jsx)("span",{children:"Users"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/schema"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/schema"),children:[(0,t.jsx)(h.A,{size:20}),(0,t.jsx)("span",{children:"Schema"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/api-keys"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/api-keys"),children:[(0,t.jsx)(m.A,{size:20}),(0,t.jsx)("span",{children:"API Keys"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/connect"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/connect"),children:[(0,t.jsx)(u.A,{size:20}),(0,t.jsx)("span",{children:"Connect"})]}),!!((null==s?void 0:s.id)&&"1"==String(null==s?void 0:s.id))&&(0,t.jsx)(l.Fragment,{children:(0,t.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,t.jsx)(j.A,{size:20}),(0,t.jsx)("span",{children:"Super Admin User"})]})}),(0,t.jsx)("hr",{className:"opacity-80"}),(0,t.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,t.jsx)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/settings"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/settings"),children:(0,t.jsx)("span",{children:"Settings"})}),(0,t.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,t.jsx)("span",{children:"Documentation"})}),(0,t.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,t.jsx)("span",{children:"Logout"})})]})]})]})}a(7836);var f=a(2683);function g(e){let{user:s,extraHeaderContent:a}=e,[n,i]=l.useState(s||null);return l.useEffect(()=>{(null==s?void 0:s.logged_in_status)&&i(s||null)},[s]),(0,t.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,t.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,t.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,t.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,t.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,t.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");null==s||s.classList.toggle("hidden")},style:{border:"none"},children:(0,t.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,t.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,t.jsx)("div",{className:"gap-6",children:a}),(0,t.jsx)(f.A,{activeUser:n})]})]}),(0,t.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");null==s||s.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}var v=a(2567),w=a(4839),b=a(9020);function k(e){let{children:s,head:a,user:n,productionEnvironment:c,extraHeaderContent:d,aceEditor:o}=e;return d||(d=(0,t.jsx)(w.A,{})),l.useEffect(()=>{let e=document.querySelectorAll("aside .main-links a");(0,v.A)({links:e}),document.cookie.match(/user_refresh=1/)&&(0,b.A)("/api/reAuthenticateUser",{method:"post",body:{}},!0).then(e=>{e.status&&e.user&&(document.cookie="user_refresh=0;max-age=0",localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.user)),window.location.reload())})},[]),(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)(i(),{children:[a,(0,t.jsxs)(l.Fragment,{children:[(0,t.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,t.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,t.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,t.jsx)(p,{user:n}),(0,t.jsxs)("main",{className:"relative",children:[(0,t.jsx)(g,{user:n,extraHeaderContent:d}),(0,t.jsx)("div",{className:"admin-content relative z-10",children:s}),(0,t.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,t.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,t.jsx)(r.A,{})}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/docs",children:"Docs"}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7391],{3647:(e,s,a)=>{a.d(s,{A:()=>n});var t=a(4848),l=a(6540);function n(e){let{confirmedDelegetedUser:s,linksArray:a,user:n}=e,[i,r]=l.useState(a||null);return(l.useEffect(()=>{var e;if(a)return;let s=window.location.pathname,t=s.split("/"),l=[];l.push({title:"Home",path:s.match(/admin/)?"/admin":"/"}),null===(e=window.location.search)||void 0===e||e.match(/delegated=true/),t.forEach((e,s,a)=>{!(null==e?void 0:e.match(/./))||1==s||e.match(/^\d+$/)&&n&&!l.find(e=>!!e.title.match(/^entries$|^users$/))||l.push({title:e,path:(()=>{let e="";for(let t=0;ts)&&l.match(/./)&&(e+="/".concat(l))}return e})()})}),r(l)},[]),i&&i[1])?(0,t.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:i.map((e,s,a)=>s===i.length-1?(0,t.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,t.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,t.jsx)(l.Fragment,{})}},7220:(e,s,a)=>{a.d(s,{A:()=>x});var t=a(4848),l=a(6540),n=a(9020),i=a(65),r=a(1710),c=a(9753),d=a(7273),o=a(7216);function x(){let[e,s]=l.useState(!0),[a,x]=l.useState(0),[h,m]=l.useState(0);return(l.useEffect(()=>{a||(0,n.A)("/api/getDiskUsage").then(e=>{(null==e?void 0:e.total)&&(x(e.total),localStorage.setItem("disk_usage",e.total)),s(!1)})},[]),e)?(0,t.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,t.jsx)(r.A,{width:"15px",position:"relative"})}):(0,t.jsx)(l.Fragment,{children:a?(0,t.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{s(!0),(0,i.A)().then(()=>{m(e=>e+1),s(!1)})},children:[e&&(0,t.jsx)(r.A,{width:"15px"}),(0,t.jsx)(c.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,t.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:a&&a.toFixed(2)}),(0,t.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,t.jsx)(d.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,t.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,t.jsx)(o.A,{}),(0,t.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},65:(e,s,a)=>{a.d(s,{A:()=>l});var t=a(9020);async function l(){let e=await (0,t.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},8181:(e,s,a)=>{a.d(s,{A:()=>k});var t=a(4848),l=a(6540),n=a(3368),i=a.n(n),r=a(6232),c=a(8631),d=a(9140),o=a(1915),x=a(4909),h=a(5014),m=a(2894),u=a(9508),j=a(5922);function p(e){let{user:s}=e,[a,n]=l.useState(!0);return(0,t.jsxs)("aside",{className:"aside"+(a?" mobile-collapsed":" mobile-expanded"),children:[(0,t.jsx)(r.A,{adminAside:!0,collapseAsideMobile:a,setCollapseAsideMobile:n}),(0,t.jsx)("hr",{className:"opacity-0 mt-4"}),(0,t.jsxs)("div",{className:"main-links"+(a?" hidden lg:flex":" "),children:[(0,t.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,t.jsx)(c.A,{size:20}),(0,t.jsx)("span",{children:"Dashboard"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/databases"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/databases"),children:[(0,t.jsx)(d.A,{size:20}),(0,t.jsx)("span",{children:"Databases"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/media"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/media"),children:[(0,t.jsx)(o.A,{size:20}),(0,t.jsx)("span",{children:"Media"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/users"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/users"),children:[(0,t.jsx)(x.A,{size:20}),(0,t.jsx)("span",{children:"Users"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/schema"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/schema"),children:[(0,t.jsx)(h.A,{size:20}),(0,t.jsx)("span",{children:"Schema"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/api-keys"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/api-keys"),children:[(0,t.jsx)(m.A,{size:20}),(0,t.jsx)("span",{children:"API Keys"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/connect"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/connect"),children:[(0,t.jsx)(u.A,{size:20}),(0,t.jsx)("span",{children:"Connect"})]}),!!((null==s?void 0:s.id)&&"1"==String(null==s?void 0:s.id))&&(0,t.jsx)(l.Fragment,{children:(0,t.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,t.jsx)(j.A,{size:20}),(0,t.jsx)("span",{children:"Super Admin User"})]})}),(0,t.jsx)("hr",{className:"opacity-80"}),(0,t.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,t.jsx)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/settings"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/settings"),children:(0,t.jsx)("span",{children:"Settings"})}),(0,t.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,t.jsx)("span",{children:"Documentation"})}),(0,t.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,t.jsx)("span",{children:"Logout"})})]})]})]})}a(7836);var f=a(2683);function g(e){let{user:s,extraHeaderContent:a}=e,[n,i]=l.useState(s||null);return l.useEffect(()=>{(null==s?void 0:s.logged_in_status)&&i(s||null)},[s]),(0,t.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,t.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,t.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,t.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,t.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,t.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");null==s||s.classList.toggle("hidden")},style:{border:"none"},children:(0,t.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,t.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,t.jsx)("div",{className:"gap-6",children:a}),(0,t.jsx)(f.A,{activeUser:n})]})]}),(0,t.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");null==s||s.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}var v=a(2567),w=a(7220),b=a(9020);function k(e){let{children:s,head:a,user:n,productionEnvironment:c,extraHeaderContent:d,aceEditor:o}=e;return d||(d=(0,t.jsx)(w.A,{})),l.useEffect(()=>{let e=document.querySelectorAll("aside .main-links a");(0,v.A)({links:e}),document.cookie.match(/user_refresh=1/)&&(0,b.A)("/api/reAuthenticateUser",{method:"post",body:{}},!0).then(e=>{e.status&&e.user&&(document.cookie="user_refresh=0;max-age=0",localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.user)),window.location.reload())})},[]),(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)(i(),{children:[a,(0,t.jsxs)(l.Fragment,{children:[(0,t.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,t.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,t.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,t.jsx)(p,{user:n}),(0,t.jsxs)("main",{className:"relative",children:[(0,t.jsx)(g,{user:n,extraHeaderContent:d}),(0,t.jsx)("div",{className:"admin-content relative z-10",children:s}),(0,t.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,t.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,t.jsx)(r.A,{})}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/docs",children:"Docs"}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8076-c34ce8d8512255e7.js b/dsql-app/.local_dist/static/chunks/8076-c8df432e3a6a7868.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/8076-c34ce8d8512255e7.js rename to dsql-app/.local_dist/static/chunks/8076-c8df432e3a6a7868.js index 47df7aa..a1ef26b 100644 --- a/dsql-app/.local_dist/static/chunks/8076-c34ce8d8512255e7.js +++ b/dsql-app/.local_dist/static/chunks/8076-c8df432e3a6a7868.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8076],{5844:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(4848),s=t(7216);function n(){return(0,l.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,l.jsx)(s.A,{})})}t(6540)},5139:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(4848);t(6540);var s=t(7220),n=t(856);function d(e){let{slugText:a,justIcon:t,noIcon:d,title:i,outlined:o,extraClasses:r}=e;return(0,l.jsxs)("div",{className:(0,n.QP)("button small-text hover:!bg-transparent",o?" outlined gray bg-white":" ghost light-gray",r),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert('Copied: "'.concat(a,'"'))})},style:o?void 0:{padding:0},children:[!d&&(0,l.jsx)(s.A,{size:o?15:20}),!t&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:i||"Copy Slug"})]})}},5211:(e,a,t)=>{t.d(a,{A:()=>x});var l=t(4848),s=t(6540),n=t(5139),d=t(4839),i=t(5974),o=t(9020),r=t(1710),c=t(2027),m=t(6051),u=t(3419),h=t(4266),b=t(7290);function x(e){var a,t;let{database:i,query:o,confirmedDelegetedUser:r,user:u}=e,{active_clone:h,active_clone_parent_db:b}=i,x=null==r?void 0:r.delegated;null==r||null===(a=r.priviledges)||void 0===a||a.match(/Edit Tables/i),null==r||null===(t=r.priviledges)||void 0===t||t.match(/Delete Tables/i);let[p,f]=s.useState(null);return(0,l.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,l.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,l.jsx)("img",{src:i.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),(null==r?void 0:r.delegated)&&(0,l.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,l.jsx)("img",{src:r.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,l.jsx)("span",{className:"text-xs",children:r.rootUserEmail})]})]}),(0,l.jsx)("span",{className:"font-semibold text-base"+((null==r?void 0:r.delegated)?" -mt-3":""),children:i.db_name})]}),(0,l.jsx)(c.A,{size:20}),(0,l.jsxs)("div",{className:"dropdown p-0",children:[(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/edit-database"),className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,l.jsx)("hr",{className:"m-0"}),!h&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/add-database?duplicate=").concat(i.db_full_name),className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,l.jsx)("hr",{className:"m-0"})]}),(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/schema"),className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/users"),className:"button plain-text more-padding normal-weight",children:"Database Users"}),!x&&(0,l.jsx)(g,{database:i,user:u})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(n.A,{slugText:i.db_slug,title:"Db Slug"}),(0,l.jsx)("div",{className:"-mt-1 gap-1",children:(0,l.jsx)(n.A,{slugText:i.db_full_name,title:"Full DB Name"})}),!x&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsxs)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/shell"),className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,l.jsx)(m.A,{size:20}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(d.A,{})]})}function g(e){let{database:a,user:t}=e,[n,d]=s.useState(!1),c=s.useRef();return(0,l.jsxs)(s.Fragment,{children:[n&&(0,l.jsx)(r.A,{width:"20px"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/shell"),className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,l.jsx)("hr",{className:"m-0"}),(null==a?void 0:a.remote_connected)==1?(0,l.jsx)(p,{database:a}):(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/connect"),className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:e=>{(0,i.A)({url:"/api/exportDatabase?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".sql")})},children:[(0,l.jsx)(u.A,{size:20}),(0,l.jsx)("span",{children:"Export Database"})]}),(0,l.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:c,className:"hidden"}),(0,l.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:e=>{var t;c.current&&(c.current.addEventListener("change",e=>{let t=null===(l=e.target.files)||void 0===l?void 0:l[0];if(!t){alert("No File Selected");return}var l,s=new FileReader;s.onload=function(e){var t,l=null===(t=e.target)||void 0===t?void 0:t.result;l||alert("Invalid File!");try{let e=null==l?void 0:l.toString();if(!e)throw Error("Invalid File!");let t=JSON.parse(e);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(d(!0),(0,o.A)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:t,dbId:a.id}},!0).then(e=>{e.success&&window.location.reload()}).finally(()=>{d(!1)}))}catch(e){alert("Invalid File. Please enter a valid JSON file")}},s.readAsText(t)}),null===(t=c.current)||void 0===t||t.click())},children:[(0,l.jsx)(h.A,{size:20}),(0,l.jsx)("span",{children:"Update From Schema"})]}),(0,l.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none",onClick:e=>{(0,i.A)({url:"/api/downloadDatabaseSchema?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".json")})},children:[(0,l.jsx)(b.A,{size:20}),(0,l.jsx)("span",{children:"Download Schema"})]})]})}function p(e){let{database:a}=e;return(0,l.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:e=>{window.confirm("Disconnect this Database from the remote host?")&&(0,o.A)("/api/connect/disconnect",{method:"POST",body:{dbId:a.id}},!0).then(e=>{e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))})},children:"Disconnect"})}},5974:(e,a,t)=>{t.d(a,{A:()=>l});function l(e){let{url:a,fileName:t,setLoading:l}=e;l&&l(!0),fetch(a,{method:"GET",headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.body).then(e=>{let a=null==e?void 0:e.getReader();if(a)return new ReadableStream({start:e=>(function t(){return null==a?void 0:a.read().then(a=>{let{done:l,value:s}=a;if(l){e.close();return}return e.enqueue(s),t()})})()})}).then(e=>new Response(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{let a=document.createElement("a");a.href=e,a.download=t,a.style.display="none",document.body.appendChild(a),a.click(),URL.revokeObjectURL(e),document.body.removeChild(a),setTimeout(()=>{l&&l(!1)},1e3)}).catch(e=>{console.log(e),setTimeout(()=>{l&&l(!1)},1e3)})}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8076],{5844:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(4848),s=t(7216);function n(){return(0,l.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,l.jsx)(s.A,{})})}t(6540)},5139:(e,a,t)=>{t.d(a,{A:()=>d});var l=t(4848);t(6540);var s=t(4839),n=t(856);function d(e){let{slugText:a,justIcon:t,noIcon:d,title:i,outlined:o,extraClasses:r}=e;return(0,l.jsxs)("div",{className:(0,n.QP)("button small-text hover:!bg-transparent",o?" outlined gray bg-white":" ghost light-gray",r),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert('Copied: "'.concat(a,'"'))})},style:o?void 0:{padding:0},children:[!d&&(0,l.jsx)(s.A,{size:o?15:20}),!t&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:i||"Copy Slug"})]})}},5211:(e,a,t)=>{t.d(a,{A:()=>x});var l=t(4848),s=t(6540),n=t(5139),d=t(7220),i=t(5974),o=t(9020),r=t(1710),c=t(2027),m=t(6051),u=t(3419),h=t(4266),b=t(7290);function x(e){var a,t;let{database:i,query:o,confirmedDelegetedUser:r,user:u}=e,{active_clone:h,active_clone_parent_db:b}=i,x=null==r?void 0:r.delegated;null==r||null===(a=r.priviledges)||void 0===a||a.match(/Edit Tables/i),null==r||null===(t=r.priviledges)||void 0===t||t.match(/Delete Tables/i);let[p,f]=s.useState(null);return(0,l.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,l.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,l.jsx)("img",{src:i.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),(null==r?void 0:r.delegated)&&(0,l.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,l.jsx)("img",{src:r.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,l.jsx)("span",{className:"text-xs",children:r.rootUserEmail})]})]}),(0,l.jsx)("span",{className:"font-semibold text-base"+((null==r?void 0:r.delegated)?" -mt-3":""),children:i.db_name})]}),(0,l.jsx)(c.A,{size:20}),(0,l.jsxs)("div",{className:"dropdown p-0",children:[(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/edit-database"),className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,l.jsx)("hr",{className:"m-0"}),!h&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/add-database?duplicate=").concat(i.db_full_name),className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,l.jsx)("hr",{className:"m-0"})]}),(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/schema"),className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/users"),className:"button plain-text more-padding normal-weight",children:"Database Users"}),!x&&(0,l.jsx)(g,{database:i,user:u})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(n.A,{slugText:i.db_slug,title:"Db Slug"}),(0,l.jsx)("div",{className:"-mt-1 gap-1",children:(0,l.jsx)(n.A,{slugText:i.db_full_name,title:"Full DB Name"})}),!x&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsxs)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/").concat(i.db_slug,"/shell"),className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,l.jsx)(m.A,{size:20}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(d.A,{})]})}function g(e){let{database:a,user:t}=e,[n,d]=s.useState(!1),c=s.useRef();return(0,l.jsxs)(s.Fragment,{children:[n&&(0,l.jsx)(r.A,{width:"20px"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/shell"),className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,l.jsx)("hr",{className:"m-0"}),(null==a?void 0:a.remote_connected)==1?(0,l.jsx)(p,{database:a}):(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/connect"),className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:e=>{(0,i.A)({url:"/api/exportDatabase?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".sql")})},children:[(0,l.jsx)(u.A,{size:20}),(0,l.jsx)("span",{children:"Export Database"})]}),(0,l.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:c,className:"hidden"}),(0,l.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:e=>{var t;c.current&&(c.current.addEventListener("change",e=>{let t=null===(l=e.target.files)||void 0===l?void 0:l[0];if(!t){alert("No File Selected");return}var l,s=new FileReader;s.onload=function(e){var t,l=null===(t=e.target)||void 0===t?void 0:t.result;l||alert("Invalid File!");try{let e=null==l?void 0:l.toString();if(!e)throw Error("Invalid File!");let t=JSON.parse(e);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(d(!0),(0,o.A)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:t,dbId:a.id}},!0).then(e=>{e.success&&window.location.reload()}).finally(()=>{d(!1)}))}catch(e){alert("Invalid File. Please enter a valid JSON file")}},s.readAsText(t)}),null===(t=c.current)||void 0===t||t.click())},children:[(0,l.jsx)(h.A,{size:20}),(0,l.jsx)("span",{children:"Update From Schema"})]}),(0,l.jsxs)("button",{className:"button gray outlined more-padding normal-weight w-full rounded-none",onClick:e=>{(0,i.A)({url:"/api/downloadDatabaseSchema?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".json")})},children:[(0,l.jsx)(b.A,{size:20}),(0,l.jsx)("span",{children:"Download Schema"})]})]})}function p(e){let{database:a}=e;return(0,l.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:e=>{window.confirm("Disconnect this Database from the remote host?")&&(0,o.A)("/api/connect/disconnect",{method:"POST",body:{dbId:a.id}},!0).then(e=>{e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))})},children:"Disconnect"})}},5974:(e,a,t)=>{t.d(a,{A:()=>l});function l(e){let{url:a,fileName:t,setLoading:l}=e;l&&l(!0),fetch(a,{method:"GET",headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.body).then(e=>{let a=null==e?void 0:e.getReader();if(a)return new ReadableStream({start:e=>(function t(){return null==a?void 0:a.read().then(a=>{let{done:l,value:s}=a;if(l){e.close();return}return e.enqueue(s),t()})})()})}).then(e=>new Response(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{let a=document.createElement("a");a.href=e,a.download=t,a.style.display="none",document.body.appendChild(a),a.click(),URL.revokeObjectURL(e),document.body.removeChild(a),setTimeout(()=>{l&&l(!1)},1e3)}).catch(e=>{console.log(e),setTimeout(()=>{l&&l(!1)},1e3)})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8261-3c3582fc434ee275.js b/dsql-app/.local_dist/static/chunks/8261-3c3582fc434ee275.js deleted file mode 100644 index 2fd437e..0000000 --- a/dsql-app/.local_dist/static/chunks/8261-3c3582fc434ee275.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8261],{489:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({clientId:e,redirectUrl:t,setLoading:n,scopes:i}){n&&n(!0);let a=i?i.join("%20"):"read:user",o=`https://github.com/login/oauth/authorize?client_id=${e}&scope=${a}&redirect_uri=${t}`;window.location.assign(o)}},8557:function(e,t){let n;var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(a,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,l)}u((i=i.apply(e,t||[])).next())})};function a({google:e,clientId:t,setLoading:n,triggerPrompt:i}){return setTimeout(()=>{null==n||n(!1)},3e3),new Promise((n,a)=>{e.accounts.oauth2.initTokenClient({client_id:t,scope:"email profile",callback:function(e){n(e.access_token)}}).requestAccessToken(),i&&e.accounts.id.prompt(function(e){console.log(e)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i(this,void 0,void 0,function*(){var t,i;null===(t=e.setLoading)||void 0===t||t.call(e,!0);let o=yield new Promise((t,i)=>{n=setInterval(()=>{let i=window.google;i&&(window.clearInterval(n),t(a(Object.assign(Object.assign({},e),{google:i}))))},500)});return null===(i=e.setLoading)||void 0===i||i.call(e,!1),o})},t.googleLogin=a},7946:function(e,t,n){var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(a,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,l)}u((i=i.apply(e,t||[])).next())})},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i(this,void 0,void 0,function*(){try{let t;let n=localStorage.getItem("user");try{t=JSON.parse(n||"")}catch(e){console.log(e)}if(!t)return!1;let i=(0,o.default)(),a=(null==i?void 0:i.datasquirel_social_id)&&"string"==typeof i.datasquirel_social_id&&!i.datasquirel_social_id.match(/^null$/i)?i.datasquirel_social_id:null;return localStorage.setItem("user","{}"),localStorage.removeItem("csrf"),document.cookie="datasquirel_social_id=null;samesite=strict;path=/",yield new Promise((t,n)=>{if(!a||(null==a?void 0:a.match(/^null$/i)))t(!0);else{let n=null==e?void 0:e.googleClientId;if(n){let e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.className="social-script-tag",document.body.appendChild(e),e.onload=function(e){let i=window.google;i&&(i.accounts.id.initialize({client_id:n}),i.accounts.id.revoke(a,e=>{console.log(e.error),t(!0)}))}}else t(!0)}})}catch(e){return!1}})};let o=a(n(2406))},1335:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let a=i(n(8753)),o=i(n(4715)),r=i(n(1168)),l=i(n(8557)),u=i(n(489)),c=i(n(7946)),s=i(n(1028)),d=i(n(1028)),f=i(n(4727)),h=i(n(8168)),p=i(n(834)),y=i(n(8226)),g=i(n(4567)),m={imageInputToBase64:o.default,imageInputFileToBase64:a.default,inputFileToBase64:r.default},v={google:{getAccessToken:l.default},github:{getAccessToken:u.default},logout:c.default},_={serializeQuery:f.default,serializeCookies:h.default,EJSON:p.default,numberfy:y.default,slugify:g.default},w={fetchApi:s.default,clientFetch:d.default};t.default={media:m,auth:v,fetch:w,utils:_}},8753:function(e,t){var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(a,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,l)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n(this,arguments,void 0,function*({imageInputFile:e,maxWidth:t,imagePreviewNode:n}){try{let i,a,o=e.name.replace(/\..*/,""),r=document.createElement("canvas"),l=e.type,u=t||null,c=URL.createObjectURL(e),s=new Image;return s.src=c,i=yield new Promise((e,t)=>{s.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},s.onload=function(t){let i=t.target;if(URL.revokeObjectURL(i.src),u){let e=u/s.naturalWidth;r.width=s.naturalWidth{r.toBlob(t=>{e(null==t?void 0:t.size)},l,.95)}),{imageBase64:null==i?void 0:i.replace(/.*?base64,/,""),imageBase64Full:i,imageName:o,imageSize:a}}catch(e){return console.log("Image Processing Error! =>",e.message),{imageBase64:void 0,imageBase64Full:void 0,imageName:void 0,imageSize:void 0}}})}},4715:function(e,t){var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(a,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,l)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n(this,arguments,void 0,function*({imageInput:e,maxWidth:t,mimeType:n}){var i,a;try{let o,r=document.querySelector("[data-imagepreview='image']"),l=null===(i=e.files)||void 0===i?void 0:i[0].name.replace(/\..*/,""),u=n||"image/jpeg",c=t||null,s=null===(a=e.files)||void 0===a?void 0:a[0],d=s?URL.createObjectURL(s):void 0,f=new Image;if(d)return f.src=d,{imageBase64:null==(o=yield new Promise((e,t)=>{f.onerror=function(){URL.revokeObjectURL(this.src),window.alert("Cannot load image!")},f.onload=function(t){let n=t.target;URL.revokeObjectURL(n.src);let i=document.createElement("canvas");if(c){let e=c/f.naturalWidth;i.width=f.naturalWidth{e.src=o}),e(o)}}))?void 0:o.replace(/.*?base64,/,""),imageBase64Full:o,imageName:l};return{}}catch(e){return console.log("Image Processing Error! =>",e.message),{}}})}},1168:function(e,t){var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(a,o){function r(e){try{u(i.next(e))}catch(e){o(e)}}function l(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(r,l)}u((i=i.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n(this,arguments,void 0,function*({inputFile:e,allowedRegex:t}){var n;if(!(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.match(t||/image\/*|\/pdf/)))return window.alert(`We currently don't support ${e.type} file types. Support is coming soon. For now we support only images and PDFs.`),{fileName:e.name};try{let t=e.name.replace(/\..*/,""),n=yield new Promise((t,n)=>{var i=new FileReader;i.readAsDataURL(e),i.onload=function(){var e;t(null===(e=i.result)||void 0===e?void 0:e.toString())},i.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:null==n?void 0:n.replace(/.*?base64,/,""),fileBase64Full:n,fileName:t,fileSize:e.size,fileType:e.type}}catch(t){return console.log("File Processing Error! =>",t.message),{fileName:e.name}}})}},2406:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=document.cookie;if(!e||"string"!=typeof e)return null;let t=e.split(";"),n={};return t.forEach(e=>{let[t,i]=e.split("=");t&&"string"==typeof t&&(n[t.replace(/^ +| +$/,"")]=i&&"string"==typeof i?i.replace(/^ +| +$/,""):null)}),n}},834:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={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,n){try{return JSON.stringify(e,t||void 0,n)}catch(e){return}}}},8226:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){try{let n=Number(e);if("number"!=typeof n||isNaN(n))return 0;if(t)return Number(n.toFixed(t));return Math.round(n)}catch(e){return console.log(`Numberfy ERROR: ${e.message}`),0}}},8168:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({cookies:e}){let t=[];for(let n=0;n{if(!t||!e[t])return;let n=e[t];if("object"==typeof n){let e=a.default.stringify(n);i.push(`${t}=${encodeURIComponent(String(e))}`)}else"string"==typeof n||"number"==typeof n?i.push(`${t}=${encodeURIComponent(n)}`):i.push(`${t}=${String(n)}`)}),t+=i.join("&")};let a=i(n(834))},4567:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){try{return String(e).trim().toLowerCase().replace(/ {2,}/g," ").replace(/ /g,"-").replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-").replace(/^-/,"").replace(/-$/,"")}catch(e){return console.log(`Slugify ERROR: ${e.message}`),""}}},7216:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},9140:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,n)=>{n.d(t,{A:()=>i});let i=(0,n(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8319-0fac4a0bd5bb0c06.js b/dsql-app/.local_dist/static/chunks/8319-0fac4a0bd5bb0c06.js new file mode 100644 index 0000000..60c10fb --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8319-0fac4a0bd5bb0c06.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8319],{2592:(e,t,a)=>{a.d(t,{A:()=>n});var l=a(4848),r=a(6540),d=a(9020),s=a(5655),i=a(1710);function n(e){let{setDbImage:t}=e,[a,n]=r.useState(!0);r.useState(null);let[o,c]=r.useState(null);return r.useEffect(()=>{(0,d.A)("/api/getUserMedia").then(e=>{n(!1),c(e.media)})},[]),(0,l.jsxs)(s.Ay,{title:"user-media-popup",children:[a&&(0,l.jsx)(i.A,{width:"20px"}),(0,l.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,l.jsx)("div",{className:"grid grid-cols-2",children:(null==o?void 0:o[0])&&o.filter(e=>"image"==e.media_type).map((e,a)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:a=>{t(e.media_thumbnail_url||null),(0,s.fs)()},children:(0,l.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},a+1))})]})}},6234:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(4848);function r(e){let{message:t}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:t})]})}a(6540)},5655:(e,t,a)=>{a.d(t,{Ay:()=>s,PB:()=>i,fs:()=>n});var l=a(4848),r=a(6897),d=a(6540);function s(e){let{children:t,title:a,data:s,fullPage:i,wrapperClasses:o,closePopupDispatch:c,wrapperStyle:p,noContainer:u}=e;return i?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(o||""),"data-popupid":a||null,style:p,children:[u?(0,l.jsx)(d.Fragment,{children:t}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:t}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{n(),c&&c()},children:(0,l.jsx)(r.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{n(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[u?(0,l.jsx)(d.Fragment,{children:t}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[t,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{n(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{n(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{n(),c&&c()}})]})}function i(e,t){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",null==t||t(a))}function n(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(4848),r=a(6540);function d(e){let{children:t,column:a,className:d}=e,s=r.useRef();return r.useEffect(()=>{try{let e=s.current;if(!e)throw Error("No Button Group Wrapper!");let t=e.childNodes,l=Array.from(t);if((null==l?void 0:l.length)===1)return;l.forEach((e,t)=>{let r=e;if(r.classList.contains("dropdown-wrapper")){let t=Array.from(e.childNodes).filter(e=>{var t;return(null==e?void 0:null===(t=e.nodeName)||void 0===t?void 0:t.match(/button/i))||e.classList.contains("button")});t&&t[0]&&(r=t[0])}t0&&(r.style[a?"borderTop":"borderLeft"]="none",r.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,r.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,l.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(d?" "+d:""),ref:s,children:t})}},2659:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(1335);let r=a.n(l)().media.imageInputFileToBase64},7216:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},9140:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6897:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2480-c3f2e7fac796ce00.js b/dsql-app/.local_dist/static/chunks/9551-762af3f63f78e37c.js similarity index 72% rename from dsql-app/.local_dist/static/chunks/2480-c3f2e7fac796ce00.js rename to dsql-app/.local_dist/static/chunks/9551-762af3f63f78e37c.js index 2c02686..457fbc0 100644 --- a/dsql-app/.local_dist/static/chunks/2480-c3f2e7fac796ce00.js +++ b/dsql-app/.local_dist/static/chunks/9551-762af3f63f78e37c.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2480],{1720:(e,l,a)=>{a.d(l,{A:()=>r});var t=a(4848);a(6540);var i=a(5655),o=a(1915),n=a(5737);let s=(0,n.A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),d=(0,n.A)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);function r(e){let{user:l}=e;return(0,t.jsx)(i.Ay,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,t.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,t.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,t.jsx)("br",{}),"want to upload?"]}),(0,t.jsx)("span",{children:"Please Select the media type to upload."}),(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a;if(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/)){let e=document.getElementById("upload_image_input");null==e||e.click()}else alert("Please Verify to Add Media");setTimeout(()=>{(0,i.fs)()},500)},children:[(0,t.jsx)(o.A,{size:50,className:"text-primary"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Images"}),(0,t.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a,t;(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(t=document.getElementById("upload_file_input"))||void 0===t||t.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,t.jsx)(s,{size:50,className:"text-secondary"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Files"}),(0,t.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,t.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a,t;(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(t=document.getElementById("upload_video_input"))||void 0===t||t.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,t.jsx)(d,{size:55,className:"text-slate-600"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Videos"}),(0,t.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,t.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},5094:(e,l,a)=>{a.d(l,{A:()=>N});var t=a(4848),i=a(6540),o=a(9020),n=a(1710),s=a(5737);let d=(0,s.A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var r=a(6897);function c(e){let{folderName:l,folder:a,user:s}=e,c="".concat(a?a+"/":"").concat(l),[u,m]=i.useState(!1);return(0,t.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/media/").concat(c),className:"card col items-center justify-center",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[u&&(0,t.jsx)(n.A,{}),(0,t.jsx)(d,{opacity:.5}),(0,t.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,t.jsx)("span",{className:"",children:l}),(0,t.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:e=>{window.confirm("Delete this Folder and all its contents?")&&(m(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,o.A)("/api/deleteMediaFolder",{method:"post",body:{folder:c}},!0).then(e=>{e.success&&window.location.reload()}):m(!1))},children:(0,t.jsx)(r.A,{})})]},l)}var u=a(5655),m=a(900),p=a(2178);function h(e){var l,a;let{mediaObject:n,staticHost:s}=e,d=n.media_thumbnail_path?(null==n?void 0:n.private)?n.media_thumbnail_url:"".concat(s).concat(n.media_thumbnail_path):n.media_thumbnail_url,r=n.media_path?(null==n?void 0:n.private)?n.media_url:"".concat(s).concat(n.media_path):n.media_url;return(0,t.jsx)(i.Fragment,{children:(null===(l=n.media_type)||void 0===l?void 0:l.match(/file/i))?(0,t.jsx)("div",{className:"cursor-pointer hover:opacity-80",children:(0,t.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:n.media_type.replace(/.*\//,"").toUpperCase()})}):(null===(a=n.media_type)||void 0===a?void 0:a.match(/video/i))?(0,t.jsx)("video",{src:r,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,t.jsx)("img",{src:d,alt:n.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:e=>{null!=n&&n.private||(0,o.A)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:n}},!0).then(e=>{e.success?window.location.reload():(console.log(e),console.log(d),console.log(r))})}})})}var v=a(221);function f(e){var l;let{mediaObject:a,staticHost:o}=e;return(a.media_thumbnail_path?"".concat(o,"/").concat(a.media_thumbnail_path):a.media_thumbnail_url,a.media_path?"".concat(o,"/").concat(a.media_path):a.media_url,null==a?void 0:a.private)?(0,t.jsx)(i.Fragment,{}):(0,t.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,t.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,t.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,t.jsxs)(m.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,t.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:e=>{navigator.clipboard.writeText(a.media_url||"").then(()=>{alert("Media url ".concat(a.media_url," Copied to clipboard"))})},children:"Copy Full Link"}),!(null==a?void 0:null===(l=a.media_type)||void 0===l?void 0:l.match(/file|video/i))&&(0,t.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:e=>{navigator.clipboard.writeText(a.media_thumbnail_url||"").then(()=>{alert("Media url ".concat(a.media_thumbnail_url," Copied to clipboard"))})},children:"Copy Thumbnail Link"})]})})]})}var x=a(6446);let g=(0,s.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);function b(e){var l;let{mediaObject:a,setLoading:n}=e,[s,d]=i.useState(!1);return(null==a?void 0:null===(l=a.media_type)||void 0===l?void 0:l.match(/video/i))?null:(0,t.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+((null==a?void 0:a.private)?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{let l=a.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(l)&&(n(!0),(0,o.A)("/api/media/addPrivateMedia",{method:"post",body:{...a}},!0).then(e=>{e.success?window.location.reload():window.alert("Action Failed!"),setTimeout(()=>{n(!1)},1e3)}).catch(e=>{console.log(e)}))},children:(null==a?void 0:a.private)?(0,t.jsx)(x.A,{size:20,color:"green"}):(0,t.jsx)(g,{color:"black",size:20})})}var w=a(6875);function y(e){let{mediaObject:l,setTargetMedia:a,folder:o,staticHost:s}=e,[d,r]=i.useState(null!=l&&!!l.private),[c,x]=i.useState(l);i.useEffect(()=>{var e;(null==l?void 0:l.private)&&l.media_thumbnail_url&&!(null===(e=c.media_type)||void 0===e?void 0:e.match(/file/i))?(0,w.A)({url:l.media_thumbnail_url}).then(e=>{x({...l,media_thumbnail_url:e}),r(!1)}).catch(e=>{console.log(e.message)}):d&&r(!1)},[]),c.media_thumbnail_path?"".concat(s,"/").concat(c.media_thumbnail_path):c.media_thumbnail_url;let g=c.media_path?"".concat(s,"/").concat(c.media_path):c.media_url;return(0,t.jsxs)("div",{className:"media-card card col min-h-[200px]",onClick:e=>{var l,t;if(!(e.target.closest("button")||e.target.closest(".button"))){if((null===(l=c.media_type)||void 0===l?void 0:l.match(/file/i))&&!c.private){window.open(g,"__blank");return}if((null===(t=c.media_type)||void 0===t?void 0:t.match(/file/i))&&c.private)return;a(c),(0,u.PB)("target-media-popup")}},onMouseEnter:e=>{e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:e=>{e.target.closest(".media-card").style.zIndex="0"},style:(null==c?void 0:c.private)?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[d&&(0,t.jsx)(n.A,{}),(0,t.jsx)(h,{mediaObject:c,staticHost:s}),(0,t.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,t.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:c.media_name}),(0,t.jsx)("div",{className:"flex-wrap w-full",children:(0,t.jsxs)(m.A,{className:"flex-wrap w-full items-stretch",children:[(0,t.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:e=>{var l;(0,p.A)({mediaObject:c,fileName:(null==g?void 0:null===(l=g.match(/[^\/]+$/))||void 0===l?void 0:l[0])||"",setLoading:r})},children:(0,t.jsx)("span",{children:"Download"})}),(0,t.jsx)(f,{mediaObject:c,staticHost:s}),(0,t.jsx)(v.A,{mediaObject:c,setLoading:r})]})})]}),(0,t.jsx)(b,{mediaObject:c,setLoading:r})]})}let j=(0,s.A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function N(e){let{media:l,setTargetMedia:a,folders:o,folder:n,staticHost:s,user:d}=e;return(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)("section",{className:"paper overflow-visible",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,t.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[o&&o[0]&&o.map(e=>(0,t.jsx)(c,{folder:n,folderName:e,user:d},e)),l&&l[0]&&l.map(e=>(0,t.jsx)(y,{mediaObject:e,setTargetMedia:a,folder:n,staticHost:s},e.id))]}),!(null==l?void 0:l[0])&&(0,t.jsx)(_,{})]})})}function _(){return(0,t.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,u.PB)("choose-media-type-popoup")},children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,t.jsx)(j,{}),(0,t.jsx)("span",{className:"",children:"Add Media"})]})}},6217:(e,l,a)=>{let t;a.d(l,{A:()=>r});var i=a(4848),o=a(6540),n=a(9020),s=a(5655),d=a(1710);function r(e){let{folder:l}=e,[a,r]=o.useState(!1),[c,u]=o.useState(!1);return(0,i.jsxs)(s.Ay,{title:"add-folder-popoup",children:[(0,i.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,i.jsxs)("div",{className:"flex-col w-full relative",children:[a&&(0,i.jsx)(d.A,{}),(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),window.clearTimeout(t),r(!0);let a=e.target;(0,n.A)("/api/addNewMediaFolder",{method:"post",body:{name:(l?"".concat(l,"/"):"")+a["new-folder-name"].value}},!0).then(e=>{e.success?window.location.reload():r(!1)})},className:"w-full flex flex-col items-stretch gap-2",children:[c&&(0,i.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,i.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(c?" warning":""),onChange:e=>{e.target.value=e.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(t),t=setTimeout(()=>{(0,n.A)("/api/checkExistingFolder?name=".concat(e.target.value).concat(l?"&folder="+l:"")).then(l=>{var a;(null===(a=e.target.value)||void 0===a?void 0:a.match(/./))&&(null==l?void 0:l.success)?(u(!0),alert("Folder Already Exists")):u(!1)})},500)}}),(0,i.jsx)("button",{children:"Add New Folder"})]})]})]})}},1828:(e,l,a)=>{a.d(l,{A:()=>v});var t=a(4848),i=a(6540),o=a(9020),n=a(65),s=a(5655),d=a(1710),r=a(6446);let c=(0,a(5737).A)("LockKeyholeOpen",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);function u(e){let{mediaObject:l}=e,[a,o]=i.useState(!1);return i.useEffect(()=>{l.private=a},[a]),(0,t.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(a?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{o(e=>!e)},children:a?(0,t.jsx)(r.A,{}):(0,t.jsx)(c,{})})}var m=a(6897);function p(e){let{imageObject:l,newMedia:a,setNewMedia:i,video:o}=e,n=l.imageBase64Full||l.fileBase64Full,s=l.imageName||l.fileName;return(0,t.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[o?(0,t.jsx)("video",{src:n,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,t.jsx)("img",{src:n,alt:s,className:"w-full h-full object-contain"}),(0,t.jsx)("input",{type:"text",defaultValue:s,onInput:e=>{var a;let t=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-");l.fileName&&(l.fileName=t),l.imageName&&(l.imageName=t)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,t.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:e=>{let t=a.findIndex(e=>e.imageBase64===l.imageBase64||e.fileBase64===l.fileBase64);a.splice(t,1),i([...a])},children:(0,t.jsx)(m.A,{size:16})}),!o&&(0,t.jsx)(u,{mediaObject:l})]})}function h(e){let{fileObject:l,newFile:a,setNewFile:i}=e;return(0,t.jsxs)("div",{className:"border border-slate-300 rounded min-h-[100px] flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,t.jsx)("input",{type:"text",defaultValue:l.fileName,onInput:e=>{var a;l.fileName=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,t.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:e=>{let t=a.findIndex(e=>e.fileBase64===l.fileBase64);a.splice(t,1),i([...a])},children:(0,t.jsx)(m.A,{size:16})}),(0,t.jsx)(u,{mediaObject:l})]})}function v(e){let{newMedia:l,setNewMedia:a,newFile:r,setNewFile:c,newVideo:u,setNewVideo:m,folder:v}=e,f=(null==l?void 0:l[0])?"images":(null==r?void 0:r[0])?"files":"videos",x=(null==f?void 0:f.match(/image/i))?l:(null==f?void 0:f.match(/file/i))?r:u,g=(null==f?void 0:f.match(/image/i))?a:(null==f?void 0:f.match(/file/i))?c:m,[b,w]=i.useState(!1);return i.useEffect(()=>{x&&x[0]&&(0,s.PB)("new-media-popup")},[l,r,u]),(0,t.jsxs)(s.Ay,{title:"new-media-popup",closePopupDispatch:()=>{a(null),c(null),m(null)},children:[b&&(0,t.jsx)(d.A,{screen:!0}),(0,t.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:x&&x[0]&&x.map((e,l)=>(null==f?void 0:f.match(/image/i))?(0,t.jsx)(p,{imageObject:e,newMedia:x,setNewMedia:g},l+1):(null==f?void 0:f.match(/video/i))?(0,t.jsx)(p,{imageObject:e,newMedia:x,setNewMedia:g,video:!0},l+1):(0,t.jsx)(h,{fileObject:e,newFile:x,setNewFile:g},l+1))}),x&&x[0]&&(0,t.jsx)("button",{className:"py-3 w-full relative z-50"+(b?" pointer-events-none opacity-40":""),onClick:e=>{w(!0);let l=(null==f?void 0:f.match(/image/i))?{type:f,folder:v,media:x.map(e=>({imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}))}:{type:f,folder:v,media:x.map(e=>({fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:!!(null==f?void 0:f.match(/video/i))}))};(0,o.A)("/api/addUserMedia",{method:"post",body:l},!0).then(e=>{e.success?(0,n.A)().then(()=>{window.location.reload()}):(alert("Image Upload Failed"),console.log(e),setTimeout(()=>{w(!1)},1e3))})},children:"Upload Media"})]})}},1923:(e,l,a)=>{a.d(l,{A:()=>v});var t=a(4848),i=a(6540),o=a(9020),n=a(65),s=a(5655),d=a(1710),r=a(900),c=a(2178),u=a(6875);let m=(0,a(5737).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var p=a(8453),h=a(221);function v(e){var l,a;let{targetMedia:v,staticHost:f,setTargetMedia:x,media:g}=e;(null==v?void 0:v.media_thumbnail_path)?"".concat(f,"/").concat(null==v?void 0:v.media_thumbnail_path):null==v||v.media_thumbnail_url;let b=(null==v?void 0:v.media_path)?"".concat(f,"/").concat(null==v?void 0:v.media_path):null==v?void 0:v.media_url,w=!!(null==v?void 0:null===(l=v.media_type)||void 0===l?void 0:l.match(/video/i)),y=v?g.findIndex(e=>e.id==v.id):null,j="number"==typeof y&&y>=0,N=(()=>{var e;if(!j)return null;let l=g[y+1];return l?(null==l?void 0:null===(e=l.media_type)||void 0===e?void 0:e.match(/image/i))?l:g.slice(y+1).find(e=>{var l;return null!==(l=e.media_type)&&void 0!==l&&!!l.match(/image/i)})||null:null})(),_=(()=>{var e;if(!j)return null;let l=g[y-1];return l?(null==l?void 0:null===(e=l.media_type)||void 0===e?void 0:e.match(/image/i))?l:g.slice(0,y-1).findLast(e=>{var l;return null!==(l=e.media_type)&&void 0!==l&&!!l.match(/image/i)})||null:null})(),[A,k]=i.useState(null!=v&&!!v.private),[C,M]=i.useState(!1),[F,L]=i.useState(b),T=i.useRef();return i.useEffect(()=>{(null==v?void 0:v.private)?(0,u.A)({url:v.media_url||""}).then(e=>{e&&(L(e),k(!1))}).catch(e=>{console.log(e.message)}):L((null==v?void 0:v.media_url)||"")},[v]),(0,t.jsxs)(s.Ay,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:()=>{M(!1),x(null)},children:[A&&(0,t.jsx)(d.A,{}),!C&&(0,t.jsx)(d.A,{}),v&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"self-center h-screen py-4",children:[F?w?(0,t.jsx)("video",{src:F,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:()=>{M(!0)},style:C?void 0:{display:"none"}}):(0,t.jsx)("img",{src:F,alt:v.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:T,onLoad:e=>{M(!0)},style:C?void 0:{display:"none"}}):(0,t.jsx)(t.Fragment,{}),_&&(0,t.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{x(null),x(_)},children:(0,t.jsx)(m,{color:"white"})}),N&&(0,t.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{x(null),x(N)},children:(0,t.jsx)(p.A,{color:"white"})})]}),(0,t.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:null===(a=v.media_path)||void 0===a?void 0:a.replace(/.*\//,"")}),(0,t.jsx)("div",{className:"absolute bottom-6 left-6 p-1 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch min-w-[200px]",children:(0,t.jsxs)(r.A,{column:!0,children:[(0,t.jsx)(h.F,{mediaObject:v,setLoading:k}),(0,t.jsx)("button",{className:"outlined secondary more-padding",onClick:e=>{var l,a;(0,c.A)({mediaObject:v,fileName:(null===(a=v.media_url)||void 0===a?void 0:null===(l=a.match(/[^\/]+$/))||void 0===l?void 0:l[0])||"",setLoading:k})},children:"Download"}),(0,t.jsx)("button",{onClick:e=>{window.confirm("Delete this media?")&&(0,o.A)("/api/deleteUserMedia",{method:"post",body:v},!0).then(e=>{e.success?(0,n.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},className:"more-padding",children:"Delete"}),!(null==v?void 0:v.private)&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:e=>{navigator.clipboard.writeText(v.media_url||"").then(()=>{alert("Media url ".concat(v.media_url," Copied to clipboard"))})},children:"Copy Full Image Link"}),(0,t.jsx)("button",{className:"outlined gray w-full more-padding",onClick:e=>{navigator.clipboard.writeText(v.media_thumbnail_url||"").then(()=>{alert("Media url ".concat(v.media_thumbnail_url," Copied to clipboard"))})},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})]})})]})]})}},221:(e,l,a)=>{a.d(l,{A:()=>s,F:()=>d});var t=a(4848);a(6540);var i=a(9020),o=a(65),n=a(900);function s(e){let{mediaObject:l,setLoading:a}=e;return(0,t.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,t.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,t.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,t.jsxs)(n.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,t.jsx)(d,{mediaObject:l,setLoading:a}),(0,t.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:e=>{window.confirm("Delete this media?")&&(0,i.A)("/api/deleteUserMedia",{method:"post",body:l},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},children:"Delete"})]})})]})}function d(e){let{mediaObject:l,setLoading:a}=e;return(0,t.jsx)("button",{onClick:e=>{let t=window.prompt("Rename media",l.media_name);t&&window.confirm('Rename "'.concat(l.media_name,'" to "').concat(t,'"'))&&(a(!0),(0,i.A)("/api/renameMedia",{method:"post",body:{mediaObject:l,newName:t.replace(/ /g,"-"),newThumbnailName:t.replace(/ /g,"-")+"_thumbnail"}},!0).then(e=>{e.success?window.location.reload():(window.alert(e.msg),setTimeout(()=>{a(!1)},1e3))}))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},5655:(e,l,a)=>{a.d(l,{Ay:()=>n,PB:()=>s,fs:()=>d});var t=a(4848),i=a(6897),o=a(6540);function n(e){let{children:l,title:a,data:n,fullPage:s,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return s?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:u,children:[m?(0,t.jsx)(o.Fragment,{children:l}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:l}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,t.jsx)(i.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,t.jsx)(o.Fragment,{children:l}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[l,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function s(e,l){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",null==l||l(a))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},431:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848);a(6540);var i=a(3078);function o(e){let{setNewFile:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},3142:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848);a(6540);var i=a(2659);function o(e){let{setNewMedia:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_image_input",id:"upload_image_input",className:"hidden",accept:"image/*",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},9200:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848);a(6540);var i=a(3078);function o(e){let{setNewVideo:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_video_input",id:"upload_video_input",className:"hidden",accept:".mp4",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Videos selected")}})})}},18:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(){return(0,t.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,t.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(6540)},900:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848),i=a(6540);function o(e){let{children:l,column:a,className:o}=e,n=i.useRef();return i.useEffect(()=>{try{let e=n.current;if(!e)throw Error("No Button Group Wrapper!");let l=e.childNodes,t=Array.from(l);if((null==t?void 0:t.length)===1)return;t.forEach((e,l)=>{let i=e;if(i.classList.contains("dropdown-wrapper")){let l=Array.from(e.childNodes).filter(e=>{var l;return(null==e?void 0:null===(l=e.nodeName)||void 0===l?void 0:l.match(/button/i))||e.classList.contains("button")});l&&l[0]&&(i=l[0])}l0&&(i.style[a?"borderTop":"borderLeft"]="none",i.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,i.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,t.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(o?" "+o:""),ref:n,children:l})}},2178:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(6875);async function i(e){var l;let a,{mediaObject:i,fileName:o,setLoading:n}=e;n&&n(!0);let s=!!((null==i?void 0:i.private)||(null==i?void 0:null===(l=i.media_url)||void 0===l?void 0:l.match(/^\@/)));a=s?await (0,t.A)({url:i.media_url||""}):await fetch("/api/fetch-media?url="+i.media_url);let d=s?a:await a.blob(),r=s?a:URL.createObjectURL(d),c=document.createElement("a");c.href=r,c.download=o,c.style.display="none",document.body.appendChild(c),c.click(),URL.revokeObjectURL(r),document.body.removeChild(c),setTimeout(()=>{n&&n(!1)},500)}},6875:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{url:l}=e;return new Promise((e,a)=>{fetch("/api/media/getPrivateMedia",{method:"POST",body:JSON.stringify({path:l}),headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.blob()).then(l=>{e(URL.createObjectURL(l))})})}},2659:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(1335);let i=a.n(t)().media.imageInputFileToBase64},3078:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{inputFile:l}=e;try{let e=l.name.replace(/\..*/,""),a=await new Promise((e,a)=>{var t=new FileReader;t.readAsDataURL(l),t.onload=function(){e(t.result)},t.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:a.replace(/.*?base64,/,""),fileBase64Full:a,fileName:e,fileSize:l.size,fileType:l.type}}catch(e){return console.log("Image Processing Error! =>",e.message),{fileBase64:null,fileBase64Full:null,fileName:l.name,fileSize:null,fileType:null}}}},8453:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},6446:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).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"}]])},4909:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).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"}]])},6897:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9551],{1720:(e,l,a)=>{a.d(l,{A:()=>r});var t=a(4848);a(6540);var i=a(5655),o=a(1915),n=a(5737);let d=(0,n.A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),s=(0,n.A)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);function r(e){let{user:l}=e;return(0,t.jsx)(i.Ay,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,t.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,t.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,t.jsx)("br",{}),"want to upload?"]}),(0,t.jsx)("span",{children:"Please Select the media type to upload."}),(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a;if(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/)){let e=document.getElementById("upload_image_input");null==e||e.click()}else alert("Please Verify to Add Media");setTimeout(()=>{(0,i.fs)()},500)},children:[(0,t.jsx)(o.A,{size:50,className:"text-primary"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Images"}),(0,t.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a,t;(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(t=document.getElementById("upload_file_input"))||void 0===t||t.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,t.jsx)(d,{size:50,className:"text-secondary"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Files"}),(0,t.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,t.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a,t;(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(t=document.getElementById("upload_video_input"))||void 0===t||t.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,t.jsx)(s,{size:55,className:"text-slate-600"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Videos"}),(0,t.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,t.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},5094:(e,l,a)=>{a.d(l,{A:()=>N});var t=a(4848),i=a(6540),o=a(9020),n=a(1710),d=a(5737);let s=(0,d.A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);var r=a(6897);function c(e){let{folderName:l,folder:a,user:d}=e,c="".concat(a?a+"/":"").concat(l),[u,m]=i.useState(!1);return(0,t.jsxs)("a",{href:"/admin/".concat(null==d?void 0:d.id,"/media/").concat(c),className:"card col items-center justify-center",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[u&&(0,t.jsx)(n.A,{}),(0,t.jsx)(s,{opacity:.5}),(0,t.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,t.jsx)("span",{className:"",children:l}),(0,t.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:e=>{window.confirm("Delete this Folder and all its contents?")&&(m(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,o.A)("/api/deleteMediaFolder",{method:"post",body:{folder:c}},!0).then(e=>{e.success&&window.location.reload()}):m(!1))},children:(0,t.jsx)(r.A,{})})]},l)}var u=a(5655),m=a(900),p=a(2178);function h(e){var l,a;let{mediaObject:n,staticHost:d}=e,s=n.media_thumbnail_path?(null==n?void 0:n.private)?n.media_thumbnail_url:"".concat(d).concat(n.media_thumbnail_path):n.media_thumbnail_url,r=n.media_path?(null==n?void 0:n.private)?n.media_url:"".concat(d).concat(n.media_path):n.media_url;return(0,t.jsx)(i.Fragment,{children:(null===(l=n.media_type)||void 0===l?void 0:l.match(/file/i))?(0,t.jsx)("div",{className:"cursor-pointer hover:opacity-80",children:(0,t.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:n.media_type.replace(/.*\//,"").toUpperCase()})}):(null===(a=n.media_type)||void 0===a?void 0:a.match(/video/i))?(0,t.jsx)("video",{src:r,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,t.jsx)("img",{src:s,alt:n.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:e=>{null!=n&&n.private||(0,o.A)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:n}},!0).then(e=>{e.success?window.location.reload():(console.log(e),console.log(s),console.log(r))})}})})}var v=a(221);function f(e){var l;let{mediaObject:a,staticHost:o}=e;return(a.media_thumbnail_path?"".concat(o,"/").concat(a.media_thumbnail_path):a.media_thumbnail_url,a.media_path?"".concat(o,"/").concat(a.media_path):a.media_url,null==a?void 0:a.private)?(0,t.jsx)(i.Fragment,{}):(0,t.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,t.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,t.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,t.jsxs)(m.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,t.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:e=>{navigator.clipboard.writeText(a.media_url||"").then(()=>{alert("Media url ".concat(a.media_url," Copied to clipboard"))})},children:"Copy Full Link"}),!(null==a?void 0:null===(l=a.media_type)||void 0===l?void 0:l.match(/file|video/i))&&(0,t.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:e=>{navigator.clipboard.writeText(a.media_thumbnail_url||"").then(()=>{alert("Media url ".concat(a.media_thumbnail_url," Copied to clipboard"))})},children:"Copy Thumbnail Link"})]})})]})}var x=a(6446);let g=(0,d.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);function y(e){var l;let{mediaObject:a,setLoading:n}=e,[d,s]=i.useState(!1);return(null==a?void 0:null===(l=a.media_type)||void 0===l?void 0:l.match(/video/i))?null:(0,t.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+((null==a?void 0:a.private)?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{let l=a.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(l)&&(n(!0),(0,o.A)("/api/media/addPrivateMedia",{method:"post",body:{...a}},!0).then(e=>{e.success?window.location.reload():window.alert("Action Failed!"),setTimeout(()=>{n(!1)},1e3)}).catch(e=>{console.log(e)}))},children:(null==a?void 0:a.private)?(0,t.jsx)(x.A,{size:20,color:"green"}):(0,t.jsx)(g,{color:"black",size:20})})}var w=a(6875);function b(e){let{mediaObject:l,setTargetMedia:a,folder:o,staticHost:d}=e,[s,r]=i.useState(null!=l&&!!l.private),[c,x]=i.useState(l);i.useEffect(()=>{var e;(null==l?void 0:l.private)&&l.media_thumbnail_url&&!(null===(e=c.media_type)||void 0===e?void 0:e.match(/file/i))?(0,w.A)({url:l.media_thumbnail_url}).then(e=>{x({...l,media_thumbnail_url:e}),r(!1)}).catch(e=>{console.log(e.message)}):s&&r(!1)},[]),c.media_thumbnail_path?"".concat(d,"/").concat(c.media_thumbnail_path):c.media_thumbnail_url;let g=c.media_path?"".concat(d,"/").concat(c.media_path):c.media_url;return(0,t.jsxs)("div",{className:"media-card card col min-h-[200px]",onClick:e=>{var l,t;if(!(e.target.closest("button")||e.target.closest(".button"))){if((null===(l=c.media_type)||void 0===l?void 0:l.match(/file/i))&&!c.private){window.open(g,"__blank");return}if((null===(t=c.media_type)||void 0===t?void 0:t.match(/file/i))&&c.private)return;a(c),(0,u.PB)("target-media-popup")}},onMouseEnter:e=>{e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:e=>{e.target.closest(".media-card").style.zIndex="0"},style:(null==c?void 0:c.private)?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[s&&(0,t.jsx)(n.A,{}),(0,t.jsx)(h,{mediaObject:c,staticHost:d}),(0,t.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,t.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:c.media_name}),(0,t.jsx)("div",{className:"flex-wrap w-full",children:(0,t.jsxs)(m.A,{className:"flex-wrap w-full items-stretch",children:[(0,t.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:e=>{var l;(0,p.A)({mediaObject:c,fileName:(null==g?void 0:null===(l=g.match(/[^\/]+$/))||void 0===l?void 0:l[0])||"",setLoading:r})},children:(0,t.jsx)("span",{children:"Download"})}),(0,t.jsx)(f,{mediaObject:c,staticHost:d}),(0,t.jsx)(v.A,{mediaObject:c,setLoading:r})]})})]}),(0,t.jsx)(y,{mediaObject:c,setLoading:r})]})}let j=(0,d.A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function N(e){let{media:l,setTargetMedia:a,folders:o,folder:n,staticHost:d,user:s}=e;return(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)("section",{className:"paper overflow-visible",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,t.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[o&&o[0]&&o.map(e=>(0,t.jsx)(c,{folder:n,folderName:e,user:s},e)),l&&l[0]&&l.map(e=>(0,t.jsx)(b,{mediaObject:e,setTargetMedia:a,folder:n,staticHost:d},e.id))]}),!(null==l?void 0:l[0])&&(0,t.jsx)(k,{})]})})}function k(){return(0,t.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,u.PB)("choose-media-type-popoup")},children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,t.jsx)(j,{}),(0,t.jsx)("span",{className:"",children:"Add Media"})]})}},6217:(e,l,a)=>{let t;a.d(l,{A:()=>r});var i=a(4848),o=a(6540),n=a(9020),d=a(5655),s=a(1710);function r(e){let{folder:l}=e,[a,r]=o.useState(!1),[c,u]=o.useState(!1);return(0,i.jsxs)(d.Ay,{title:"add-folder-popoup",children:[(0,i.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,i.jsxs)("div",{className:"flex-col w-full relative",children:[a&&(0,i.jsx)(s.A,{}),(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),window.clearTimeout(t),r(!0);let a=e.target;(0,n.A)("/api/addNewMediaFolder",{method:"post",body:{name:(l?"".concat(l,"/"):"")+a["new-folder-name"].value}},!0).then(e=>{e.success?window.location.reload():r(!1)})},className:"w-full flex flex-col items-stretch gap-2",children:[c&&(0,i.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,i.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(c?" warning":""),onChange:e=>{e.target.value=e.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(t),t=setTimeout(()=>{(0,n.A)("/api/checkExistingFolder?name=".concat(e.target.value).concat(l?"&folder="+l:"")).then(l=>{var a;(null===(a=e.target.value)||void 0===a?void 0:a.match(/./))&&(null==l?void 0:l.success)?(u(!0),alert("Folder Already Exists")):u(!1)})},500)}}),(0,i.jsx)("button",{children:"Add New Folder"})]})]})]})}},1828:(e,l,a)=>{a.d(l,{A:()=>v});var t=a(4848),i=a(6540),o=a(9020),n=a(65),d=a(5655),s=a(1710),r=a(6446);let c=(0,a(5737).A)("LockKeyholeOpen",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);function u(e){let{mediaObject:l}=e,[a,o]=i.useState(!1);return i.useEffect(()=>{l.private=a},[a]),(0,t.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(a?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{o(e=>!e)},children:a?(0,t.jsx)(r.A,{}):(0,t.jsx)(c,{})})}var m=a(6897);function p(e){let{imageObject:l,newMedia:a,setNewMedia:i,video:o}=e,n=l.imageBase64Full||l.fileBase64Full,d=l.imageName||l.fileName;return(0,t.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[o?(0,t.jsx)("video",{src:n,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,t.jsx)("img",{src:n,alt:d,className:"w-full h-full object-contain"}),(0,t.jsx)("input",{type:"text",defaultValue:d,onInput:e=>{var a;let t=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-");l.fileName&&(l.fileName=t),l.imageName&&(l.imageName=t)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,t.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:e=>{let t=a.findIndex(e=>e.imageBase64===l.imageBase64||e.fileBase64===l.fileBase64);a.splice(t,1),i([...a])},children:(0,t.jsx)(m.A,{size:16})}),!o&&(0,t.jsx)(u,{mediaObject:l})]})}function h(e){let{fileObject:l,newFile:a,setNewFile:i}=e;return(0,t.jsxs)("div",{className:"border border-slate-300 rounded min-h-[100px] flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,t.jsx)("input",{type:"text",defaultValue:l.fileName,onInput:e=>{var a;l.fileName=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,t.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:e=>{let t=a.findIndex(e=>e.fileBase64===l.fileBase64);a.splice(t,1),i([...a])},children:(0,t.jsx)(m.A,{size:16})}),(0,t.jsx)(u,{mediaObject:l})]})}function v(e){let{newMedia:l,setNewMedia:a,newFile:r,setNewFile:c,newVideo:u,setNewVideo:m,folder:v}=e,f=(null==l?void 0:l[0])?"images":(null==r?void 0:r[0])?"files":"videos",x=(null==f?void 0:f.match(/image/i))?l:(null==f?void 0:f.match(/file/i))?r:u,g=(null==f?void 0:f.match(/image/i))?a:(null==f?void 0:f.match(/file/i))?c:m,[y,w]=i.useState(!1);return i.useEffect(()=>{x&&x[0]&&(0,d.PB)("new-media-popup")},[l,r,u]),(0,t.jsxs)(d.Ay,{title:"new-media-popup",closePopupDispatch:()=>{a(null),c(null),m(null)},children:[y&&(0,t.jsx)(s.A,{screen:!0}),(0,t.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:x&&x[0]&&x.map((e,l)=>(null==f?void 0:f.match(/image/i))?(0,t.jsx)(p,{imageObject:e,newMedia:x,setNewMedia:g},l+1):(null==f?void 0:f.match(/video/i))?(0,t.jsx)(p,{imageObject:e,newMedia:x,setNewMedia:g,video:!0},l+1):(0,t.jsx)(h,{fileObject:e,newFile:x,setNewFile:g},l+1))}),x&&x[0]&&(0,t.jsx)("button",{className:"py-3 w-full relative z-50"+(y?" pointer-events-none opacity-40":""),onClick:e=>{w(!0);let l=(null==f?void 0:f.match(/image/i))?{type:f,folder:v,media:x.map(e=>({imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}))}:{type:f,folder:v,media:x.map(e=>({fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:!!(null==f?void 0:f.match(/video/i))}))};(0,o.A)("/api/addUserMedia",{method:"post",body:l},!0).then(e=>{e.success?(0,n.A)().then(()=>{window.location.reload()}):(alert("Image Upload Failed"),console.log(e),setTimeout(()=>{w(!1)},1e3))})},children:"Upload Media"})]})}},1923:(e,l,a)=>{a.d(l,{A:()=>v});var t=a(4848),i=a(6540),o=a(9020),n=a(65),d=a(5655),s=a(1710),r=a(900),c=a(2178),u=a(6875);let m=(0,a(5737).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var p=a(8453),h=a(221);function v(e){var l,a;let{targetMedia:v,staticHost:f,setTargetMedia:x,media:g}=e;(null==v?void 0:v.media_thumbnail_path)?"".concat(f,"/").concat(null==v?void 0:v.media_thumbnail_path):null==v||v.media_thumbnail_url;let y=(null==v?void 0:v.media_path)?"".concat(f,"/").concat(null==v?void 0:v.media_path):null==v?void 0:v.media_url,w=!!(null==v?void 0:null===(l=v.media_type)||void 0===l?void 0:l.match(/video/i)),b=v?g.findIndex(e=>e.id==v.id):null,j="number"==typeof b&&b>=0,N=(()=>{var e;if(!j)return null;let l=g[b+1];return l?(null==l?void 0:null===(e=l.media_type)||void 0===e?void 0:e.match(/image/i))?l:g.slice(b+1).find(e=>{var l;return null!==(l=e.media_type)&&void 0!==l&&!!l.match(/image/i)})||null:null})(),k=(()=>{var e;if(!j)return null;let l=g[b-1];return l?(null==l?void 0:null===(e=l.media_type)||void 0===e?void 0:e.match(/image/i))?l:g.slice(0,b-1).findLast(e=>{var l;return null!==(l=e.media_type)&&void 0!==l&&!!l.match(/image/i)})||null:null})(),[A,_]=i.useState(null!=v&&!!v.private),[M,C]=i.useState(!1),[F,L]=i.useState(y),T=i.useRef();return i.useEffect(()=>{(null==v?void 0:v.private)?(0,u.A)({url:v.media_url||""}).then(e=>{e&&(L(e),_(!1))}).catch(e=>{console.log(e.message)}):L((null==v?void 0:v.media_url)||"")},[v]),(0,t.jsxs)(d.Ay,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:()=>{C(!1),x(null)},children:[A&&(0,t.jsx)(s.A,{}),!M&&(0,t.jsx)(s.A,{}),v&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"self-center h-screen py-4",children:[F?w?(0,t.jsx)("video",{src:F,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:()=>{C(!0)},style:M?void 0:{display:"none"}}):(0,t.jsx)("img",{src:F,alt:v.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:T,onLoad:e=>{C(!0)},style:M?void 0:{display:"none"}}):(0,t.jsx)(t.Fragment,{}),k&&(0,t.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{x(null),x(k)},children:(0,t.jsx)(m,{color:"white"})}),N&&(0,t.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{x(null),x(N)},children:(0,t.jsx)(p.A,{color:"white"})})]}),(0,t.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:null===(a=v.media_path)||void 0===a?void 0:a.replace(/.*\//,"")}),(0,t.jsx)("div",{className:"absolute bottom-6 left-6 p-1 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch min-w-[200px]",children:(0,t.jsxs)(r.A,{column:!0,children:[(0,t.jsx)(h.F,{mediaObject:v,setLoading:_}),(0,t.jsx)("button",{className:"outlined secondary more-padding",onClick:e=>{var l,a;(0,c.A)({mediaObject:v,fileName:(null===(a=v.media_url)||void 0===a?void 0:null===(l=a.match(/[^\/]+$/))||void 0===l?void 0:l[0])||"",setLoading:_})},children:"Download"}),(0,t.jsx)("button",{onClick:e=>{window.confirm("Delete this media?")&&(0,o.A)("/api/deleteUserMedia",{method:"post",body:v},!0).then(e=>{e.success?(0,n.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},className:"more-padding",children:"Delete"}),!(null==v?void 0:v.private)&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:e=>{navigator.clipboard.writeText(v.media_url||"").then(()=>{alert("Media url ".concat(v.media_url," Copied to clipboard"))})},children:"Copy Full Image Link"}),(0,t.jsx)("button",{className:"outlined gray w-full more-padding",onClick:e=>{navigator.clipboard.writeText(v.media_thumbnail_url||"").then(()=>{alert("Media url ".concat(v.media_thumbnail_url," Copied to clipboard"))})},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})]})})]})]})}},221:(e,l,a)=>{a.d(l,{A:()=>d,F:()=>s});var t=a(4848);a(6540);var i=a(9020),o=a(65),n=a(900);function d(e){let{mediaObject:l,setLoading:a}=e;return(0,t.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,t.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,t.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,t.jsxs)(n.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,t.jsx)(s,{mediaObject:l,setLoading:a}),(0,t.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:e=>{window.confirm("Delete this media?")&&(0,i.A)("/api/deleteUserMedia",{method:"post",body:l},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},children:"Delete"})]})})]})}function s(e){let{mediaObject:l,setLoading:a}=e;return(0,t.jsx)("button",{onClick:e=>{let t=window.prompt("Rename media",l.media_name);t&&window.confirm('Rename "'.concat(l.media_name,'" to "').concat(t,'"'))&&(a(!0),(0,i.A)("/api/renameMedia",{method:"post",body:{mediaObject:l,newName:t.replace(/ /g,"-"),newThumbnailName:t.replace(/ /g,"-")+"_thumbnail"}},!0).then(e=>{e.success?window.location.reload():(window.alert(e.msg),setTimeout(()=>{a(!1)},1e3))}))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},5655:(e,l,a)=>{a.d(l,{Ay:()=>n,PB:()=>d,fs:()=>s});var t=a(4848),i=a(6897),o=a(6540);function n(e){let{children:l,title:a,data:n,fullPage:d,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return d?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:u,children:[m?(0,t.jsx)(o.Fragment,{children:l}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:l}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{s(),c&&c()},children:(0,t.jsx)(i.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{s(),c&&c()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,t.jsx)(o.Fragment,{children:l}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[l,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{s(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{s(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{s(),c&&c()}})]})}function d(e,l){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",null==l||l(a))}function s(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},431:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848);a(6540);var i=a(3078);function o(e){let{setNewFile:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},3142:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848);a(6540);var i=a(2659);function o(e){let{setNewMedia:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_image_input",id:"upload_image_input",className:"hidden",accept:"image/*",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},9200:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848);a(6540);var i=a(3078);function o(e){let{setNewVideo:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_video_input",id:"upload_video_input",className:"hidden",accept:".mp4",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Videos selected")}})})}},18:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(4848);function i(){return(0,t.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,t.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(6540)},900:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(4848),i=a(6540);function o(e){let{children:l,column:a,className:o}=e,n=i.useRef();return i.useEffect(()=>{try{let e=n.current;if(!e)throw Error("No Button Group Wrapper!");let l=e.childNodes,t=Array.from(l);if((null==t?void 0:t.length)===1)return;t.forEach((e,l)=>{let i=e;if(i.classList.contains("dropdown-wrapper")){let l=Array.from(e.childNodes).filter(e=>{var l;return(null==e?void 0:null===(l=e.nodeName)||void 0===l?void 0:l.match(/button/i))||e.classList.contains("button")});l&&l[0]&&(i=l[0])}l0&&(i.style[a?"borderTop":"borderLeft"]="none",i.style[a?"borderTopRightRadius":"borderTopLeftRadius"]=0,i.style[a?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,t.jsx)("div",{className:"items-stretch gap-0"+(a?" flex-col":" flex-wrap xl:flex-nowrap")+(o?" "+o:""),ref:n,children:l})}},2178:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(6875);async function i(e){var l;let a,{mediaObject:i,fileName:o,setLoading:n}=e;n&&n(!0);let d=!!((null==i?void 0:i.private)||(null==i?void 0:null===(l=i.media_url)||void 0===l?void 0:l.match(/^\@/)));a=d?await (0,t.A)({url:i.media_url||""}):await fetch("/api/fetch-media?url="+i.media_url);let s=d?a:await a.blob(),r=d?a:URL.createObjectURL(s),c=document.createElement("a");c.href=r,c.download=o,c.style.display="none",document.body.appendChild(c),c.click(),URL.revokeObjectURL(r),document.body.removeChild(c),setTimeout(()=>{n&&n(!1)},500)}},6875:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{url:l}=e;return new Promise((e,a)=>{fetch("/api/media/getPrivateMedia",{method:"POST",body:JSON.stringify({path:l}),headers:{[localStorage.getItem("csrf")||"none"]:"true"}}).then(e=>e.blob()).then(l=>{e(URL.createObjectURL(l))})})}},2659:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(1335);let i=a.n(t)().media.imageInputFileToBase64},3078:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{inputFile:l}=e;try{let e=l.name.replace(/\..*/,""),a=await new Promise((e,a)=>{var t=new FileReader;t.readAsDataURL(l),t.onload=function(){e(t.result)},t.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:a.replace(/.*?base64,/,""),fileBase64Full:a,fileName:e,fileSize:l.size,fileType:l.type}}catch(e){return console.log("Image Processing Error! =>",e.message),{fileBase64:null,fileBase64Full:null,fileName:l.name,fileSize:null,fileType:null}}}},7216:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},9140:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},6446:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).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"}]])},7273:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},4909:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).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"}]])},6897:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9950-e6be92fc61deb6e3.js b/dsql-app/.local_dist/static/chunks/9950-f96c0c56ed7fb229.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/9950-e6be92fc61deb6e3.js rename to dsql-app/.local_dist/static/chunks/9950-f96c0c56ed7fb229.js index a376919..60de5b5 100644 --- a/dsql-app/.local_dist/static/chunks/9950-e6be92fc61deb6e3.js +++ b/dsql-app/.local_dist/static/chunks/9950-f96c0c56ed7fb229.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9950],{5330:(e,a,t)=>{t.d(a,{A:()=>h});var s=t(4848),l=t(6540),d=t(7516),i=t(5655),n=t(9020),r=t(1710),c=t(900),o=t(8453);function h(e){var a;let{database:t,setTargetDatabase:h,delegated:p,user:u}=e,m="/admin/".concat(null==u?void 0:u.id,"/databases/").concat(t.db_slug)+(p?"?delegated=true&dbUserId=".concat(t.user_id):""),{active_clone:x,active_clone_parent_db:y}=t,[b,f]=l.useState(!1);return(0,s.jsxs)("a",{href:m,className:"card",onClick:e=>{let a=e.target;(a.closest(".db-list-item-actions-block")||a.closest(".cancel-link"))&&e.preventDefault(),p&&(e.preventDefault(),f(!0),(0,n.A)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:t.user_id,priviledges:t.user_priviledge,database:t.db_slug}},!0).then(e=>{e.success&&(window.location.href=m)}),setTimeout(()=>{f(!1)},1e3))},children:[b&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsx)("img",{src:t.db_image?t.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:t.db_image?"avatar":"avatar opacity-50"}),(0,s.jsxs)("div",{className:"flex-col items-start grow",children:[(0,s.jsx)("span",{className:"title",children:t.db_name}),y&&(0,s.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,s.jsx)("b",{children:y.replace(/datasquirel_user_\d+_/,"")})]}),(0,s.jsx)("div",{className:"-mt-2",children:(0,s.jsx)(d.A,{slugText:t.db_slug,smaller:!0})}),(0,s.jsx)("div",{className:"-mt-1 gap-1",children:(0,s.jsx)(d.A,{slugText:t.db_full_name,smaller:!0,full:!0})}),!p&&(0,s.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(a=t.date_created)||void 0===a?void 0:a.substring(0,21)]}),p&&(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600",children:[t.first_name," ",t.last_name]}),(0,s.jsx)("span",{className:"text-xs text-slate-400",children:t.email})]})]}),(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,s.jsxs)(c.A,{children:[!p&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{window.location.pathname="/admin/".concat(null==u?void 0:u.id,"/databases/").concat(t.db_slug,"/edit-database")},children:(0,s.jsx)("span",{children:"Edit"})}),!p&&!x&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{window.location.href="/admin/".concat(null==u?void 0:u.id,"/databases/add-database?duplicate=").concat(t.db_full_name)},children:(0,s.jsx)("span",{children:"Duplicate"})}),!p&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{h&&h(t),(0,i.PB)("delete-database-confirmation")},children:(0,s.jsx)("span",{children:"Delete"})})]})}),(0,s.jsx)(o.A,{className:"text-slate-600",size:20})]})]})]})}},2992:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(4848),l=t(6540),d=t(5330);let i=(0,t(5737).A)("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);function n(e){let{databases:a,setTargetDatabase:t,title:n,more:r,user:c}=e;return(0,s.jsx)(l.Fragment,{children:(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:n||"Database List"}),c&&a&&a[0]&&t&&(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map(e=>(0,s.jsx)(d.A,{database:e,setTargetDatabase:t,user:c},e.id))}),r&&a&&a[0]&&(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases"),className:"button w-full more-padding",children:"See All Databases"}),!a||!a[0]&&(0,s.jsxs)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/add-database"),className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,s.jsx)(i,{}),(0,s.jsx)("span",{className:"",children:"Add Database"})]})]})})}},4435:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(1710),i=t(9020),n=t(5330);function r(e){let{user:a}=e,[t,r]=l.useState(null),[c,o]=l.useState(!1);return l.useEffect(()=>{(0,i.A)("/api/getDelegatedDatabases").then(e=>{e.success&&(r(e.databases),o(!1))})},[]),(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),c&&(0,s.jsx)(d.A,{}),a&&t?t[0]?(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:t.map(e=>(0,s.jsx)(n.A,{database:e,delegated:!0,user:a},e.id))})}):(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("div",{className:"w-full justify-center",children:(0,s.jsx)(d.A,{position:"relative",width:"20px"})})})]})}},1670:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(9020),i=t(5655),n=t(1710);function r(e){let{targetDatabase:a}=e,[t,r]=l.useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[t&&(0,s.jsx)(n.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:e=>{if(!a){alert("No Target Database Selected!");return}r(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:a},!0).then(e=>{e.success&&window.location.reload()}):r(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},7516:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(4848),l=t(7220);function d(e){let{slugText:a,smaller:t,outlined:d,full:i}=e;return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(d?" outlined gray":"light-gray")+(t?" small-text":""),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert("".concat(i?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{children:a})]})}t(6540)},5655:(e,a,t)=>{t.d(a,{Ay:()=>i,PB:()=>n,fs:()=>r});var s=t(4848),l=t(6897),d=t(6540);function i(e){let{children:a,title:t,data:i,fullPage:n,wrapperClasses:c,closePopupDispatch:o,wrapperStyle:h,noContainer:p}=e;return n?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(c||""),"data-popupid":t||null,style:h,children:[p?(0,s.jsx)(d.Fragment,{children:a}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":i?JSON.stringify(i):"",children:a}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{r(),o&&o()},children:(0,s.jsx)(l.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{r(),o&&o()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[p?(0,s.jsx)(d.Fragment,{children:a}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":i?JSON.stringify(i):"",children:[a,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{r(),o&&o()}})]})}function n(e,a){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==a||a(t))}function r(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},18:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(4848);function l(){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(6540)},900:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(4848),l=t(6540);function d(e){let{children:a,column:t,className:d}=e,i=l.useRef();return l.useEffect(()=>{try{let e=i.current;if(!e)throw Error("No Button Group Wrapper!");let a=e.childNodes,s=Array.from(a);if((null==s?void 0:s.length)===1)return;s.forEach((e,a)=>{let l=e;if(l.classList.contains("dropdown-wrapper")){let a=Array.from(e.childNodes).filter(e=>{var a;return(null==e?void 0:null===(a=e.nodeName)||void 0===a?void 0:a.match(/button/i))||e.classList.contains("button")});a&&a[0]&&(l=a[0])}a0&&(l.style[t?"borderTop":"borderLeft"]="none",l.style[t?"borderTopRightRadius":"borderTopLeftRadius"]=0,l.style[t?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(d?" "+d:""),ref:i,children:a})}},7216:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7220:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},4909:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).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"}]])},6897:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9950],{5330:(e,a,t)=>{t.d(a,{A:()=>h});var s=t(4848),l=t(6540),d=t(7516),i=t(5655),n=t(9020),r=t(1710),c=t(900),o=t(8453);function h(e){var a;let{database:t,setTargetDatabase:h,delegated:p,user:u}=e,m="/admin/".concat(null==u?void 0:u.id,"/databases/").concat(t.db_slug)+(p?"?delegated=true&dbUserId=".concat(t.user_id):""),{active_clone:x,active_clone_parent_db:y}=t,[b,f]=l.useState(!1);return(0,s.jsxs)("a",{href:m,className:"card",onClick:e=>{let a=e.target;(a.closest(".db-list-item-actions-block")||a.closest(".cancel-link"))&&e.preventDefault(),p&&(e.preventDefault(),f(!0),(0,n.A)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:t.user_id,priviledges:t.user_priviledge,database:t.db_slug}},!0).then(e=>{e.success&&(window.location.href=m)}),setTimeout(()=>{f(!1)},1e3))},children:[b&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsx)("img",{src:t.db_image?t.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:t.db_image?"avatar":"avatar opacity-50"}),(0,s.jsxs)("div",{className:"flex-col items-start grow",children:[(0,s.jsx)("span",{className:"title",children:t.db_name}),y&&(0,s.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,s.jsx)("b",{children:y.replace(/datasquirel_user_\d+_/,"")})]}),(0,s.jsx)("div",{className:"-mt-2",children:(0,s.jsx)(d.A,{slugText:t.db_slug,smaller:!0})}),(0,s.jsx)("div",{className:"-mt-1 gap-1",children:(0,s.jsx)(d.A,{slugText:t.db_full_name,smaller:!0,full:!0})}),!p&&(0,s.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(a=t.date_created)||void 0===a?void 0:a.substring(0,21)]}),p&&(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600",children:[t.first_name," ",t.last_name]}),(0,s.jsx)("span",{className:"text-xs text-slate-400",children:t.email})]})]}),(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,s.jsxs)(c.A,{children:[!p&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{window.location.pathname="/admin/".concat(null==u?void 0:u.id,"/databases/").concat(t.db_slug,"/edit-database")},children:(0,s.jsx)("span",{children:"Edit"})}),!p&&!x&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{window.location.href="/admin/".concat(null==u?void 0:u.id,"/databases/add-database?duplicate=").concat(t.db_full_name)},children:(0,s.jsx)("span",{children:"Duplicate"})}),!p&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{h&&h(t),(0,i.PB)("delete-database-confirmation")},children:(0,s.jsx)("span",{children:"Delete"})})]})}),(0,s.jsx)(o.A,{className:"text-slate-600",size:20})]})]})]})}},2992:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(4848),l=t(6540),d=t(5330);let i=(0,t(5737).A)("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);function n(e){let{databases:a,setTargetDatabase:t,title:n,more:r,user:c}=e;return(0,s.jsx)(l.Fragment,{children:(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:n||"Database List"}),c&&a&&a[0]&&t&&(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map(e=>(0,s.jsx)(d.A,{database:e,setTargetDatabase:t,user:c},e.id))}),r&&a&&a[0]&&(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases"),className:"button w-full more-padding",children:"See All Databases"}),!a||!a[0]&&(0,s.jsxs)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/add-database"),className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,s.jsx)(i,{}),(0,s.jsx)("span",{className:"",children:"Add Database"})]})]})})}},4435:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(1710),i=t(9020),n=t(5330);function r(e){let{user:a}=e,[t,r]=l.useState(null),[c,o]=l.useState(!1);return l.useEffect(()=>{(0,i.A)("/api/getDelegatedDatabases").then(e=>{e.success&&(r(e.databases),o(!1))})},[]),(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),c&&(0,s.jsx)(d.A,{}),a&&t?t[0]?(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:t.map(e=>(0,s.jsx)(n.A,{database:e,delegated:!0,user:a},e.id))})}):(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("div",{className:"w-full justify-center",children:(0,s.jsx)(d.A,{position:"relative",width:"20px"})})})]})}},1670:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(9020),i=t(5655),n=t(1710);function r(e){let{targetDatabase:a}=e,[t,r]=l.useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[t&&(0,s.jsx)(n.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:e=>{if(!a){alert("No Target Database Selected!");return}r(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:a},!0).then(e=>{e.success&&window.location.reload()}):r(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},7516:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(4848),l=t(4839);function d(e){let{slugText:a,smaller:t,outlined:d,full:i}=e;return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(d?" outlined gray":"light-gray")+(t?" small-text":""),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert("".concat(i?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{children:a})]})}t(6540)},5655:(e,a,t)=>{t.d(a,{Ay:()=>i,PB:()=>n,fs:()=>r});var s=t(4848),l=t(6897),d=t(6540);function i(e){let{children:a,title:t,data:i,fullPage:n,wrapperClasses:c,closePopupDispatch:o,wrapperStyle:h,noContainer:p}=e;return n?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(c||""),"data-popupid":t||null,style:h,children:[p?(0,s.jsx)(d.Fragment,{children:a}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":i?JSON.stringify(i):"",children:a}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{r(),o&&o()},children:(0,s.jsx)(l.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{r(),o&&o()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[p?(0,s.jsx)(d.Fragment,{children:a}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":i?JSON.stringify(i):"",children:[a,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{r(),o&&o()}})]})}function n(e,a){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==a||a(t))}function r(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},18:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(4848);function l(){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(6540)},900:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(4848),l=t(6540);function d(e){let{children:a,column:t,className:d}=e,i=l.useRef();return l.useEffect(()=>{try{let e=i.current;if(!e)throw Error("No Button Group Wrapper!");let a=e.childNodes,s=Array.from(a);if((null==s?void 0:s.length)===1)return;s.forEach((e,a)=>{let l=e;if(l.classList.contains("dropdown-wrapper")){let a=Array.from(e.childNodes).filter(e=>{var a;return(null==e?void 0:null===(a=e.nodeName)||void 0===a?void 0:a.match(/button/i))||e.classList.contains("button")});a&&a[0]&&(l=a[0])}a0&&(l.style[t?"borderTop":"borderLeft"]="none",l.style[t?"borderTopRightRadius":"borderTopLeftRadius"]=0,l.style[t?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(d?" "+d:""),ref:i,children:a})}},7216:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},4839:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},4909:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).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"}]])},6897:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/404-386ef30594132ecb.js b/dsql-app/.local_dist/static/chunks/pages/404-9880de8d6a22dd12.js similarity index 96% rename from dsql-app/.local_dist/static/chunks/pages/404-386ef30594132ecb.js rename to dsql-app/.local_dist/static/chunks/pages/404-9880de8d6a22dd12.js index c46e61a..a26180d 100644 --- a/dsql-app/.local_dist/static/chunks/pages/404-386ef30594132ecb.js +++ b/dsql-app/.local_dist/static/chunks/pages/404-9880de8d6a22dd12.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{9540:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return r(1024)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},1024:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(4252),r(9625),r(3434)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9540)),_N_E=t.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{9540:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return r(1024)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},1024:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(8883),r(9625),r(3434)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9540)),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/500-81f6b715960091f2.js b/dsql-app/.local_dist/static/chunks/pages/500-3ae265ebb1fb2898.js similarity index 96% rename from dsql-app/.local_dist/static/chunks/pages/500-81f6b715960091f2.js rename to dsql-app/.local_dist/static/chunks/pages/500-3ae265ebb1fb2898.js index 6044366..da02389 100644 --- a/dsql-app/.local_dist/static/chunks/pages/500-81f6b715960091f2.js +++ b/dsql-app/.local_dist/static/chunks/pages/500-3ae265ebb1fb2898.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{9852:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/500",function(){return r(5529)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},5529:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(4252),r(9625),r(3434),r(9020)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9852)),_N_E=t.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{9852:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/500",function(){return r(5529)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},5529:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(8883),r(9625),r(3434),r(9020)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9852)),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/_app-d52aa62bd48f175b.js b/dsql-app/.local_dist/static/chunks/pages/_app-d52aa62bd48f175b.js new file mode 100644 index 0000000..1885d22 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/_app-d52aa62bd48f175b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{1028:function(t,n,e){"use strict";var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,u){function a(t){try{c(r.next(t))}catch(t){u(t)}}function o(t){try{c(r.throw(t))}catch(t){u(t)}}function c(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e(function(t){t(n)})).then(a,o)}c((r=r.apply(t,n||[])).next())})},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n,e,i){return r(this,void 0,void 0,function*(){let r;let o=localStorage.getItem(i||"csrf"),c={"Content-Type":"application/json"};if(e&&o&&(c[(0,a.default)()]=o),"string"==typeof n)try{r="post"===n?(yield fetch(t,{method:n,headers:c})).json():(yield fetch(t)).json()}catch(t){console.log("FetchAPI error #1:",t.message),r=null}else if("object"==typeof n)try{let e;if(n.body&&"object"==typeof n.body){let t=u.default.cloneDeep(n.body);n.body=JSON.stringify(t)}if(n.headers){n.headers=u.default.merge(n.headers,c);let r=Object.assign({},n);e=yield fetch(t,r)}else{let r=Object.assign(Object.assign({},n),{headers:c});e=yield fetch(t,r)}r=e.json()}catch(t){console.log("FetchAPI error #2:",t.message),r=null}else try{let n=yield fetch(t);r=yield n.json()}catch(t){console.log("FetchAPI error #3:",t.message),r=null}return r})};let u=i(e(2543)),a=i(e(9770))},9770:(t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return"x-csrf-key"}},2543:function(t,n,e){var r;t=e.nmd(t),(function(){var i,u="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",c=1/0,l=0/0,f=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",h="[object Array]",p="[object Boolean]",d="[object Date]",v="[object Error]",g="[object Function]",_="[object GeneratorFunction]",m="[object Map]",y="[object Number]",x="[object Object]",w="[object Promise]",b="[object RegExp]",j="[object Set]",k="[object String]",A="[object Symbol]",N="[object WeakMap]",E="[object ArrayBuffer]",I="[object DataView]",S="[object Float32Array]",z="[object Float64Array]",L="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",R="[object Uint8Array]",D="[object Uint8ClampedArray]",W="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,T=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,P=RegExp(F.source),$=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(Q.source),X=/^\s+/,tt=/\s/,tn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,te=/\{\n\/\* \[wrapped with (.+)\] \*/,tr=/,? & /,ti=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tu=/[()=,{}\[\]\/\s]/,ta=/\\(\\)?/g,to=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tc=/\w*$/,tl=/^[-+]0x[0-9a-f]+$/i,tf=/^0b[01]+$/i,ts=/^\[object .+?Constructor\]$/,th=/^0o[0-7]+$/i,tp=/^(?:0|[1-9]\d*)$/,td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tv=/($^)/,tg=/['\n\r\u2028\u2029\\]/g,t_="\ud800-\udfff",tm="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ty="\\u2700-\\u27bf",tx="a-z\\xdf-\\xf6\\xf8-\\xff",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\ufe0e\\ufe0f",tj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tk="['’]",tA="["+tj+"]",tN="["+tm+"]",tE="["+tx+"]",tI="[^"+t_+tj+"\\d+"+ty+tx+tw+"]",tS="\ud83c[\udffb-\udfff]",tz="[^"+t_+"]",tL="(?:\ud83c[\udde6-\uddff]){2}",tO="[\ud800-\udbff][\udc00-\udfff]",tC="["+tw+"]",tR="\\u200d",tD="(?:"+tE+"|"+tI+")",tW="(?:"+tC+"|"+tI+")",tB="(?:"+tk+"(?:d|ll|m|re|s|t|ve))?",tU="(?:"+tk+"(?:D|LL|M|RE|S|T|VE))?",tM="(?:"+tN+"|"+tS+")?",tT="["+tb+"]?",tF="(?:"+tR+"(?:"+[tz,tL,tO].join("|")+")"+tT+tM+")*",tq=tT+tM+tF,tP="(?:"+["["+ty+"]",tL,tO].join("|")+")"+tq,t$="(?:"+[tz+tN+"?",tN,tL,tO,"["+t_+"]"].join("|")+")",tG=RegExp(tk,"g"),tZ=RegExp(tN,"g"),tK=RegExp(tS+"(?="+tS+")|"+t$+tq,"g"),tV=RegExp([tC+"?"+tE+"+"+tB+"(?="+[tA,tC,"$"].join("|")+")",tW+"+"+tU+"(?="+[tA,tC+tD,"$"].join("|")+")",tC+"?"+tD+"+"+tB,tC+"+"+tU,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tP].join("|"),"g"),tH=RegExp("["+tR+t_+tm+tb+"]"),tJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tQ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tY=-1,tX={};tX[S]=tX[z]=tX[L]=tX[O]=tX[C]=tX[R]=tX[D]=tX[W]=tX[B]=!0,tX[s]=tX[h]=tX[E]=tX[p]=tX[I]=tX[d]=tX[v]=tX[g]=tX[m]=tX[y]=tX[x]=tX[b]=tX[j]=tX[k]=tX[N]=!1;var t0={};t0[s]=t0[h]=t0[E]=t0[I]=t0[p]=t0[d]=t0[S]=t0[z]=t0[L]=t0[O]=t0[C]=t0[m]=t0[y]=t0[x]=t0[b]=t0[j]=t0[k]=t0[A]=t0[R]=t0[D]=t0[W]=t0[B]=!0,t0[v]=t0[g]=t0[N]=!1;var t1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,t3=parseInt,t4="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,t6="object"==typeof self&&self&&self.Object===Object&&self,t8=t4||t6||Function("return this")(),t5=n&&!n.nodeType&&n,t7=t5&&t&&!t.nodeType&&t,t9=t7&&t7.exports===t5,nt=t9&&t4.process,nn=function(){try{var t=t7&&t7.require&&t7.require("util").types;if(t)return t;return nt&&nt.binding&&nt.binding("util")}catch(t){}}(),ne=nn&&nn.isArrayBuffer,nr=nn&&nn.isDate,ni=nn&&nn.isMap,nu=nn&&nn.isRegExp,na=nn&&nn.isSet,no=nn&&nn.isTypedArray;function nc(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function nl(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function nd(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function nB(t,n){for(var e=t.length;e--&&nj(n,t[e],0)>-1;);return e}var nU=nI({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),nM=nI({"&":"&","<":"<",">":">",'"':""","'":"'"});function nT(t){return"\\"+t1[t]}function nF(t){return tH.test(t)}function nq(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function nP(t,n){return function(e){return t(n(e))}}function n$(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"}),nJ=function t(n){var e,r,tt,t_,tm=(n=null==n?t8:nJ.defaults(t8.Object(),n,nJ.pick(t8,tQ))).Array,ty=n.Date,tx=n.Error,tw=n.Function,tb=n.Math,tj=n.Object,tk=n.RegExp,tA=n.String,tN=n.TypeError,tE=tm.prototype,tI=tw.prototype,tS=tj.prototype,tz=n["__core-js_shared__"],tL=tI.toString,tO=tS.hasOwnProperty,tC=0,tR=(e=/[^.]+$/.exec(tz&&tz.keys&&tz.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",tD=tS.toString,tW=tL.call(tj),tB=t8._,tU=tk("^"+tL.call(tO).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tM=t9?n.Buffer:i,tT=n.Symbol,tF=n.Uint8Array,tq=tM?tM.allocUnsafe:i,tP=nP(tj.getPrototypeOf,tj),t$=tj.create,tK=tS.propertyIsEnumerable,tH=tE.splice,t1=tT?tT.isConcatSpreadable:i,t4=tT?tT.iterator:i,t6=tT?tT.toStringTag:i,t5=function(){try{var t=id(tj,"defineProperty");return t({},"",{}),t}catch(t){}}(),t7=n.clearTimeout!==t8.clearTimeout&&n.clearTimeout,nt=ty&&ty.now!==t8.Date.now&&ty.now,nn=n.setTimeout!==t8.setTimeout&&n.setTimeout,nx=tb.ceil,nI=tb.floor,nQ=tj.getOwnPropertySymbols,nY=tM?tM.isBuffer:i,nX=n.isFinite,n0=tE.join,n1=nP(tj.keys,tj),n2=tb.max,n3=tb.min,n4=ty.now,n6=n.parseInt,n8=tb.random,n5=tE.reverse,n7=id(n,"DataView"),n9=id(n,"Map"),et=id(n,"Promise"),en=id(n,"Set"),ee=id(n,"WeakMap"),er=id(tj,"create"),ei=ee&&new ee,eu={},ea=iM(n7),eo=iM(n9),ec=iM(et),el=iM(en),ef=iM(ee),es=tT?tT.prototype:i,eh=es?es.valueOf:i,ep=es?es.toString:i;function ed(t){if(uZ(t)&&!uD(t)&&!(t instanceof em)){if(t instanceof e_)return t;if(tO.call(t,"__wrapped__"))return iT(t)}return new e_(t)}var ev=function(){function t(){}return function(n){if(!uG(n))return{};if(t$)return t$(n);t.prototype=n;var e=new t;return t.prototype=i,e}}();function eg(){}function e_(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function em(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function ey(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function eR(t,n,e,r,u,a){var o,c=1&n,l=2&n,f=4&n;if(e&&(o=u?e(t,r,u,a):e(t)),i!==o)return o;if(!uG(t))return t;var h=uD(t);if(h){if(v=t.length,w=new t.constructor(v),v&&"string"==typeof t[0]&&tO.call(t,"index")&&(w.index=t.index,w.input=t.input),o=w,!c)return rT(t,o)}else{var v,w,N,U,M,T=i_(t),F=T==g||T==_;if(uM(t))return rR(t,c);if(T==x||T==s||F&&!u){if(o=l||F?{}:iy(t),!c)return l?(N=(M=o)&&rF(t,ap(t),M),rF(t,ig(t),N)):(U=ez(o,t),rF(t,iv(t),U))}else{if(!t0[T])return u?t:{};o=function(t,n,e){var r,i,u=t.constructor;switch(n){case E:return rD(t);case p:case d:return new u(+t);case I:return r=e?rD(t.buffer):t.buffer,new t.constructor(r,t.byteOffset,t.byteLength);case S:case z:case L:case O:case C:case R:case D:case W:case B:return rW(t,e);case m:return new u;case y:case k:return new u(t);case b:return(i=new t.constructor(t.source,tc.exec(t))).lastIndex=t.lastIndex,i;case j:return new u;case A:return eh?tj(eh.call(t)):{}}}(t,T,c)}}a||(a=new ej);var q=a.get(t);if(q)return q;a.set(t,o),uQ(t)?t.forEach(function(r){o.add(eR(r,n,e,r,t,a))}):uK(t)&&t.forEach(function(r,i){o.set(i,eR(r,n,e,i,t,a))});var P=f?l?ia:iu:l?ap:ah,$=h?i:P(t);return nf($||t,function(r,i){$&&(r=t[i=r]),eE(o,i,eR(r,n,e,i,t,a))}),o}function eD(t,n,e){var r=e.length;if(null==t)return!r;for(t=tj(t);r--;){var u=e[r],a=n[u],o=t[u];if(i===o&&!(u in t)||!a(o))return!1}return!0}function eW(t,n,e){if("function"!=typeof t)throw new tN(u);return iO(function(){t.apply(i,e)},n)}function eB(t,n,e,r){var i=-1,u=np,a=!0,o=t.length,c=[],l=n.length;if(!o)return c;e&&(n=nv(n,nC(e))),r?(u=nd,a=!1):n.length>=200&&(u=nD,a=!1,n=new eb(n));t:for(;++i-1},ex.prototype.set=function(t,n){var e=this.__data__,r=eI(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},ew.prototype.clear=function(){this.size=0,this.__data__={hash:new ey,map:new(n9||ex),string:new ey}},ew.prototype.delete=function(t){var n=ih(this,t).delete(t);return this.size-=n?1:0,n},ew.prototype.get=function(t){return ih(this,t).get(t)},ew.prototype.has=function(t){return ih(this,t).has(t)},ew.prototype.set=function(t,n){var e=ih(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},eb.prototype.add=eb.prototype.push=function(t){return this.__data__.set(t,a),this},eb.prototype.has=function(t){return this.__data__.has(t)},ej.prototype.clear=function(){this.__data__=new ex,this.size=0},ej.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ej.prototype.get=function(t){return this.__data__.get(t)},ej.prototype.has=function(t){return this.__data__.has(t)},ej.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ex){var r=e.__data__;if(!n9||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new ew(r)}return e.set(t,n),this.size=e.size,this};var eU=r$(eZ),eM=r$(eK,!0);function eT(t,n){var e=!0;return eU(t,function(t,r,i){return e=!!n(t,r,i)}),e}function eF(t,n,e){for(var r=-1,u=t.length;++r0&&e(o)?n>1?eP(o,n-1,e,r,i):ng(i,o):r||(i[i.length]=o)}return i}var e$=rG(),eG=rG(!0);function eZ(t,n){return t&&e$(t,n,ah)}function eK(t,n){return t&&eG(t,n,ah)}function eV(t,n){return nh(n,function(n){return uq(t[n])})}function eH(t,n){n=rL(n,t);for(var e=0,r=n.length;null!=t&&en}function eX(t,n){return null!=t&&tO.call(t,n)}function e0(t,n){return null!=t&&n in tj(t)}function e1(t,n,e){for(var r=e?nd:np,u=t[0].length,a=t.length,o=a,c=tm(a),l=1/0,f=[];o--;){var s=t[o];o&&n&&(s=nv(s,nC(n))),l=n3(s.length,l),c[o]=!e&&(n||u>=120&&s.length>=120)?new eb(o&&s):i}s=t[0];var h=-1,p=c[0];t:for(;++h=o)return c;return c*("desc"==e[r]?-1:1)}}return t.index-n.index}(t,n,e)})}function ra(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)o!==t&&tH.call(o,c,1),tH.call(t,c,1);return t}function rc(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;iw(i)?tH.call(t,i,1):rj(t,i)}}return t}function rl(t,n){return t+nI(n8()*(n-t+1))}function rf(t,n){var e="";if(!t||n<1||n>0x1fffffffffffff)return e;do n%2&&(e+=t),(n=nI(n/2))&&(t+=t);while(n);return e}function rs(t,n){return iC(iI(t,n,aU),t+"")}function rh(t,n,e,r){if(!uG(t))return t;n=rL(n,t);for(var u=-1,a=n.length,o=a-1,c=t;null!=c&&++ui?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var u=tm(i);++r>>1,a=t[u];null!==a&&!uX(a)&&(e?a<=n:a=200){var l=n?null:r8(t);if(l)return nG(l);a=!1,i=nD,c=new eb}else c=n?[]:o;t:for(;++r=r?t:rv(t,n,e)}var rC=t7||function(t){return t8.clearTimeout(t)};function rR(t,n){if(n)return t.slice();var e=t.length,r=tq?tq(e):new t.constructor(e);return t.copy(r),r}function rD(t){var n=new t.constructor(t.byteLength);return new tF(n).set(new tF(t)),n}function rW(t,n){var e=n?rD(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function rB(t,n){if(t!==n){var e=i!==t,r=null===t,u=t==t,a=uX(t),o=i!==n,c=null===n,l=n==n,f=uX(n);if(!c&&!f&&!a&&t>n||a&&o&&l&&!c&&!f||r&&o&&l||!e&&l||!u)return 1;if(!r&&!a&&!f&&t1?e[u-1]:i,o=u>2?e[2]:i;for(a=t.length>3&&"function"==typeof a?(u--,a):i,o&&ib(e[0],e[1],o)&&(a=u<3?i:a,u=1),n=tj(n);++r-1?u[a?n[o]:o]:i}}function rJ(t){return ii(function(n){var e=n.length,r=e,a=e_.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new tN(u);if(a&&!c&&"wrapper"==ic(o))var c=new e_([],!0)}for(r=c?r:e;++r1&&y.reverse(),s&&lc))return!1;var f=a.get(t),s=a.get(n);if(f&&s)return f==n&&s==t;var h=-1,p=!0,d=2&e?new eb:i;for(a.set(t,n),a.set(n,t);++h-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(tn,"{\n/* [wrapped with "+n+"] */\n")}(u,(r=(i=u.match(te))?i[1].split(tr):[],nf(f,function(t){var n="_."+t[0];e&t[1]&&!np(r,n)&&r.push(n)}),r.sort())))}function iD(t){var n=0,e=0;return function(){var r=n4(),u=16-(r-e);if(e=r,u>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(i,arguments)}}function iW(t,n){var e=-1,r=t.length,u=r-1;for(n=i===n?r:n;++e1?t[n-1]:i;return e="function"==typeof e?(t.pop(),e):i,i8(t,e)});function ur(t){var n=ed(t);return n.__chain__=!0,n}function ui(t,n){return n(t)}var uu=ii(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,u=function(n){return eO(n,t)};return!(n>1)&&!this.__actions__.length&&r instanceof em&&iw(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:ui,args:[u],thisArg:i}),new e_(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(i),t})):this.thru(u)}),ua=rq(function(t,n,e){tO.call(t,e)?++t[e]:eL(t,e,1)}),uo=rH(i$),uc=rH(iG);function ul(t,n){return(uD(t)?nf:eU)(t,is(n,3))}function uf(t,n){return(uD(t)?function(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}:eM)(t,is(n,3))}var us=rq(function(t,n,e){tO.call(t,e)?t[e].push(n):eL(t,e,[n])}),uh=rs(function(t,n,e){var r=-1,i="function"==typeof n,u=uB(t)?tm(t.length):[];return eU(t,function(t){u[++r]=i?nc(n,t,e):e2(t,n,e)}),u}),up=rq(function(t,n,e){eL(t,e,n)});function ud(t,n){return(uD(t)?nv:rt)(t,is(n,3))}var uv=rq(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),ug=rs(function(t,n){if(null==t)return[];var e=n.length;return e>1&&ib(t,n[0],n[1])?n=[]:e>2&&ib(n[0],n[1],n[2])&&(n=[n[0]]),ru(t,eP(n,1),[])}),u_=nt||function(){return t8.Date.now()};function um(t,n,e){return n=e?i:n,n=t&&null==n?t.length:n,r7(t,128,i,i,i,i,n)}function uy(t,n){var e;if("function"!=typeof n)throw new tN(u);return t=u6(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var ux=rs(function(t,n,e){var r=1;if(e.length){var i=n$(e,il(ux));r|=32}return r7(t,r,n,e,i)}),uw=rs(function(t,n,e){var r=3;if(e.length){var i=n$(e,il(uw));r|=32}return r7(n,r,t,e,i)});function ub(t,n,e){var r,a,o,c,l,f,s=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw new tN(u);function v(n){var e=r,u=a;return r=a=i,s=n,c=t.apply(u,e)}function g(t){var e=t-f,r=t-s;return i===f||e>=n||e<0||p&&r>=o}function _(){var t,e,r,i=u_();if(g(i))return m(i);l=iO(_,(t=i-f,e=i-s,r=n-t,p?n3(r,o-e):r))}function m(t){return(l=i,d&&r)?v(t):(r=a=i,c)}function y(){var t,e=u_(),u=g(e);if(r=arguments,a=this,f=e,u){if(i===l)return s=t=f,l=iO(_,n),h?v(t):c;if(p)return rC(l),l=iO(_,n),v(f)}return i===l&&(l=iO(_,n)),c}return n=u5(n)||0,uG(e)&&(h=!!e.leading,o=(p="maxWait"in e)?n2(u5(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),y.cancel=function(){i!==l&&rC(l),s=0,r=f=a=l=i},y.flush=function(){return i===l?c:m(u_())},y}var uj=rs(function(t,n){return eW(t,1,n)}),uk=rs(function(t,n,e){return eW(t,u5(n)||0,e)});function uA(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new tN(u);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var a=t.apply(this,r);return e.cache=u.set(i,a)||u,a};return e.cache=new(uA.Cache||ew),e}function uN(t){if("function"!=typeof t)throw new tN(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}uA.Cache=ew;var uE=rs(function(t,n){var e=(n=1==n.length&&uD(n[0])?nv(n[0],nC(is())):nv(eP(n,1),nC(is()))).length;return rs(function(r){for(var i=-1,u=n3(r.length,e);++i=n}),uR=e3(function(){return arguments}())?e3:function(t){return uZ(t)&&tO.call(t,"callee")&&!tK.call(t,"callee")},uD=tm.isArray,uW=ne?nC(ne):function(t){return uZ(t)&&eQ(t)==E};function uB(t){return null!=t&&u$(t.length)&&!uq(t)}function uU(t){return uZ(t)&&uB(t)}var uM=nY||aQ,uT=nr?nC(nr):function(t){return uZ(t)&&eQ(t)==d};function uF(t){if(!uZ(t))return!1;var n=eQ(t);return n==v||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!uH(t)}function uq(t){if(!uG(t))return!1;var n=eQ(t);return n==g||n==_||"[object AsyncFunction]"==n||"[object Proxy]"==n}function uP(t){return"number"==typeof t&&t==u6(t)}function u$(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}function uG(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function uZ(t){return null!=t&&"object"==typeof t}var uK=ni?nC(ni):function(t){return uZ(t)&&i_(t)==m};function uV(t){return"number"==typeof t||uZ(t)&&eQ(t)==y}function uH(t){if(!uZ(t)||eQ(t)!=x)return!1;var n=tP(t);if(null===n)return!0;var e=tO.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&tL.call(e)==tW}var uJ=nu?nC(nu):function(t){return uZ(t)&&eQ(t)==b},uQ=na?nC(na):function(t){return uZ(t)&&i_(t)==j};function uY(t){return"string"==typeof t||!uD(t)&&uZ(t)&&eQ(t)==k}function uX(t){return"symbol"==typeof t||uZ(t)&&eQ(t)==A}var u0=no?nC(no):function(t){return uZ(t)&&u$(t.length)&&!!tX[eQ(t)]},u1=r3(e9),u2=r3(function(t,n){return t<=n});function u3(t){if(!t)return[];if(uB(t))return uY(t)?nK(t):rT(t);if(t4&&t[t4])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[t4]());var n=i_(t);return(n==m?nq:n==j?nG:aw)(t)}function u4(t){return t?(t=u5(t))===c||t===-c?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function u6(t){var n=u4(t),e=n%1;return n==n?e?n-e:n:0}function u8(t){return t?eC(u6(t),0,0xffffffff):0}function u5(t){if("number"==typeof t)return t;if(uX(t))return l;if(uG(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=uG(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=nO(t);var e=tf.test(t);return e||th.test(t)?t3(t.slice(2),e?2:8):tl.test(t)?l:+t}function u7(t){return rF(t,ap(t))}function u9(t){return null==t?"":rw(t)}var at=rP(function(t,n){if(iN(n)||uB(n)){rF(n,ah(n),t);return}for(var e in n)tO.call(n,e)&&eE(t,e,n[e])}),an=rP(function(t,n){rF(n,ap(n),t)}),ae=rP(function(t,n,e,r){rF(n,ap(n),t,r)}),ar=rP(function(t,n,e,r){rF(n,ah(n),t,r)}),ai=ii(eO),au=rs(function(t,n){t=tj(t);var e=-1,r=n.length,u=r>2?n[2]:i;for(u&&ib(n[0],n[1],u)&&(r=1);++e1),n}),rF(t,ia(t),e),r&&(e=eR(e,7,ie));for(var i=n.length;i--;)rj(e,n[i]);return e}),a_=ii(function(t,n){return null==t?{}:ra(t,n,function(n,e){return ac(t,e)})});function am(t,n){if(null==t)return{};var e=nv(ia(t),function(t){return[t]});return n=is(n),ra(t,e,function(t,e){return n(t,e[0])})}var ay=r5(ah),ax=r5(ap);function aw(t){return null==t?[]:nR(t,ah(t))}var ab=rK(function(t,n,e){return n=n.toLowerCase(),t+(e?aj(n):n)});function aj(t){return aL(u9(t).toLowerCase())}function ak(t){return(t=u9(t))&&t.replace(td,nU).replace(tZ,"")}var aA=rK(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),aN=rK(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),aE=rZ("toLowerCase"),aI=rK(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),aS=rK(function(t,n,e){return t+(e?" ":"")+aL(n)}),az=rK(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),aL=rZ("toUpperCase");function aO(t,n,e){if(t=u9(t),n=e?i:n,i===n){var r;return(r=t,tJ.test(r))?t.match(tV)||[]:t.match(ti)||[]}return t.match(n)||[]}var aC=rs(function(t,n){try{return nc(t,i,n)}catch(t){return uF(t)?t:new tx(t)}}),aR=ii(function(t,n){return nf(n,function(n){eL(t,n=iU(n),ux(t[n],t))}),t});function aD(t){return function(){return t}}var aW=rJ(),aB=rJ(!0);function aU(t){return t}function aM(t){return e5("function"==typeof t?t:eR(t,1))}var aT=rs(function(t,n){return function(e){return e2(e,t,n)}}),aF=rs(function(t,n){return function(e){return e2(t,e,n)}});function aq(t,n,e){var r=ah(n),i=eV(n,r);null!=e||uG(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=eV(n,ah(n)));var u=!(uG(e)&&"chain"in e)||!!e.chain,a=uq(t);return nf(i,function(e){var r=n[e];t[e]=r,a&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__);return(e.__actions__=rT(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,ng([this.value()],arguments))})}),t}function aP(){}var a$=r0(nv),aG=r0(ns),aZ=r0(ny);function aK(t){return ij(t)?nE(iU(t)):function(n){return eH(n,t)}}var aV=r2(),aH=r2(!0);function aJ(){return[]}function aQ(){return!1}var aY=rX(function(t,n){return t+n},0),aX=r6("ceil"),a0=rX(function(t,n){return t/n},1),a1=r6("floor"),a2=rX(function(t,n){return t*n},1),a3=r6("round"),a4=rX(function(t,n){return t-n},0);return ed.after=function(t,n){if("function"!=typeof n)throw new tN(u);return t=u6(t),function(){if(--t<1)return n.apply(this,arguments)}},ed.ary=um,ed.assign=at,ed.assignIn=an,ed.assignInWith=ae,ed.assignWith=ar,ed.at=ai,ed.before=uy,ed.bind=ux,ed.bindAll=aR,ed.bindKey=uw,ed.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return uD(t)?t:[t]},ed.chain=ur,ed.chunk=function(t,n,e){n=(e?ib(t,n,e):i===n)?1:n2(u6(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var u=0,a=0,o=tm(nx(r/n));uu?0:u+e),(r=i===r||r>u?u:u6(r))<0&&(r+=u),r=e>r?0:u8(r);e>>0)?(t=u9(t))&&("string"==typeof n||null!=n&&!uJ(n))&&!(n=rw(n))&&nF(t)?rO(nK(t),0,e):t.split(n,e):[]},ed.spread=function(t,n){if("function"!=typeof t)throw new tN(u);return n=null==n?0:n2(u6(n),0),rs(function(e){var r=e[n],i=rO(e,0,n);return r&&ng(i,r),nc(t,this,i)})},ed.tail=function(t){var n=null==t?0:t.length;return n?rv(t,1,n):[]},ed.take=function(t,n,e){return t&&t.length?rv(t,0,(n=e||i===n?1:u6(n))<0?0:n):[]},ed.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?rv(t,(n=r-(n=e||i===n?1:u6(n)))<0?0:n,r):[]},ed.takeRightWhile=function(t,n){return t&&t.length?rA(t,is(n,3),!1,!0):[]},ed.takeWhile=function(t,n){return t&&t.length?rA(t,is(n,3)):[]},ed.tap=function(t,n){return n(t),t},ed.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new tN(u);return uG(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),ub(t,n,{leading:r,maxWait:n,trailing:i})},ed.thru=ui,ed.toArray=u3,ed.toPairs=ay,ed.toPairsIn=ax,ed.toPath=function(t){return uD(t)?nv(t,iU):uX(t)?[t]:rT(iB(u9(t)))},ed.toPlainObject=u7,ed.transform=function(t,n,e){var r=uD(t),i=r||uM(t)||u0(t);if(n=is(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:uG(t)&&uq(u)?ev(tP(t)):{}}return(i?nf:eZ)(t,function(t,r,i){return n(e,t,r,i)}),e},ed.unary=function(t){return um(t,1)},ed.union=i2,ed.unionBy=i3,ed.unionWith=i4,ed.uniq=function(t){return t&&t.length?rb(t):[]},ed.uniqBy=function(t,n){return t&&t.length?rb(t,is(n,2)):[]},ed.uniqWith=function(t,n){return n="function"==typeof n?n:i,t&&t.length?rb(t,i,n):[]},ed.unset=function(t,n){return null==t||rj(t,n)},ed.unzip=i6,ed.unzipWith=i8,ed.update=function(t,n,e){return null==t?t:rk(t,n,rz(e))},ed.updateWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:rk(t,n,rz(e),r)},ed.values=aw,ed.valuesIn=function(t){return null==t?[]:nR(t,ap(t))},ed.without=i5,ed.words=aO,ed.wrap=function(t,n){return uI(rz(n),t)},ed.xor=i7,ed.xorBy=i9,ed.xorWith=ut,ed.zip=un,ed.zipObject=function(t,n){return rI(t||[],n||[],eE)},ed.zipObjectDeep=function(t,n){return rI(t||[],n||[],rh)},ed.zipWith=ue,ed.entries=ay,ed.entriesIn=ax,ed.extend=an,ed.extendWith=ae,aq(ed,ed),ed.add=aY,ed.attempt=aC,ed.camelCase=ab,ed.capitalize=aj,ed.ceil=aX,ed.clamp=function(t,n,e){return i===e&&(e=n,n=i),i!==e&&(e=(e=u5(e))==e?e:0),i!==n&&(n=(n=u5(n))==n?n:0),eC(u5(t),n,e)},ed.clone=function(t){return eR(t,4)},ed.cloneDeep=function(t){return eR(t,5)},ed.cloneDeepWith=function(t,n){return eR(t,5,n="function"==typeof n?n:i)},ed.cloneWith=function(t,n){return eR(t,4,n="function"==typeof n?n:i)},ed.conformsTo=function(t,n){return null==n||eD(t,n,ah(n))},ed.deburr=ak,ed.defaultTo=function(t,n){return null==t||t!=t?n:t},ed.divide=a0,ed.endsWith=function(t,n,e){t=u9(t),n=rw(n);var r=t.length,u=e=i===e?r:eC(u6(e),0,r);return(e-=n.length)>=0&&t.slice(e,u)==n},ed.eq=uL,ed.escape=function(t){return(t=u9(t))&&$.test(t)?t.replace(q,nM):t},ed.escapeRegExp=function(t){return(t=u9(t))&&Y.test(t)?t.replace(Q,"\\$&"):t},ed.every=function(t,n,e){var r=uD(t)?ns:eT;return e&&ib(t,n,e)&&(n=i),r(t,is(n,3))},ed.find=uo,ed.findIndex=i$,ed.findKey=function(t,n){return nw(t,is(n,3),eZ)},ed.findLast=uc,ed.findLastIndex=iG,ed.findLastKey=function(t,n){return nw(t,is(n,3),eK)},ed.floor=a1,ed.forEach=ul,ed.forEachRight=uf,ed.forIn=function(t,n){return null==t?t:e$(t,is(n,3),ap)},ed.forInRight=function(t,n){return null==t?t:eG(t,is(n,3),ap)},ed.forOwn=function(t,n){return t&&eZ(t,is(n,3))},ed.forOwnRight=function(t,n){return t&&eK(t,is(n,3))},ed.get=ao,ed.gt=uO,ed.gte=uC,ed.has=function(t,n){return null!=t&&im(t,n,eX)},ed.hasIn=ac,ed.head=iK,ed.identity=aU,ed.includes=function(t,n,e,r){t=uB(t)?t:aw(t),e=e&&!r?u6(e):0;var i=t.length;return e<0&&(e=n2(i+e,0)),uY(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&nj(t,n,e)>-1},ed.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return -1;var i=null==e?0:u6(e);return i<0&&(i=n2(r+i,0)),nj(t,n,i)},ed.inRange=function(t,n,e){var r,u,a;return n=u4(n),i===e?(e=n,n=0):e=u4(e),(r=t=u5(t))>=n3(u=n,a=e)&&r=-0x1fffffffffffff&&t<=0x1fffffffffffff},ed.isSet=uQ,ed.isString=uY,ed.isSymbol=uX,ed.isTypedArray=u0,ed.isUndefined=function(t){return i===t},ed.isWeakMap=function(t){return uZ(t)&&i_(t)==N},ed.isWeakSet=function(t){return uZ(t)&&"[object WeakSet]"==eQ(t)},ed.join=function(t,n){return null==t?"":n0.call(t,n)},ed.kebabCase=aA,ed.last=iQ,ed.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return -1;var u=r;return i!==e&&(u=(u=u6(e))<0?n2(r+u,0):n3(u,r-1)),n==n?function(t,n,e){for(var r=e+1;r--&&t[r]!==n;);return r}(t,n,u):nb(t,nA,u,!0)},ed.lowerCase=aN,ed.lowerFirst=aE,ed.lt=u1,ed.lte=u2,ed.max=function(t){return t&&t.length?eF(t,aU,eY):i},ed.maxBy=function(t,n){return t&&t.length?eF(t,is(n,2),eY):i},ed.mean=function(t){return nN(t,aU)},ed.meanBy=function(t,n){return nN(t,is(n,2))},ed.min=function(t){return t&&t.length?eF(t,aU,e9):i},ed.minBy=function(t,n){return t&&t.length?eF(t,is(n,2),e9):i},ed.stubArray=aJ,ed.stubFalse=aQ,ed.stubObject=function(){return{}},ed.stubString=function(){return""},ed.stubTrue=function(){return!0},ed.multiply=a2,ed.nth=function(t,n){return t&&t.length?ri(t,u6(n)):i},ed.noConflict=function(){return t8._===this&&(t8._=tB),this},ed.noop=aP,ed.now=u_,ed.pad=function(t,n,e){t=u9(t);var r=(n=u6(n))?nZ(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return r1(nI(i),e)+t+r1(nx(i),e)},ed.padEnd=function(t,n,e){t=u9(t);var r=(n=u6(n))?nZ(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var u=n8();return n3(t+u*(n-t+t2("1e-"+((u+"").length-1))),n)}return rl(t,n)},ed.reduce=function(t,n,e){var r=uD(t)?n_:nS,i=arguments.length<3;return r(t,is(n,4),e,i,eU)},ed.reduceRight=function(t,n,e){var r=uD(t)?nm:nS,i=arguments.length<3;return r(t,is(n,4),e,i,eM)},ed.repeat=function(t,n,e){return n=(e?ib(t,n,e):i===n)?1:u6(n),rf(u9(t),n)},ed.replace=function(){var t=arguments,n=u9(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ed.result=function(t,n,e){n=rL(n,t);var r=-1,u=n.length;for(u||(u=1,t=i);++r0x1fffffffffffff)return[];var e=0xffffffff,r=n3(t,0xffffffff);n=is(n),t-=0xffffffff;for(var i=nL(r,n);++e=a)return t;var c=e-nZ(r);if(c<1)return r;var l=o?rO(o,0,c).join(""):t.slice(0,c);if(i===u)return l+r;if(o&&(c+=l.length-c),uJ(u)){if(t.slice(c).search(u)){var f,s=l;for(u.global||(u=tk(u.source,u9(tc.exec(u))+"g")),u.lastIndex=0;f=u.exec(s);)var h=f.index;l=l.slice(0,i===h?c:h)}}else if(t.indexOf(rw(u),c)!=c){var p=l.lastIndexOf(u);p>-1&&(l=l.slice(0,p))}return l+r},ed.unescape=function(t){return(t=u9(t))&&P.test(t)?t.replace(F,nH):t},ed.uniqueId=function(t){var n=++tC;return u9(t)+n},ed.upperCase=az,ed.upperFirst=aL,ed.each=ul,ed.eachRight=uf,ed.first=iK,aq(ed,(t_={},eZ(ed,function(t,n){tO.call(ed.prototype,n)||(t_[n]=t)}),t_),{chain:!1}),ed.VERSION="4.17.21",nf(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ed[t].placeholder=ed}),nf(["drop","take"],function(t,n){em.prototype[t]=function(e){e=i===e?1:n2(u6(e),0);var r=this.__filtered__&&!n?new em(this):this.clone();return r.__filtered__?r.__takeCount__=n3(e,r.__takeCount__):r.__views__.push({size:n3(e,0xffffffff),type:t+(r.__dir__<0?"Right":"")}),r},em.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),nf(["filter","map","takeWhile"],function(t,n){var e=n+1,r=1==e||3==e;em.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:is(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),nf(["head","last"],function(t,n){var e="take"+(n?"Right":"");em.prototype[t]=function(){return this[e](1).value()[0]}}),nf(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");em.prototype[t]=function(){return this.__filtered__?new em(this):this[e](1)}}),em.prototype.compact=function(){return this.filter(aU)},em.prototype.find=function(t){return this.filter(t).head()},em.prototype.findLast=function(t){return this.reverse().find(t)},em.prototype.invokeMap=rs(function(t,n){return"function"==typeof t?new em(this):this.map(function(e){return e2(e,t,n)})}),em.prototype.reject=function(t){return this.filter(uN(is(t)))},em.prototype.slice=function(t,n){t=u6(t);var e=this;return e.__filtered__&&(t>0||n<0)?new em(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),i!==n&&(e=(n=u6(n))<0?e.dropRight(-n):e.take(n-t)),e)},em.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},em.prototype.toArray=function(){return this.take(0xffffffff)},eZ(em.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=ed[r?"take"+("last"==n?"Right":""):n],a=r||/^find/.test(n);u&&(ed.prototype[n]=function(){var n=this.__wrapped__,o=r?[1]:arguments,c=n instanceof em,l=o[0],f=c||uD(n),s=function(t){var n=u.apply(ed,ng([t],o));return r&&h?n[0]:n};f&&e&&"function"==typeof l&&1!=l.length&&(c=f=!1);var h=this.__chain__,p=!!this.__actions__.length,d=a&&!h,v=c&&!p;if(!a&&f){n=v?n:new em(this);var g=t.apply(n,o);return g.__actions__.push({func:ui,args:[s],thisArg:i}),new e_(g,h)}return d&&v?t.apply(this,o):(g=this.thru(s),d?r?g.value()[0]:g.value():g)})}),nf(["pop","push","shift","sort","splice","unshift"],function(t){var n=tE[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ed.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(uD(i)?i:[],t)}return this[e](function(e){return n.apply(uD(e)?e:[],t)})}}),eZ(em.prototype,function(t,n){var e=ed[n];if(e){var r=e.name+"";tO.call(eu,r)||(eu[r]=[]),eu[r].push({name:n,func:e})}}),eu[rQ(i,2).name]=[{name:"wrapper",func:i}],em.prototype.clone=function(){var t=new em(this.__wrapped__);return t.__actions__=rT(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rT(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rT(this.__views__),t},em.prototype.reverse=function(){if(this.__filtered__){var t=new em(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},em.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=uD(t),r=n<0,i=e?t.length:0,u=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length,n=t?i:this.__values__[this.__index__++];return{done:t,value:n}},ed.prototype.plant=function(t){for(var n,e=this;e instanceof eg;){var r=iT(e);r.__index__=0,r.__values__=i,n?u.__wrapped__=r:n=r;var u=r;e=e.__wrapped__}return u.__wrapped__=t,n},ed.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof em){var n=t;return this.__actions__.length&&(n=new em(this)),(n=n.reverse()).__actions__.push({func:ui,args:[i1],thisArg:i}),new e_(n,this.__chain__)}return this.thru(i1)},ed.prototype.toJSON=ed.prototype.valueOf=ed.prototype.value=function(){return rN(this.__wrapped__,this.__actions__)},ed.prototype.first=ed.prototype.head,t4&&(ed.prototype[t4]=function(){return this}),ed}();t8._=nJ,i!==(r=(function(){return nJ}).call(n,e,n,t))&&(t.exports=r)}).call(this)},8424:(t,n,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return e(9632)}])},1710:(t,n,e)=>{"use strict";e.d(n,{A:()=>u});var r=e(4848),i=e(6540);function u(t){let{width:n,position:e,style:u,borderWidth:a,screen:o,title:c}=t;return(0,r.jsxs)("div",{className:" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50"+(o?" fixed":" absolute"),style:{...u,position:e,zIndex:2e4},children:[(0,r.jsx)("span",{className:"general_loader",style:n?{width:n,height:n,minWidth:n,borderWidth:a||"4px"}:{}}),c?(0,r.jsx)("span",{children:c}):(0,r.jsx)(i.Fragment,{})]})}},6232:(t,n,e)=>{"use strict";e.d(n,{A:()=>u});var r=e(4848);let i=(0,e(5737).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);function u(t){let{size:n,adminAside:e,collapseAsideMobile:u,setCollapseAsideMobile:a}=t;return(0,r.jsxs)("a",{href:"/",className:"logo",onClick:t=>{let n=t.target;if(null==n?void 0:n.closest("button"))return t.preventDefault()},children:[e&&(0,r.jsxs)("button",{className:"flex lg:hidden small-text mr-2 primary-light",onClick:t=>{u&&a?a(!1):a&&a(!0)},children:[(0,r.jsx)("div",{className:"-mt-0.5",children:(0,r.jsx)(i,{})}),(0,r.jsx)("span",{className:"dark:text-white",children:"Menu"})]}),(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"dark:hidden -mt-1.5 -mr-1.5"}),(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"hidden dark:flex -mt-1.5 -mr-1.5"}),(0,r.jsx)("span",{className:"text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]",children:"Datasquirel"})]})}e(6540)},9329:(t,n,e)=>{"use strict";e.d(n,{A:()=>u});var r=e(4848),i=e(6540);function u(){let[t,n]=i.useState("Light Mode");return i.useEffect(()=>{let t=localStorage.getItem("theme");(null==t?void 0:t.match(/dark/))&&n("Dark Mode")},[]),(0,r.jsx)("div",{className:"",id:"theme-selector-wrapper",onClick:()=>{var t,e;let r=document.getElementById("theme-selector-graphic-wrapper"),i=localStorage.getItem("theme"),u=null==r?void 0:r.querySelector("img.sun"),a=null==r?void 0:r.querySelector("img.moon");!i||(null==i?void 0:i.match(/light/))?(document.documentElement.className="dark",localStorage.setItem("theme","dark"),i="dark",null==u||u.classList.add("hidden"),null==a||a.classList.remove("hidden"),null==r||null===(t=r.firstChild)||void 0===t||t.classList.add("ml-auto"),n("Dark Mode")):(null==i?void 0:i.match(/dark/))&&(document.documentElement.className="light",localStorage.setItem("theme","light"),i="light",null==a||a.classList.add("hidden"),null==u||u.classList.remove("hidden"),null==r||null===(e=r.firstChild)||void 0===e||e.classList.remove("ml-auto"),n("Light Mode"))},children:(0,r.jsx)("div",{className:"p-1 rounded-full w-12 transition-all",id:"theme-selector-graphic-wrapper",children:(0,r.jsxs)("div",{className:"pointer-events-none transition-all dark:ml-auto",children:[(0,r.jsx)("img",{src:"/images/sun.png",alt:"Sun Icon",width:18,className:"sun dark:hidden"}),(0,r.jsx)("img",{src:"/images/new-moon.png",alt:"Sun Icon",width:18,className:"moon hidden dark:flex"})]})})})}},9020:(t,n,e)=>{"use strict";e.d(n,{A:()=>i});var r=e(1028);let i=e.n(r)()},2567:(t,n,e)=>{"use strict";async function r(t){let{links:n}=t,e=n||document.querySelectorAll("nav a");if(e&&e.forEach(t=>{t.dataset.currentlink===window.location.pathname?t.classList.add("active"):window.location.pathname.match(new RegExp("".concat(t.dataset.currentlink,"\\/.*")))&&!t.dataset.strictlink&&t.classList.add("active")}),window.location.pathname.match(/\/databases\/.*/)){let t=document.querySelectorAll("a");t&&window.location.search.match(/delegated=true/)&&t.forEach((t,n)=>{var e;(null==t?void 0:null===(e=t.pathname)||void 0===e?void 0:e.match(/databases/))&&(t.href=t.pathname+window.location.search)})}}e.d(n,{A:()=>r})},8883:(t,n,e)=>{"use strict";e.d(n,{A:()=>g});var r=e(4848),i=e(6540),u=e(3368),a=e.n(u),o=e(2567),c=e(9329),l=e(6232),f=e(2683),s=e(2027);function h(t){let{user:n,darkBg:e,transparent:u}=t,{user:a}=function(){let[t,n]=i.useState();return i.useEffect(()=>{try{let t=localStorage.getItem("user");n(JSON.parse(t||""))}catch(t){}},[]),{user:t}}(),o=(null==n?void 0:n.logged_in_status)?n:a||null;return i.useEffect(()=>{let t=document.getElementById("main-nav-content-wrapper");window.addEventListener("click",n=>{let e=n.target;(null==e?void 0:e.closest("#main-nav-content-wrapper"))||(null==e?void 0:e.closest("#main-header-hamburger-button"))||t.classList.contains("hidden")||t.classList.add("hidden")}),document.querySelectorAll("nav a").forEach(t=>{t.pathname!==window.location.pathname||t.href.match(/#/)||t.pathname.match(/http/)||t.classList.add("active-page-link")})},[]),(0,r.jsx)("header",{className:"w-full px-4 md:px-8 flex justify-center gap-4 "+(e?" shadow-slate-900/20 dark-content":" shadow-slate-900/5")+(u?"":" bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50")+((null==n?void 0:n.logged_in_status)?" py-4":" py-6"),style:{zIndex:700},children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("nav",{className:"w-full flex items-center justify-between gap-4 md:gap-10",children:[(0,r.jsx)(l.A,{}),(0,r.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 p-4 xl:p-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto xl:bg-transparent"+(u?" bg-white xl:bg-transparent":" bg-white dark:bg-slate-800"),id:"main-nav-content-wrapper",children:[(0,r.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,r.jsx)("a",{href:"/",children:(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,r.jsx)("button",{className:"outlined gray ml-auto",onClick:t=>{let n=document.getElementById("main-nav-content-wrapper");null==n||n.classList.toggle("hidden")},style:{border:"none"},children:(0,r.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,r.jsxs)("div",{className:"flex items-center grow flex-col-reverse xl:flex-row mb-10 xl:mb-0",children:[(0,r.jsxs)("div",{className:"flex-col xl:flex-row w-full gap-y-10 gap-x-6",children:[(0,r.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,r.jsxs)("a",{href:"/docs/gui-reference",className:"relative z-10 flex items-center gap-2",children:[(0,r.jsx)("span",{children:"Features"}),(0,r.jsx)(s.A,{size:20})]}),(0,r.jsxs)("div",{className:"dropdown",children:[(0,r.jsx)("a",{href:"/docs/database-reference/data-types",className:"button plain-text more-padding normal-weight",children:"Database Schema"}),(0,r.jsx)("a",{href:"/docs/database-reference/querying-data",className:"button plain-text more-padding normal-weight",children:"Sql Queries"}),(0,r.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"button plain-text more-padding normal-weight",children:"Media Storage"})]})]}),(0,r.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,r.jsxs)("a",{href:"/docs",className:"relative z-10 flex items-center gap-2",children:[(0,r.jsx)("span",{children:"Docs"}),(0,r.jsx)(s.A,{size:20})]}),(0,r.jsxs)("div",{className:"dropdown",children:[(0,r.jsx)("a",{href:"/docs/quick-start",className:"button plain-text more-padding normal-weight",children:"Quick Start"}),(0,r.jsx)("a",{href:"/docs/api-reference",className:"button plain-text more-padding normal-weight",children:"Api Guide"}),(0,r.jsx)("a",{href:"/docs/gui-reference",className:"button plain-text more-padding normal-weight",children:"GUI Interface"})]})]}),(0,r.jsx)("a",{href:"/about",children:"About Us"}),(0,r.jsx)("a",{href:"/contact",children:"Contact Us"})]}),(null==o?void 0:o.logged_in_status)?(0,r.jsx)(f.A,{activeUser:o,noModeSelector:!0}):(0,r.jsxs)("div",{className:"ml-auto w-full xl:w-auto justify-center",children:[(0,r.jsx)("a",{href:"/login",className:"button outlined gray hidden xl:flex"+(e?" light":""),children:"Login"}),(0,r.jsx)("a",{href:"/login",className:"button outlined gray flex xl:hidden",children:"Login"}),(0,r.jsx)("a",{href:"/create-account",className:"button",children:"Get Started"})]})]})]}),(0,r.jsx)("div",{className:"ml-0 xl:-ml-2",children:(0,r.jsx)(c.A,{})}),(0,r.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all",onClick:t=>{let n=document.getElementById("main-nav-content-wrapper");null==n||n.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})})}function p(){return(0,r.jsxs)("footer",{className:"p-8 md:p-10 w-full flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"main-container items-start justify-between gap-6 flex-wrap flex-col md:flex-row pt-6",children:[(0,r.jsxs)("div",{className:"flex flex-col items-start gap-6",children:[(0,r.jsx)(l.A,{}),(0,r.jsx)("span",{className:"font-normal max-w-sm text-sm text-left",children:"Datasquirel is a fast efficient cloud-based data store that takes away the entire hassle of data management."})]}),(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("h4",{className:"m-0",children:"Features"}),(0,r.jsx)("a",{href:"/docs/database-reference/data-types",className:"text-slate-600",children:"Database Schema"}),(0,r.jsx)("a",{href:"/docs/database-reference/querying-data",className:"text-slate-600",children:"SQL Queries"}),(0,r.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"text-slate-600",children:"Media Storage"})]}),(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("h4",{className:"m-0",children:"Docs"}),(0,r.jsx)("a",{href:"/docs/quick-start",className:"text-slate-600",children:"Quick Start Guide"}),(0,r.jsx)("a",{href:"/docs/api-reference",className:"text-slate-600",children:"API Guide"}),(0,r.jsx)("a",{href:"/docs/gui-reference",className:"text-slate-600",children:"GUI Interface"})]}),(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("h4",{className:"m-0",children:"Company"}),(0,r.jsx)("a",{href:"/about",className:"text-slate-600",children:"About Us"}),(0,r.jsx)("a",{href:"/terms",className:"text-slate-600",children:"Terms and Conditions"}),(0,r.jsx)("a",{href:"/privacy",className:"text-slate-600",children:"Privacy Policy"})]})]}),(0,r.jsx)("hr",{className:"my-10"}),(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]})})]})}function d(){return(0,r.jsx)(i.Fragment,{})}var v=e(4477);function g(t){let{children:n,head:e,user:u,productionEnvironment:c,darkBgHeader:l,transparentHeader:f}=t;return i.useEffect(()=>{(0,o.A)({})},[]),(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a(),{children:e}),(0,r.jsx)(d,{}),(0,r.jsx)(h,{user:u,darkBg:l,transparent:f}),n,(0,r.jsx)(p,{}),(0,r.jsx)(v.A,{})]})}},2683:(t,n,e)=>{"use strict";e.d(n,{A:()=>f});var r=e(4848),i=e(6540),u=e(1710),a=e(8631);function o(t){let{user:n}=t;return(0,r.jsxs)("div",{className:"dropdown right-aligned",children:[(0,r.jsxs)("a",{href:"/admin",className:"button outlined gray more-padding relative z-20 mb-2",children:[(0,r.jsx)(a.A,{size:18,className:"mr-1"}),(0,r.jsx)("span",{children:"Dashboard"})]}),null,(0,r.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/settings"),className:"button plain-text more-padding normal-weight",children:"Settings"}),(0,r.jsx)("a",{href:"/logout",className:"button plain-text more-padding normal-weight",children:"Logout"})]})}var c=e(9329),l=e(2027);function f(t){var n,e,a,f,s,h;let{activeUser:p,noModeSelector:d}=t;return(null==p?void 0:p.logged_in_status)?(0,r.jsxs)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2 whitespace-nowrap",children:[(0,r.jsxs)("div",{className:"ml-auto dropdown-wrapper p-0 xl:p-4 hover:bg-slate-100 hidden",children:[(0,r.jsx)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/notifications"),className:"flex items-center justify-center",children:(0,r.jsx)("img",{src:"/images/notification-icon.svg",alt:"Notification Icon",width:20,className:"opacity-50"})}),(0,r.jsxs)("div",{className:"dropdown mt-0 xl:-mt-3 gap-2",children:[(0,r.jsx)("span",{className:"text-slate-400",children:"Notifications"}),(0,r.jsx)(u.A,{position:"relative",width:"20px"})]})]}),(0,r.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,r.jsxs)("div",{className:"avatar",style:{width:"36px",height:"36px"},children:[(0,r.jsx)("img",{src:null==p?void 0:p.image,alt:"User Image",width:35,className:"w-full h-full object-cover rounded-full"}),(null==p?void 0:p.social_login)?(0,r.jsxs)("div",{className:"sub-img",children:[(0,r.jsx)("img",{src:(null==p?void 0:null===(n=p.social_platform)||void 0===n?void 0:n.match(/facebook/i))?"/images/facebook.png":(null==p?void 0:null===(e=p.social_platform)||void 0===e?void 0:e.match(/google/i))?"/images/google.png":(null==p?void 0:null===(a=p.social_platform)||void 0===a?void 0:a.match(/github/i))?"/images/github.png":"/images/sharing.png",alt:"",className:"flex dark:hidden"}),(0,r.jsx)("img",{src:(null==p?void 0:null===(f=p.social_platform)||void 0===f?void 0:f.match(/facebook/i))?"/images/facebook.png":(null==p?void 0:null===(s=p.social_platform)||void 0===s?void 0:s.match(/google/i))?"/images/google.png":(null==p?void 0:null===(h=p.social_platform)||void 0===h?void 0:h.match(/github/i))?"/images/github-white.png":"/images/sharing.png",alt:"",className:"hidden dark:flex"})]}):(0,r.jsx)(i.Fragment,{})]}),(0,r.jsx)("span",{className:"dark:text-white",children:(0,r.jsxs)("b",{children:[null==p?void 0:p.first_name," ",null==p?void 0:p.last_name]})}),(0,r.jsx)(l.A,{size:20}),(0,r.jsx)(o,{user:p})]}),!d&&(0,r.jsx)("div",{className:"ml-2",children:(0,r.jsx)(c.A,{})})]}):(0,r.jsx)(i.Fragment,{})}},4477:(t,n,e)=>{"use strict";e.d(n,{A:()=>a});var r=e(4848);let i=(0,e(5737).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var u=e(6540);function a(t){let{snug:n}=t,[e,a]=u.useState(!1);return u.useEffect(()=>{window.addEventListener("scroll",t=>{window.scrollY>600?a(!0):a(!1)})},[]),(0,r.jsx)(u.Fragment,{children:e&&(0,r.jsx)("button",{className:"fixed z-40 w-12 h-12 p-2 rounded-full bg-white dark:bg-slate-600 shadow-xl flex items-center justify-center hover:bg-slate-800 dark:hover:bg-slate-800 text-slate-500 dark:text-slate-200 outline-slate-300 dark:outline-transparent"+(n?" bottom-6 right-4":" bottom-4 md:bottom-10 right-4 md:right-10"),style:{outlineStyle:"solid",outlineWidth:"1px",zIndex:2e3},onClick:t=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},children:(0,r.jsx)(i,{size:20})})})}},5737:(t,n,e)=>{"use strict";e.d(n,{A:()=>a});var r=e(6540),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(t,n)=>{let e=(0,r.forwardRef)((e,a)=>{let{color:o="currentColor",size:c=24,strokeWidth:l=2,absoluteStrokeWidth:f,className:s="",children:h,...p}=e;return(0,r.createElement)("svg",{ref:a,...i,width:c,height:c,stroke:o,strokeWidth:f?24*Number(l)/Number(c):l,className:["lucide","lucide-".concat(u(t)),s].join(" "),...p},[...n.map(t=>{let[n,e]=t;return(0,r.createElement)(n,e)}),...Array.isArray(h)?h:[h]])});return e.displayName="".concat(t),e}},2027:(t,n,e)=>{"use strict";e.d(n,{A:()=>r});let r=(0,e(5737).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},8631:(t,n,e)=>{"use strict";e.d(n,{A:()=>r});let r=(0,e(5737).A)("CircleGauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]])},9632:(t,n,e)=>{"use strict";e.r(n),e.d(n,{AppContext:()=>h,default:()=>p});var r=e(4848),i=e(6540),u=e(8133),a=e.n(u),o=e(3368),c=e.n(o);e(1092),e(3871);var l=e(9020),f=e(8883);class s extends i.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){(0,l.A)("/api/admin/clientError",{method:"post",body:{component:"ErrorBoundary-class-component",message:t.message+" ==== Error Info => "+n,user:{}}})}render(){return this.state.hasError?(0,r.jsx)(f.A,{head:this.state.head,user:null,children:(0,r.jsxs)("div",{className:"paper items-center px-20",children:[(0,r.jsx)("h2",{className:"text-base text-slate-400 m-0",children:"Application Error!"}),(0,r.jsx)("h1",{className:"text-2xl m-0 mb-4",children:"Please try again!"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("a",{href:"/",className:"button outlined",children:"Home"}),(0,r.jsx)("button",{onClick:t=>{window.history.back()},children:"Go Back"})]})]})}):this.props.children}constructor(t){super(t),this.state={hasError:!1}}}let h=i.createContext({pageProps:{}});function p(t){let{Component:n,pageProps:e}=t;return(0,r.jsxs)(h.Provider,{value:{pageProps:e},children:[(0,r.jsx)(c(),{children:(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,r.jsx)(s,{children:(0,r.jsx)(n,{...e})}),(0,r.jsx)(a(),{src:"/scripts/main.js",strategy:"afterInteractive"})]})}},1092:()=>{},3871:()=>{},3368:(t,n,e)=>{t.exports=e(6085)},8133:(t,n,e)=>{t.exports=e(7610)}},t=>{var n=n=>t(t.s=n);t.O(0,[6593,8792],()=>(n(8424),n(8440))),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/_app-f20525907c2f070a.js b/dsql-app/.local_dist/static/chunks/pages/_app-f20525907c2f070a.js deleted file mode 100644 index a98624a..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/_app-f20525907c2f070a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{1028:function(t,n,e){"use strict";var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))(function(i,u){function a(t){try{l(r.next(t))}catch(t){u(t)}}function o(t){try{l(r.throw(t))}catch(t){u(t)}}function l(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e(function(t){t(n)})).then(a,o)}l((r=r.apply(t,n||[])).next())})},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,n,e,i){return r(this,void 0,void 0,function*(){let r;let a=localStorage.getItem(i||"csrf"),o={"Content-Type":"application/json"};if(e&&a&&(o[`'${a.replace(/\"/g,"")}'`]="true"),"string"==typeof n)try{r="post"===n?(yield fetch(t,{method:n,headers:o})).json():(yield fetch(t)).json()}catch(t){console.log("FetchAPI error #1:",t.message),r=null}else if("object"==typeof n)try{let e;if(n.body&&"object"==typeof n.body){let t=u.default.cloneDeep(n.body);n.body=JSON.stringify(t)}if(n.headers){n.headers=u.default.merge(n.headers,o);let r=Object.assign({},n);e=yield fetch(t,r)}else{let r=Object.assign(Object.assign({},n),{headers:o});e=yield fetch(t,r)}r=e.json()}catch(t){console.log("FetchAPI error #2:",t.message),r=null}else try{let n=yield fetch(t);r=yield n.json()}catch(t){console.log("FetchAPI error #3:",t.message),r=null}return r})};let u=i(e(2543))},2543:function(t,n,e){var r;t=e.nmd(t),(function(){var i,u="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",l=1/0,c=0/0,f=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",h="[object Array]",p="[object Boolean]",d="[object Date]",v="[object Error]",g="[object Function]",_="[object GeneratorFunction]",m="[object Map]",y="[object Number]",x="[object Object]",w="[object Promise]",b="[object RegExp]",j="[object Set]",k="[object String]",A="[object Symbol]",N="[object WeakMap]",E="[object ArrayBuffer]",I="[object DataView]",S="[object Float32Array]",z="[object Float64Array]",L="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",R="[object Uint8Array]",D="[object Uint8ClampedArray]",W="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,T=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,P=RegExp(F.source),$=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,J=RegExp(Y.source),X=/^\s+/,tt=/\s/,tn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,te=/\{\n\/\* \[wrapped with (.+)\] \*/,tr=/,? & /,ti=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tu=/[()=,{}\[\]\/\s]/,ta=/\\(\\)?/g,to=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tl=/\w*$/,tc=/^[-+]0x[0-9a-f]+$/i,tf=/^0b[01]+$/i,ts=/^\[object .+?Constructor\]$/,th=/^0o[0-7]+$/i,tp=/^(?:0|[1-9]\d*)$/,td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tv=/($^)/,tg=/['\n\r\u2028\u2029\\]/g,t_="\ud800-\udfff",tm="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ty="\\u2700-\\u27bf",tx="a-z\\xdf-\\xf6\\xf8-\\xff",tw="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\ufe0e\\ufe0f",tj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tk="['’]",tA="["+tj+"]",tN="["+tm+"]",tE="["+tx+"]",tI="[^"+t_+tj+"\\d+"+ty+tx+tw+"]",tS="\ud83c[\udffb-\udfff]",tz="[^"+t_+"]",tL="(?:\ud83c[\udde6-\uddff]){2}",tC="[\ud800-\udbff][\udc00-\udfff]",tO="["+tw+"]",tR="\\u200d",tD="(?:"+tE+"|"+tI+")",tW="(?:"+tO+"|"+tI+")",tB="(?:"+tk+"(?:d|ll|m|re|s|t|ve))?",tU="(?:"+tk+"(?:D|LL|M|RE|S|T|VE))?",tT="(?:"+tN+"|"+tS+")?",tM="["+tb+"]?",tF="(?:"+tR+"(?:"+[tz,tL,tC].join("|")+")"+tM+tT+")*",tq=tM+tT+tF,tP="(?:"+["["+ty+"]",tL,tC].join("|")+")"+tq,t$="(?:"+[tz+tN+"?",tN,tL,tC,"["+t_+"]"].join("|")+")",tG=RegExp(tk,"g"),tZ=RegExp(tN,"g"),tK=RegExp(tS+"(?="+tS+")|"+t$+tq,"g"),tV=RegExp([tO+"?"+tE+"+"+tB+"(?="+[tA,tO,"$"].join("|")+")",tW+"+"+tU+"(?="+[tA,tO+tD,"$"].join("|")+")",tO+"?"+tD+"+"+tB,tO+"+"+tU,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tP].join("|"),"g"),tH=RegExp("["+tR+t_+tm+tb+"]"),tQ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tJ=-1,tX={};tX[S]=tX[z]=tX[L]=tX[C]=tX[O]=tX[R]=tX[D]=tX[W]=tX[B]=!0,tX[s]=tX[h]=tX[E]=tX[p]=tX[I]=tX[d]=tX[v]=tX[g]=tX[m]=tX[y]=tX[x]=tX[b]=tX[j]=tX[k]=tX[N]=!1;var t0={};t0[s]=t0[h]=t0[E]=t0[I]=t0[p]=t0[d]=t0[S]=t0[z]=t0[L]=t0[C]=t0[O]=t0[m]=t0[y]=t0[x]=t0[b]=t0[j]=t0[k]=t0[A]=t0[R]=t0[D]=t0[W]=t0[B]=!0,t0[v]=t0[g]=t0[N]=!1;var t1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,t3=parseInt,t4="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,t6="object"==typeof self&&self&&self.Object===Object&&self,t8=t4||t6||Function("return this")(),t5=n&&!n.nodeType&&n,t7=t5&&t&&!t.nodeType&&t,t9=t7&&t7.exports===t5,nt=t9&&t4.process,nn=function(){try{var t=t7&&t7.require&&t7.require("util").types;if(t)return t;return nt&&nt.binding&&nt.binding("util")}catch(t){}}(),ne=nn&&nn.isArrayBuffer,nr=nn&&nn.isDate,ni=nn&&nn.isMap,nu=nn&&nn.isRegExp,na=nn&&nn.isSet,no=nn&&nn.isTypedArray;function nl(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function nc(t,n,e,r){for(var i=-1,u=null==t?0:t.length;++i-1}function nd(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function nB(t,n){for(var e=t.length;e--&&nj(n,t[e],0)>-1;);return e}var nU=nI({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),nT=nI({"&":"&","<":"<",">":">",'"':""","'":"'"});function nM(t){return"\\"+t1[t]}function nF(t){return tH.test(t)}function nq(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function nP(t,n){return function(e){return t(n(e))}}function n$(t,n){for(var e=-1,r=t.length,i=0,u=[];++e",""":'"',"'":"'"}),nQ=function t(n){var e,r,tt,t_,tm=(n=null==n?t8:nQ.defaults(t8.Object(),n,nQ.pick(t8,tY))).Array,ty=n.Date,tx=n.Error,tw=n.Function,tb=n.Math,tj=n.Object,tk=n.RegExp,tA=n.String,tN=n.TypeError,tE=tm.prototype,tI=tw.prototype,tS=tj.prototype,tz=n["__core-js_shared__"],tL=tI.toString,tC=tS.hasOwnProperty,tO=0,tR=(e=/[^.]+$/.exec(tz&&tz.keys&&tz.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",tD=tS.toString,tW=tL.call(tj),tB=t8._,tU=tk("^"+tL.call(tC).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tT=t9?n.Buffer:i,tM=n.Symbol,tF=n.Uint8Array,tq=tT?tT.allocUnsafe:i,tP=nP(tj.getPrototypeOf,tj),t$=tj.create,tK=tS.propertyIsEnumerable,tH=tE.splice,t1=tM?tM.isConcatSpreadable:i,t4=tM?tM.iterator:i,t6=tM?tM.toStringTag:i,t5=function(){try{var t=id(tj,"defineProperty");return t({},"",{}),t}catch(t){}}(),t7=n.clearTimeout!==t8.clearTimeout&&n.clearTimeout,nt=ty&&ty.now!==t8.Date.now&&ty.now,nn=n.setTimeout!==t8.setTimeout&&n.setTimeout,nx=tb.ceil,nI=tb.floor,nY=tj.getOwnPropertySymbols,nJ=tT?tT.isBuffer:i,nX=n.isFinite,n0=tE.join,n1=nP(tj.keys,tj),n2=tb.max,n3=tb.min,n4=ty.now,n6=n.parseInt,n8=tb.random,n5=tE.reverse,n7=id(n,"DataView"),n9=id(n,"Map"),et=id(n,"Promise"),en=id(n,"Set"),ee=id(n,"WeakMap"),er=id(tj,"create"),ei=ee&&new ee,eu={},ea=iT(n7),eo=iT(n9),el=iT(et),ec=iT(en),ef=iT(ee),es=tM?tM.prototype:i,eh=es?es.valueOf:i,ep=es?es.toString:i;function ed(t){if(uZ(t)&&!uD(t)&&!(t instanceof em)){if(t instanceof e_)return t;if(tC.call(t,"__wrapped__"))return iM(t)}return new e_(t)}var ev=function(){function t(){}return function(n){if(!uG(n))return{};if(t$)return t$(n);t.prototype=n;var e=new t;return t.prototype=i,e}}();function eg(){}function e_(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function em(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function ey(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function eR(t,n,e,r,u,a){var o,l=1&n,c=2&n,f=4&n;if(e&&(o=u?e(t,r,u,a):e(t)),i!==o)return o;if(!uG(t))return t;var h=uD(t);if(h){if(v=t.length,w=new t.constructor(v),v&&"string"==typeof t[0]&&tC.call(t,"index")&&(w.index=t.index,w.input=t.input),o=w,!l)return rM(t,o)}else{var v,w,N,U,T,M=i_(t),F=M==g||M==_;if(uT(t))return rR(t,l);if(M==x||M==s||F&&!u){if(o=c||F?{}:iy(t),!l)return c?(N=(T=o)&&rF(t,ap(t),T),rF(t,ig(t),N)):(U=ez(o,t),rF(t,iv(t),U))}else{if(!t0[M])return u?t:{};o=function(t,n,e){var r,i,u=t.constructor;switch(n){case E:return rD(t);case p:case d:return new u(+t);case I:return r=e?rD(t.buffer):t.buffer,new t.constructor(r,t.byteOffset,t.byteLength);case S:case z:case L:case C:case O:case R:case D:case W:case B:return rW(t,e);case m:return new u;case y:case k:return new u(t);case b:return(i=new t.constructor(t.source,tl.exec(t))).lastIndex=t.lastIndex,i;case j:return new u;case A:return eh?tj(eh.call(t)):{}}}(t,M,l)}}a||(a=new ej);var q=a.get(t);if(q)return q;a.set(t,o),uY(t)?t.forEach(function(r){o.add(eR(r,n,e,r,t,a))}):uK(t)&&t.forEach(function(r,i){o.set(i,eR(r,n,e,i,t,a))});var P=f?c?ia:iu:c?ap:ah,$=h?i:P(t);return nf($||t,function(r,i){$&&(r=t[i=r]),eE(o,i,eR(r,n,e,i,t,a))}),o}function eD(t,n,e){var r=e.length;if(null==t)return!r;for(t=tj(t);r--;){var u=e[r],a=n[u],o=t[u];if(i===o&&!(u in t)||!a(o))return!1}return!0}function eW(t,n,e){if("function"!=typeof t)throw new tN(u);return iC(function(){t.apply(i,e)},n)}function eB(t,n,e,r){var i=-1,u=np,a=!0,o=t.length,l=[],c=n.length;if(!o)return l;e&&(n=nv(n,nO(e))),r?(u=nd,a=!1):n.length>=200&&(u=nD,a=!1,n=new eb(n));t:for(;++i-1},ex.prototype.set=function(t,n){var e=this.__data__,r=eI(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},ew.prototype.clear=function(){this.size=0,this.__data__={hash:new ey,map:new(n9||ex),string:new ey}},ew.prototype.delete=function(t){var n=ih(this,t).delete(t);return this.size-=n?1:0,n},ew.prototype.get=function(t){return ih(this,t).get(t)},ew.prototype.has=function(t){return ih(this,t).has(t)},ew.prototype.set=function(t,n){var e=ih(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},eb.prototype.add=eb.prototype.push=function(t){return this.__data__.set(t,a),this},eb.prototype.has=function(t){return this.__data__.has(t)},ej.prototype.clear=function(){this.__data__=new ex,this.size=0},ej.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},ej.prototype.get=function(t){return this.__data__.get(t)},ej.prototype.has=function(t){return this.__data__.has(t)},ej.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ex){var r=e.__data__;if(!n9||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new ew(r)}return e.set(t,n),this.size=e.size,this};var eU=r$(eZ),eT=r$(eK,!0);function eM(t,n){var e=!0;return eU(t,function(t,r,i){return e=!!n(t,r,i)}),e}function eF(t,n,e){for(var r=-1,u=t.length;++r0&&e(o)?n>1?eP(o,n-1,e,r,i):ng(i,o):r||(i[i.length]=o)}return i}var e$=rG(),eG=rG(!0);function eZ(t,n){return t&&e$(t,n,ah)}function eK(t,n){return t&&eG(t,n,ah)}function eV(t,n){return nh(n,function(n){return uq(t[n])})}function eH(t,n){n=rL(n,t);for(var e=0,r=n.length;null!=t&&en}function eX(t,n){return null!=t&&tC.call(t,n)}function e0(t,n){return null!=t&&n in tj(t)}function e1(t,n,e){for(var r=e?nd:np,u=t[0].length,a=t.length,o=a,l=tm(a),c=1/0,f=[];o--;){var s=t[o];o&&n&&(s=nv(s,nO(n))),c=n3(s.length,c),l[o]=!e&&(n||u>=120&&s.length>=120)?new eb(o&&s):i}s=t[0];var h=-1,p=l[0];t:for(;++h=o)return l;return l*("desc"==e[r]?-1:1)}}return t.index-n.index}(t,n,e)})}function ra(t,n,e){for(var r=-1,i=n.length,u={};++r-1;)o!==t&&tH.call(o,l,1),tH.call(t,l,1);return t}function rl(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==u){var u=i;iw(i)?tH.call(t,i,1):rj(t,i)}}return t}function rc(t,n){return t+nI(n8()*(n-t+1))}function rf(t,n){var e="";if(!t||n<1||n>0x1fffffffffffff)return e;do n%2&&(e+=t),(n=nI(n/2))&&(t+=t);while(n);return e}function rs(t,n){return iO(iI(t,n,aU),t+"")}function rh(t,n,e,r){if(!uG(t))return t;n=rL(n,t);for(var u=-1,a=n.length,o=a-1,l=t;null!=l&&++ui?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var u=tm(i);++r>>1,a=t[u];null!==a&&!uX(a)&&(e?a<=n:a=200){var c=n?null:r8(t);if(c)return nG(c);a=!1,i=nD,l=new eb}else l=n?[]:o;t:for(;++r=r?t:rv(t,n,e)}var rO=t7||function(t){return t8.clearTimeout(t)};function rR(t,n){if(n)return t.slice();var e=t.length,r=tq?tq(e):new t.constructor(e);return t.copy(r),r}function rD(t){var n=new t.constructor(t.byteLength);return new tF(n).set(new tF(t)),n}function rW(t,n){var e=n?rD(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function rB(t,n){if(t!==n){var e=i!==t,r=null===t,u=t==t,a=uX(t),o=i!==n,l=null===n,c=n==n,f=uX(n);if(!l&&!f&&!a&&t>n||a&&o&&c&&!l&&!f||r&&o&&c||!e&&c||!u)return 1;if(!r&&!a&&!f&&t1?e[u-1]:i,o=u>2?e[2]:i;for(a=t.length>3&&"function"==typeof a?(u--,a):i,o&&ib(e[0],e[1],o)&&(a=u<3?i:a,u=1),n=tj(n);++r-1?u[a?n[o]:o]:i}}function rQ(t){return ii(function(n){var e=n.length,r=e,a=e_.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new tN(u);if(a&&!l&&"wrapper"==il(o))var l=new e_([],!0)}for(r=l?r:e;++r1&&y.reverse(),s&&cl))return!1;var f=a.get(t),s=a.get(n);if(f&&s)return f==n&&s==t;var h=-1,p=!0,d=2&e?new eb:i;for(a.set(t,n),a.set(n,t);++h-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(tn,"{\n/* [wrapped with "+n+"] */\n")}(u,(r=(i=u.match(te))?i[1].split(tr):[],nf(f,function(t){var n="_."+t[0];e&t[1]&&!np(r,n)&&r.push(n)}),r.sort())))}function iD(t){var n=0,e=0;return function(){var r=n4(),u=16-(r-e);if(e=r,u>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(i,arguments)}}function iW(t,n){var e=-1,r=t.length,u=r-1;for(n=i===n?r:n;++e1?t[n-1]:i;return e="function"==typeof e?(t.pop(),e):i,i8(t,e)});function ur(t){var n=ed(t);return n.__chain__=!0,n}function ui(t,n){return n(t)}var uu=ii(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,u=function(n){return eC(n,t)};return!(n>1)&&!this.__actions__.length&&r instanceof em&&iw(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:ui,args:[u],thisArg:i}),new e_(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(i),t})):this.thru(u)}),ua=rq(function(t,n,e){tC.call(t,e)?++t[e]:eL(t,e,1)}),uo=rH(i$),ul=rH(iG);function uc(t,n){return(uD(t)?nf:eU)(t,is(n,3))}function uf(t,n){return(uD(t)?function(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}:eT)(t,is(n,3))}var us=rq(function(t,n,e){tC.call(t,e)?t[e].push(n):eL(t,e,[n])}),uh=rs(function(t,n,e){var r=-1,i="function"==typeof n,u=uB(t)?tm(t.length):[];return eU(t,function(t){u[++r]=i?nl(n,t,e):e2(t,n,e)}),u}),up=rq(function(t,n,e){eL(t,e,n)});function ud(t,n){return(uD(t)?nv:rt)(t,is(n,3))}var uv=rq(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),ug=rs(function(t,n){if(null==t)return[];var e=n.length;return e>1&&ib(t,n[0],n[1])?n=[]:e>2&&ib(n[0],n[1],n[2])&&(n=[n[0]]),ru(t,eP(n,1),[])}),u_=nt||function(){return t8.Date.now()};function um(t,n,e){return n=e?i:n,n=t&&null==n?t.length:n,r7(t,128,i,i,i,i,n)}function uy(t,n){var e;if("function"!=typeof n)throw new tN(u);return t=u6(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var ux=rs(function(t,n,e){var r=1;if(e.length){var i=n$(e,ic(ux));r|=32}return r7(t,r,n,e,i)}),uw=rs(function(t,n,e){var r=3;if(e.length){var i=n$(e,ic(uw));r|=32}return r7(n,r,t,e,i)});function ub(t,n,e){var r,a,o,l,c,f,s=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw new tN(u);function v(n){var e=r,u=a;return r=a=i,s=n,l=t.apply(u,e)}function g(t){var e=t-f,r=t-s;return i===f||e>=n||e<0||p&&r>=o}function _(){var t,e,r,i=u_();if(g(i))return m(i);c=iC(_,(t=i-f,e=i-s,r=n-t,p?n3(r,o-e):r))}function m(t){return(c=i,d&&r)?v(t):(r=a=i,l)}function y(){var t,e=u_(),u=g(e);if(r=arguments,a=this,f=e,u){if(i===c)return s=t=f,c=iC(_,n),h?v(t):l;if(p)return rO(c),c=iC(_,n),v(f)}return i===c&&(c=iC(_,n)),l}return n=u5(n)||0,uG(e)&&(h=!!e.leading,o=(p="maxWait"in e)?n2(u5(e.maxWait)||0,n):o,d="trailing"in e?!!e.trailing:d),y.cancel=function(){i!==c&&rO(c),s=0,r=f=a=c=i},y.flush=function(){return i===c?l:m(u_())},y}var uj=rs(function(t,n){return eW(t,1,n)}),uk=rs(function(t,n,e){return eW(t,u5(n)||0,e)});function uA(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new tN(u);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],u=e.cache;if(u.has(i))return u.get(i);var a=t.apply(this,r);return e.cache=u.set(i,a)||u,a};return e.cache=new(uA.Cache||ew),e}function uN(t){if("function"!=typeof t)throw new tN(u);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}uA.Cache=ew;var uE=rs(function(t,n){var e=(n=1==n.length&&uD(n[0])?nv(n[0],nO(is())):nv(eP(n,1),nO(is()))).length;return rs(function(r){for(var i=-1,u=n3(r.length,e);++i=n}),uR=e3(function(){return arguments}())?e3:function(t){return uZ(t)&&tC.call(t,"callee")&&!tK.call(t,"callee")},uD=tm.isArray,uW=ne?nO(ne):function(t){return uZ(t)&&eY(t)==E};function uB(t){return null!=t&&u$(t.length)&&!uq(t)}function uU(t){return uZ(t)&&uB(t)}var uT=nJ||aY,uM=nr?nO(nr):function(t){return uZ(t)&&eY(t)==d};function uF(t){if(!uZ(t))return!1;var n=eY(t);return n==v||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!uH(t)}function uq(t){if(!uG(t))return!1;var n=eY(t);return n==g||n==_||"[object AsyncFunction]"==n||"[object Proxy]"==n}function uP(t){return"number"==typeof t&&t==u6(t)}function u$(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}function uG(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function uZ(t){return null!=t&&"object"==typeof t}var uK=ni?nO(ni):function(t){return uZ(t)&&i_(t)==m};function uV(t){return"number"==typeof t||uZ(t)&&eY(t)==y}function uH(t){if(!uZ(t)||eY(t)!=x)return!1;var n=tP(t);if(null===n)return!0;var e=tC.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&tL.call(e)==tW}var uQ=nu?nO(nu):function(t){return uZ(t)&&eY(t)==b},uY=na?nO(na):function(t){return uZ(t)&&i_(t)==j};function uJ(t){return"string"==typeof t||!uD(t)&&uZ(t)&&eY(t)==k}function uX(t){return"symbol"==typeof t||uZ(t)&&eY(t)==A}var u0=no?nO(no):function(t){return uZ(t)&&u$(t.length)&&!!tX[eY(t)]},u1=r3(e9),u2=r3(function(t,n){return t<=n});function u3(t){if(!t)return[];if(uB(t))return uJ(t)?nK(t):rM(t);if(t4&&t[t4])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[t4]());var n=i_(t);return(n==m?nq:n==j?nG:aw)(t)}function u4(t){return t?(t=u5(t))===l||t===-l?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}function u6(t){var n=u4(t),e=n%1;return n==n?e?n-e:n:0}function u8(t){return t?eO(u6(t),0,0xffffffff):0}function u5(t){if("number"==typeof t)return t;if(uX(t))return c;if(uG(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=uG(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=nC(t);var e=tf.test(t);return e||th.test(t)?t3(t.slice(2),e?2:8):tc.test(t)?c:+t}function u7(t){return rF(t,ap(t))}function u9(t){return null==t?"":rw(t)}var at=rP(function(t,n){if(iN(n)||uB(n)){rF(n,ah(n),t);return}for(var e in n)tC.call(n,e)&&eE(t,e,n[e])}),an=rP(function(t,n){rF(n,ap(n),t)}),ae=rP(function(t,n,e,r){rF(n,ap(n),t,r)}),ar=rP(function(t,n,e,r){rF(n,ah(n),t,r)}),ai=ii(eC),au=rs(function(t,n){t=tj(t);var e=-1,r=n.length,u=r>2?n[2]:i;for(u&&ib(n[0],n[1],u)&&(r=1);++e1),n}),rF(t,ia(t),e),r&&(e=eR(e,7,ie));for(var i=n.length;i--;)rj(e,n[i]);return e}),a_=ii(function(t,n){return null==t?{}:ra(t,n,function(n,e){return al(t,e)})});function am(t,n){if(null==t)return{};var e=nv(ia(t),function(t){return[t]});return n=is(n),ra(t,e,function(t,e){return n(t,e[0])})}var ay=r5(ah),ax=r5(ap);function aw(t){return null==t?[]:nR(t,ah(t))}var ab=rK(function(t,n,e){return n=n.toLowerCase(),t+(e?aj(n):n)});function aj(t){return aL(u9(t).toLowerCase())}function ak(t){return(t=u9(t))&&t.replace(td,nU).replace(tZ,"")}var aA=rK(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),aN=rK(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),aE=rZ("toLowerCase"),aI=rK(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),aS=rK(function(t,n,e){return t+(e?" ":"")+aL(n)}),az=rK(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),aL=rZ("toUpperCase");function aC(t,n,e){if(t=u9(t),n=e?i:n,i===n){var r;return(r=t,tQ.test(r))?t.match(tV)||[]:t.match(ti)||[]}return t.match(n)||[]}var aO=rs(function(t,n){try{return nl(t,i,n)}catch(t){return uF(t)?t:new tx(t)}}),aR=ii(function(t,n){return nf(n,function(n){eL(t,n=iU(n),ux(t[n],t))}),t});function aD(t){return function(){return t}}var aW=rQ(),aB=rQ(!0);function aU(t){return t}function aT(t){return e5("function"==typeof t?t:eR(t,1))}var aM=rs(function(t,n){return function(e){return e2(e,t,n)}}),aF=rs(function(t,n){return function(e){return e2(t,e,n)}});function aq(t,n,e){var r=ah(n),i=eV(n,r);null!=e||uG(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=eV(n,ah(n)));var u=!(uG(e)&&"chain"in e)||!!e.chain,a=uq(t);return nf(i,function(e){var r=n[e];t[e]=r,a&&(t.prototype[e]=function(){var n=this.__chain__;if(u||n){var e=t(this.__wrapped__);return(e.__actions__=rM(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,ng([this.value()],arguments))})}),t}function aP(){}var a$=r0(nv),aG=r0(ns),aZ=r0(ny);function aK(t){return ij(t)?nE(iU(t)):function(n){return eH(n,t)}}var aV=r2(),aH=r2(!0);function aQ(){return[]}function aY(){return!1}var aJ=rX(function(t,n){return t+n},0),aX=r6("ceil"),a0=rX(function(t,n){return t/n},1),a1=r6("floor"),a2=rX(function(t,n){return t*n},1),a3=r6("round"),a4=rX(function(t,n){return t-n},0);return ed.after=function(t,n){if("function"!=typeof n)throw new tN(u);return t=u6(t),function(){if(--t<1)return n.apply(this,arguments)}},ed.ary=um,ed.assign=at,ed.assignIn=an,ed.assignInWith=ae,ed.assignWith=ar,ed.at=ai,ed.before=uy,ed.bind=ux,ed.bindAll=aR,ed.bindKey=uw,ed.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return uD(t)?t:[t]},ed.chain=ur,ed.chunk=function(t,n,e){n=(e?ib(t,n,e):i===n)?1:n2(u6(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var u=0,a=0,o=tm(nx(r/n));uu?0:u+e),(r=i===r||r>u?u:u6(r))<0&&(r+=u),r=e>r?0:u8(r);e>>0)?(t=u9(t))&&("string"==typeof n||null!=n&&!uQ(n))&&!(n=rw(n))&&nF(t)?rC(nK(t),0,e):t.split(n,e):[]},ed.spread=function(t,n){if("function"!=typeof t)throw new tN(u);return n=null==n?0:n2(u6(n),0),rs(function(e){var r=e[n],i=rC(e,0,n);return r&&ng(i,r),nl(t,this,i)})},ed.tail=function(t){var n=null==t?0:t.length;return n?rv(t,1,n):[]},ed.take=function(t,n,e){return t&&t.length?rv(t,0,(n=e||i===n?1:u6(n))<0?0:n):[]},ed.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?rv(t,(n=r-(n=e||i===n?1:u6(n)))<0?0:n,r):[]},ed.takeRightWhile=function(t,n){return t&&t.length?rA(t,is(n,3),!1,!0):[]},ed.takeWhile=function(t,n){return t&&t.length?rA(t,is(n,3)):[]},ed.tap=function(t,n){return n(t),t},ed.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new tN(u);return uG(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),ub(t,n,{leading:r,maxWait:n,trailing:i})},ed.thru=ui,ed.toArray=u3,ed.toPairs=ay,ed.toPairsIn=ax,ed.toPath=function(t){return uD(t)?nv(t,iU):uX(t)?[t]:rM(iB(u9(t)))},ed.toPlainObject=u7,ed.transform=function(t,n,e){var r=uD(t),i=r||uT(t)||u0(t);if(n=is(n,4),null==e){var u=t&&t.constructor;e=i?r?new u:[]:uG(t)&&uq(u)?ev(tP(t)):{}}return(i?nf:eZ)(t,function(t,r,i){return n(e,t,r,i)}),e},ed.unary=function(t){return um(t,1)},ed.union=i2,ed.unionBy=i3,ed.unionWith=i4,ed.uniq=function(t){return t&&t.length?rb(t):[]},ed.uniqBy=function(t,n){return t&&t.length?rb(t,is(n,2)):[]},ed.uniqWith=function(t,n){return n="function"==typeof n?n:i,t&&t.length?rb(t,i,n):[]},ed.unset=function(t,n){return null==t||rj(t,n)},ed.unzip=i6,ed.unzipWith=i8,ed.update=function(t,n,e){return null==t?t:rk(t,n,rz(e))},ed.updateWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:rk(t,n,rz(e),r)},ed.values=aw,ed.valuesIn=function(t){return null==t?[]:nR(t,ap(t))},ed.without=i5,ed.words=aC,ed.wrap=function(t,n){return uI(rz(n),t)},ed.xor=i7,ed.xorBy=i9,ed.xorWith=ut,ed.zip=un,ed.zipObject=function(t,n){return rI(t||[],n||[],eE)},ed.zipObjectDeep=function(t,n){return rI(t||[],n||[],rh)},ed.zipWith=ue,ed.entries=ay,ed.entriesIn=ax,ed.extend=an,ed.extendWith=ae,aq(ed,ed),ed.add=aJ,ed.attempt=aO,ed.camelCase=ab,ed.capitalize=aj,ed.ceil=aX,ed.clamp=function(t,n,e){return i===e&&(e=n,n=i),i!==e&&(e=(e=u5(e))==e?e:0),i!==n&&(n=(n=u5(n))==n?n:0),eO(u5(t),n,e)},ed.clone=function(t){return eR(t,4)},ed.cloneDeep=function(t){return eR(t,5)},ed.cloneDeepWith=function(t,n){return eR(t,5,n="function"==typeof n?n:i)},ed.cloneWith=function(t,n){return eR(t,4,n="function"==typeof n?n:i)},ed.conformsTo=function(t,n){return null==n||eD(t,n,ah(n))},ed.deburr=ak,ed.defaultTo=function(t,n){return null==t||t!=t?n:t},ed.divide=a0,ed.endsWith=function(t,n,e){t=u9(t),n=rw(n);var r=t.length,u=e=i===e?r:eO(u6(e),0,r);return(e-=n.length)>=0&&t.slice(e,u)==n},ed.eq=uL,ed.escape=function(t){return(t=u9(t))&&$.test(t)?t.replace(q,nT):t},ed.escapeRegExp=function(t){return(t=u9(t))&&J.test(t)?t.replace(Y,"\\$&"):t},ed.every=function(t,n,e){var r=uD(t)?ns:eM;return e&&ib(t,n,e)&&(n=i),r(t,is(n,3))},ed.find=uo,ed.findIndex=i$,ed.findKey=function(t,n){return nw(t,is(n,3),eZ)},ed.findLast=ul,ed.findLastIndex=iG,ed.findLastKey=function(t,n){return nw(t,is(n,3),eK)},ed.floor=a1,ed.forEach=uc,ed.forEachRight=uf,ed.forIn=function(t,n){return null==t?t:e$(t,is(n,3),ap)},ed.forInRight=function(t,n){return null==t?t:eG(t,is(n,3),ap)},ed.forOwn=function(t,n){return t&&eZ(t,is(n,3))},ed.forOwnRight=function(t,n){return t&&eK(t,is(n,3))},ed.get=ao,ed.gt=uC,ed.gte=uO,ed.has=function(t,n){return null!=t&&im(t,n,eX)},ed.hasIn=al,ed.head=iK,ed.identity=aU,ed.includes=function(t,n,e,r){t=uB(t)?t:aw(t),e=e&&!r?u6(e):0;var i=t.length;return e<0&&(e=n2(i+e,0)),uJ(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&nj(t,n,e)>-1},ed.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return -1;var i=null==e?0:u6(e);return i<0&&(i=n2(r+i,0)),nj(t,n,i)},ed.inRange=function(t,n,e){var r,u,a;return n=u4(n),i===e?(e=n,n=0):e=u4(e),(r=t=u5(t))>=n3(u=n,a=e)&&r=-0x1fffffffffffff&&t<=0x1fffffffffffff},ed.isSet=uY,ed.isString=uJ,ed.isSymbol=uX,ed.isTypedArray=u0,ed.isUndefined=function(t){return i===t},ed.isWeakMap=function(t){return uZ(t)&&i_(t)==N},ed.isWeakSet=function(t){return uZ(t)&&"[object WeakSet]"==eY(t)},ed.join=function(t,n){return null==t?"":n0.call(t,n)},ed.kebabCase=aA,ed.last=iY,ed.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return -1;var u=r;return i!==e&&(u=(u=u6(e))<0?n2(r+u,0):n3(u,r-1)),n==n?function(t,n,e){for(var r=e+1;r--&&t[r]!==n;);return r}(t,n,u):nb(t,nA,u,!0)},ed.lowerCase=aN,ed.lowerFirst=aE,ed.lt=u1,ed.lte=u2,ed.max=function(t){return t&&t.length?eF(t,aU,eJ):i},ed.maxBy=function(t,n){return t&&t.length?eF(t,is(n,2),eJ):i},ed.mean=function(t){return nN(t,aU)},ed.meanBy=function(t,n){return nN(t,is(n,2))},ed.min=function(t){return t&&t.length?eF(t,aU,e9):i},ed.minBy=function(t,n){return t&&t.length?eF(t,is(n,2),e9):i},ed.stubArray=aQ,ed.stubFalse=aY,ed.stubObject=function(){return{}},ed.stubString=function(){return""},ed.stubTrue=function(){return!0},ed.multiply=a2,ed.nth=function(t,n){return t&&t.length?ri(t,u6(n)):i},ed.noConflict=function(){return t8._===this&&(t8._=tB),this},ed.noop=aP,ed.now=u_,ed.pad=function(t,n,e){t=u9(t);var r=(n=u6(n))?nZ(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return r1(nI(i),e)+t+r1(nx(i),e)},ed.padEnd=function(t,n,e){t=u9(t);var r=(n=u6(n))?nZ(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var u=n8();return n3(t+u*(n-t+t2("1e-"+((u+"").length-1))),n)}return rc(t,n)},ed.reduce=function(t,n,e){var r=uD(t)?n_:nS,i=arguments.length<3;return r(t,is(n,4),e,i,eU)},ed.reduceRight=function(t,n,e){var r=uD(t)?nm:nS,i=arguments.length<3;return r(t,is(n,4),e,i,eT)},ed.repeat=function(t,n,e){return n=(e?ib(t,n,e):i===n)?1:u6(n),rf(u9(t),n)},ed.replace=function(){var t=arguments,n=u9(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ed.result=function(t,n,e){n=rL(n,t);var r=-1,u=n.length;for(u||(u=1,t=i);++r0x1fffffffffffff)return[];var e=0xffffffff,r=n3(t,0xffffffff);n=is(n),t-=0xffffffff;for(var i=nL(r,n);++e=a)return t;var l=e-nZ(r);if(l<1)return r;var c=o?rC(o,0,l).join(""):t.slice(0,l);if(i===u)return c+r;if(o&&(l+=c.length-l),uQ(u)){if(t.slice(l).search(u)){var f,s=c;for(u.global||(u=tk(u.source,u9(tl.exec(u))+"g")),u.lastIndex=0;f=u.exec(s);)var h=f.index;c=c.slice(0,i===h?l:h)}}else if(t.indexOf(rw(u),l)!=l){var p=c.lastIndexOf(u);p>-1&&(c=c.slice(0,p))}return c+r},ed.unescape=function(t){return(t=u9(t))&&P.test(t)?t.replace(F,nH):t},ed.uniqueId=function(t){var n=++tO;return u9(t)+n},ed.upperCase=az,ed.upperFirst=aL,ed.each=uc,ed.eachRight=uf,ed.first=iK,aq(ed,(t_={},eZ(ed,function(t,n){tC.call(ed.prototype,n)||(t_[n]=t)}),t_),{chain:!1}),ed.VERSION="4.17.21",nf(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ed[t].placeholder=ed}),nf(["drop","take"],function(t,n){em.prototype[t]=function(e){e=i===e?1:n2(u6(e),0);var r=this.__filtered__&&!n?new em(this):this.clone();return r.__filtered__?r.__takeCount__=n3(e,r.__takeCount__):r.__views__.push({size:n3(e,0xffffffff),type:t+(r.__dir__<0?"Right":"")}),r},em.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),nf(["filter","map","takeWhile"],function(t,n){var e=n+1,r=1==e||3==e;em.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:is(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),nf(["head","last"],function(t,n){var e="take"+(n?"Right":"");em.prototype[t]=function(){return this[e](1).value()[0]}}),nf(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");em.prototype[t]=function(){return this.__filtered__?new em(this):this[e](1)}}),em.prototype.compact=function(){return this.filter(aU)},em.prototype.find=function(t){return this.filter(t).head()},em.prototype.findLast=function(t){return this.reverse().find(t)},em.prototype.invokeMap=rs(function(t,n){return"function"==typeof t?new em(this):this.map(function(e){return e2(e,t,n)})}),em.prototype.reject=function(t){return this.filter(uN(is(t)))},em.prototype.slice=function(t,n){t=u6(t);var e=this;return e.__filtered__&&(t>0||n<0)?new em(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),i!==n&&(e=(n=u6(n))<0?e.dropRight(-n):e.take(n-t)),e)},em.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},em.prototype.toArray=function(){return this.take(0xffffffff)},eZ(em.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),u=ed[r?"take"+("last"==n?"Right":""):n],a=r||/^find/.test(n);u&&(ed.prototype[n]=function(){var n=this.__wrapped__,o=r?[1]:arguments,l=n instanceof em,c=o[0],f=l||uD(n),s=function(t){var n=u.apply(ed,ng([t],o));return r&&h?n[0]:n};f&&e&&"function"==typeof c&&1!=c.length&&(l=f=!1);var h=this.__chain__,p=!!this.__actions__.length,d=a&&!h,v=l&&!p;if(!a&&f){n=v?n:new em(this);var g=t.apply(n,o);return g.__actions__.push({func:ui,args:[s],thisArg:i}),new e_(g,h)}return d&&v?t.apply(this,o):(g=this.thru(s),d?r?g.value()[0]:g.value():g)})}),nf(["pop","push","shift","sort","splice","unshift"],function(t){var n=tE[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ed.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(uD(i)?i:[],t)}return this[e](function(e){return n.apply(uD(e)?e:[],t)})}}),eZ(em.prototype,function(t,n){var e=ed[n];if(e){var r=e.name+"";tC.call(eu,r)||(eu[r]=[]),eu[r].push({name:n,func:e})}}),eu[rY(i,2).name]=[{name:"wrapper",func:i}],em.prototype.clone=function(){var t=new em(this.__wrapped__);return t.__actions__=rM(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=rM(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=rM(this.__views__),t},em.prototype.reverse=function(){if(this.__filtered__){var t=new em(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t},em.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=uD(t),r=n<0,i=e?t.length:0,u=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length,n=t?i:this.__values__[this.__index__++];return{done:t,value:n}},ed.prototype.plant=function(t){for(var n,e=this;e instanceof eg;){var r=iM(e);r.__index__=0,r.__values__=i,n?u.__wrapped__=r:n=r;var u=r;e=e.__wrapped__}return u.__wrapped__=t,n},ed.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof em){var n=t;return this.__actions__.length&&(n=new em(this)),(n=n.reverse()).__actions__.push({func:ui,args:[i1],thisArg:i}),new e_(n,this.__chain__)}return this.thru(i1)},ed.prototype.toJSON=ed.prototype.valueOf=ed.prototype.value=function(){return rN(this.__wrapped__,this.__actions__)},ed.prototype.first=ed.prototype.head,t4&&(ed.prototype[t4]=function(){return this}),ed}();t8._=nQ,i!==(r=(function(){return nQ}).call(n,e,n,t))&&(t.exports=r)}).call(this)},8424:(t,n,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return e(9632)}])},1710:(t,n,e)=>{"use strict";e.d(n,{A:()=>u});var r=e(4848),i=e(6540);function u(t){let{width:n,position:e,style:u,borderWidth:a,screen:o,title:l}=t;return(0,r.jsxs)("div",{className:" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50"+(o?" fixed":" absolute"),style:{...u,position:e,zIndex:2e4},children:[(0,r.jsx)("span",{className:"general_loader",style:n?{width:n,height:n,minWidth:n,borderWidth:a||"4px"}:{}}),l?(0,r.jsx)("span",{children:l}):(0,r.jsx)(i.Fragment,{})]})}},6232:(t,n,e)=>{"use strict";e.d(n,{A:()=>u});var r=e(4848);let i=(0,e(5737).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);function u(t){let{size:n,adminAside:e,collapseAsideMobile:u,setCollapseAsideMobile:a}=t;return(0,r.jsxs)("a",{href:"/",className:"logo",onClick:t=>{let n=t.target;if(null==n?void 0:n.closest("button"))return t.preventDefault()},children:[e&&(0,r.jsxs)("button",{className:"flex lg:hidden small-text mr-2 primary-light",onClick:t=>{u&&a?a(!1):a&&a(!0)},children:[(0,r.jsx)("div",{className:"-mt-0.5",children:(0,r.jsx)(i,{})}),(0,r.jsx)("span",{className:"dark:text-white",children:"Menu"})]}),(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"dark:hidden -mt-1.5 -mr-1.5"}),(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"hidden dark:flex -mt-1.5 -mr-1.5"}),(0,r.jsx)("span",{className:"text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]",children:"Datasquirel"})]})}e(6540)},9329:(t,n,e)=>{"use strict";e.d(n,{A:()=>u});var r=e(4848),i=e(6540);function u(){let[t,n]=i.useState("Light Mode");return i.useEffect(()=>{let t=localStorage.getItem("theme");(null==t?void 0:t.match(/dark/))&&n("Dark Mode")},[]),(0,r.jsx)("div",{className:"",id:"theme-selector-wrapper",onClick:()=>{var t,e;let r=document.getElementById("theme-selector-graphic-wrapper"),i=localStorage.getItem("theme"),u=null==r?void 0:r.querySelector("img.sun"),a=null==r?void 0:r.querySelector("img.moon");!i||(null==i?void 0:i.match(/light/))?(document.documentElement.className="dark",localStorage.setItem("theme","dark"),i="dark",null==u||u.classList.add("hidden"),null==a||a.classList.remove("hidden"),null==r||null===(t=r.firstChild)||void 0===t||t.classList.add("ml-auto"),n("Dark Mode")):(null==i?void 0:i.match(/dark/))&&(document.documentElement.className="light",localStorage.setItem("theme","light"),i="light",null==a||a.classList.add("hidden"),null==u||u.classList.remove("hidden"),null==r||null===(e=r.firstChild)||void 0===e||e.classList.remove("ml-auto"),n("Light Mode"))},children:(0,r.jsx)("div",{className:"p-1 rounded-full w-12 transition-all",id:"theme-selector-graphic-wrapper",children:(0,r.jsxs)("div",{className:"pointer-events-none transition-all dark:ml-auto",children:[(0,r.jsx)("img",{src:"/images/sun.png",alt:"Sun Icon",width:18,className:"sun dark:hidden"}),(0,r.jsx)("img",{src:"/images/new-moon.png",alt:"Sun Icon",width:18,className:"moon hidden dark:flex"})]})})})}},9020:(t,n,e)=>{"use strict";e.d(n,{A:()=>i});var r=e(1028);let i=e.n(r)()},2567:(t,n,e)=>{"use strict";async function r(t){let{links:n}=t,e=n||document.querySelectorAll("nav a");if(e&&e.forEach(t=>{t.dataset.currentlink===window.location.pathname?t.classList.add("active"):window.location.pathname.match(new RegExp("".concat(t.dataset.currentlink,"\\/.*")))&&!t.dataset.strictlink&&t.classList.add("active")}),window.location.pathname.match(/\/databases\/.*/)){let t=document.querySelectorAll("a");t&&window.location.search.match(/delegated=true/)&&t.forEach((t,n)=>{var e;(null==t?void 0:null===(e=t.pathname)||void 0===e?void 0:e.match(/databases/))&&(t.href=t.pathname+window.location.search)})}}e.d(n,{A:()=>r})},4252:(t,n,e)=>{"use strict";e.d(n,{A:()=>g});var r=e(4848),i=e(6540),u=e(3368),a=e.n(u),o=e(2567),l=e(9329),c=e(6232),f=e(2683),s=e(2027);function h(t){let{user:n,darkBg:e,transparent:u}=t,[a,o]=i.useState((null==n?void 0:n.logged_in_status)?n:null);return i.useEffect(()=>{let t=document.getElementById("main-nav-content-wrapper");window.addEventListener("click",n=>{let e=n.target;(null==e?void 0:e.closest("#main-nav-content-wrapper"))||(null==e?void 0:e.closest("#main-header-hamburger-button"))||t.classList.contains("hidden")||t.classList.add("hidden")}),document.querySelectorAll("nav a").forEach(t=>{t.pathname!==window.location.pathname||t.href.match(/#/)||t.pathname.match(/http/)||t.classList.add("active-page-link")})},[]),i.useEffect(()=>{(null==n?void 0:n.logged_in_status)&&o(n)},[n]),(0,r.jsx)("header",{className:"w-full px-4 md:px-8 flex justify-center gap-4 "+(e?" shadow-slate-900/20 dark-content":" shadow-slate-900/5")+(u?"":" bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50")+((null==n?void 0:n.logged_in_status)?" py-4":" py-6"),style:{zIndex:700},children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("nav",{className:"w-full flex items-center justify-between gap-4 md:gap-10",children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 p-4 xl:p-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto xl:bg-transparent"+(u?" bg-white xl:bg-transparent":" bg-white dark:bg-slate-800"),id:"main-nav-content-wrapper",children:[(0,r.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,r.jsx)("a",{href:"/",children:(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,r.jsx)("button",{className:"outlined gray ml-auto",onClick:t=>{let n=document.getElementById("main-nav-content-wrapper");null==n||n.classList.toggle("hidden")},style:{border:"none"},children:(0,r.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,r.jsxs)("div",{className:"flex items-center grow flex-col-reverse xl:flex-row mb-10 xl:mb-0",children:[(0,r.jsxs)("div",{className:"flex-col xl:flex-row w-full gap-y-10 gap-x-6",children:[(0,r.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,r.jsxs)("a",{href:"/docs/gui-reference",className:"relative z-10 flex items-center gap-2",children:[(0,r.jsx)("span",{children:"Features"}),(0,r.jsx)(s.A,{size:20})]}),(0,r.jsxs)("div",{className:"dropdown",children:[(0,r.jsx)("a",{href:"/docs/database-reference/data-types",className:"button plain-text more-padding normal-weight",children:"Database Schema"}),(0,r.jsx)("a",{href:"/docs/database-reference/querying-data",className:"button plain-text more-padding normal-weight",children:"Sql Queries"}),(0,r.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"button plain-text more-padding normal-weight",children:"Media Storage"})]})]}),(0,r.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,r.jsxs)("a",{href:"/docs",className:"relative z-10 flex items-center gap-2",children:[(0,r.jsx)("span",{children:"Docs"}),(0,r.jsx)(s.A,{size:20})]}),(0,r.jsxs)("div",{className:"dropdown",children:[(0,r.jsx)("a",{href:"/docs/quick-start",className:"button plain-text more-padding normal-weight",children:"Quick Start"}),(0,r.jsx)("a",{href:"/docs/api-reference",className:"button plain-text more-padding normal-weight",children:"Api Guide"}),(0,r.jsx)("a",{href:"/docs/gui-reference",className:"button plain-text more-padding normal-weight",children:"GUI Interface"})]})]}),(0,r.jsx)("a",{href:"/about",children:"About Us"}),(0,r.jsx)("a",{href:"/contact",children:"Contact Us"})]}),(null==a?void 0:a.logged_in_status)?(0,r.jsx)(f.A,{activeUser:a,noModeSelector:!0}):(0,r.jsxs)("div",{className:"ml-auto w-full xl:w-auto justify-center",children:[(0,r.jsx)("a",{href:"/login",className:"button outlined gray hidden xl:flex"+(e?" light":""),children:"Login"}),(0,r.jsx)("a",{href:"/login",className:"button outlined gray flex xl:hidden",children:"Login"}),(0,r.jsx)("a",{href:"/create-account",className:"button",children:"Get Started"})]})]})]}),(0,r.jsx)("div",{className:"ml-0 xl:-ml-2",children:(0,r.jsx)(l.A,{})}),(0,r.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all",onClick:t=>{let n=document.getElementById("main-nav-content-wrapper");null==n||n.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,r.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})})}function p(){return(0,r.jsxs)("footer",{className:"p-8 md:p-10 w-full flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"main-container items-start justify-between gap-6 flex-wrap flex-col md:flex-row pt-6",children:[(0,r.jsxs)("div",{className:"flex flex-col items-start gap-6",children:[(0,r.jsx)(c.A,{}),(0,r.jsx)("span",{className:"font-normal max-w-sm text-sm text-left",children:"Datasquirel is a fast efficient cloud-based data store that takes away the entire hassle of data management."})]}),(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("h4",{className:"m-0",children:"Features"}),(0,r.jsx)("a",{href:"/docs/database-reference/data-types",className:"text-slate-600",children:"Database Schema"}),(0,r.jsx)("a",{href:"/docs/database-reference/querying-data",className:"text-slate-600",children:"SQL Queries"}),(0,r.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"text-slate-600",children:"Media Storage"})]}),(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("h4",{className:"m-0",children:"Docs"}),(0,r.jsx)("a",{href:"/docs/quick-start",className:"text-slate-600",children:"Quick Start Guide"}),(0,r.jsx)("a",{href:"/docs/api-reference",className:"text-slate-600",children:"API Guide"}),(0,r.jsx)("a",{href:"/docs/gui-reference",className:"text-slate-600",children:"GUI Interface"})]}),(0,r.jsxs)("div",{className:"flex-col items-start",children:[(0,r.jsx)("h4",{className:"m-0",children:"Company"}),(0,r.jsx)("a",{href:"/about",className:"text-slate-600",children:"About Us"}),(0,r.jsx)("a",{href:"/terms",className:"text-slate-600",children:"Terms and Conditions"}),(0,r.jsx)("a",{href:"/privacy",className:"text-slate-600",children:"Privacy Policy"})]})]}),(0,r.jsx)("hr",{className:"my-10"}),(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]})})]})}function d(){return(0,r.jsx)(i.Fragment,{})}var v=e(4477);function g(t){let{children:n,head:e,user:u,productionEnvironment:l,darkBgHeader:c,transparentHeader:f}=t;return i.useEffect(()=>{(0,o.A)({})},[]),(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a(),{children:e}),(0,r.jsx)(d,{}),(0,r.jsx)(h,{user:u,darkBg:c,transparent:f}),n,(0,r.jsx)(p,{}),(0,r.jsx)(v.A,{})]})}},2683:(t,n,e)=>{"use strict";e.d(n,{A:()=>f});var r=e(4848),i=e(6540),u=e(1710),a=e(8631);function o(t){let{user:n}=t;return(0,r.jsxs)("div",{className:"dropdown right-aligned",children:[(0,r.jsxs)("a",{href:"/admin",className:"button outlined gray more-padding relative z-20 mb-2",children:[(0,r.jsx)(a.A,{size:18,className:"mr-1"}),(0,r.jsx)("span",{children:"Dashboard"})]}),null,(0,r.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/settings"),className:"button plain-text more-padding normal-weight",children:"Settings"}),(0,r.jsx)("a",{href:"/logout",className:"button plain-text more-padding normal-weight",children:"Logout"})]})}var l=e(9329),c=e(2027);function f(t){var n,e,a,f,s,h;let{activeUser:p,noModeSelector:d}=t;return(null==p?void 0:p.logged_in_status)?(0,r.jsxs)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2 whitespace-nowrap",children:[(0,r.jsxs)("div",{className:"ml-auto dropdown-wrapper p-0 xl:p-4 hover:bg-slate-100 hidden",children:[(0,r.jsx)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/notifications"),className:"flex items-center justify-center",children:(0,r.jsx)("img",{src:"/images/notification-icon.svg",alt:"Notification Icon",width:20,className:"opacity-50"})}),(0,r.jsxs)("div",{className:"dropdown mt-0 xl:-mt-3 gap-2",children:[(0,r.jsx)("span",{className:"text-slate-400",children:"Notifications"}),(0,r.jsx)(u.A,{position:"relative",width:"20px"})]})]}),(0,r.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,r.jsxs)("div",{className:"avatar",style:{width:"36px",height:"36px"},children:[(0,r.jsx)("img",{src:null==p?void 0:p.image,alt:"User Image",width:35,className:"w-full h-full object-cover rounded-full"}),(null==p?void 0:p.social_login)?(0,r.jsxs)("div",{className:"sub-img",children:[(0,r.jsx)("img",{src:(null==p?void 0:null===(n=p.social_platform)||void 0===n?void 0:n.match(/facebook/i))?"/images/facebook.png":(null==p?void 0:null===(e=p.social_platform)||void 0===e?void 0:e.match(/google/i))?"/images/google.png":(null==p?void 0:null===(a=p.social_platform)||void 0===a?void 0:a.match(/github/i))?"/images/github.png":"/images/sharing.png",alt:"",className:"flex dark:hidden"}),(0,r.jsx)("img",{src:(null==p?void 0:null===(f=p.social_platform)||void 0===f?void 0:f.match(/facebook/i))?"/images/facebook.png":(null==p?void 0:null===(s=p.social_platform)||void 0===s?void 0:s.match(/google/i))?"/images/google.png":(null==p?void 0:null===(h=p.social_platform)||void 0===h?void 0:h.match(/github/i))?"/images/github-white.png":"/images/sharing.png",alt:"",className:"hidden dark:flex"})]}):(0,r.jsx)(i.Fragment,{})]}),(0,r.jsx)("span",{className:"dark:text-white",children:(0,r.jsxs)("b",{children:[null==p?void 0:p.first_name," ",null==p?void 0:p.last_name]})}),(0,r.jsx)(c.A,{size:20}),(0,r.jsx)(o,{user:p})]}),!d&&(0,r.jsx)("div",{className:"ml-2",children:(0,r.jsx)(l.A,{})})]}):(0,r.jsx)(i.Fragment,{})}},4477:(t,n,e)=>{"use strict";e.d(n,{A:()=>a});var r=e(4848);let i=(0,e(5737).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var u=e(6540);function a(t){let{snug:n}=t,[e,a]=u.useState(!1);return u.useEffect(()=>{window.addEventListener("scroll",t=>{window.scrollY>600?a(!0):a(!1)})},[]),(0,r.jsx)(u.Fragment,{children:e&&(0,r.jsx)("button",{className:"fixed z-40 w-12 h-12 p-2 rounded-full bg-white dark:bg-slate-600 shadow-xl flex items-center justify-center hover:bg-slate-800 dark:hover:bg-slate-800 text-slate-500 dark:text-slate-200 outline-slate-300 dark:outline-transparent"+(n?" bottom-6 right-4":" bottom-4 md:bottom-10 right-4 md:right-10"),style:{outlineStyle:"solid",outlineWidth:"1px",zIndex:2e3},onClick:t=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},children:(0,r.jsx)(i,{size:20})})})}},5737:(t,n,e)=>{"use strict";e.d(n,{A:()=>a});var r=e(6540),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let u=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(t,n)=>{let e=(0,r.forwardRef)((e,a)=>{let{color:o="currentColor",size:l=24,strokeWidth:c=2,absoluteStrokeWidth:f,className:s="",children:h,...p}=e;return(0,r.createElement)("svg",{ref:a,...i,width:l,height:l,stroke:o,strokeWidth:f?24*Number(c)/Number(l):c,className:["lucide","lucide-".concat(u(t)),s].join(" "),...p},[...n.map(t=>{let[n,e]=t;return(0,r.createElement)(n,e)}),...Array.isArray(h)?h:[h]])});return e.displayName="".concat(t),e}},2027:(t,n,e)=>{"use strict";e.d(n,{A:()=>r});let r=(0,e(5737).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},8631:(t,n,e)=>{"use strict";e.d(n,{A:()=>r});let r=(0,e(5737).A)("CircleGauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]])},9632:(t,n,e)=>{"use strict";e.r(n),e.d(n,{AppContext:()=>h,default:()=>p});var r=e(4848),i=e(6540),u=e(8133),a=e.n(u),o=e(3368),l=e.n(o);e(1092),e(3871);var c=e(9020),f=e(4252);class s extends i.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"ErrorBoundary-class-component",message:t.message+" ==== Error Info => "+n,user:{}}})}render(){return this.state.hasError?(0,r.jsx)(f.A,{head:this.state.head,user:null,children:(0,r.jsxs)("div",{className:"paper items-center px-20",children:[(0,r.jsx)("h2",{className:"text-base text-slate-400 m-0",children:"Application Error!"}),(0,r.jsx)("h1",{className:"text-2xl m-0 mb-4",children:"Please try again!"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("a",{href:"/",className:"button outlined",children:"Home"}),(0,r.jsx)("button",{onClick:t=>{window.history.back()},children:"Go Back"})]})]})}):this.props.children}constructor(t){super(t),this.state={hasError:!1}}}let h=i.createContext({pageProps:{}});function p(t){let{Component:n,pageProps:e}=t;return(0,r.jsxs)(h.Provider,{value:{pageProps:e},children:[(0,r.jsx)(l(),{children:(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,r.jsx)(s,{children:(0,r.jsx)(n,{...e})}),(0,r.jsx)(a(),{src:"/scripts/main.js",strategy:"afterInteractive"})]})}},1092:()=>{},3871:()=>{},3368:(t,n,e)=>{t.exports=e(6085)},8133:(t,n,e)=>{t.exports=e(7610)}},t=>{var n=n=>t(t.s=n);t.O(0,[6593,8792],()=>(n(8424),n(8440))),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/about-69331c972566352a.js b/dsql-app/.local_dist/static/chunks/pages/about-54414f59f6957c50.js similarity index 87% rename from dsql-app/.local_dist/static/chunks/pages/about-69331c972566352a.js rename to dsql-app/.local_dist/static/chunks/pages/about-54414f59f6957c50.js index 7dc954e..9fb185b 100644 --- a/dsql-app/.local_dist/static/chunks/pages/about-69331c972566352a.js +++ b/dsql-app/.local_dist/static/chunks/pages/about-54414f59f6957c50.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{4088:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return n(492)}])},492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HomepageContext:()=>o,default:()=>a}),n(4848);var u=n(6540);n(4252),n(9625),n(3434),n(6369),n(817);let o=u.createContext({});function a(){return u.useEffect(()=>{window.location.href="https://datasquirel.com/about"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[3298,636,6593,8792],()=>e(4088)),_N_E=t.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{4088:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return n(492)}])},492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HomepageContext:()=>o,default:()=>a}),n(4848);var u=n(6540);n(8883),n(9625),n(3434),n(6369),n(817);let o=u.createContext({});function a(){return u.useEffect(()=>{window.location.href="https://datasquirel.com/about"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[3298,636,6593,8792],()=>e(4088)),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/connect-364ec8656f8ec17d.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/connect-364ec8656f8ec17d.js index 42b3a7b..a94ed3e 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/connect-40047d3fd5229513.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/connect-364ec8656f8ec17d.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2504],{6429:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/connect",function(){return t(6525)}])},5655:(e,s,t)=>{"use strict";t.d(s,{Ay:()=>n,PB:()=>i,fs:()=>d});var a=t(4848),l=t(6897),r=t(6540);function n(e){let{children:s,title:t,data:n,fullPage:i,wrapperClasses:c,closePopupDispatch:o,wrapperStyle:u,noContainer:h}=e;return i?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(c||""),"data-popupid":t||null,style:u,children:[h?(0,a.jsx)(r.Fragment,{children:s}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:s}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),o&&o()},children:(0,a.jsx)(l.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[h?(0,a.jsx)(r.Fragment,{children:s}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[s,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),h&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]})}function i(e,s){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==s||s(t))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},7216:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7212:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},2894:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},4909:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},6897:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6525:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ConnectContext:()=>A,__N_SSP:()=>N,default:()=>E});var a=t(4848),l=t(6540),r=t(8181),n=t(3647),i=t(7220),d=t(7290);function c(){let{user:e,query:s,mariadbUserCred:t}=l.useContext(A);return(0,a.jsx)("section",{className:"paper",children:(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:"}),(0,a.jsx)("hr",{}),(0,a.jsxs)("ul",{className:"m-0",children:[(0,a.jsxs)("li",{children:["Server:"," ",(0,a.jsx)("b",{children:"172.72.0.24"})]}),(0,a.jsxs)("li",{children:["Username: ",(0,a.jsx)("b",{children:null==t?void 0:t.mariadb_user})]}),(0,a.jsxs)("li",{children:["Host: ",(0,a.jsx)("b",{children:null==t?void 0:t.mariadb_host})]}),(0,a.jsxs)("li",{children:["Password: ",(0,a.jsx)("b",{children:"*****************"}),(0,a.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText((null==t?void 0:t.mariadb_pass)||"").then(()=>{window.alert("Copied Password!")})},children:(0,a.jsx)(i.A,{})})]}),(0,a.jsx)("li",{children:(0,a.jsxs)("div",{className:"flex",children:["SSL Certificate:"," ",(0,a.jsx)("b",{children:(0,a.jsx)("span",{className:"flex items-center gap-2",children:(0,a.jsxs)("a",{href:"https://datasquirel.com/documents/ssl/ca-cert.pem",className:"flex items-center gap-2 border-none hover:opacity-60",target:"_blank",children:[(0,a.jsx)(d.A,{}),"Download"]})})})]})})]})]})})}var o=t(5655),u=t(1710),h=t(9020),x=t(2836),p=t(7212);function m(e){var s;let{mariadbUser:t}=e,{setTargetMariadbUser:r}=l.useContext(A),n=null!==(s=String(t.primary))&&void 0!==s&&!!s.match(/1/),[d,c]=l.useState(!1);return(0,a.jsxs)("div",{className:"card w-full col"+(n?" green":""),children:[d&&(0,a.jsx)(u.A,{width:"25px"}),(0,a.jsxs)("div",{className:"w-full justify-between h-auto md:h-8 flex-wrap",children:[(0,a.jsxs)("span",{className:"title",children:[t.username,"@",t.host]}),(0,a.jsxs)("div",{children:[n&&(0,a.jsx)("span",{className:"info small w-auto",children:"Primary User"}),(0,a.jsx)("button",{className:"ghost",title:"Edit User",onClick:e=>{null==r||r(t),(0,o.PB)("edit-mariadb-user-popup")},children:(0,a.jsx)(x.A,{size:20})}),!n&&(0,a.jsx)("button",{className:"ghost -ml-6",title:"Edit User",onClick:e=>{window.confirm("Are you sure you want to delete this User?")&&(c(!0),(0,h.A)("/api/sql-users/delete",{method:"POST",body:{id:t.id}},!0).then(e=>{e.success?window.location.reload():e.msg&&window.alert(e.msg)}).finally(()=>{setTimeout(()=>{c(!1)},1e3)}))},children:(0,a.jsx)(p.A,{})})]})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("ul",{className:"m-0",children:[(0,a.jsxs)("li",{children:["Username: ",(0,a.jsx)("b",{children:t.username})]}),(0,a.jsxs)("li",{children:["Host: ",(0,a.jsx)("b",{children:t.host}),(0,a.jsx)("span",{className:"info gray font-normal",children:"% is a wildcard. Example: 192.168.1.%"})]}),(0,a.jsxs)("li",{children:["Password: ",(0,a.jsx)("b",{children:"*****************"}),(0,a.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText(t.password||"").then(()=>{window.alert("Copied Password!")})},children:(0,a.jsx)(i.A,{size:20})})]})]})]})}function j(){let{mariadbUsers:e}=l.useContext(A);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"SQL Users"}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{onClick:e=>{(0,o.PB)("new-mariadb-user-popup")},children:"Add SQL User"})})]}),(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)"}),(0,a.jsx)("hr",{}),(0,a.jsx)("div",{className:"grid w-full grid-cols-1 xl:grid-cols-2 gap-6",children:null==e?void 0:e.map((e,s)=>(0,a.jsx)(m,{mariadbUser:e},s+1))})]})]})}function y(){let{user:e,query:s,mariadbUserCred:t}=l.useContext(A);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Connect"})}),(0,a.jsx)(n.A,{user:e})]}),(0,a.jsx)(c,{}),(0,a.jsx)(j,{})]})}function b(e){let{grants:s,setGrants:t,edit:r}=e,{user:n,targetMariadbUser:i}=l.useContext(A),d=!!String(null==i?void 0:i.primary).match(/1/)&&r,c=!!s.find(e=>"*"==e.database),o=!!s.find(e=>"*"==e.table),u=!!s.find(e=>e.privileges.includes("ALL PRIVILEGES")),[x,p]=l.useState([]),[m,j]=l.useState(),[y,b]=l.useState([]),[f,v]=l.useState(),[g,N]=l.useState(["ALL PRIVILEGES"]),[E,w]=l.useState("ALL PRIVILEGES"),[k,L]=l.useState(!1);return l.useEffect(()=>{(0,h.A)("/api/getUserDatabases").then(e=>{e.databases&&p(e.databases)})},[]),l.useEffect(()=>{(null==m?void 0:m.id)&&(0,h.A)("/api/getUserDatabaseTables?dbId=".concat(m.id)).then(e=>{e.tables&&b(e.tables)})},[m]),(0,a.jsxs)("div",{id:"grant-select-block",className:"flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded",children:[(0,a.jsx)("h4",{className:"m-0 text-lg",children:"Grants"}),(0,a.jsx)("span",{children:"This section determines fine grained access of this user to databases and tables"}),(0,a.jsx)("hr",{}),(0,a.jsx)("div",{className:"flex-wrap",children:(null==s?void 0:s[0])?s.map((e,l)=>(0,a.jsxs)("div",{className:"text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative",children:[(0,a.jsx)("span",{children:e.privileges}),(0,a.jsx)("span",{children:"="}),(0,a.jsxs)("span",{children:[" ",e.database.replace(/datasquirel_user_\d+_/,"")]}),(0,a.jsx)("span",{children:"."}),(0,a.jsx)("span",{children:e.table}),!d&&(0,a.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:e=>{let a=[...s];a.splice(l,1),t(a)},children:"x"})]},l)):(0,a.jsx)("span",{className:"text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center",children:"No Grants"})}),(0,a.jsx)("hr",{}),c&&o&&u?(0,a.jsx)("span",{className:"text-sm text-slate-500",children:'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges'}):k?(0,a.jsx)(a.Fragment,{children:d?(0,a.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:"grants-database",children:"Database"}),(0,a.jsxs)("select",{name:"grants-database",id:"grants-database",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=x.find(e=>e.db_full_name==s);t&&j(t)},children:[(0,a.jsx)("option",{value:"*",children:"--ALL-DATABASES--"}),x.map((e,s)=>(0,a.jsx)("option",{value:e.db_full_name,children:e.db_name},s+1))]})]}),(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:"grants-table",children:"Table"}),(0,a.jsxs)("select",{name:"grants-table",id:"grants-table",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=y.find(e=>e.table_slug==s);t&&v(t)},children:[(0,a.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),(null==y?void 0:y[0])&&y.map((e,s)=>(0,a.jsx)("option",{value:e.table_slug,children:e.table_name},s+1))]})]}),(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:"grants-databases",children:"Permissions"}),(0,a.jsx)("div",{className:"flex-wrap gap-y-2 mb-1",children:(null==g?void 0:g[0])?g.map((e,s)=>(0,a.jsxs)("span",{className:"text-xs px-2 py-1 border border-solid border-slate-200 rounded",children:[e,(0,a.jsx)("span",{className:"cursor-pointer p-2 hover:opacity-50",onClick:e=>{let t=[...g];t.splice(s,1),N(t)},children:"x"})]},s)):(0,a.jsx)("span",{className:"text-xs px-3 py-1 bg-slate-100 text-slate-400",children:"No Permissions Selected"})}),(0,a.jsxs)("div",{className:"w-full items-stretch",children:[(0,a.jsx)("select",{name:"grants-databases",id:"grants-databases",className:"text-sm",onChange:e=>{w(e.target.value)},children:["ALL PRIVILEGES","ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","FILE","INDEX","INSERT","LOCK TABLES","PROCESS","REFERENCES","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","SELECT","SHOW VIEW","SUPER","TRIGGER","UPDATE","USAGE"].map((e,s)=>(0,a.jsx)("option",{value:e,children:e},s))}),(0,a.jsx)("div",{className:"button outlined gray text-2xl",onClick:e=>{if(!g.includes(E)){if(g.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}N([...g,E])}},children:"+"})]})]}),!d&&(0,a.jsx)("div",{className:"button outlined secondary",onClick:e=>{if(!(null==g?void 0:g[0])){alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list");return}t([...s,{database:(null==m?void 0:m.db_full_name)||"*",privileges:g,table:(null==f?void 0:f.table_slug)||"*"}]),L(!1)},children:"Add"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:()=>{L(!1)},children:"Cancel"})]})}):d?(0,a.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,a.jsxs)("div",{className:"button outlined gray",onClick:e=>{L(!0)},children:[(0,a.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]})]})}function f(e){let{mariaDBUser:s,edit:t,username:r}=e,{user:n}=l.useContext(A),i=(null==n?void 0:n.id)==Number("1"),d=s?Object.keys(s):["username","host","password"],c=/username|host|password/,o=i?void 0:/username/,x=/host/,p=(()=>{try{if(t&&(null==s?void 0:s.grants))return JSON.parse(s.grants);return null}catch(e){return null}})(),[m,j]=l.useState(p||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[y,f]=l.useState(!1);return(0,a.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!window.confirm(t?"Update this user?":"Create this new User?"))return;let a=Array.from(e.target),l={};if(a.forEach(e=>{"INPUT"==e.nodeName&&(l[e.name]=e.value)}),t&&!i&&delete l.username,!(null==m?void 0:m[0])){alert("Please add at least one grant");return}f(!0),(0,h.A)(t?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:l,edit:!!t,prev:s,grants:m}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),f(!1))})},className:"w-full gap-4 flex flex-col",children:[y&&(0,a.jsx)(u.A,{width:"25px"}),d.map((e,t)=>{let l=s?s[e]:"username"==e?"dsql_user_".concat(null==n?void 0:n.id):null,r=null==o?void 0:o.test(e),i=x.test(e);return e.match(c)?(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:e,children:e}),(0,a.jsx)("input",{type:e.match("password")?"password":"text",name:e,id:e,defaultValue:l||void 0,readOnly:r,className:r?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:e,required:i})]},t+1):null}),(0,a.jsx)(b,{grants:m,setGrants:j,edit:t}),(0,a.jsx)("button",{type:"submit",children:t?"Update User":"Create SQL User"})]})}function v(){let{targetMariadbUser:e}=l.useContext(A),[s,t]=l.useState(!1);return l.useEffect(()=>{t(!1),setTimeout(()=>{t(!0)},200)},[e]),(0,a.jsx)(o.Ay,{title:"edit-mariadb-user-popup",children:s&&e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{children:"Edit"}),(0,a.jsxs)("span",{className:"info inline w-auto text-xl green",children:[e.username,"@",e.host]})]})}),(0,a.jsx)("hr",{}),(0,a.jsx)(f,{mariaDBUser:e,edit:!0})]}):(0,a.jsx)("div",{className:"p-20",children:(0,a.jsx)(u.A,{width:"25px"})})})}function g(){return(0,a.jsxs)(o.Ay,{title:"new-mariadb-user-popup",children:[(0,a.jsx)("h3",{children:"New MariaDB User"}),(0,a.jsx)("hr",{}),(0,a.jsx)(f,{})]})}var N=!0;let A=l.createContext({});function E(e){let{user:s,query:t,mariadbUserCred:n,mariadbUsers:i}=e,d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"SQL Connect | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Connect to your database remotely"})]}),[c,o]=l.useState(null),[u,h]=l.useState(0);return(0,a.jsx)(A.Provider,{value:{user:s,query:t,mariadbUserCred:n,mariadbUsers:i,targetMariadbUser:c,setTargetMariadbUser:o,refresh:u,setRefresh:h},children:(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(r.A,{head:d,user:s,aceEditor:!0,children:(0,a.jsx)(y,{})}),(0,a.jsx)(v,{}),(0,a.jsx)(g,{})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[7391,636,6593,8792],()=>s(6429)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2504],{6429:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/connect",function(){return t(6525)}])},5655:(e,s,t)=>{"use strict";t.d(s,{Ay:()=>n,PB:()=>i,fs:()=>d});var a=t(4848),l=t(6897),r=t(6540);function n(e){let{children:s,title:t,data:n,fullPage:i,wrapperClasses:c,closePopupDispatch:o,wrapperStyle:u,noContainer:h}=e;return i?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(c||""),"data-popupid":t||null,style:u,children:[h?(0,a.jsx)(r.Fragment,{children:s}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:s}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),o&&o()},children:(0,a.jsx)(l.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[h?(0,a.jsx)(r.Fragment,{children:s}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[s,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),h&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]})}function i(e,s){let t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",null==s||s(t))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},7216:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7212:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},4839:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},2894:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},4909:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},6897:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6525:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ConnectContext:()=>A,__N_SSP:()=>N,default:()=>E});var a=t(4848),l=t(6540),r=t(8181),n=t(3647),i=t(4839),d=t(7290);function c(){let{user:e,query:s,mariadbUserCred:t}=l.useContext(A);return(0,a.jsx)("section",{className:"paper",children:(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:"}),(0,a.jsx)("hr",{}),(0,a.jsxs)("ul",{className:"m-0",children:[(0,a.jsxs)("li",{children:["Server:"," ",(0,a.jsx)("b",{children:"172.72.0.24"})]}),(0,a.jsxs)("li",{children:["Username: ",(0,a.jsx)("b",{children:null==t?void 0:t.mariadb_user})]}),(0,a.jsxs)("li",{children:["Host: ",(0,a.jsx)("b",{children:null==t?void 0:t.mariadb_host})]}),(0,a.jsxs)("li",{children:["Password: ",(0,a.jsx)("b",{children:"*****************"}),(0,a.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText((null==t?void 0:t.mariadb_pass)||"").then(()=>{window.alert("Copied Password!")})},children:(0,a.jsx)(i.A,{})})]}),(0,a.jsx)("li",{children:(0,a.jsxs)("div",{className:"flex",children:["SSL Certificate:"," ",(0,a.jsx)("b",{children:(0,a.jsx)("span",{className:"flex items-center gap-2",children:(0,a.jsxs)("a",{href:"https://datasquirel.com/documents/ssl/ca-cert.pem",className:"flex items-center gap-2 border-none hover:opacity-60",target:"_blank",children:[(0,a.jsx)(d.A,{}),"Download"]})})})]})})]})]})})}var o=t(5655),u=t(1710),h=t(9020),x=t(2836),p=t(7212);function m(e){var s;let{mariadbUser:t}=e,{setTargetMariadbUser:r}=l.useContext(A),n=null!==(s=String(t.primary))&&void 0!==s&&!!s.match(/1/),[d,c]=l.useState(!1);return(0,a.jsxs)("div",{className:"card w-full col"+(n?" green":""),children:[d&&(0,a.jsx)(u.A,{width:"25px"}),(0,a.jsxs)("div",{className:"w-full justify-between h-auto md:h-8 flex-wrap",children:[(0,a.jsxs)("span",{className:"title",children:[t.username,"@",t.host]}),(0,a.jsxs)("div",{children:[n&&(0,a.jsx)("span",{className:"info small w-auto",children:"Primary User"}),(0,a.jsx)("button",{className:"ghost",title:"Edit User",onClick:e=>{null==r||r(t),(0,o.PB)("edit-mariadb-user-popup")},children:(0,a.jsx)(x.A,{size:20})}),!n&&(0,a.jsx)("button",{className:"ghost -ml-6",title:"Edit User",onClick:e=>{window.confirm("Are you sure you want to delete this User?")&&(c(!0),(0,h.A)("/api/sql-users/delete",{method:"POST",body:{id:t.id}},!0).then(e=>{e.success?window.location.reload():e.msg&&window.alert(e.msg)}).finally(()=>{setTimeout(()=>{c(!1)},1e3)}))},children:(0,a.jsx)(p.A,{})})]})]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("ul",{className:"m-0",children:[(0,a.jsxs)("li",{children:["Username: ",(0,a.jsx)("b",{children:t.username})]}),(0,a.jsxs)("li",{children:["Host: ",(0,a.jsx)("b",{children:t.host}),(0,a.jsx)("span",{className:"info gray font-normal",children:"% is a wildcard. Example: 192.168.1.%"})]}),(0,a.jsxs)("li",{children:["Password: ",(0,a.jsx)("b",{children:"*****************"}),(0,a.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText(t.password||"").then(()=>{window.alert("Copied Password!")})},children:(0,a.jsx)(i.A,{size:20})})]})]})]})}function j(){let{mariadbUsers:e}=l.useContext(A);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"SQL Users"}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{onClick:e=>{(0,o.PB)("new-mariadb-user-popup")},children:"Add SQL User"})})]}),(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)"}),(0,a.jsx)("hr",{}),(0,a.jsx)("div",{className:"grid w-full grid-cols-1 xl:grid-cols-2 gap-6",children:null==e?void 0:e.map((e,s)=>(0,a.jsx)(m,{mariadbUser:e},s+1))})]})]})}function y(){let{user:e,query:s,mariadbUserCred:t}=l.useContext(A);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Connect"})}),(0,a.jsx)(n.A,{user:e})]}),(0,a.jsx)(c,{}),(0,a.jsx)(j,{})]})}function b(e){let{grants:s,setGrants:t,edit:r}=e,{user:n,targetMariadbUser:i}=l.useContext(A),d=!!String(null==i?void 0:i.primary).match(/1/)&&r,c=!!s.find(e=>"*"==e.database),o=!!s.find(e=>"*"==e.table),u=!!s.find(e=>e.privileges.includes("ALL PRIVILEGES")),[x,p]=l.useState([]),[m,j]=l.useState(),[y,b]=l.useState([]),[f,v]=l.useState(),[g,N]=l.useState(["ALL PRIVILEGES"]),[E,w]=l.useState("ALL PRIVILEGES"),[k,L]=l.useState(!1);return l.useEffect(()=>{(0,h.A)("/api/getUserDatabases").then(e=>{e.databases&&p(e.databases)})},[]),l.useEffect(()=>{(null==m?void 0:m.id)&&(0,h.A)("/api/getUserDatabaseTables?dbId=".concat(m.id)).then(e=>{e.tables&&b(e.tables)})},[m]),(0,a.jsxs)("div",{id:"grant-select-block",className:"flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded",children:[(0,a.jsx)("h4",{className:"m-0 text-lg",children:"Grants"}),(0,a.jsx)("span",{children:"This section determines fine grained access of this user to databases and tables"}),(0,a.jsx)("hr",{}),(0,a.jsx)("div",{className:"flex-wrap",children:(null==s?void 0:s[0])?s.map((e,l)=>(0,a.jsxs)("div",{className:"text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative",children:[(0,a.jsx)("span",{children:e.privileges}),(0,a.jsx)("span",{children:"="}),(0,a.jsxs)("span",{children:[" ",e.database.replace(/datasquirel_user_\d+_/,"")]}),(0,a.jsx)("span",{children:"."}),(0,a.jsx)("span",{children:e.table}),!d&&(0,a.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:e=>{let a=[...s];a.splice(l,1),t(a)},children:"x"})]},l)):(0,a.jsx)("span",{className:"text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center",children:"No Grants"})}),(0,a.jsx)("hr",{}),c&&o&&u?(0,a.jsx)("span",{className:"text-sm text-slate-500",children:'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges'}):k?(0,a.jsx)(a.Fragment,{children:d?(0,a.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:"grants-database",children:"Database"}),(0,a.jsxs)("select",{name:"grants-database",id:"grants-database",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=x.find(e=>e.db_full_name==s);t&&j(t)},children:[(0,a.jsx)("option",{value:"*",children:"--ALL-DATABASES--"}),x.map((e,s)=>(0,a.jsx)("option",{value:e.db_full_name,children:e.db_name},s+1))]})]}),(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:"grants-table",children:"Table"}),(0,a.jsxs)("select",{name:"grants-table",id:"grants-table",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=y.find(e=>e.table_slug==s);t&&v(t)},children:[(0,a.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),(null==y?void 0:y[0])&&y.map((e,s)=>(0,a.jsx)("option",{value:e.table_slug,children:e.table_name},s+1))]})]}),(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:"grants-databases",children:"Permissions"}),(0,a.jsx)("div",{className:"flex-wrap gap-y-2 mb-1",children:(null==g?void 0:g[0])?g.map((e,s)=>(0,a.jsxs)("span",{className:"text-xs px-2 py-1 border border-solid border-slate-200 rounded",children:[e,(0,a.jsx)("span",{className:"cursor-pointer p-2 hover:opacity-50",onClick:e=>{let t=[...g];t.splice(s,1),N(t)},children:"x"})]},s)):(0,a.jsx)("span",{className:"text-xs px-3 py-1 bg-slate-100 text-slate-400",children:"No Permissions Selected"})}),(0,a.jsxs)("div",{className:"w-full items-stretch",children:[(0,a.jsx)("select",{name:"grants-databases",id:"grants-databases",className:"text-sm",onChange:e=>{w(e.target.value)},children:["ALL PRIVILEGES","ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","FILE","INDEX","INSERT","LOCK TABLES","PROCESS","REFERENCES","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","SELECT","SHOW VIEW","SUPER","TRIGGER","UPDATE","USAGE"].map((e,s)=>(0,a.jsx)("option",{value:e,children:e},s))}),(0,a.jsx)("div",{className:"button outlined gray text-2xl",onClick:e=>{if(!g.includes(E)){if(g.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}N([...g,E])}},children:"+"})]})]}),!d&&(0,a.jsx)("div",{className:"button outlined secondary",onClick:e=>{if(!(null==g?void 0:g[0])){alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list");return}t([...s,{database:(null==m?void 0:m.db_full_name)||"*",privileges:g,table:(null==f?void 0:f.table_slug)||"*"}]),L(!1)},children:"Add"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:()=>{L(!1)},children:"Cancel"})]})}):d?(0,a.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,a.jsxs)("div",{className:"button outlined gray",onClick:e=>{L(!0)},children:[(0,a.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]})]})}function f(e){let{mariaDBUser:s,edit:t,username:r}=e,{user:n}=l.useContext(A),i=(null==n?void 0:n.id)==Number("1"),d=s?Object.keys(s):["username","host","password"],c=/username|host|password/,o=i?void 0:/username/,x=/host/,p=(()=>{try{if(t&&(null==s?void 0:s.grants))return JSON.parse(s.grants);return null}catch(e){return null}})(),[m,j]=l.useState(p||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[y,f]=l.useState(!1);return(0,a.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),!window.confirm(t?"Update this user?":"Create this new User?"))return;let a=Array.from(e.target),l={};if(a.forEach(e=>{"INPUT"==e.nodeName&&(l[e.name]=e.value)}),t&&!i&&delete l.username,!(null==m?void 0:m[0])){alert("Please add at least one grant");return}f(!0),(0,h.A)(t?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:l,edit:!!t,prev:s,grants:m}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),f(!1))})},className:"w-full gap-4 flex flex-col",children:[y&&(0,a.jsx)(u.A,{width:"25px"}),d.map((e,t)=>{let l=s?s[e]:"username"==e?"dsql_user_".concat(null==n?void 0:n.id):null,r=null==o?void 0:o.test(e),i=x.test(e);return e.match(c)?(0,a.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,a.jsx)("label",{htmlFor:e,children:e}),(0,a.jsx)("input",{type:e.match("password")?"password":"text",name:e,id:e,defaultValue:l||void 0,readOnly:r,className:r?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:e,required:i})]},t+1):null}),(0,a.jsx)(b,{grants:m,setGrants:j,edit:t}),(0,a.jsx)("button",{type:"submit",children:t?"Update User":"Create SQL User"})]})}function v(){let{targetMariadbUser:e}=l.useContext(A),[s,t]=l.useState(!1);return l.useEffect(()=>{t(!1),setTimeout(()=>{t(!0)},200)},[e]),(0,a.jsx)(o.Ay,{title:"edit-mariadb-user-popup",children:s&&e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{children:"Edit"}),(0,a.jsxs)("span",{className:"info inline w-auto text-xl green",children:[e.username,"@",e.host]})]})}),(0,a.jsx)("hr",{}),(0,a.jsx)(f,{mariaDBUser:e,edit:!0})]}):(0,a.jsx)("div",{className:"p-20",children:(0,a.jsx)(u.A,{width:"25px"})})})}function g(){return(0,a.jsxs)(o.Ay,{title:"new-mariadb-user-popup",children:[(0,a.jsx)("h3",{children:"New MariaDB User"}),(0,a.jsx)("hr",{}),(0,a.jsx)(f,{})]})}var N=!0;let A=l.createContext({});function E(e){let{user:s,query:t,mariadbUserCred:n,mariadbUsers:i}=e,d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"SQL Connect | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Connect to your database remotely"})]}),[c,o]=l.useState(null),[u,h]=l.useState(0);return(0,a.jsx)(A.Provider,{value:{user:s,query:t,mariadbUserCred:n,mariadbUsers:i,targetMariadbUser:c,setTargetMariadbUser:o,refresh:u,setRefresh:h},children:(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(r.A,{head:d,user:s,aceEditor:!0,children:(0,a.jsx)(y,{})}),(0,a.jsx)(v,{}),(0,a.jsx)(g,{})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[7391,636,6593,8792],()=>s(6429)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]-d46a6f8520fb0f98.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]-d46a6f8520fb0f98.js index 5c2f693..9800d2e 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]-05dbbed42a310967.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]-d46a6f8520fb0f98.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4123],{2073:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]",function(){return t(7695)}])},1670:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(9020),n=t(5655),i=t(1710);function r(e){let{targetDatabase:a}=e,[t,r]=l.useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-database-confirmation",children:[t&&(0,s.jsx)(i.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:e=>{if(!a){alert("No Target Database Selected!");return}r(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:a},!0).then(e=>{e.success&&window.location.reload()}):r(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},3702:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(9020),n=t(5655),i=t(1710);function r(e){let{targetTable:a,database:t}=e,[r,c]=l.useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[r&&(0,s.jsx)(i.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.table_name)?a.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(r?" pointer-events-none opacity-40":""),onClick:e=>{c(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:a}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},7516:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var s=t(4848),l=t(7220);function d(e){let{slugText:a,smaller:t,outlined:d,full:n}=e;return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(d?" outlined gray":"light-gray")+(t?" small-text":""),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert("".concat(n?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{children:a})]})}t(6540)},7216:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},7695:(e,a,t)=>{"use strict";t.r(a),t.d(a,{SingleDatabaseContext:()=>v,__N_SSP:()=>j,default:()=>A});var s=t(4848),l=t(6540),d=t(8181),n=t(1670),i=t(3647),r=t(5655),c=t(2438),h=t(5844),o=t(7516),y=t(900),x=t(1710),p=t(5974),u=t(3419);function m(){var e,a;let{database:t,tables:d,setTargetTable:n,confirmedDelegetedUser:m,query:b,user:k}=l.useContext(v),j=null==m?void 0:m.delegated;null==m||null===(e=m.priviledges)||void 0===e||e.match(/Edit Tables/i),null==m||null===(a=m.priviledges)||void 0===a||a.match(/Delete Tables/i);let{active_clone:A,active_clone_parent_db:g,remote_connected:f}=t,[w,M]=l.useState(!1);return(0,s.jsxs)(l.Fragment,{children:[w&&(0,s.jsx)(x.A,{}),(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)(h.A,{}),(0,s.jsxs)("div",{className:"flex-wrap gap-y-0",children:[(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[t.db_name.replace(/ database$/i,"")," ","Database"]}),(0,s.jsx)(o.A,{slugText:t.db_slug,outlined:!0}),!j&&(0,s.jsxs)("button",{className:"button small-text outlined gray",onClick:e=>{(0,p.A)({url:"/api/exportDatabase?dbName=".concat(t.db_full_name),fileName:"".concat(t.db_full_name,".sql"),setLoading:M})},children:[(0,s.jsx)(u.A,{}),(0,s.jsx)("span",{children:"Export"})]})]})]}),(0,s.jsx)("div",{className:"flex-wrap flex-col md:flex-row items-stretch md:items-center w-full md:w-auto",children:(0,s.jsxs)(y.A,{children:[!j&&!g&&!f&&(0,s.jsxs)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/tables/add-table"),className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Table"})]}),(0,s.jsx)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/tables"),className:"button secondary",children:(0,s.jsx)("span",{children:"All Tables"})}),!j&&(0,s.jsx)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/users"),className:"button dark",children:(0,s.jsx)("span",{children:"Users"})}),!j&&(0,s.jsxs)("div",{className:"dropdown-wrapper my-4 xl:my-0",children:[(0,s.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,s.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2 items-stretch",children:(0,s.jsxs)(y.A,{column:!0,children:[(0,s.jsx)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/edit-database"),className:"button outlined gray more-padding",children:(0,s.jsx)("span",{children:"Edit Database"})}),!g&&!f&&(0,s.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,r.PB)("delete-database-confirmation")},children:(0,s.jsx)("span",{children:"Delete Database"})}),!j&&(0,s.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,p.A)({url:"/api/exportDatabase?dbName=".concat(t.db_full_name),fileName:"".concat(t.db_full_name,".sql"),setLoading:M})},children:(0,s.jsx)("span",{children:"Export Database"})}),(0,s.jsxs)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/users/add-user?db=").concat(t.db_slug),className:"button outlined secondary more-padding",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add User"})]})]})})]})]})})]}),(0,s.jsx)(i.A,{confirmedDelegetedUser:b.delegated,user:k})]}),(0,s.jsx)(c.A,{database:t,tables:d,setTargetTable:n,confirmedDelegetedUser:m,query:b,user:k}),(0,s.jsxs)("section",{className:"paper green",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Triggers"}),(0,s.jsx)("hr",{}),(0,s.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]}),(0,s.jsxs)("section",{className:"paper primary",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Stored Proceedures"}),(0,s.jsx)("hr",{}),(0,s.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]})]})}var b=t(3702),k=t(5211),j=!0;let v=l.createContext({});function A(e){var a;let{user:t,database:i,tables:r,query:c,confirmedDelegetedUser:h}=e,o="".concat(i.db_name," Database | Datasquirel"),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:o}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,p]=l.useState(null);return(0,s.jsx)(v.Provider,{value:{user:t,database:i,tables:r,targetTable:x,setTargetTable:p,query:c,confirmedDelegetedUser:h},children:(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(d.A,{head:y,user:t,extraHeaderContent:(0,s.jsx)(k.A,{database:i,query:c,confirmedDelegetedUser:h,user:t}),children:(0,s.jsx)(m,{})}),!(null==h?void 0:h.delegated)&&(0,s.jsx)(n.A,{targetDatabase:i}),(!(null==h?void 0:h.delegated)||(null==h?void 0:h.delegated)&&(null==h?void 0:null===(a=h.priviledges)||void 0===a?void 0:a.match(/Delete Tables/i)))&&(0,s.jsx)(b.A,{targetTable:x,database:i})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,7391,8076,2438,636,6593,8792],()=>a(2073)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4123],{2073:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]",function(){return t(7695)}])},1670:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(9020),n=t(5655),i=t(1710);function r(e){let{targetDatabase:a}=e,[t,r]=l.useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-database-confirmation",children:[t&&(0,s.jsx)(i.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:e=>{if(!a){alert("No Target Database Selected!");return}r(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:a},!0).then(e=>{e.success&&window.location.reload()}):r(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},3702:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848),l=t(6540),d=t(9020),n=t(5655),i=t(1710);function r(e){let{targetTable:a,database:t}=e,[r,c]=l.useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[r&&(0,s.jsx)(i.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.table_name)?a.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(r?" pointer-events-none opacity-40":""),onClick:e=>{c(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:a}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},7516:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var s=t(4848),l=t(4839);function d(e){let{slugText:a,smaller:t,outlined:d,full:n}=e;return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(d?" outlined gray":"light-gray")+(t?" small-text":""),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert("".concat(n?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(l.A,{}),(0,s.jsx)("span",{children:a})]})}t(6540)},7216:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4839:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},7695:(e,a,t)=>{"use strict";t.r(a),t.d(a,{SingleDatabaseContext:()=>v,__N_SSP:()=>j,default:()=>A});var s=t(4848),l=t(6540),d=t(8181),n=t(1670),i=t(3647),r=t(5655),c=t(2438),h=t(5844),o=t(7516),y=t(900),x=t(1710),p=t(5974),u=t(3419);function m(){var e,a;let{database:t,tables:d,setTargetTable:n,confirmedDelegetedUser:m,query:b,user:k}=l.useContext(v),j=null==m?void 0:m.delegated;null==m||null===(e=m.priviledges)||void 0===e||e.match(/Edit Tables/i),null==m||null===(a=m.priviledges)||void 0===a||a.match(/Delete Tables/i);let{active_clone:A,active_clone_parent_db:g,remote_connected:f}=t,[w,M]=l.useState(!1);return(0,s.jsxs)(l.Fragment,{children:[w&&(0,s.jsx)(x.A,{}),(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)(h.A,{}),(0,s.jsxs)("div",{className:"flex-wrap gap-y-0",children:[(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[t.db_name.replace(/ database$/i,"")," ","Database"]}),(0,s.jsx)(o.A,{slugText:t.db_slug,outlined:!0}),!j&&(0,s.jsxs)("button",{className:"button small-text outlined gray",onClick:e=>{(0,p.A)({url:"/api/exportDatabase?dbName=".concat(t.db_full_name),fileName:"".concat(t.db_full_name,".sql"),setLoading:M})},children:[(0,s.jsx)(u.A,{}),(0,s.jsx)("span",{children:"Export"})]})]})]}),(0,s.jsx)("div",{className:"flex-wrap flex-col md:flex-row items-stretch md:items-center w-full md:w-auto",children:(0,s.jsxs)(y.A,{children:[!j&&!g&&!f&&(0,s.jsxs)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/tables/add-table"),className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Table"})]}),(0,s.jsx)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/tables"),className:"button secondary",children:(0,s.jsx)("span",{children:"All Tables"})}),!j&&(0,s.jsx)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/users"),className:"button dark",children:(0,s.jsx)("span",{children:"Users"})}),!j&&(0,s.jsxs)("div",{className:"dropdown-wrapper my-4 xl:my-0",children:[(0,s.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,s.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2 items-stretch",children:(0,s.jsxs)(y.A,{column:!0,children:[(0,s.jsx)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/databases/").concat(t.db_slug,"/edit-database"),className:"button outlined gray more-padding",children:(0,s.jsx)("span",{children:"Edit Database"})}),!g&&!f&&(0,s.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,r.PB)("delete-database-confirmation")},children:(0,s.jsx)("span",{children:"Delete Database"})}),!j&&(0,s.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,p.A)({url:"/api/exportDatabase?dbName=".concat(t.db_full_name),fileName:"".concat(t.db_full_name,".sql"),setLoading:M})},children:(0,s.jsx)("span",{children:"Export Database"})}),(0,s.jsxs)("a",{href:"/admin/".concat(null==k?void 0:k.id,"/users/add-user?db=").concat(t.db_slug),className:"button outlined secondary more-padding",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add User"})]})]})})]})]})})]}),(0,s.jsx)(i.A,{confirmedDelegetedUser:b.delegated,user:k})]}),(0,s.jsx)(c.A,{database:t,tables:d,setTargetTable:n,confirmedDelegetedUser:m,query:b,user:k}),(0,s.jsxs)("section",{className:"paper green",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Triggers"}),(0,s.jsx)("hr",{}),(0,s.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]}),(0,s.jsxs)("section",{className:"paper primary",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Stored Proceedures"}),(0,s.jsx)("hr",{}),(0,s.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]})]})}var b=t(3702),k=t(5211),j=!0;let v=l.createContext({});function A(e){var a;let{user:t,database:i,tables:r,query:c,confirmedDelegetedUser:h}=e,o="".concat(i.db_name," Database | Datasquirel"),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:o}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,p]=l.useState(null);return(0,s.jsx)(v.Provider,{value:{user:t,database:i,tables:r,targetTable:x,setTargetTable:p,query:c,confirmedDelegetedUser:h},children:(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(d.A,{head:y,user:t,extraHeaderContent:(0,s.jsx)(k.A,{database:i,query:c,confirmedDelegetedUser:h,user:t}),children:(0,s.jsx)(m,{})}),!(null==h?void 0:h.delegated)&&(0,s.jsx)(n.A,{targetDatabase:i}),(!(null==h?void 0:h.delegated)||(null==h?void 0:h.delegated)&&(null==h?void 0:null===(a=h.priviledges)||void 0===a?void 0:a.match(/Delete Tables/i)))&&(0,s.jsx)(b.A,{targetTable:x,database:i})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,7391,8076,2438,636,6593,8792],()=>a(2073)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/connect-adbc0491ae2ebe2b.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/connect-adbc0491ae2ebe2b.js index 4081175..b3fe96c 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/connect-3a065ea39acafd03.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/connect-adbc0491ae2ebe2b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7552],{3836:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/connect",function(){return a(9039)}])},1671:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(4848);function l(e){let{radioValues:t,name:a,onChangeHandler:l,setAlert:n,flexRow:r,labelColor:i,baseText:d,smallText:c,className:o}=e;try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(r?"":" flex-col ")+(o||""),children:t.map((e,t)=>{let{payload:r,title:o,jsx:h}=e,u=!1===r?r:r||o||null;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{className:"m-0"+(d?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:a,id:a+"_"+u,onChange:t=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(t):l&&l(t)},value:"string"==typeof u?u:void 0}),h||(0,s.jsx)("label",{htmlFor:a+"_"+u,className:"text-lg m-0 "+(i||"text-slate-800")+(d?" text-base":c?" text-sm":" text-lg"),children:o})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(6540)},6959:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(2027);function n(e){let{selectOptions:t,name:a,onChangeHandler:n,required:r,setAlert:i,title:d,defaultValue:c,info:o,id:h}=e;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"+(o?" pr-8":""),children:[d&&(0,s.jsxs)("label",{htmlFor:a,children:[d,r?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:a,id:h||a,className:"w-full bg-white",required:r,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),n&&n(e)},defaultValue:c||void 0,children:t.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}),o&&(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:o})}),(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(6540)},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},9039:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DatabaseConnectContext:()=>b,__N_SSP:()=>f,default:()=>v});var s=a(4848),l=a(6540),n=a(8181),r=a(5211),i=a(5844),d=a(3647),c=a(9020),o=a(9268),h=a(1710),u=a(1671),m=a(6959);function p(e){let{database:t,targetDbSchema:a,user:n}=e,[r,i]=l.useState(!1),[d,m]=l.useState(!1),[p,y]=l.useState("pull"),[f,b]=l.useState(null);return r&&f?(0,s.jsx)(x,{payload:f,setConnectPayload:b,setIsValid:i,user:n}):(0,s.jsxs)("form",{onSubmit:e=>{!function(e){let{e:t,setLoading:a,database:s,type:l,targetDbSchema:n,setIsValid:r,setConnectPayload:i}=e;t.preventDefault();let d=t.target;a(!0);let o={url:d["remote-address"].value,key:d["remote-key"].value,database:s,dbSchema:n,type:l};(0,c.A)("/api/connect/verify",{method:"POST",body:o},!0).then(e=>{e.success?(r(!0),i({...o,remoteDbs:e.payload})):(console.log(e),setTimeout(()=>{a(!1)},2e3))}).finally(()=>{setTimeout(()=>{a(!1)},2e3)})}({e,setLoading:m,database:t,type:p,targetDbSchema:a,setIsValid:i,setConnectPayload:b})},className:"w-full flex flex-col items-start justify-start gap-4 static",children:[d&&(0,s.jsx)(h.A,{}),(null==p?void 0:p.match(/pull/))?(0,s.jsx)("div",{className:"info warning",children:"NOTE: This will override your current Database Schema"}):(0,s.jsx)("div",{className:"info green",children:"NOTE: The remote database will be updated with this Database Info"}),(0,s.jsx)("span",{children:"This Feature links this current database to a remote database schema"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded",children:[(0,s.jsx)("span",{className:"font-bold",children:"Select the connection type"}),(0,s.jsx)(u.A,{radioValues:[{title:"Pull",payload:"pull",default:!0},{title:"Push",payload:"push",default:!1}],flexRow:!0,onChangeHandler:e=>{y(e.target.value)},name:"type-radio"}),(0,s.jsxs)("div",{children:[p.match(/pull/i)&&(0,s.jsx)("span",{children:"A pull connection imposes the remote database on your current database"}),p.match(/push/i)&&(0,s.jsx)("span",{children:"A push connection imposes your current database to the remote"})]})]}),(0,s.jsx)(o.A,{placeholder:"Eg. https://domain.com",title:"Remote Origin Address",name:"remote-address",required:!0}),(0,s.jsx)(o.A,{placeholder:"Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC",title:"Remote API key (Full Access)",name:"remote-key",required:!0}),(0,s.jsx)("button",{className:"w-full",children:"Verify Remote"})]})}function x(e){var t,a;let{payload:n,setConnectPayload:r,setIsValid:i,user:d}=e,[o,u]=l.useState(!1);if(!(null==n?void 0:null===(t=n.remoteDbs)||void 0===t?void 0:t[0]))return(0,s.jsx)("span",{children:"No Databases Available on this Remote server."});let p=n.remoteDbs;if(!(null==p?void 0:p[0]))return(0,s.jsx)("span",{children:"The only Database Available here is this current Database"});let[x,y]=l.useState(p[0]);return(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),window.confirm("Connect these Databases?")&&(u(!0),(0,c.A)("/api/connect/handshake",{method:"POST",body:{...n,targetDb:x}},!0).then(e=>{e.success?window.location.pathname="/admin/".concat(null==d?void 0:d.id,"/databases/").concat(n.database.db_slug):(console.log(e),alert((null==e?void 0:e.msg)||"Something Went Wrong"))}).finally(()=>{setTimeout(()=>{u(!1)},1e3)}))},className:"w-full gap-4 flex flex-col items-start justify-start",children:[o&&(0,s.jsx)(h.A,{}),(0,s.jsxs)("h2",{className:"text-xl font-normal",children:["Select Database from"," ",(0,s.jsx)("b",{className:"text-black dark:text-white",children:n.url})," ","Remote Server"]}),(0,s.jsx)(m.A,{selectOptions:p.map(e=>({payload:e.dbFullName,title:e.dbName})),onChangeHandler:e=>{let t=e.target.value;if(t){let e=p.find(e=>e.dbFullName==t);e?y(e):alert("Failed to Select Target Database. Please reload the page and try again.")}}}),(0,s.jsxs)("span",{children:["Connection type:"," ",(0,s.jsx)("b",{className:"info inline small "+((null===(a=n.type)||void 0===a?void 0:a.match(/pull/i))?"warning":"green"),children:n.type})]}),(0,s.jsx)("button",{className:"w-full",children:"Connect Database"}),(0,s.jsx)("div",{className:"button outlined gray w-full",onClick:e=>{i(!1),r(null)},children:"Reset"})]})}function y(){let{database:e,user:t,targetDbSchema:a,query:n}=l.useContext(b);if(!t)return null;try{return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[null==e?void 0:e.db_name," Database Connect"]})})]}),(0,s.jsx)(d.A,{user:t})]}),(0,s.jsx)("div",{className:"paper w-full",children:(0,s.jsxs)("div",{className:"flex max-w-5xl w-full flex-col items-start gap-4",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Connect External Database Schema"}),(0,s.jsx)(p,{database:e,targetDbSchema:a,user:t})]})})]})}catch(a){return l.useEffect(()=>{(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellContent/catch-error-return",message:a.message,user:t}})},[]),(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:null==e?void 0:e.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Connect"})]})]}),(0,s.jsx)(d.A,{user:t})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Db connect unavailable at this time."})})]})}}var f=!0;let b=l.createContext({});function v(e){let{user:t,database:a,query:l,targetDbSchema:i}=e,d=(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"})]});return(0,s.jsx)(n.A,{head:d,user:t,extraHeaderContent:(0,s.jsx)(r.A,{database:a,query:l,user:t}),aceEditor:!0,children:(0,s.jsx)(b.Provider,{value:{user:t,database:a,targetDbSchema:i,query:l},children:(0,s.jsx)(y,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,9268,636,6593,8792],()=>t(3836)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7552],{3836:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/connect",function(){return a(9039)}])},1671:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(4848);function l(e){let{radioValues:t,name:a,onChangeHandler:l,setAlert:n,flexRow:r,labelColor:i,baseText:d,smallText:c,className:o}=e;try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(r?"":" flex-col ")+(o||""),children:t.map((e,t)=>{let{payload:r,title:o,jsx:h}=e,u=!1===r?r:r||o||null;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{className:"m-0"+(d?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:a,id:a+"_"+u,onChange:t=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(t):l&&l(t)},value:"string"==typeof u?u:void 0}),h||(0,s.jsx)("label",{htmlFor:a+"_"+u,className:"text-lg m-0 "+(i||"text-slate-800")+(d?" text-base":c?" text-sm":" text-lg"),children:o})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(6540)},6959:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(2027);function n(e){let{selectOptions:t,name:a,onChangeHandler:n,required:r,setAlert:i,title:d,defaultValue:c,info:o,id:h}=e;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"+(o?" pr-8":""),children:[d&&(0,s.jsxs)("label",{htmlFor:a,children:[d,r?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:a,id:h||a,className:"w-full bg-white",required:r,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),n&&n(e)},defaultValue:c||void 0,children:t.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}),o&&(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:o})}),(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(6540)},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},9039:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DatabaseConnectContext:()=>b,__N_SSP:()=>f,default:()=>v});var s=a(4848),l=a(6540),n=a(8181),r=a(5211),i=a(5844),d=a(3647),c=a(9020),o=a(9268),h=a(1710),u=a(1671),m=a(6959);function p(e){let{database:t,targetDbSchema:a,user:n}=e,[r,i]=l.useState(!1),[d,m]=l.useState(!1),[p,y]=l.useState("pull"),[f,b]=l.useState(null);return r&&f?(0,s.jsx)(x,{payload:f,setConnectPayload:b,setIsValid:i,user:n}):(0,s.jsxs)("form",{onSubmit:e=>{!function(e){let{e:t,setLoading:a,database:s,type:l,targetDbSchema:n,setIsValid:r,setConnectPayload:i}=e;t.preventDefault();let d=t.target;a(!0);let o={url:d["remote-address"].value,key:d["remote-key"].value,database:s,dbSchema:n,type:l};(0,c.A)("/api/connect/verify",{method:"POST",body:o},!0).then(e=>{e.success?(r(!0),i({...o,remoteDbs:e.payload})):(console.log(e),setTimeout(()=>{a(!1)},2e3))}).finally(()=>{setTimeout(()=>{a(!1)},2e3)})}({e,setLoading:m,database:t,type:p,targetDbSchema:a,setIsValid:i,setConnectPayload:b})},className:"w-full flex flex-col items-start justify-start gap-4 static",children:[d&&(0,s.jsx)(h.A,{}),(null==p?void 0:p.match(/pull/))?(0,s.jsx)("div",{className:"info warning",children:"NOTE: This will override your current Database Schema"}):(0,s.jsx)("div",{className:"info green",children:"NOTE: The remote database will be updated with this Database Info"}),(0,s.jsx)("span",{children:"This Feature links this current database to a remote database schema"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded",children:[(0,s.jsx)("span",{className:"font-bold",children:"Select the connection type"}),(0,s.jsx)(u.A,{radioValues:[{title:"Pull",payload:"pull",default:!0},{title:"Push",payload:"push",default:!1}],flexRow:!0,onChangeHandler:e=>{y(e.target.value)},name:"type-radio"}),(0,s.jsxs)("div",{children:[p.match(/pull/i)&&(0,s.jsx)("span",{children:"A pull connection imposes the remote database on your current database"}),p.match(/push/i)&&(0,s.jsx)("span",{children:"A push connection imposes your current database to the remote"})]})]}),(0,s.jsx)(o.A,{placeholder:"Eg. https://domain.com",title:"Remote Origin Address",name:"remote-address",required:!0}),(0,s.jsx)(o.A,{placeholder:"Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC",title:"Remote API key (Full Access)",name:"remote-key",required:!0}),(0,s.jsx)("button",{className:"w-full",children:"Verify Remote"})]})}function x(e){var t,a;let{payload:n,setConnectPayload:r,setIsValid:i,user:d}=e,[o,u]=l.useState(!1);if(!(null==n?void 0:null===(t=n.remoteDbs)||void 0===t?void 0:t[0]))return(0,s.jsx)("span",{children:"No Databases Available on this Remote server."});let p=n.remoteDbs;if(!(null==p?void 0:p[0]))return(0,s.jsx)("span",{children:"The only Database Available here is this current Database"});let[x,y]=l.useState(p[0]);return(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),window.confirm("Connect these Databases?")&&(u(!0),(0,c.A)("/api/connect/handshake",{method:"POST",body:{...n,targetDb:x}},!0).then(e=>{e.success?window.location.pathname="/admin/".concat(null==d?void 0:d.id,"/databases/").concat(n.database.db_slug):(console.log(e),alert((null==e?void 0:e.msg)||"Something Went Wrong"))}).finally(()=>{setTimeout(()=>{u(!1)},1e3)}))},className:"w-full gap-4 flex flex-col items-start justify-start",children:[o&&(0,s.jsx)(h.A,{}),(0,s.jsxs)("h2",{className:"text-xl font-normal",children:["Select Database from"," ",(0,s.jsx)("b",{className:"text-black dark:text-white",children:n.url})," ","Remote Server"]}),(0,s.jsx)(m.A,{selectOptions:p.map(e=>({payload:e.dbFullName,title:e.dbName})),onChangeHandler:e=>{let t=e.target.value;if(t){let e=p.find(e=>e.dbFullName==t);e?y(e):alert("Failed to Select Target Database. Please reload the page and try again.")}}}),(0,s.jsxs)("span",{children:["Connection type:"," ",(0,s.jsx)("b",{className:"info inline small "+((null===(a=n.type)||void 0===a?void 0:a.match(/pull/i))?"warning":"green"),children:n.type})]}),(0,s.jsx)("button",{className:"w-full",children:"Connect Database"}),(0,s.jsx)("div",{className:"button outlined gray w-full",onClick:e=>{i(!1),r(null)},children:"Reset"})]})}function y(){let{database:e,user:t,targetDbSchema:a,query:n}=l.useContext(b);if(!t)return null;try{return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[null==e?void 0:e.db_name," Database Connect"]})})]}),(0,s.jsx)(d.A,{user:t})]}),(0,s.jsx)("div",{className:"paper w-full",children:(0,s.jsxs)("div",{className:"flex max-w-5xl w-full flex-col items-start gap-4",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Connect External Database Schema"}),(0,s.jsx)(p,{database:e,targetDbSchema:a,user:t})]})})]})}catch(a){return l.useEffect(()=>{(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellContent/catch-error-return",message:a.message,user:t}})},[]),(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:null==e?void 0:e.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Connect"})]})]}),(0,s.jsx)(d.A,{user:t})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Db connect unavailable at this time."})})]})}}var f=!0;let b=l.createContext({});function v(e){let{user:t,database:a,query:l,targetDbSchema:i}=e,d=(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"})]});return(0,s.jsx)(n.A,{head:d,user:t,extraHeaderContent:(0,s.jsx)(r.A,{database:a,query:l,user:t}),aceEditor:!0,children:(0,s.jsx)(b.Provider,{value:{user:t,database:a,targetDbSchema:i,query:l},children:(0,s.jsx)(y,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,9268,636,6593,8792],()=>t(3836)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1fa62e8a98f0558f.js similarity index 95% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1fa62e8a98f0558f.js index 640bbea..329fce3 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1f2bf0df5f51fa43.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-1fa62e8a98f0558f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4076],{6892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/edit-database",function(){return t(8708)}])},8064:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848);function r(e){var a;let{database:t,user:r}=e,d=null===(a=t.active_clone_parent_db)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,""),l="/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d);return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:l,target:"_blank",className:"query-url",children:d})})]})})}t(6540)},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},8708:(e,a,t)=>{"use strict";t.r(a),t.d(a,{EditDatabaseContext:()=>b,__N_SSP:()=>j,default:()=>v});var s=t(4848),r=t(6540),d=t(8181),l=t(2592),n=t(5844),i=t(3647),c=t(1710),h=t(7168),u=t(3605);function x(){let{user:e,dbImage:a,setDbImage:t,database:d}=r.useContext(b),[l,n]=r.useState(!1);return r.useRef(),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[l&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),e&&a?(0,s.jsx)(h.A,{user:e,dbImage:a,setDbImage:t,database:d,setLoading:n}):(0,s.jsx)("span",{children:"No User and Database Image present"})]}),e&&a&&t?(0,s.jsx)(u.A,{user:e,dbImage:a,setDbImage:t,database:d}):(0,s.jsx)("span",{children:"Database Image could not be rendered"})]})})}var o=t(8064);function m(){let{database:e,user:a}=r.useContext(b);return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,s.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:null==e?void 0:e.db_name})]})]}),(0,s.jsx)(i.A,{user:a})]}),(null==e?void 0:e.active_clone)&&a?(0,s.jsx)(o.A,{database:e,user:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(x,{})]})}var p=t(5211),j=!0;let b=r.createContext({});function v(e){let{user:a,database:t,query:n}=e,i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,h]=r.useState(t.db_image);return(0,s.jsx)(b.Provider,{value:{user:a,database:t,dbImage:c,setDbImage:h},children:(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(d.A,{head:i,user:a,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:n,user:a}),children:(0,s.jsx)(m,{})}),(0,s.jsx)(l.A,{setDbImage:h})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,3867,636,6593,8792],()=>a(6892)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4076],{6892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/edit-database",function(){return t(8708)}])},8064:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848);function r(e){var a;let{database:t,user:r}=e,d=null===(a=t.active_clone_parent_db)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,""),l="/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d);return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:l,target:"_blank",className:"query-url",children:d})})]})})}t(6540)},4839:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},8708:(e,a,t)=>{"use strict";t.r(a),t.d(a,{EditDatabaseContext:()=>b,__N_SSP:()=>j,default:()=>v});var s=t(4848),r=t(6540),d=t(8181),l=t(2592),n=t(5844),i=t(3647),c=t(1710),h=t(7168),u=t(3605);function x(){let{user:e,dbImage:a,setDbImage:t,database:d}=r.useContext(b),[l,n]=r.useState(!1);return r.useRef(),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[l&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),e&&a?(0,s.jsx)(h.A,{user:e,dbImage:a,setDbImage:t,database:d,setLoading:n}):(0,s.jsx)("span",{children:"No User and Database Image present"})]}),e&&a&&t?(0,s.jsx)(u.A,{user:e,dbImage:a,setDbImage:t,database:d}):(0,s.jsx)("span",{children:"Database Image could not be rendered"})]})})}var o=t(8064);function m(){let{database:e,user:a}=r.useContext(b);return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,s.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:null==e?void 0:e.db_name})]})]}),(0,s.jsx)(i.A,{user:a})]}),(null==e?void 0:e.active_clone)&&a?(0,s.jsx)(o.A,{database:e,user:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(x,{})]})}var p=t(5211),j=!0;let b=r.createContext({});function v(e){let{user:a,database:t,query:n}=e,i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,h]=r.useState(t.db_image);return(0,s.jsx)(b.Provider,{value:{user:a,database:t,dbImage:c,setDbImage:h},children:(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(d.A,{head:i,user:a,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:n,user:a}),children:(0,s.jsx)(m,{})}),(0,s.jsx)(l.A,{setDbImage:h})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,1335,7391,8076,8319,6272,636,6593,8792],()=>a(6892)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/schema-36ce4fa776487307.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/schema-36ce4fa776487307.js index db7db5a..f4cf910 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/schema-8b9d66b8d3cb2a1a.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/schema-36ce4fa776487307.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{4892:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/schema",function(){return a(3439)}])},6100:(e,t,a)=>{"use strict";function s(e){let{editorHTMLElementRef:t,fieldObject:a,setRefresh:s,language:r="javascript",entry:l,jsonTextEditors:i,editorRef:n,readOnly:d,initialContent:c,options:h}=e;try{var o;if(!(null===(o=ace)||void 0===o?void 0:o.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==s||s(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+r,value:c||((null==a?void 0:a.defaultValue)?a.defaultValue:(null==a?void 0:a.fieldName)&&(null==l?void 0:l[a.fieldName])?(()=>{if("json"!==r)return l[a.fieldName];try{return JSON.stringify(JSON.parse(l[a.fieldName]),null,4)}catch(e){return l[a.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:d,...h}),n&&(null==a?void 0:a.fieldName)&&(null==i||i.current.push({fieldName:a.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}a.d(t,{A:()=>s})},6959:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(4848),r=a(2027);function l(e){let{selectOptions:t,name:a,onChangeHandler:l,required:i,setAlert:n,title:d,defaultValue:c,info:h,id:o}=e;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"+(h?" pr-8":""),children:[d&&(0,s.jsxs)("label",{htmlFor:a,children:[d,i?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:a,id:o||a,className:"w-full bg-white",required:i,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:c||void 0,children:t.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}),h&&(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:h})}),(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(6540)},3231:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(4848),r=a(9020),l=a(6540),i=a(6100),n=a(856);function d(e){let{editorRef:t,content:a,readOnly:d,language:c="javascript",options:h,wrapperProps:o}=e;try{let e=l.useRef(),[r,u]=l.useState(0);return l.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:u,language:c,readOnly:d,initialContent:a,options:h})},[r,a]),(0,s.jsx)("div",{...o,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==o?void 0:o.className)})}catch(e){return l.useEffect(()=>{(0,r.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6793:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},3439:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DatabaseSchemaContext:()=>k,__N_SSP:()=>f,default:()=>b});var s=a(4848),r=a(6540),l=a(8181),i=a(5211),n=a(5844),d=a(3647),c=a(6959),h=a(9020);function o(e){let{database:t,dbSchemaData:a,tables:l,user:i}=r.useContext(k);try{return(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),l&&l[0]&&l.map((e,t)=>(0,s.jsx)("div",{className:"card light-gray w-full",children:(0,s.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return r.useEffect(()=>{(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseTablesPreview/catch-error-return",message:e.message,user:i}})},[]),(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:null==t?void 0:t.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(d.A,{user:i})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}var u=a(3231),y=a(8064),m=a(2438),x=a(6793);function p(){let{database:e,dbSchemaData:t,tables:a,user:l}=r.useContext(k);try{if(!t)return(0,s.jsx)("span",{children:"No Database Schema Found!"});let a=t.filter(t=>t.dbFullName===(null==e?void 0:e.db_full_name))[0],[i,p]=r.useState(a.tables),[f,k]=r.useState(null),[b,v]=r.useState(a);if(r.useEffect(()=>{if(f)try{let e=i.filter(e=>e.tableName===f)[0];v(e)}catch(e){(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseSchemaContent/main-return",message:e.message,user:l}})}else p(a.tables),v(a)},[f]),!e)return(0,s.jsx)("span",{children:"No Database Record Found"});return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(d.A,{user:l})]}),e.active_clone&&l?(0,s.jsx)(y.A,{database:e,user:l}):(0,s.jsx)(s.Fragment,{}),e.remote_connected?(0,s.jsx)(m.p,{database:e}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsx)("div",{children:i&&i[0]&&(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...i.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{var t;(null===(t=e.target.value)||void 0===t?void 0:t.match(/^none$/))?k(null):k(e.target.value)}})})]}),(0,s.jsx)(u.A,{content:x.A.stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,s.jsx)(o,{})]})}catch(t){return r.useEffect(()=>{(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseSchemaContent/catch-error-return",message:t.message,user:l}})},[]),(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:(null==e?void 0:e.db_name)||null}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(d.A,{user:l})]}),(0,s.jsx)("section",{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}var f=!0;let k=r.createContext({});function b(e){let{user:t,database:a,query:n,dbSchemaData:d,tables:c}=e,h=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[o,u]=r.useState(a.db_image);return(0,s.jsx)(l.A,{head:h,user:t,extraHeaderContent:(0,s.jsx)(i.A,{database:a,query:n,user:t}),aceEditor:!0,children:(0,s.jsx)(k.Provider,{value:{user:t,database:a,dbImage:o,setDbImage:u,dbSchemaData:d,tables:c},children:(0,s.jsx)(p,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,2438,636,6593,8792],()=>t(4892)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{4892:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/schema",function(){return a(3439)}])},6100:(e,t,a)=>{"use strict";function s(e){let{editorHTMLElementRef:t,fieldObject:a,setRefresh:s,language:r="javascript",entry:l,jsonTextEditors:i,editorRef:n,readOnly:d,initialContent:c,options:h}=e;try{var o;if(!(null===(o=ace)||void 0===o?void 0:o.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==s||s(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+r,value:c||((null==a?void 0:a.defaultValue)?a.defaultValue:(null==a?void 0:a.fieldName)&&(null==l?void 0:l[a.fieldName])?(()=>{if("json"!==r)return l[a.fieldName];try{return JSON.stringify(JSON.parse(l[a.fieldName]),null,4)}catch(e){return l[a.fieldName]}})():""),placeholder:"json"==r?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:d,...h}),n&&(null==a?void 0:a.fieldName)&&(null==i||i.current.push({fieldName:a.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}a.d(t,{A:()=>s})},6959:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(4848),r=a(2027);function l(e){let{selectOptions:t,name:a,onChangeHandler:l,required:i,setAlert:n,title:d,defaultValue:c,info:h,id:o}=e;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"+(h?" pr-8":""),children:[d&&(0,s.jsxs)("label",{htmlFor:a,children:[d,i?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:a,id:o||a,className:"w-full bg-white",required:i,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:c||void 0,children:t.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}),h&&(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:h})}),(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(6540)},3231:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(4848),r=a(9020),l=a(6540),i=a(6100),n=a(856);function d(e){let{editorRef:t,content:a,readOnly:d,language:c="javascript",options:h,wrapperProps:o}=e;try{let e=l.useRef(),[r,u]=l.useState(0);return l.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:u,language:c,readOnly:d,initialContent:a,options:h})},[r,a]),(0,s.jsx)("div",{...o,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==o?void 0:o.className)})}catch(e){return l.useEffect(()=>{(0,r.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,s.jsx)(l.Fragment,{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6793:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},3439:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DatabaseSchemaContext:()=>k,__N_SSP:()=>f,default:()=>b});var s=a(4848),r=a(6540),l=a(8181),i=a(5211),n=a(5844),d=a(3647),c=a(6959),h=a(9020);function o(e){let{database:t,dbSchemaData:a,tables:l,user:i}=r.useContext(k);try{return(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),l&&l[0]&&l.map((e,t)=>(0,s.jsx)("div",{className:"card light-gray w-full",children:(0,s.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return r.useEffect(()=>{(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseTablesPreview/catch-error-return",message:e.message,user:i}})},[]),(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:null==t?void 0:t.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(d.A,{user:i})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}var u=a(3231),y=a(8064),m=a(2438),x=a(6793);function p(){let{database:e,dbSchemaData:t,tables:a,user:l}=r.useContext(k);try{if(!t)return(0,s.jsx)("span",{children:"No Database Schema Found!"});let a=t.filter(t=>t.dbFullName===(null==e?void 0:e.db_full_name))[0],[i,p]=r.useState(a.tables),[f,k]=r.useState(null),[b,v]=r.useState(a);if(r.useEffect(()=>{if(f)try{let e=i.filter(e=>e.tableName===f)[0];v(e)}catch(e){(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseSchemaContent/main-return",message:e.message,user:l}})}else p(a.tables),v(a)},[f]),!e)return(0,s.jsx)("span",{children:"No Database Record Found"});return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:e.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(d.A,{user:l})]}),e.active_clone&&l?(0,s.jsx)(y.A,{database:e,user:l}):(0,s.jsx)(s.Fragment,{}),e.remote_connected?(0,s.jsx)(m.p,{database:e}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,s.jsx)("div",{children:i&&i[0]&&(0,s.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...i.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{var t;(null===(t=e.target.value)||void 0===t?void 0:t.match(/^none$/))?k(null):k(e.target.value)}})})]}),(0,s.jsx)(u.A,{content:x.A.stringify(b,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})}),(0,s.jsx)(o,{})]})}catch(t){return r.useEffect(()=>{(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseSchemaContent/catch-error-return",message:t.message,user:l}})},[]),(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.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:(null==e?void 0:e.db_name)||null}),"\xa0",(0,s.jsx)("span",{children:"Database Schema"})]})]}),(0,s.jsx)(d.A,{user:l})]}),(0,s.jsx)("section",{children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}var f=!0;let k=r.createContext({});function b(e){let{user:t,database:a,query:n,dbSchemaData:d,tables:c}=e,h=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[o,u]=r.useState(a.db_image);return(0,s.jsx)(l.A,{head:h,user:t,extraHeaderContent:(0,s.jsx)(i.A,{database:a,query:n,user:t}),aceEditor:!0,children:(0,s.jsx)(k.Provider,{value:{user:t,database:a,dbImage:o,setDbImage:u,dbSchemaData:d,tables:c},children:(0,s.jsx)(p,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,2438,636,6593,8792],()=>t(4892)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/shell-7f3f6c277320a54e.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/shell-7f3f6c277320a54e.js index 300289d..c9cad0d 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/shell-dff01c9e4cff1d7e.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/shell-7f3f6c277320a54e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[204],{8828:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/shell",function(){return a(3085)}])},6100:(e,t,a)=>{"use strict";function l(e){let{editorHTMLElementRef:t,fieldObject:a,setRefresh:l,language:s="javascript",entry:r,jsonTextEditors:i,editorRef:n,readOnly:d,initialContent:c,options:o}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==l||l(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+s,value:c||((null==a?void 0:a.defaultValue)?a.defaultValue:(null==a?void 0:a.fieldName)&&(null==r?void 0:r[a.fieldName])?(()=>{if("json"!==s)return r[a.fieldName];try{return JSON.stringify(JSON.parse(r[a.fieldName]),null,4)}catch(e){return r[a.fieldName]}})():""),placeholder:"json"==s?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:d,...o}),n&&(null==a?void 0:a.fieldName)&&(null==i||i.current.push({fieldName:a.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}a.d(t,{A:()=>l})},3231:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(4848),s=a(9020),r=a(6540),i=a(6100),n=a(856);function d(e){let{editorRef:t,content:a,readOnly:d,language:c="javascript",options:o,wrapperProps:u}=e;try{let e=r.useRef(),[s,h]=r.useState(0);return r.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:h,language:c,readOnly:d,initialContent:a,options:o})},[s,a]),(0,l.jsx)("div",{...u,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==u?void 0:u.className)})}catch(e){return r.useEffect(()=>{(0,s.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,l.jsx)(r.Fragment,{children:(0,l.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},3085:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DatabaseShellContext:()=>y,__N_SSP:()=>p,default:()=>x});var l=a(4848),s=a(6540),r=a(8181),i=a(5211),n=a(5844),d=a(3647),c=a(1710),o=a(9020),u=a(3231);function h(e){let{data:t,user:a}=e;try{return Object.keys(t[0]),(0,l.jsx)(s.Fragment,{children:(0,l.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,l.jsx)(u.A,{content:JSON.stringify(t,null,4)})})})}catch(e){return s.useEffect(()=>{(0,o.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellQueryResult/catch-error-return",message:e.message,user:a}})},[]),(0,l.jsx)(s.Fragment,{children:(0,l.jsx)("span",{children:"No results"})})}}function m(){let{database:e,dbSchemaData:t,tables:a,user:r}=s.useContext(y);if(!r)return null;try{let t=s.useRef(),u=s.useRef(),[m,p]=s.useState(!1),[y,x]=s.useState(!1),[f,v]=s.useState(0);function i(){p(!0);let t=u.current?u.current.getValue():null;if(!(null==t?void 0:t.match(/./)))return;let l=t.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,o.A)("/api/runUserDbQuery",{method:"post",body:{database:null==e?void 0:e.db_slug,query:l,tables:null==a?void 0:a.map(e=>e.tableSlug)}},!0).then(e=>{e.success?x(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{p(!1)},500)})}return s.useEffect(()=>{var t;if(!(null===(t=ace)||void 0===t?void 0:t.edit)){setTimeout(()=>{v(e=>e+1)},1e3);return}let l=ace.edit("ace-editor-wrapper");l.setOptions({mode:"ace/mode/mysql",theme:"ace/theme/twilight",value:"SELECT * FROM `".concat(null==e?void 0:e.db_full_name,"`.`").concat((null==a?void 0:a[0])?a[0].tableSlug:"no_tables_yet","`"),placeholder:"Type an SQL query",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),l.commands.addCommand({name:"myCommand",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},exec:function(e){i()},readOnly:!0}),u.current=l},[f]),(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(n.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:(0,l.jsxs)("span",{children:[null==e?void 0:e.db_name," Database Shell"]})})]}),(0,l.jsx)(d.A,{user:r})]}),(0,l.jsxs)("div",{className:"w-full flex-col relative",children:[(0,l.jsx)("div",{ref:t,id:"ace-editor-wrapper"}),(0,l.jsxs)("button",{className:"absolute right-4 bottom-4"+(m?" pointer-events-none opacity-70":""),onClick:e=>{i()},children:[m&&(0,l.jsx)(c.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),m?"Running Query ...":"Run Query"]})]}),y&&!m&&(0,l.jsx)("section",{className:"card",children:(0,l.jsxs)("div",{className:"w-full flex-col items-start overflow-x-scroll",children:[(0,l.jsx)("h2",{className:"text-xl",children:"Query Results"}),(0,l.jsx)(h,{data:y,user:r})]})})]})}catch(t){return s.useEffect(()=>{(0,o.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellContent/catch-error-return",message:t.message,user:r}})},[]),(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(n.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[(0,l.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:null==e?void 0:e.db_name}),"\xa0",(0,l.jsx)("span",{children:"Database Shell"})]})]}),(0,l.jsx)(d.A,{user:r})]}),(0,l.jsx)("section",{className:"card",children:(0,l.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})]})}}var p=!0;let y=s.createContext({});function x(e){let{user:t,database:a,query:n,dbSchemaData:d,tables:c}=e,o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Database Shell"}),(0,l.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]}),[u,h]=s.useState(a.db_image);return(0,l.jsx)(r.A,{head:o,user:t,extraHeaderContent:(0,l.jsx)(i.A,{database:a,query:n,user:t}),aceEditor:!0,children:(0,l.jsx)(y.Provider,{value:{user:t,database:a,dbImage:u,setDbImage:h,dbSchemaData:d,tables:c},children:(0,l.jsx)(m,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,636,6593,8792],()=>t(8828)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[204],{8828:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/shell",function(){return a(3085)}])},6100:(e,t,a)=>{"use strict";function l(e){let{editorHTMLElementRef:t,fieldObject:a,setRefresh:l,language:s="javascript",entry:r,jsonTextEditors:i,editorRef:n,readOnly:d,initialContent:c,options:o}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==l||l(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+s,value:c||((null==a?void 0:a.defaultValue)?a.defaultValue:(null==a?void 0:a.fieldName)&&(null==r?void 0:r[a.fieldName])?(()=>{if("json"!==s)return r[a.fieldName];try{return JSON.stringify(JSON.parse(r[a.fieldName]),null,4)}catch(e){return r[a.fieldName]}})():""),placeholder:"json"==s?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:d,...o}),n&&(null==a?void 0:a.fieldName)&&(null==i||i.current.push({fieldName:a.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}a.d(t,{A:()=>l})},3231:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(4848),s=a(9020),r=a(6540),i=a(6100),n=a(856);function d(e){let{editorRef:t,content:a,readOnly:d,language:c="javascript",options:o,wrapperProps:u}=e;try{let e=r.useRef(),[s,h]=r.useState(0);return r.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:h,language:c,readOnly:d,initialContent:a,options:o})},[s,a]),(0,l.jsx)("div",{...u,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==u?void 0:u.className)})}catch(e){return r.useEffect(()=>{(0,s.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,l.jsx)(r.Fragment,{children:(0,l.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},3085:(e,t,a)=>{"use strict";a.r(t),a.d(t,{DatabaseShellContext:()=>y,__N_SSP:()=>p,default:()=>x});var l=a(4848),s=a(6540),r=a(8181),i=a(5211),n=a(5844),d=a(3647),c=a(1710),o=a(9020),u=a(3231);function h(e){let{data:t,user:a}=e;try{return Object.keys(t[0]),(0,l.jsx)(s.Fragment,{children:(0,l.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,l.jsx)(u.A,{content:JSON.stringify(t,null,4)})})})}catch(e){return s.useEffect(()=>{(0,o.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellQueryResult/catch-error-return",message:e.message,user:a}})},[]),(0,l.jsx)(s.Fragment,{children:(0,l.jsx)("span",{children:"No results"})})}}function m(){let{database:e,dbSchemaData:t,tables:a,user:r}=s.useContext(y);if(!r)return null;try{let t=s.useRef(),u=s.useRef(),[m,p]=s.useState(!1),[y,x]=s.useState(!1),[f,v]=s.useState(0);function i(){p(!0);let t=u.current?u.current.getValue():null;if(!(null==t?void 0:t.match(/./)))return;let l=t.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,o.A)("/api/runUserDbQuery",{method:"post",body:{database:null==e?void 0:e.db_slug,query:l,tables:null==a?void 0:a.map(e=>e.tableSlug)}},!0).then(e=>{e.success?x(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{p(!1)},500)})}return s.useEffect(()=>{var t;if(!(null===(t=ace)||void 0===t?void 0:t.edit)){setTimeout(()=>{v(e=>e+1)},1e3);return}let l=ace.edit("ace-editor-wrapper");l.setOptions({mode:"ace/mode/mysql",theme:"ace/theme/twilight",value:"SELECT * FROM `".concat(null==e?void 0:e.db_full_name,"`.`").concat((null==a?void 0:a[0])?a[0].tableSlug:"no_tables_yet","`"),placeholder:"Type an SQL query",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),l.commands.addCommand({name:"myCommand",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},exec:function(e){i()},readOnly:!0}),u.current=l},[f]),(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(n.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:(0,l.jsxs)("span",{children:[null==e?void 0:e.db_name," Database Shell"]})})]}),(0,l.jsx)(d.A,{user:r})]}),(0,l.jsxs)("div",{className:"w-full flex-col relative",children:[(0,l.jsx)("div",{ref:t,id:"ace-editor-wrapper"}),(0,l.jsxs)("button",{className:"absolute right-4 bottom-4"+(m?" pointer-events-none opacity-70":""),onClick:e=>{i()},children:[m&&(0,l.jsx)(c.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),m?"Running Query ...":"Run Query"]})]}),y&&!m&&(0,l.jsx)("section",{className:"card",children:(0,l.jsxs)("div",{className:"w-full flex-col items-start overflow-x-scroll",children:[(0,l.jsx)("h2",{className:"text-xl",children:"Query Results"}),(0,l.jsx)(h,{data:y,user:r})]})})]})}catch(t){return s.useEffect(()=>{(0,o.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellContent/catch-error-return",message:t.message,user:r}})},[]),(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(n.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[(0,l.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:null==e?void 0:e.db_name}),"\xa0",(0,l.jsx)("span",{children:"Database Shell"})]})]}),(0,l.jsx)(d.A,{user:r})]}),(0,l.jsx)("section",{className:"card",children:(0,l.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})]})}}var p=!0;let y=s.createContext({});function x(e){let{user:t,database:a,query:n,dbSchemaData:d,tables:c}=e,o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Database Shell"}),(0,l.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]}),[u,h]=s.useState(a.db_image);return(0,l.jsx)(r.A,{head:o,user:t,extraHeaderContent:(0,l.jsx)(i.A,{database:a,query:n,user:t}),aceEditor:!0,children:(0,l.jsx)(y.Provider,{value:{user:t,database:a,dbImage:u,setDbImage:h,dbSchemaData:d,tables:c},children:(0,l.jsx)(m,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,636,6593,8792],()=>t(8828)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables-987bf588cbdcec1c.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables-987bf588cbdcec1c.js index 6118521..5ac51b1 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables-48fec207563f61d7.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables-987bf588cbdcec1c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{877:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/tables",function(){return a(4489)}])},1670:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(6540),d=a(9020),i=a(5655),r=a(1710);function n(e){let{targetDatabase:t}=e,[a,n]=l.useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==t?void 0:t.db_name)?t.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:e=>{if(!t){alert("No Target Database Selected!");return}n(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:t},!0).then(e=>{e.success&&window.location.reload()}):n(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},3702:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(6540),d=a(9020),i=a(5655),r=a(1710);function n(e){let{targetTable:t,database:a}=e,[n,c]=l.useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[n&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==t?void 0:t.table_name)?t.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(n?" pointer-events-none opacity-40":""),onClick:e=>{c(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:t}},!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"})})]})]})}},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4489:(e,t,a)=>{"use strict";a.r(t),a.d(t,{TablesContext:()=>b,__N_SSP:()=>m,default:()=>v});var s=a(4848),l=a(6540),d=a(8181),i=a(1670),r=a(5844),n=a(3647),c=a(5139),h=a(2438),y=a(6729),o=a(900),x=a(8064);function p(){var e,t,a;let{tables:d,setTargetTable:i,database:p,query:u,confirmedDelegetedUser:k,user:m}=l.useContext(b),v=null==k?void 0:k.delegated;null==k||null===(e=k.priviledges)||void 0===e||e.match(/Edit Tables/i),null==k||null===(t=k.priviledges)||void 0===t||t.match(/Delete Tables/i);let A=null==k?void 0:null===(a=k.priviledges)||void 0===a?void 0:a.match(/Create Tables/i),{active_clone:j,active_clone_parent_db:g,remote_connected:f}=p;return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-2 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap gap-6",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(r.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0 flex flex-wrap gap-2",children:[(0,s.jsx)("span",{className:"inline",children:"All Tables in"}),(0,s.jsx)("span",{className:"inline relative",children:(0,s.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug),className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 text-primary hover:text-primary_dark relative inline",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},style:{wordBreak:"break-all"},children:[p.db_name,(0,s.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,s.jsx)(c.A,{slugText:p.db_slug,justIcon:!0})})]})})]})]}),(0,s.jsx)("div",{className:"w-full md:w-auto",children:(0,s.jsxs)(o.A,{children:[(!v||v&&A)&&!g&&!f&&(0,s.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug,"/tables/add-table"),className:"button flex items-center gap-2 w-full",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Table"})]}),!v&&(0,s.jsx)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug,"/users"),className:"button dark",children:"Users"})]})})]}),(0,s.jsx)(n.A,{confirmedDelegetedUser:null==u?void 0:u.delegated,user:m})]}),p.active_clone?(0,s.jsx)(x.A,{database:p,user:m}):(0,s.jsx)(s.Fragment,{}),p.remote_connected?(0,s.jsx)(h.p,{database:p}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(y.A,{database:p,tables:d,setTargetTable:i,confirmedDelegetedUser:k,query:u,user:m})]})}var u=a(3702),k=a(5211),m=!0;let b=l.createContext({});function v(e){let{user:t,database:a,tables:r,query:n,confirmedDelegetedUser:c}=e,h="Tables For ".concat(a.db_name," Database | Datasquirel"),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,x]=l.useState(null);return(0,s.jsx)(b.Provider,{value:{user:t,database:a,tables:r,targetTable:o,setTargetTable:x,query:n,confirmedDelegetedUser:c},children:(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(d.A,{head:y,user:t,extraHeaderContent:(0,s.jsx)(k.A,{database:a,query:n,confirmedDelegetedUser:c,user:t}),children:(0,s.jsx)(p,{})}),(0,s.jsx)(i.A,{targetDatabase:a}),(0,s.jsx)(u.A,{database:a,targetTable:o})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,2438,636,6593,8792],()=>t(877)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{877:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/tables",function(){return a(4489)}])},1670:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(6540),d=a(9020),i=a(5655),r=a(1710);function n(e){let{targetDatabase:t}=e,[a,n]=l.useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==t?void 0:t.db_name)?t.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:e=>{if(!t){alert("No Target Database Selected!");return}n(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:t},!0).then(e=>{e.success&&window.location.reload()}):n(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,i.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},3702:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4848),l=a(6540),d=a(9020),i=a(5655),r=a(1710);function n(e){let{targetTable:t,database:a}=e,[n,c]=l.useState(!1);return(0,s.jsxs)(i.Ay,{title:"delete-table-confirmation",children:[n&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",(null==t?void 0:t.table_name)?t.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(n?" pointer-events-none opacity-40":""),onClick:e=>{c(!0),(0,d.A)("/api/deleteUserTable",{method:"post",body:{database:a,table:t}},!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"})})]})]})}},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},8453:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},1333:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},2276:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},2750:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},2836:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4489:(e,t,a)=>{"use strict";a.r(t),a.d(t,{TablesContext:()=>b,__N_SSP:()=>m,default:()=>v});var s=a(4848),l=a(6540),d=a(8181),i=a(1670),r=a(5844),n=a(3647),c=a(5139),h=a(2438),y=a(6729),o=a(900),x=a(8064);function p(){var e,t,a;let{tables:d,setTargetTable:i,database:p,query:u,confirmedDelegetedUser:k,user:m}=l.useContext(b),v=null==k?void 0:k.delegated;null==k||null===(e=k.priviledges)||void 0===e||e.match(/Edit Tables/i),null==k||null===(t=k.priviledges)||void 0===t||t.match(/Delete Tables/i);let A=null==k?void 0:null===(a=k.priviledges)||void 0===a?void 0:a.match(/Create Tables/i),{active_clone:j,active_clone_parent_db:g,remote_connected:f}=p;return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-2 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap gap-6",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(r.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0 flex flex-wrap gap-2",children:[(0,s.jsx)("span",{className:"inline",children:"All Tables in"}),(0,s.jsx)("span",{className:"inline relative",children:(0,s.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug),className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 text-primary hover:text-primary_dark relative inline",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},style:{wordBreak:"break-all"},children:[p.db_name,(0,s.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,s.jsx)(c.A,{slugText:p.db_slug,justIcon:!0})})]})})]})]}),(0,s.jsx)("div",{className:"w-full md:w-auto",children:(0,s.jsxs)(o.A,{children:[(!v||v&&A)&&!g&&!f&&(0,s.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug,"/tables/add-table"),className:"button flex items-center gap-2 w-full",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Table"})]}),!v&&(0,s.jsx)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/").concat(p.db_slug,"/users"),className:"button dark",children:"Users"})]})})]}),(0,s.jsx)(n.A,{confirmedDelegetedUser:null==u?void 0:u.delegated,user:m})]}),p.active_clone?(0,s.jsx)(x.A,{database:p,user:m}):(0,s.jsx)(s.Fragment,{}),p.remote_connected?(0,s.jsx)(h.p,{database:p}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(y.A,{database:p,tables:d,setTargetTable:i,confirmedDelegetedUser:k,query:u,user:m})]})}var u=a(3702),k=a(5211),m=!0;let b=l.createContext({});function v(e){let{user:t,database:a,tables:r,query:n,confirmedDelegetedUser:c}=e,h="Tables For ".concat(a.db_name," Database | Datasquirel"),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,x]=l.useState(null);return(0,s.jsx)(b.Provider,{value:{user:t,database:a,tables:r,targetTable:o,setTargetTable:x,query:n,confirmedDelegetedUser:c},children:(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(d.A,{head:y,user:t,extraHeaderContent:(0,s.jsx)(k.A,{database:a,query:n,confirmedDelegetedUser:c,user:t}),children:(0,s.jsx)(p,{})}),(0,s.jsx)(i.A,{targetDatabase:a}),(0,s.jsx)(u.A,{database:a,targetTable:o})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,2438,636,6593,8792],()=>t(877)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ebcd5c78ed2bf0ee.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ebcd5c78ed2bf0ee.js index 4b6b3a8..a666ef0 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-e611979837269e2d.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-ebcd5c78ed2bf0ee.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6930],{5359:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/tables/[single_table]/entries",function(){return a(4279)}])},8845:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(2675);function i(e){let{paradigm:t,table:a,query:i,user:s}=e,r="";try{let e="DSQL_".concat(i.single,"_").concat(i.single_table).toUpperCase(),s=a.fields;function d(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let n=[],c=[];n.push("type ".concat(e," = {")),c.push("/**\n * @typedef {object} ".concat(e)),s.forEach(e=>{var t;let a=e.nullValue?"?":(null===(t=e.fieldName)||void 0===t?void 0:t.match(l.A))?"?":"";n.push(" ".concat(e.fieldName).concat(a,": ").concat(d(e.dataType||""),";")),c.push(" * @property {".concat(d(e.dataType||"")).concat(a,"} ").concat(e.fieldName))}),n.push("}"),c.push(" */"),(null==t?void 0:t.match(/javascript/i))&&(r=c.join("\n")),(null==t?void 0:t.match(/typescript/i))&&(r=n.join("\n"))}catch(e){console.log(e.message),r=null}return r}},1342:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(4848);function i(e){let{collapse:t,setCollapse:a}=e;return(0,l.jsxs)("div",{className:"collapse-block"+(t?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{t?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:t?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(t?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(t?"":"rotate-180")})]})}a(6540)},9878:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(4848),i=a(6540),s=a(5338),r=a(6897);function d(e){let{children:t,open:a,setOpen:r,onClose:d,maxWidth:c}=e;return i.useEffect(()=>{if(a){let e=document.createElement("div");e.className="modal-wrapper",(0,s.createRoot)(e).render((0,l.jsx)(n,{onClose:d,maxWidth:c,children:t})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach(e=>{var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)})},[a]),(0,l.jsx)(l.Fragment,{})}function n(e){let{children:t,onClose:a,maxWidth:s,open:d}=e,n=i.useRef();return(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)("div",{className:"modal-cancel",onClick:e=>{c({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})}}),(0,l.jsxs)("div",{className:"modal-content",style:{maxWidth:s||void 0},ref:n,children:[t," ",(0,l.jsx)("button",{className:"ghost modal-cancel-button",onClick:e=>{c({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})},children:(0,l.jsx)(r.A,{})})]})]})}function c(e){var t;let{modalEl:a,closeFn:l}=e;l&&l(),null===(t=a.parentElement)||void 0===t||t.removeChild(a)}},2675:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4327:e=>{"use strict";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"}]')}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,9660,2829,7391,8076,9268,2438,1580,6830,4403,636,6593,8792],()=>t(5359)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6930],{5359:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/tables/[single_table]/entries",function(){return a(4279)}])},8845:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(2675);function i(e){let{paradigm:t,table:a,query:i,user:s}=e,r="";try{let e="DSQL_".concat(i.single,"_").concat(i.single_table).toUpperCase(),s=a.fields;function d(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let n=[],c=[];n.push("type ".concat(e," = {")),c.push("/**\n * @typedef {object} ".concat(e)),s.forEach(e=>{var t;let a=e.nullValue?"?":(null===(t=e.fieldName)||void 0===t?void 0:t.match(l.A))?"?":"";n.push(" ".concat(e.fieldName).concat(a,": ").concat(d(e.dataType||""),";")),c.push(" * @property {".concat(d(e.dataType||"")).concat(a,"} ").concat(e.fieldName))}),n.push("}"),c.push(" */"),(null==t?void 0:t.match(/javascript/i))&&(r=c.join("\n")),(null==t?void 0:t.match(/typescript/i))&&(r=n.join("\n"))}catch(e){console.log(e.message),r=null}return r}},1342:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(4848);function i(e){let{collapse:t,setCollapse:a}=e;return(0,l.jsxs)("div",{className:"collapse-block"+(t?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{t?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:t?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(t?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(t?"":"rotate-180")})]})}a(6540)},9878:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var l=a(4848),i=a(6540),s=a(5338),r=a(6897);function d(e){let{children:t,open:a,setOpen:r,onClose:d,maxWidth:c}=e;return i.useEffect(()=>{if(a){let e=document.createElement("div");e.className="modal-wrapper",(0,s.createRoot)(e).render((0,l.jsx)(n,{onClose:d,maxWidth:c,children:t})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach(e=>{var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)})},[a]),(0,l.jsx)(l.Fragment,{})}function n(e){let{children:t,onClose:a,maxWidth:s,open:d}=e,n=i.useRef();return(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)("div",{className:"modal-cancel",onClick:e=>{c({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})}}),(0,l.jsxs)("div",{className:"modal-content",style:{maxWidth:s||void 0},ref:n,children:[t," ",(0,l.jsx)("button",{className:"ghost modal-cancel-button",onClick:e=>{c({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})},children:(0,l.jsx)(r.A,{})})]})]})}function c(e){var t;let{modalEl:a,closeFn:l}=e;l&&l(),null===(t=a.parentElement)||void 0===t||t.removeChild(a)}},2675:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},4327:e=>{"use strict";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"}]')}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,9660,2829,7391,8076,9268,2438,1580,6830,4403,636,6593,8792],()=>t(5359)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-8e1a59a792f137ba.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-8e1a59a792f137ba.js index a35e041..36fd3f9 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-7bbd383a24ee015d.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-8e1a59a792f137ba.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[794],{7992:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",function(){return a(3327)}])},8845:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(2675);function s(e){let{paradigm:t,table:a,query:s,user:i}=e,n="";try{let e="DSQL_".concat(s.single,"_").concat(s.single_table).toUpperCase(),i=a.fields;function d(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let r=[],c=[];r.push("type ".concat(e," = {")),c.push("/**\n * @typedef {object} ".concat(e)),i.forEach(e=>{var t;let a=e.nullValue?"?":(null===(t=e.fieldName)||void 0===t?void 0:t.match(l.A))?"?":"";r.push(" ".concat(e.fieldName).concat(a,": ").concat(d(e.dataType||""),";")),c.push(" * @property {".concat(d(e.dataType||"")).concat(a,"} ").concat(e.fieldName))}),r.push("}"),c.push(" */"),(null==t?void 0:t.match(/javascript/i))&&(n=c.join("\n")),(null==t?void 0:t.match(/typescript/i))&&(n=r.join("\n"))}catch(e){console.log(e.message),n=null}return n}},8064:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);function s(e){var t;let{database:a,user:s}=e,i=null===(t=a.active_clone_parent_db)||void 0===t?void 0:t.replace(/datasquirel_user_\d+_/,""),n="/admin/".concat(null==s?void 0:s.id,"/databases/").concat(i);return(0,l.jsx)("div",{className:"info green",children:(0,l.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,l.jsx)("b",{children:(0,l.jsx)("a",{href:n,target:"_blank",className:"query-url",children:i})})]})})}a(6540)},1342:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);function s(e){let{collapse:t,setCollapse:a}=e;return(0,l.jsxs)("div",{className:"collapse-block"+(t?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{t?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:t?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(t?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(t?"":"rotate-180")})]})}a(6540)},2675:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3327:(e,t,a)=>{"use strict";a.r(t),a.d(t,{SingleEntryContext:()=>g,__N_SSP:()=>b,default:()=>N});var l=a(4848),s=a(6540),i=a(8181),n=a(5211),d=a(5844),r=a(3647),c=a(5139),o=a(8032),u=a(8064);function h(){let{prevEntry:e,nextEntry:t,database:a,table:i,user:n}=s.useContext(g);return(0,l.jsxs)("div",{className:"row gap-3 flex-wrap",children:[e&&(0,l.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(a.db_slug,"/tables/").concat(i.tableName,"/entries/").concat(e.id),className:"button outlined gray",children:"Prev"}),t&&(0,l.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(a.db_slug,"/tables/").concat(i.tableName,"/entries/").concat(t.id),className:"button outlined gray",children:"Next"})]})}var m=a(9020),p=a(6959);function x(){let{entry:e,targetEntry:t,database:a,table:i,user:n}=s.useContext(g),[d,r]=s.useState([]),c=(()=>{let t=Object.keys(e);return t[1].match(/uuid/i)?t[2]:t[1]})();return(s.useEffect(()=>{let t={dbId:a.id,dbSlug:a.db_slug,tableName:i.tableName,isTitle:!!e.title,isSlug:!!e.slug,isFullName:!!e.first_name&&!!e.last_name,defaultField:c};(0,m.A)("/api/fetch-entries-basic",{method:"POST",body:t},!0).then(e=>{var t;(null===(t=e.entries)||void 0===t?void 0:t[0])&&r(e.entries)}).catch(e=>console.log(e))},[]),null==d?void 0:d[0])?(0,l.jsx)("div",{className:"row gap-3 flex-wrap min-w-[80px]",children:(0,l.jsx)(p.A,{selectOptions:d.map(t=>({title:t.title||t.slug||t.full_name||t[c]||t.id,payload:t.id,default:e.id==t.id})),onChangeHandler:e=>{let t="/admin/".concat(null==n?void 0:n.id,"/databases/").concat(a.db_slug,"/tables/").concat(i.tableName,"/entries/").concat(e.target.value);window.location.href="".concat(t).concat(window.location.search)}})}):null}function y(){var e,t,i,n,m;let{user:p,database:y,table:v,dbSchemaData:b,entry:N,setTargetEntry:k,richTextEditors:T,jsonTextEditors:j,query:f,confirmedDelegetedUser:A}=s.useContext(g),w=a(4327);return null==A||A.delegated,null==A||null===(e=A.priviledges)||void 0===e||e.match(/Edit Tables/i),null==A||null===(t=A.priviledges)||void 0===t||t.match(/Delete Tables/i),null==A||null===(i=A.priviledges)||void 0===i||i.match(/Create Tables/i),null==A||null===(n=A.priviledges)||void 0===n||n.match(/Edit Entries/i),null==A||null===(m=A.priviledges)||void 0===m||m.match(/Delete Entries/i),(0,l.jsxs)(s.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",{children:[(0,l.jsx)(d.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[(0,l.jsxs)("span",{className:"inline-block",children:[(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:[null==v?void 0:v.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(null==v?void 0:v.tableName)&&(0,l.jsx)(c.A,{slugText:v.tableName,justIcon:!0})})]})," ","Table Entry #"]}),(0,l.jsx)("span",{children:N.id})]})]}),(0,l.jsxs)("div",{className:"flex-wrap",children:[y&&v?(0,l.jsxs)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/databases/").concat(y.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),className:"button flex items-center gap-2",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}):(0,l.jsx)("span",{children:"No Db and Table"}),(0,l.jsx)(h,{}),(0,l.jsx)(x,{})]})]}),(0,l.jsx)(r.A,{confirmedDelegetedUser:null==f?void 0:f.delegated,user:p})]}),(null==y?void 0:y.active_clone)?(0,l.jsx)(u.A,{database:y,user:p}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(o.A,{user:p,database:y,table:v,dbSchemaData:b,richTextEditors:T,dataTypes:w,entry:N,entryPage:!0,query:f,confirmedDelegetedUser:A,jsonTextEditors:j})]})}var v=a(4477),b=!0;let g=s.createContext({});function N(e){let{user:t,database:a,table:d,dbSchemaData:r,entry:c,query:o,confirmedDelegetedUser:u,prevEntry:h,nextEntry:m}=e,p="".concat(d.tableFullName," Table | Datasquirel"),x=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:p}),(0,l.jsx)("meta",{name:"description",content:"Single Table"})]}),[b,N]=s.useState(c),k=s.useRef([]),T=s.useRef([]);return(0,l.jsx)(i.A,{head:x,user:t,extraHeaderContent:(0,l.jsx)(n.A,{database:a,query:o,confirmedDelegetedUser:u,user:t}),aceEditor:!0,children:(0,l.jsxs)(g.Provider,{value:{user:t,database:a,table:d,dbSchemaData:r,entry:c,richTextEditors:k,jsonTextEditors:T,targetEntry:b,setTargetEntry:N,query:o,confirmedDelegetedUser:u,prevEntry:h,nextEntry:m},children:[(0,l.jsx)(y,{}),(0,l.jsx)(v.A,{snug:!0})]})})}},4327:e=>{"use strict";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"}]')}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,9660,2829,7391,8076,1580,6830,636,6593,8792],()=>t(7992)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[794],{7992:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",function(){return a(3327)}])},8845:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(2675);function s(e){let{paradigm:t,table:a,query:s,user:i}=e,n="";try{let e="DSQL_".concat(s.single,"_").concat(s.single_table).toUpperCase(),i=a.fields;function d(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let r=[],c=[];r.push("type ".concat(e," = {")),c.push("/**\n * @typedef {object} ".concat(e)),i.forEach(e=>{var t;let a=e.nullValue?"?":(null===(t=e.fieldName)||void 0===t?void 0:t.match(l.A))?"?":"";r.push(" ".concat(e.fieldName).concat(a,": ").concat(d(e.dataType||""),";")),c.push(" * @property {".concat(d(e.dataType||"")).concat(a,"} ").concat(e.fieldName))}),r.push("}"),c.push(" */"),(null==t?void 0:t.match(/javascript/i))&&(n=c.join("\n")),(null==t?void 0:t.match(/typescript/i))&&(n=r.join("\n"))}catch(e){console.log(e.message),n=null}return n}},8064:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);function s(e){var t;let{database:a,user:s}=e,i=null===(t=a.active_clone_parent_db)||void 0===t?void 0:t.replace(/datasquirel_user_\d+_/,""),n="/admin/".concat(null==s?void 0:s.id,"/databases/").concat(i);return(0,l.jsx)("div",{className:"info green",children:(0,l.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,l.jsx)("b",{children:(0,l.jsx)("a",{href:n,target:"_blank",className:"query-url",children:i})})]})})}a(6540)},1342:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);function s(e){let{collapse:t,setCollapse:a}=e;return(0,l.jsxs)("div",{className:"collapse-block"+(t?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{t?a(!1):a(!0)},children:[(0,l.jsx)("span",{children:t?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(t?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(t?"":"rotate-180")})]})}a(6540)},2675:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6897:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3327:(e,t,a)=>{"use strict";a.r(t),a.d(t,{SingleEntryContext:()=>g,__N_SSP:()=>b,default:()=>N});var l=a(4848),s=a(6540),i=a(8181),n=a(5211),d=a(5844),r=a(3647),c=a(5139),o=a(8032),u=a(8064);function h(){let{prevEntry:e,nextEntry:t,database:a,table:i,user:n}=s.useContext(g);return(0,l.jsxs)("div",{className:"row gap-3 flex-wrap",children:[e&&(0,l.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(a.db_slug,"/tables/").concat(i.tableName,"/entries/").concat(e.id),className:"button outlined gray",children:"Prev"}),t&&(0,l.jsx)("a",{href:"/admin/".concat(null==n?void 0:n.id,"/databases/").concat(a.db_slug,"/tables/").concat(i.tableName,"/entries/").concat(t.id),className:"button outlined gray",children:"Next"})]})}var m=a(9020),p=a(6959);function x(){let{entry:e,targetEntry:t,database:a,table:i,user:n}=s.useContext(g),[d,r]=s.useState([]),c=(()=>{let t=Object.keys(e);return t[1].match(/uuid/i)?t[2]:t[1]})();return(s.useEffect(()=>{let t={dbId:a.id,dbSlug:a.db_slug,tableName:i.tableName,isTitle:!!e.title,isSlug:!!e.slug,isFullName:!!e.first_name&&!!e.last_name,defaultField:c};(0,m.A)("/api/fetch-entries-basic",{method:"POST",body:t},!0).then(e=>{var t;(null===(t=e.entries)||void 0===t?void 0:t[0])&&r(e.entries)}).catch(e=>console.log(e))},[]),null==d?void 0:d[0])?(0,l.jsx)("div",{className:"row gap-3 flex-wrap min-w-[80px]",children:(0,l.jsx)(p.A,{selectOptions:d.map(t=>({title:t.title||t.slug||t.full_name||t[c]||t.id,payload:t.id,default:e.id==t.id})),onChangeHandler:e=>{let t="/admin/".concat(null==n?void 0:n.id,"/databases/").concat(a.db_slug,"/tables/").concat(i.tableName,"/entries/").concat(e.target.value);window.location.href="".concat(t).concat(window.location.search)}})}):null}function y(){var e,t,i,n,m;let{user:p,database:y,table:v,dbSchemaData:b,entry:N,setTargetEntry:k,richTextEditors:T,jsonTextEditors:j,query:f,confirmedDelegetedUser:A}=s.useContext(g),w=a(4327);return null==A||A.delegated,null==A||null===(e=A.priviledges)||void 0===e||e.match(/Edit Tables/i),null==A||null===(t=A.priviledges)||void 0===t||t.match(/Delete Tables/i),null==A||null===(i=A.priviledges)||void 0===i||i.match(/Create Tables/i),null==A||null===(n=A.priviledges)||void 0===n||n.match(/Edit Entries/i),null==A||null===(m=A.priviledges)||void 0===m||m.match(/Delete Entries/i),(0,l.jsxs)(s.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",{children:[(0,l.jsx)(d.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[(0,l.jsxs)("span",{className:"inline-block",children:[(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:[null==v?void 0:v.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(null==v?void 0:v.tableName)&&(0,l.jsx)(c.A,{slugText:v.tableName,justIcon:!0})})]})," ","Table Entry #"]}),(0,l.jsx)("span",{children:N.id})]})]}),(0,l.jsxs)("div",{className:"flex-wrap",children:[y&&v?(0,l.jsxs)("a",{href:"/admin/".concat(null==p?void 0:p.id,"/databases/").concat(y.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),className:"button flex items-center gap-2",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}):(0,l.jsx)("span",{children:"No Db and Table"}),(0,l.jsx)(h,{}),(0,l.jsx)(x,{})]})]}),(0,l.jsx)(r.A,{confirmedDelegetedUser:null==f?void 0:f.delegated,user:p})]}),(null==y?void 0:y.active_clone)?(0,l.jsx)(u.A,{database:y,user:p}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(o.A,{user:p,database:y,table:v,dbSchemaData:b,richTextEditors:T,dataTypes:w,entry:N,entryPage:!0,query:f,confirmedDelegetedUser:A,jsonTextEditors:j})]})}var v=a(4477),b=!0;let g=s.createContext({});function N(e){let{user:t,database:a,table:d,dbSchemaData:r,entry:c,query:o,confirmedDelegetedUser:u,prevEntry:h,nextEntry:m}=e,p="".concat(d.tableFullName," Table | Datasquirel"),x=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:p}),(0,l.jsx)("meta",{name:"description",content:"Single Table"})]}),[b,N]=s.useState(c),k=s.useRef([]),T=s.useRef([]);return(0,l.jsx)(i.A,{head:x,user:t,extraHeaderContent:(0,l.jsx)(n.A,{database:a,query:o,confirmedDelegetedUser:u,user:t}),aceEditor:!0,children:(0,l.jsxs)(g.Provider,{value:{user:t,database:a,table:d,dbSchemaData:r,entry:c,richTextEditors:k,jsonTextEditors:T,targetEntry:b,setTargetEntry:N,query:o,confirmedDelegetedUser:u,prevEntry:h,nextEntry:m},children:[(0,l.jsx)(y,{}),(0,l.jsx)(v.A,{snug:!0})]})})}},4327:e=>{"use strict";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"}]')}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,9660,2829,7391,8076,1580,6830,636,6593,8792],()=>t(7992)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users-8c51f0fefd294914.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users-8c51f0fefd294914.js index eff6e07..c577769 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users-5b8dd72d94432cb8.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users-8c51f0fefd294914.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9974],{4315:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users",function(){return s(3318)}])},8453:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7220:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},1333:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},2276:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},2750:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},2836:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},3318:(e,t,s)=>{"use strict";s.r(t),s.d(t,{UsersContext:()=>j,__N_SSP:()=>k,default:()=>b});var a=s(4848),l=s(6540),d=s(8181),r=s(361),n=s(3647),i=s(9020),c=s(1710);function h(e){let{user:t,table:s,setTargetUser:d,users:r,database:n}=e,{active_clone:h,active_clone_parent_db:y,remote_connected:u}=n,[x,o]=l.useState(!1);return(0,a.jsxs)(l.Fragment,{children:[x&&(0,a.jsx)(c.A,{}),r&&r[0]?(0,a.jsx)(l.Fragment,{children:r.map((e,s)=>{var l;return(0,a.jsxs)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(n.db_slug,"/users/").concat(e.id),className:"card",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,a.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,a.jsxs)("span",{className:"font-bold",children:[e.first_name," ",e.last_name]}),(0,a.jsx)("span",{className:"text-xs text-slate-500",children:null===(l=e.date_created)||void 0===l?void 0:l.substring(0,16)})]}),(0,a.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]},s+1)})}):(null==s?void 0:s.tableName)?(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("span",{children:"No Users Added Yet"})}):(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("span",{children:"No User Table Present"})}),!(null==s?void 0:s.tableName)&&!y&&!u&&(0,a.jsxs)("button",{className:"gap-4 py-3",onClick:e=>{window.confirm("Add users table to ".concat(n.db_name,"?"))&&(o(!0),(0,i.A)("/api/addUsersTableToDatabase",{method:"post",body:{dbFullName:n.db_full_name,dbSlug:n.db_slug,dbId:n.id}},!0).then(e=>{console.log(e),e.success&&window.location.reload(),setTimeout(()=>{o(!1)},500)}))},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add User Table"})]})]})}var y=s(8064),u=s(5844),x=s(900),o=s(2438);function p(){let{user:e,users:t,table:s,setTargetUser:d,database:r}=l.useContext(j),[i,c]=l.useState(!1);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(u.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Users in ",r.db_name]})]}),(null==s?void 0:s.tableName)&&(0,a.jsxs)(x.A,{children:[(0,a.jsxs)("a",{href:"/admin/".concat(null==e?void 0:e.id,"/databases/").concat(r.db_slug,"/users/add-user"),className:"gap-2 button",children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New User"})]}),(0,a.jsx)("a",{href:"/admin/".concat(null==e?void 0:e.id,"/databases/").concat(r.db_slug,"/users/add-social-logins"),className:"gap-2 button outlined",children:(0,a.jsx)("span",{children:"Social Logins"})})]})]}),(0,a.jsx)(n.A,{user:e})]}),r.active_clone?(0,a.jsx)(y.A,{database:r,user:e}):(0,a.jsx)(a.Fragment,{}),r.remote_connected?(0,a.jsx)(o.p,{database:r}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:(0,a.jsx)("div",{className:"flex-col items-stretch justify-start",children:(0,a.jsx)(h,{setTargetUser:d,user:e,users:t,table:s,database:r})})})]})}var m=s(5211),k=!0;let j=l.createContext({});function b(e){let{user:t,database:s,table:n,dbSchemaData:i,users:c,query:h,confirmedDelegetedUser:y}=e,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"})]}),[x,o]=l.useState(null),[k,b]=l.useState();return(0,a.jsx)(j.Provider,{value:{user:t,users:c,targetUser:k,setTargetUser:b,database:s,table:n,dbSchemaData:i,query:h,confirmedDelegetedUser:y},children:(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(d.A,{head:u,user:t,extraHeaderContent:(0,a.jsx)(m.A,{database:s,query:h,confirmedDelegetedUser:y,user:t}),children:(0,a.jsx)(p,{})}),k&&(0,a.jsx)(r.A,{targetUser:k,user:t,setTargetUser:b})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,2438,6383,636,6593,8792],()=>t(4315)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9974],{4315:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users",function(){return s(3318)}])},8453:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},7845:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("CopyPlus",[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},4839:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4769:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FileCog",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}],["path",{d:"M6 10v1",key:"xs0f9j"}],["path",{d:"M6 17v1",key:"idyhc0"}],["path",{d:"M10 14H9",key:"m5fm2q"}],["path",{d:"M3 14H2",key:"19ot09"}],["path",{d:"m9 11-.88.88",key:"lhul2b"}],["path",{d:"M3.88 16.12 3 17",key:"169z9n"}],["path",{d:"m9 17-.88-.88",key:"5io96w"}],["path",{d:"M3.88 11.88 3 11",key:"1ynhy1"}]])},4266:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},1333:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FileX2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m8 12.5-5 5",key:"b853mi"}],["path",{d:"m3 12.5 5 5",key:"1qls4r"}]])},3419:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},2276:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Grid2x2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M12 3v18",key:"108xh3"}]])},2750:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},8190:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},2836:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},6051:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},3318:(e,t,s)=>{"use strict";s.r(t),s.d(t,{UsersContext:()=>j,__N_SSP:()=>k,default:()=>b});var a=s(4848),l=s(6540),d=s(8181),r=s(361),n=s(3647),i=s(9020),c=s(1710);function h(e){let{user:t,table:s,setTargetUser:d,users:r,database:n}=e,{active_clone:h,active_clone_parent_db:y,remote_connected:u}=n,[x,o]=l.useState(!1);return(0,a.jsxs)(l.Fragment,{children:[x&&(0,a.jsx)(c.A,{}),r&&r[0]?(0,a.jsx)(l.Fragment,{children:r.map((e,s)=>{var l;return(0,a.jsxs)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(n.db_slug,"/users/").concat(e.id),className:"card",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,a.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,a.jsxs)("span",{className:"font-bold",children:[e.first_name," ",e.last_name]}),(0,a.jsx)("span",{className:"text-xs text-slate-500",children:null===(l=e.date_created)||void 0===l?void 0:l.substring(0,16)})]}),(0,a.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]},s+1)})}):(null==s?void 0:s.tableName)?(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("span",{children:"No Users Added Yet"})}):(0,a.jsx)("section",{className:"paper",children:(0,a.jsx)("span",{children:"No User Table Present"})}),!(null==s?void 0:s.tableName)&&!y&&!u&&(0,a.jsxs)("button",{className:"gap-4 py-3",onClick:e=>{window.confirm("Add users table to ".concat(n.db_name,"?"))&&(o(!0),(0,i.A)("/api/addUsersTableToDatabase",{method:"post",body:{dbFullName:n.db_full_name,dbSlug:n.db_slug,dbId:n.id}},!0).then(e=>{console.log(e),e.success&&window.location.reload(),setTimeout(()=>{o(!1)},500)}))},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add User Table"})]})]})}var y=s(8064),u=s(5844),x=s(900),o=s(2438);function p(){let{user:e,users:t,table:s,setTargetUser:d,database:r}=l.useContext(j),[i,c]=l.useState(!1);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(u.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Users in ",r.db_name]})]}),(null==s?void 0:s.tableName)&&(0,a.jsxs)(x.A,{children:[(0,a.jsxs)("a",{href:"/admin/".concat(null==e?void 0:e.id,"/databases/").concat(r.db_slug,"/users/add-user"),className:"gap-2 button",children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New User"})]}),(0,a.jsx)("a",{href:"/admin/".concat(null==e?void 0:e.id,"/databases/").concat(r.db_slug,"/users/add-social-logins"),className:"gap-2 button outlined",children:(0,a.jsx)("span",{children:"Social Logins"})})]})]}),(0,a.jsx)(n.A,{user:e})]}),r.active_clone?(0,a.jsx)(y.A,{database:r,user:e}):(0,a.jsx)(a.Fragment,{}),r.remote_connected?(0,a.jsx)(o.p,{database:r}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:(0,a.jsx)("div",{className:"flex-col items-stretch justify-start",children:(0,a.jsx)(h,{setTargetUser:d,user:e,users:t,table:s,database:r})})})]})}var m=s(5211),k=!0;let j=l.createContext({});function b(e){let{user:t,database:s,table:n,dbSchemaData:i,users:c,query:h,confirmedDelegetedUser:y}=e,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"})]}),[x,o]=l.useState(null),[k,b]=l.useState();return(0,a.jsx)(j.Provider,{value:{user:t,users:c,targetUser:k,setTargetUser:b,database:s,table:n,dbSchemaData:i,query:h,confirmedDelegetedUser:y},children:(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(d.A,{head:u,user:t,extraHeaderContent:(0,a.jsx)(m.A,{database:s,query:h,confirmedDelegetedUser:y,user:t}),children:(0,a.jsx)(p,{})}),k&&(0,a.jsx)(r.A,{targetUser:k,user:t,setTargetUser:b})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,2438,6383,636,6593,8792],()=>t(4315)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-1eafec6fde026d0e.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-1eafec6fde026d0e.js new file mode 100644 index 0000000..88ad104 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-1eafec6fde026d0e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2602],{7133:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/[user]",function(){return t(2812)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var l=t(4848),s=t(6540),d=t(2659);function i(e){let{user:a,userImage:t,setUserImage:i,database:r,className:n}=e,c=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col"+(n?" "+n:""),children:[(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,l.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,d.A)({imageInputFile:t,maxWidth:400});null==i||i(e)}else window.alert("No File Provided!")}})]})]})}},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(1335);let s=t.n(l)().media.imageInputFileToBase64},7216:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},2812:(e,a,t)=>{"use strict";t.r(a),t.d(a,{SingleDbUserContext:()=>p,__N_SSP:()=>m,default:()=>y});var l=t(4848),s=t(6540),d=t(8181),i=t(5211),r=t(3647),n=t(5844),c=t(9020),o=t(1710),h=t(6829);function u(){let{singleUser:e,database:a,user:t}=s.useContext(p),d=Object.keys(e).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[i,u]=s.useState(!1),[m,y]=s.useState(e.image);return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(n.A,{}),m&&"string"==typeof m&&(0,l.jsx)("img",{src:m,alt:"",className:"avatar large outlined"}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[e.first_name," ",e.last_name]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/users/").concat(e.id,"/change-password"),className:"button outlined gray",children:"Change Password"}),(0,l.jsx)("button",{className:"bg-red-500",onClick:l=>{u(!0),window.confirm("Delete this user?")&&(0,c.A)("/api/deleteDbUser",{method:"post",body:{userId:e.id,dbFullName:a.db_full_name}},!0).then(e=>{e.success&&(window.location.pathname="/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/users"))})},children:"Delete User"})]})]}),(0,l.jsx)(r.A,{user:t})]}),(0,l.jsxs)("section",{className:"paper",children:[i&&(0,l.jsx)(o.A,{}),(0,l.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,l.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:t=>{t.preventDefault(),u(!0);let l=Array.from(t.target),s={};l.forEach(e=>{var a,t,l;(null==e||null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&(null==e?void 0:e.name)&&(null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(null!=e&&null!==(l=e.name)&&void 0!==l&&l.match(/username|email/)||(s[e.name]=e.value))});let d={dbFullName:a.db_full_name,payload:{...s,id:e.id}};(0,c.A)("/api/updateDbUser",{method:"post",body:d},!0).then(t=>{"object"==typeof m&&(null==m?void 0:m.imageBase64)?(m.imageName="".concat(a.db_slug,"-user-").concat(e.id),m.mimeType="jpeg",delete m.imageBase64Full,(0,c.A)("/api/addUserMedia",{method:"post",body:{media:[m],folder:a.db_slug.replace(/_/g,"-"),type:"image"}},!0).then(t=>{var l;t&&t.mediaData&&(null===(l=t.mediaData[0])||void 0===l?void 0:l.media_url)?(0,c.A)("/api/updateDbUser",{method:"post",body:{dbFullName:a.db_full_name,payload:{id:e.id,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{u(!1)},500)}):window.location.reload()})):window.location.reload()})},children:[d.map((a,t)=>(null==a?void 0:a.match(/password|^database|email|username/))?(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:a,children:a}),(0,l.jsx)("input",{type:"text",name:a,id:a,value:e[a],placeholder:a,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},t+1)]},t+1):(null==a?void 0:a.match(/more_user_data/))?(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:a,children:a}),(0,l.jsx)("textarea",{name:a,id:a,defaultValue:e[a]?e[a]:void 0,placeholder:a,rows:6},t+1)]},t+1):(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:a,children:a}),(0,l.jsx)("input",{type:"text",name:a,id:a,defaultValue:e[a]?e[a]:void 0,placeholder:a},t+1)]},t+1)),(0,l.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),(0,l.jsx)(h.A,{userImage:m,setUserImage:y})]}),(0,l.jsx)("button",{children:"Update User"})]})})]})]})}var m=!0;let p=s.createContext({});function y(e){let{user:a,database:t,table:s,dbSchemaData:r,singleUser:n,query:c,confirmedDelegetedUser:o}=e,h="".concat(n.first_name," ").concat(n.last_name,' Users | Datasquirel"'),m=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:h}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(d.A,{head:m,user:a,extraHeaderContent:(0,l.jsx)(i.A,{database:t,query:c,confirmedDelegetedUser:o,user:a}),children:(0,l.jsx)(p.Provider,{value:{user:a,database:t,table:s,dbSchemaData:r,singleUser:n,query:c,confirmedDelegetedUser:o},children:(0,l.jsx)(u,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,1335,7391,8076,636,6593,8792],()=>a(7133)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js deleted file mode 100644 index eac7aca..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f062b4d0b80557a7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2602],{7133:(e,a,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/[user]",function(){return l(2812)}])},6829:(e,a,l)=>{"use strict";l.d(a,{A:()=>d});var t=l(4848),s=l(6540),i=l(2659);function d(e){let{user:a,userImage:l,setUserImage:d,database:r,className:n}=e,o=s.useRef();return(0,t.jsxs)("div",{className:"card no-hover col"+(n?" "+n:""),children:[(0,t.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,t.jsx)("img",{src:l?"string"==typeof l?l:l.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:o,"data-imagepreview":"image"})}),(0,t.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,t.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,t.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let l=null===(a=e.target.files)||void 0===a?void 0:a[0];if(l){let e=await (0,i.A)({imageInputFile:l,maxWidth:400});null==d||d(e)}else window.alert("No File Provided!")}})]})]})}},2659:(e,a,l)=>{"use strict";l.d(a,{A:()=>s});var t=l(1335);let s=l.n(t)().media.imageInputFileToBase64},7220:(e,a,l)=>{"use strict";l.d(a,{A:()=>t});let t=(0,l(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,l)=>{"use strict";l.d(a,{A:()=>t});let t=(0,l(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,l)=>{"use strict";l.d(a,{A:()=>t});let t=(0,l(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,l)=>{"use strict";l.d(a,{A:()=>t});let t=(0,l(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,l)=>{"use strict";l.d(a,{A:()=>t});let t=(0,l(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},2812:(e,a,l)=>{"use strict";l.r(a),l.d(a,{SingleDbUserContext:()=>p,__N_SSP:()=>h,default:()=>x});var t=l(4848),s=l(6540),i=l(8181),d=l(5211),r=l(3647),n=l(5844),o=l(9020),c=l(1710),u=l(6829);function m(){let{singleUser:e,database:a,user:l}=s.useContext(p),i=Object.keys(e).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[d,m]=s.useState(!1),[h,x]=s.useState(e.image);return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.A,{}),h&&"string"==typeof h&&(0,t.jsx)("img",{src:h,alt:"",className:"avatar large outlined"}),(0,t.jsxs)("h1",{className:"text-3xl m-0",children:[e.first_name," ",e.last_name]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("a",{href:"/admin/".concat(null==l?void 0:l.id,"/databases/").concat(a.db_slug,"/users/").concat(e.id,"/change-password"),className:"button outlined gray",children:"Change Password"}),(0,t.jsx)("button",{className:"bg-red-500",onClick:t=>{m(!0),window.confirm("Delete this user?")&&(0,o.A)("/api/deleteDbUser",{method:"post",body:{userId:e.id,dbFullName:a.db_full_name}},!0).then(e=>{e.success&&(window.location.pathname="/admin/".concat(null==l?void 0:l.id,"/databases/").concat(a.db_slug,"/users"))})},children:"Delete User"})]})]}),(0,t.jsx)(r.A,{user:l})]}),(0,t.jsxs)("section",{className:"paper",children:[d&&(0,t.jsx)(c.A,{}),(0,t.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,t.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:l=>{l.preventDefault(),m(!0);let t=Array.from(l.target),s={};t.forEach(e=>{var a,l,t;(null==e||null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&(null==e?void 0:e.name)&&(null==e?void 0:null===(l=e.value)||void 0===l?void 0:l.match(/./))&&(null!=e&&null!==(t=e.name)&&void 0!==t&&t.match(/username|email/)||(s[e.name]=e.value))});let i={dbFullName:a.db_full_name,payload:{...s,id:e.id}};(0,o.A)("/api/updateDbUser",{method:"post",body:i},!0).then(l=>{"object"==typeof h&&(null==h?void 0:h.imageBase64)?(h.imageName="".concat(a.db_slug,"-user-").concat(e.id),h.mimeType="jpeg",delete h.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[h],folder:a.db_slug.replace(/_/g,"-"),type:"image"}},!0).then(l=>{var t;l&&l.mediaData&&(null===(t=l.mediaData[0])||void 0===t?void 0:t.media_url)?(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:a.db_full_name,payload:{id:e.id,image:l.mediaData[0].media_url,image_thumbnail:l.mediaData[0].media_thumbnail_url}}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{m(!1)},500)}):window.location.reload()})):window.location.reload()})},children:[i.map((a,l)=>(null==a?void 0:a.match(/password|^database|email|username/))?(0,t.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,t.jsx)("label",{htmlFor:a,children:a}),(0,t.jsx)("input",{type:"text",name:a,id:a,value:e[a],placeholder:a,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},l+1)]},l+1):(null==a?void 0:a.match(/more_user_data/))?(0,t.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,t.jsx)("label",{htmlFor:a,children:a}),(0,t.jsx)("textarea",{name:a,id:a,defaultValue:e[a]?e[a]:void 0,placeholder:a,rows:6},l+1)]},l+1):(0,t.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,t.jsx)("label",{htmlFor:a,children:a}),(0,t.jsx)("input",{type:"text",name:a,id:a,defaultValue:e[a]?e[a]:void 0,placeholder:a},l+1)]},l+1)),(0,t.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,t.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),(0,t.jsx)(u.A,{userImage:h,setUserImage:x})]}),(0,t.jsx)("button",{children:"Update User"})]})})]})]})}var h=!0;let p=s.createContext({});function x(e){let{user:a,database:l,table:s,dbSchemaData:r,singleUser:n,query:o,confirmedDelegetedUser:c}=e,u="".concat(n.first_name," ").concat(n.last_name,' Users | Datasquirel"'),h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:u}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,t.jsx)(i.A,{head:h,user:a,extraHeaderContent:(0,t.jsx)(d.A,{database:l,query:o,confirmedDelegetedUser:c,user:a}),children:(0,t.jsx)(p.Provider,{value:{user:a,database:l,table:s,dbSchemaData:r,singleUser:n,query:o,confirmedDelegetedUser:c},children:(0,t.jsx)(m,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,636,6593,8792],()=>a(7133)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-bed64535d8eb2ad5.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-bed64535d8eb2ad5.js index 3793279..3df173d 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-5c6ae113aee79d1d.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-bed64535d8eb2ad5.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6377],{3152:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/[user]/change-password",function(){return a(1064)}])},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},1064:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>o,default:()=>y});var s=a(4848),d=a(6540),l=a(8181),r=a(5211),i=a(3647),n=a(5844),c=a(9020),h=a(1710);function p(e){let{singleUser:t,database:a,user:l}=e,[r,p]=d.useState(!1);return(0,s.jsxs)(d.Fragment,{children:[r&&(0,s.jsx)(h.A,{width:"20px"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,s.jsxs)("u",{children:[t.first_name," ",t.last_name]})]})]})}),(0,s.jsx)(i.A,{user:l})]}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,s.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:e=>{var s;e.preventDefault(),p(!0);let d=document.getElementById("password"),r=document.getElementById("password-repeat"),i=new RegExp("".concat(d.value));if(!(null==r?void 0:null===(s=r.value)||void 0===s?void 0:s.match(i))){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){p(!1);return}(0,c.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:t.id,password:d.value,dbId:a.id}},!0).then(e=>{e.success&&(window.location.pathname="/admin/".concat(null==l?void 0:l.id,"/databases/").concat(a.db_slug,"/users/").concat(t.id))}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{p(!1)},2e3)})},children:[(0,s.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,s.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{var t;let a=document.getElementById("password"),s=document.getElementById("password-repeat"),d=(null==a?void 0:a.value)?new RegExp("".concat(a.value)):null;d&&((null==s?void 0:null===(t=s.value)||void 0===t?void 0:t.match(d))?s.classList.remove("warning"):s.classList.add("warning"))},required:!0}),(0,s.jsx)("button",{children:"Change Password"})]})})})]})}var o=!0;function y(e){let{user:t,database:a,table:d,dbSchemaData:i,singleUser:n,query:c,confirmedDelegetedUser:h}=e,o="".concat(n.first_name," ").concat(n.last_name,' Users | Datasquirel"'),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:o}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(l.A,{head:y,user:t,extraHeaderContent:(0,s.jsx)(r.A,{database:a,query:c,confirmedDelegetedUser:h,user:t}),children:(0,s.jsx)(p,{singleUser:n,database:a,user:t})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,636,6593,8792],()=>t(3152)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6377],{3152:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/[user]/change-password",function(){return a(1064)}])},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},1064:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>o,default:()=>y});var s=a(4848),d=a(6540),l=a(8181),r=a(5211),i=a(3647),n=a(5844),c=a(9020),h=a(1710);function p(e){let{singleUser:t,database:a,user:l}=e,[r,p]=d.useState(!1);return(0,s.jsxs)(d.Fragment,{children:[r&&(0,s.jsx)(h.A,{width:"20px"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,s.jsxs)("u",{children:[t.first_name," ",t.last_name]})]})]})}),(0,s.jsx)(i.A,{user:l})]}),(0,s.jsx)("section",{className:"paper",children:(0,s.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,s.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:e=>{var s;e.preventDefault(),p(!0);let d=document.getElementById("password"),r=document.getElementById("password-repeat"),i=new RegExp("".concat(d.value));if(!(null==r?void 0:null===(s=r.value)||void 0===s?void 0:s.match(i))){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){p(!1);return}(0,c.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:t.id,password:d.value,dbId:a.id}},!0).then(e=>{e.success&&(window.location.pathname="/admin/".concat(null==l?void 0:l.id,"/databases/").concat(a.db_slug,"/users/").concat(t.id))}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{p(!1)},2e3)})},children:[(0,s.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,s.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{var t;let a=document.getElementById("password"),s=document.getElementById("password-repeat"),d=(null==a?void 0:a.value)?new RegExp("".concat(a.value)):null;d&&((null==s?void 0:null===(t=s.value)||void 0===t?void 0:t.match(d))?s.classList.remove("warning"):s.classList.add("warning"))},required:!0}),(0,s.jsx)("button",{children:"Change Password"})]})})})]})}var o=!0;function y(e){let{user:t,database:a,table:d,dbSchemaData:i,singleUser:n,query:c,confirmedDelegetedUser:h}=e,o="".concat(n.first_name," ").concat(n.last_name,' Users | Datasquirel"'),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:o}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(l.A,{head:y,user:t,extraHeaderContent:(0,s.jsx)(r.A,{database:a,query:c,confirmedDelegetedUser:h,user:t}),children:(0,s.jsx)(p,{singleUser:n,database:a,user:t})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,636,6593,8792],()=>t(3152)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d336e424d1e0ebac.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d336e424d1e0ebac.js index e003783..bebcc0f 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-dcc54bfad6c4818a.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d336e424d1e0ebac.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[201],{2050:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/add-social-logins",function(){return a(6571)}])},2408:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(4848);function o(e){let{name:t,checkBoxValues:a,setAlert:o,labelColor:i,flexRow:s,baseText:n,smallText:r,className:d}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:a.map((e,a)=>{let{payload:s,title:d,onChangeHandler:c,fixed:u,jsx:p}=e,h=e.name?"".concat(t,"-").concat(e.name):s?t+"-"+s:t;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:h,id:h,onChange:t=>{o&&o(null),c&&c(t,e)},value:s,style:{minWidth:"20px"},...e.props}),p||(0,l.jsx)("label",{htmlFor:h,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(n||r?" text-base":" text-lg"),children:d})]},a+1)})})}a(6540)},1671:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(4848);function o(e){let{radioValues:t,name:a,onChangeHandler:o,setAlert:i,flexRow:s,labelColor:n,baseText:r,smallText:d,className:c}=e;try{return(0,l.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(c||""),children:t.map((e,t)=>{let{payload:s,title:c,jsx:u}=e,p=!1===s?s:s||c||null;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-5 h-5":d?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:a,id:a+"_"+p,onChange:t=>{i&&i(null),e.onChangeHandler?e.onChangeHandler(t):o&&o(t)},value:"string"==typeof p?p:void 0}),u||(0,l.jsx)("label",{htmlFor:a+"_"+p,className:"text-lg m-0 "+(n||"text-slate-800")+(r?" text-base":d?" text-sm":" text-lg"),children:c})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,l.jsx)("div",{children:"Form Radio Error"})}}a(6540)},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6571:(e,t,a)=>{"use strict";a.r(t),a.d(t,{AddSocialLoginsContext:()=>x,__N_SSP:()=>m,default:()=>v});var l=a(4848),o=a(6540),i=a(8181),s=a(5211),n=a(3647),r=a(5844),d=a(9020),c=a(1710),u=a(1671),p=a(2408);function h(){var e,t;let{user:a,database:i,socialLogins:s}=o.useContext(x),[h,m]=o.useState(!1),[v,y]=o.useState(s&&(null===(t=s[0])||void 0===t?void 0:null===(e=t.paradigm)||void 0===e?void 0:e.match(/personal/i))?"personal":"datasquirel"),[f,w]=o.useState(s&&s[0]?s:[]),k=(null==v?void 0:v.match(/datasquirel/i))?(0,l.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,l.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):(null==v?void 0:v.match(/personal/i))?(0,l.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,l.jsxs)(o.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(r.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",null==i?void 0:i.db_name]})]})}),(0,l.jsx)(n.A,{user:a})]}),(0,l.jsxs)("section",{className:"paper",children:[h&&(0,l.jsx)(c.A,{screen:!0}),(0,l.jsx)(u.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:null!=v&&!!v.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:null!=v&&!!v.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{y(null),setTimeout(()=>{y(e.target.value)},500)}}),(0,l.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,l.jsx)("div",{className:"info gray font-normal mb-4",children:k}),v?(0,l.jsx)(p.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let a=null==s?void 0:s.filter(t=>t.platform===e.toLocaleLowerCase()),o=a&&a[0]?a[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,l.jsxs)("div",{className:"card grow",children:[(0,l.jsx)("img",{src:"/images/".concat(e.toLowerCase(),".png"),alt:"".concat(e," icon"),className:"avatar small"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:e}),(null==v?void 0:v.match(/personal/))?(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-client-id"),id:"".concat(e.toLowerCase(),"-client-id"),placeholder:"Client Id",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientId=a.value)},defaultValue:(null==o?void 0:o.clientId)?o.clientId:void 0}),(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-client-secret"),id:"".concat(e.toLowerCase(),"-client-secret"),placeholder:"Client Secret",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientSecret=a.value)},defaultValue:(null==o?void 0:o.clientSecret)?o.clientSecret:void 0}),(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-callback-url"),id:"".concat(e.toLowerCase(),"-callback-url"),placeholder:"Callback URL",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].callbackUrl=a.value)},defaultValue:(null==o?void 0:o.callbackUrl)?o.callbackUrl:void 0})]}):(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-domain-1"),id:"".concat(e.toLowerCase(),"-domain-1"),placeholder:"Domain 1",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain1=a.value)},defaultValue:(null==o?void 0:o.domain1)?o.domain1:void 0}),(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-domain-2"),id:"".concat(e.toLowerCase(),"-domain-2"),placeholder:"Domain 2",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain2=a.value)},defaultValue:(null==o?void 0:o.domain2)?o.domain2:void 0})]})]})]}),onChangeHandler:t=>{var a,l,o,i,s,n,r,d,c;let u=null===(a=t.target.parentNode)||void 0===a?void 0:a.querySelector("input[name='".concat(e.toLowerCase(),"-client-id']")),p=null==u?void 0:u.value,h=null===(o=t.target.parentNode)||void 0===o?void 0:null===(l=o.querySelector("input[name='".concat(e.toLowerCase(),"-client-secret']")))||void 0===l?void 0:l.value,m=null===(s=t.target.parentNode)||void 0===s?void 0:null===(i=s.querySelector("input[name='".concat(e.toLowerCase(),"-callback-url']")))||void 0===i?void 0:i.value,x=null===(r=t.target.parentNode)||void 0===r?void 0:null===(n=r.querySelector("input[name='".concat(e.toLowerCase(),"-domain-1']")))||void 0===n?void 0:n.value,v=null===(c=t.target.parentNode)||void 0===c?void 0:null===(d=c.querySelector("input[name='".concat(e.toLowerCase(),"-domain2']")))||void 0===d?void 0:d.value,y={platform:e.toLowerCase(),clientId:p,clientSecret:h,callbackUrl:m,domain1:x,domain2:v};t.target.checked?w(e=>[...e,y]):w(e=>e.filter(e=>e.platform!==y.platform))},default:!!o}}),name:"social-platforms",className:"w-full"}):(0,l.jsx)("div",{className:"w-full p-10",children:(0,l.jsx)(c.A,{position:"relative",width:"20px"})}),f&&f[0]&&(0,l.jsx)("button",{className:"w-full more-padding",onClick:e=>{m(!0);let t={dbFullName:null==i?void 0:i.db_full_name,dbSlug:null==i?void 0:i.db_slug,paradigm:v,platforms:f};(0,d.A)("/api/addSocialLogin",{method:"post",body:t},!0).then(e=>{(null==e?void 0:e.success)?window.location.reload():window.alert(e.msg),setTimeout(()=>{m(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}var m=!0;let x=o.createContext({});function v(e){let{user:t,database:a,query:o,socialLogins:n}=e,r=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:r,user:t,extraHeaderContent:(0,l.jsx)(s.A,{database:a,query:o,user:t}),children:(0,l.jsx)(x.Provider,{value:{user:t,database:a,query:o,socialLogins:n},children:(0,l.jsx)(h,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,636,6593,8792],()=>t(2050)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[201],{2050:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/add-social-logins",function(){return a(6571)}])},2408:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(4848);function o(e){let{name:t,checkBoxValues:a,setAlert:o,labelColor:i,flexRow:s,baseText:n,smallText:r,className:d}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(s?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:a.map((e,a)=>{let{payload:s,title:d,onChangeHandler:c,fixed:u,jsx:p}=e,h=e.name?"".concat(t,"-").concat(e.name):s?t+"-"+s:t;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:h,id:h,onChange:t=>{o&&o(null),c&&c(t,e)},value:s,style:{minWidth:"20px"},...e.props}),p||(0,l.jsx)("label",{htmlFor:h,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(n||r?" text-base":" text-lg"),children:d})]},a+1)})})}a(6540)},1671:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(4848);function o(e){let{radioValues:t,name:a,onChangeHandler:o,setAlert:i,flexRow:s,labelColor:n,baseText:r,smallText:d,className:c}=e;try{return(0,l.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(c||""),children:t.map((e,t)=>{let{payload:s,title:c,jsx:u}=e,p=!1===s?s:s||c||null;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-5 h-5":d?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:a,id:a+"_"+p,onChange:t=>{i&&i(null),e.onChangeHandler?e.onChangeHandler(t):o&&o(t)},value:"string"==typeof p?p:void 0}),u||(0,l.jsx)("label",{htmlFor:a+"_"+p,className:"text-lg m-0 "+(n||"text-slate-800")+(r?" text-base":d?" text-sm":" text-lg"),children:c})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,l.jsx)("div",{children:"Form Radio Error"})}}a(6540)},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},6571:(e,t,a)=>{"use strict";a.r(t),a.d(t,{AddSocialLoginsContext:()=>x,__N_SSP:()=>m,default:()=>v});var l=a(4848),o=a(6540),i=a(8181),s=a(5211),n=a(3647),r=a(5844),d=a(9020),c=a(1710),u=a(1671),p=a(2408);function h(){var e,t;let{user:a,database:i,socialLogins:s}=o.useContext(x),[h,m]=o.useState(!1),[v,y]=o.useState(s&&(null===(t=s[0])||void 0===t?void 0:null===(e=t.paradigm)||void 0===e?void 0:e.match(/personal/i))?"personal":"datasquirel"),[f,w]=o.useState(s&&s[0]?s:[]),k=(null==v?void 0:v.match(/datasquirel/i))?(0,l.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,l.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):(null==v?void 0:v.match(/personal/i))?(0,l.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,l.jsxs)(o.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(r.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",null==i?void 0:i.db_name]})]})}),(0,l.jsx)(n.A,{user:a})]}),(0,l.jsxs)("section",{className:"paper",children:[h&&(0,l.jsx)(c.A,{screen:!0}),(0,l.jsx)(u.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:null!=v&&!!v.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:null!=v&&!!v.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{y(null),setTimeout(()=>{y(e.target.value)},500)}}),(0,l.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,l.jsx)("div",{className:"info gray font-normal mb-4",children:k}),v?(0,l.jsx)(p.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let a=null==s?void 0:s.filter(t=>t.platform===e.toLocaleLowerCase()),o=a&&a[0]?a[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,l.jsxs)("div",{className:"card grow",children:[(0,l.jsx)("img",{src:"/images/".concat(e.toLowerCase(),".png"),alt:"".concat(e," icon"),className:"avatar small"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:e}),(null==v?void 0:v.match(/personal/))?(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-client-id"),id:"".concat(e.toLowerCase(),"-client-id"),placeholder:"Client Id",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientId=a.value)},defaultValue:(null==o?void 0:o.clientId)?o.clientId:void 0}),(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-client-secret"),id:"".concat(e.toLowerCase(),"-client-secret"),placeholder:"Client Secret",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].clientSecret=a.value)},defaultValue:(null==o?void 0:o.clientSecret)?o.clientSecret:void 0}),(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-callback-url"),id:"".concat(e.toLowerCase(),"-callback-url"),placeholder:"Callback URL",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].callbackUrl=a.value)},defaultValue:(null==o?void 0:o.callbackUrl)?o.callbackUrl:void 0})]}):(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-domain-1"),id:"".concat(e.toLowerCase(),"-domain-1"),placeholder:"Domain 1",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain1=a.value)},defaultValue:(null==o?void 0:o.domain1)?o.domain1:void 0}),(0,l.jsx)("input",{type:"text",name:"".concat(e.toLowerCase(),"-domain-2"),id:"".concat(e.toLowerCase(),"-domain-2"),placeholder:"Domain 2",onInput:t=>{let a=t.target,l=f.filter(t=>t.platform===e.toLocaleLowerCase());l&&l[0]&&(l[0].domain2=a.value)},defaultValue:(null==o?void 0:o.domain2)?o.domain2:void 0})]})]})]}),onChangeHandler:t=>{var a,l,o,i,s,n,r,d,c;let u=null===(a=t.target.parentNode)||void 0===a?void 0:a.querySelector("input[name='".concat(e.toLowerCase(),"-client-id']")),p=null==u?void 0:u.value,h=null===(o=t.target.parentNode)||void 0===o?void 0:null===(l=o.querySelector("input[name='".concat(e.toLowerCase(),"-client-secret']")))||void 0===l?void 0:l.value,m=null===(s=t.target.parentNode)||void 0===s?void 0:null===(i=s.querySelector("input[name='".concat(e.toLowerCase(),"-callback-url']")))||void 0===i?void 0:i.value,x=null===(r=t.target.parentNode)||void 0===r?void 0:null===(n=r.querySelector("input[name='".concat(e.toLowerCase(),"-domain-1']")))||void 0===n?void 0:n.value,v=null===(c=t.target.parentNode)||void 0===c?void 0:null===(d=c.querySelector("input[name='".concat(e.toLowerCase(),"-domain2']")))||void 0===d?void 0:d.value,y={platform:e.toLowerCase(),clientId:p,clientSecret:h,callbackUrl:m,domain1:x,domain2:v};t.target.checked?w(e=>[...e,y]):w(e=>e.filter(e=>e.platform!==y.platform))},default:!!o}}),name:"social-platforms",className:"w-full"}):(0,l.jsx)("div",{className:"w-full p-10",children:(0,l.jsx)(c.A,{position:"relative",width:"20px"})}),f&&f[0]&&(0,l.jsx)("button",{className:"w-full more-padding",onClick:e=>{m(!0);let t={dbFullName:null==i?void 0:i.db_full_name,dbSlug:null==i?void 0:i.db_slug,paradigm:v,platforms:f};(0,d.A)("/api/addSocialLogin",{method:"post",body:t},!0).then(e=>{(null==e?void 0:e.success)?window.location.reload():window.alert(e.msg),setTimeout(()=>{m(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}var m=!0;let x=o.createContext({});function v(e){let{user:t,database:a,query:o,socialLogins:n}=e,r=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:r,user:t,extraHeaderContent:(0,l.jsx)(s.A,{database:a,query:o,user:t}),children:(0,l.jsx)(x.Provider,{value:{user:t,database:a,query:o,socialLogins:n},children:(0,l.jsx)(h,{})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,8076,636,6593,8792],()=>t(2050)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-2f84f689db965c75.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-2f84f689db965c75.js new file mode 100644 index 0000000..b16c2a2 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-2f84f689db965c75.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9582],{596:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/add-user",function(){return t(5724)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var s=t(4848),l=t(6540),r=t(2659);function i(e){let{user:a,userImage:t,setUserImage:i,database:d,className:n}=e,c=l.useRef();return(0,s.jsxs)("div",{className:"card no-hover col"+(n?" "+n:""),children:[(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,s.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,r.A)({imageInputFile:t,maxWidth:400});null==i||i(e)}else window.alert("No File Provided!")}})]})]})}},6234:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(4848);function l(e){let{message:a}=e;return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:a})]})}t(6540)},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(1335);let l=t.n(s)().media.imageInputFileToBase64},7216:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},4839:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9140:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},2894:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},9508:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},5724:(e,a,t)=>{"use strict";let s;t.r(a),t.d(a,{AddNewDbUserContext:()=>w,__N_SSP:()=>g,default:()=>v});var l=t(4848),r=t(6540),i=t(8181),d=t(3647),n=t(5844),c=t(9020),o=t(1710),m=t(6234),u=t(9268),p=t(6829);function h(e){let{targetDb:a,database:t,user:i,userImage:d,setUserImage:n}=e,[h,x]=r.useState(null),[y,g]=r.useState(!1);return(0,l.jsxs)(r.Fragment,{children:[y&&(0,l.jsx)(o.A,{}),h&&(0,l.jsx)(m.A,{message:h}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,l.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,l.jsx)(u.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),x(null)):t.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,c.A)("/api/checkDuplicateData?type=username&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Username Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)}})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{window.clearTimeout(s);let t=e.target;s=setTimeout(()=>{(0,c.A)("/api/checkDuplicateData?type=email&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Email Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)},required:!0})]}),(0,l.jsx)(u.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,l.jsx)(u.A,{title:"Address",name:"address",autoComplete:"address"}),(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,l.jsx)(u.A,{title:"City",name:"city",autoComplete:"city"}),(0,l.jsx)(u.A,{title:"State",name:"state",autoComplete:"state"}),(0,l.jsx)(u.A,{title:"Country",name:"country",autoComplete:"country"}),(0,l.jsx)(u.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let t=e.target;(null===(a=t.closest("form"))||void 0===a?void 0:a.password.value)===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"paper",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,l.jsx)(p.A,{userImage:d,setUserImage:n})]})]})}function x(){let{user:e,database:a,table:t,query:s,confirmedDelegetedUser:i}=r.useContext(w),[m,u]=r.useState("invitation"),[p,x]=r.useState(!1),[y,g]=r.useState(!1),[v,f]=r.useState(["Edit"]),[j,A]=r.useState(a.db_slug),[b,k]=r.useState(null),[N,_]=r.useState(null),[C,M]=r.useState([]),[I,F]=r.useState([]);return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(n.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",a.db_name]})]})}),(0,l.jsx)(d.A,{user:e})]}),(0,l.jsxs)("section",{className:"paper",children:[p&&(0,l.jsx)(o.A,{}),(0,l.jsxs)("form",{onSubmit:t=>{t.preventDefault(),x(!0);let s=Array.from(t.target),l={};s.forEach(e=>{var a,t;(null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&e.name&&(null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(l[e.name]=e.value)});let r={payload:l,dbFullName:a.db_full_name,dbId:a.id};(0,c.A)("/api/addDbUser",{method:"post",body:r},!0).then(t=>{t.success?N?(N.imageName="".concat(j,"-user-").concat(t.newUserId),N.mimeType="jpeg",delete N.imageBase64Full,(0,c.A)("/api/addUserMedia",{method:"post",body:{media:[N],folder:j.replace(/_/g,"-"),type:"image"}},!0).then(s=>{(0,c.A)("/api/updateDbUser",{method:"post",body:{dbFullName:a.db_full_name,payload:{id:t.newUserId,image:s.mediaData[0].media_url,image_thumbnail:s.mediaData[0].media_thumbnail_url}}},!0).then(t=>{t.success&&(window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users")),setTimeout(()=>{x(!1)},500)})})):window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users"):setTimeout(()=>{x(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,l.jsx)(h,{user:e,targetDb:a.db_full_name,database:a,userImage:N,setUserImage:_}),(0,l.jsx)("button",{children:"Add User"})]})]})]})}var y=t(5211),g=!0;let w=r.createContext({});function v(e){let{user:a,database:t,table:s,query:r,confirmedDelegetedUser:d}=e,n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Users | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:n,user:a,extraHeaderContent:(0,l.jsx)(y.A,{database:t,query:r,confirmedDelegetedUser:d,user:a}),children:(0,l.jsx)(w.Provider,{value:{user:a,database:t,table:s,query:r,confirmedDelegetedUser:d},children:(0,l.jsx)(x,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,1335,7391,8076,9268,636,6593,8792],()=>a(596)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js deleted file mode 100644 index a3a8801..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4954d7d1ed514dc9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9582],{596:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/users/add-user",function(){return t(5724)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var s=t(4848),l=t(6540),r=t(2659);function i(e){let{user:a,userImage:t,setUserImage:i,database:n,className:d}=e,o=l.useRef();return(0,s.jsxs)("div",{className:"card no-hover col"+(d?" "+d:""),children:[(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:o,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,s.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,r.A)({imageInputFile:t,maxWidth:400});null==i||i(e)}else window.alert("No File Provided!")}})]})]})}},6234:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(4848);function l(e){let{message:a}=e;return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:a})]})}t(6540)},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(1335);let l=t.n(s)().media.imageInputFileToBase64},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},5724:(e,a,t)=>{"use strict";let s;t.r(a),t.d(a,{AddNewDbUserContext:()=>f,__N_SSP:()=>w,default:()=>v});var l=t(4848),r=t(6540),i=t(8181),n=t(3647),d=t(5844),o=t(9020),m=t(1710),u=t(6234),c=t(9268),p=t(6829);function h(e){let{targetDb:a,database:t,user:i,userImage:n,setUserImage:d}=e,[h,x]=r.useState(null),[g,w]=r.useState(!1);return(0,l.jsxs)(r.Fragment,{children:[g&&(0,l.jsx)(m.A,{}),h&&(0,l.jsx)(u.A,{message:h}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,l.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,l.jsx)(c.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),x(null)):t.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,o.A)("/api/checkDuplicateData?type=username&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Username Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)}})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{window.clearTimeout(s);let t=e.target;s=setTimeout(()=>{(0,o.A)("/api/checkDuplicateData?type=email&value=".concat(t.value,"&tableName=users&dbFullName=").concat(a)).then(e=>{(null==e?void 0:e.result)?(x("Email Already Exists"),t.classList.add("warning")):(x(null),t.classList.remove("warning"))})},300)},required:!0})]}),(0,l.jsx)(c.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,l.jsx)(c.A,{title:"Address",name:"address",autoComplete:"address"}),(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,l.jsx)(c.A,{title:"City",name:"city",autoComplete:"city"}),(0,l.jsx)(c.A,{title:"State",name:"state",autoComplete:"state"}),(0,l.jsx)(c.A,{title:"Country",name:"country",autoComplete:"country"}),(0,l.jsx)(c.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let t=e.target;(null===(a=t.closest("form"))||void 0===a?void 0:a.password.value)===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"paper",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,l.jsx)(p.A,{userImage:n,setUserImage:d})]})]})}function x(){let{user:e,database:a,table:t,query:s,confirmedDelegetedUser:i}=r.useContext(f),[u,c]=r.useState("invitation"),[p,x]=r.useState(!1),[g,w]=r.useState(!1),[v,j]=r.useState(["Edit"]),[y,b]=r.useState(a.db_slug),[A,N]=r.useState(null),[_,k]=r.useState(null),[C,I]=r.useState([]),[F,U]=r.useState([]);return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,l.jsxs)("div",{children:[(0,l.jsx)(d.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",a.db_name]})]})}),(0,l.jsx)(n.A,{user:e})]}),(0,l.jsxs)("section",{className:"paper",children:[p&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("form",{onSubmit:t=>{t.preventDefault(),x(!0);let s=Array.from(t.target),l={};s.forEach(e=>{var a,t;(null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&e.name&&(null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(l[e.name]=e.value)});let r={payload:l,dbFullName:a.db_full_name,dbId:a.id};(0,o.A)("/api/addDbUser",{method:"post",body:r},!0).then(t=>{t.success?_?(_.imageName="".concat(y,"-user-").concat(t.newUserId),_.mimeType="jpeg",delete _.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[_],folder:y.replace(/_/g,"-"),type:"image"}},!0).then(s=>{(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:a.db_full_name,payload:{id:t.newUserId,image:s.mediaData[0].media_url,image_thumbnail:s.mediaData[0].media_thumbnail_url}}},!0).then(t=>{t.success&&(window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users")),setTimeout(()=>{x(!1)},500)})})):window.location.pathname="/admin/".concat(null==e?void 0:e.id,"/databases/").concat(a.db_slug,"/users"):setTimeout(()=>{x(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,l.jsx)(h,{user:e,targetDb:a.db_full_name,database:a,userImage:_,setUserImage:k}),(0,l.jsx)("button",{children:"Add User"})]})]})]})}var g=t(5211),w=!0;let f=r.createContext({});function v(e){let{user:a,database:t,table:s,query:r,confirmedDelegetedUser:n}=e,d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Users | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:d,user:a,extraHeaderContent:(0,l.jsx)(g.A,{database:t,query:r,confirmedDelegetedUser:n,user:a}),children:(0,l.jsx)(f.Provider,{value:{user:a,database:t,table:s,query:r,confirmedDelegetedUser:n},children:(0,l.jsx)(x,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,9268,636,6593,8792],()=>a(596)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/add-database-2339ca478d7ae04e.js similarity index 97% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/add-database-2339ca478d7ae04e.js index d1dbe53..a2a4c96 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/add-database-276c7177adf6be55.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/databases/add-database-2339ca478d7ae04e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{6108:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/add-database",function(){return a(9930)}])},5844:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(4848),l=a(7216);function n(){return(0,t.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,t.jsx)(l.A,{})})}a(6540)},4909:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(5737).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"}]])},9930:(e,s,a)=>{"use strict";a.r(s),a.d(s,{AddDatabaseContext:()=>j,__N_SSP:()=>m,default:()=>b});var t=a(4848),l=a(6540),n=a(8181),d=a(5844),r=a(3647),i=a(1710),c=a(7168),u=a(3605);function x(){let{user:e,dbImage:s,setDbImage:a,query:n}=l.useContext(j);if(!e)return(0,t.jsx)(l.Fragment,{});let[d,r]=l.useState(null),[x,o]=l.useState(!1);return(0,t.jsx)("section",{className:"card",children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[x&&(0,t.jsx)(i.A,{}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&s&&a&&(0,t.jsx)(c.A,{user:e,dbImage:s,setDbImage:a,setLoading:o,query:n})]}),e&&s&&a&&(0,t.jsx)(u.A,{user:e,dbImage:s,setDbImage:a})]})})}function o(){let{query:e,duplicateDb:s,user:a}=l.useContext(j),n=(null==e?void 0:e.duplicate)?(0,t.jsxs)("span",{children:["Duplicate"," ",(0,t.jsx)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/databases/").concat(null==s?void 0:s.db_slug),target:"_blank",children:null==s?void 0:s.db_name})," ","Database"]}):"Add A New Database";return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)(d.A,{}),(0,t.jsx)("h1",{className:"text-3xl m-0",children:n})]}),(0,t.jsx)(r.A,{user:a})]}),(0,t.jsx)(x,{})]})}var h=a(2592),m=!0;let j=l.createContext({});function b(e){let{user:s,databases:a,query:d,duplicateDb:r}=e,i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"Add Database | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,u]=l.useState("/images/database-placeholder.png");return(0,t.jsx)(j.Provider,{value:{user:s,databases:a,dbImage:c,setDbImage:u,query:d,duplicateDb:r},children:(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)(n.A,{head:i,user:s,children:(0,t.jsx)(o,{})}),(0,t.jsx)(h.A,{setDbImage:u})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,3867,636,6593,8792],()=>s(6108)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{6108:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/add-database",function(){return a(9930)}])},5844:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(4848),l=a(7216);function n(){return(0,t.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,t.jsx)(l.A,{})})}a(6540)},4909:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(5737).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"}]])},9930:(e,s,a)=>{"use strict";a.r(s),a.d(s,{AddDatabaseContext:()=>j,__N_SSP:()=>m,default:()=>b});var t=a(4848),l=a(6540),n=a(8181),d=a(5844),r=a(3647),i=a(1710),c=a(7168),u=a(3605);function x(){let{user:e,dbImage:s,setDbImage:a,query:n}=l.useContext(j);if(!e)return(0,t.jsx)(l.Fragment,{});let[d,r]=l.useState(null),[x,o]=l.useState(!1);return(0,t.jsx)("section",{className:"card",children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[x&&(0,t.jsx)(i.A,{}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&s&&a&&(0,t.jsx)(c.A,{user:e,dbImage:s,setDbImage:a,setLoading:o,query:n})]}),e&&s&&a&&(0,t.jsx)(u.A,{user:e,dbImage:s,setDbImage:a})]})})}function o(){let{query:e,duplicateDb:s,user:a}=l.useContext(j),n=(null==e?void 0:e.duplicate)?(0,t.jsxs)("span",{children:["Duplicate"," ",(0,t.jsx)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/databases/").concat(null==s?void 0:s.db_slug),target:"_blank",children:null==s?void 0:s.db_name})," ","Database"]}):"Add A New Database";return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)(d.A,{}),(0,t.jsx)("h1",{className:"text-3xl m-0",children:n})]}),(0,t.jsx)(r.A,{user:a})]}),(0,t.jsx)(x,{})]})}var h=a(2592),m=!0;let j=l.createContext({});function b(e){let{user:s,databases:a,query:d,duplicateDb:r}=e,i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"Add Database | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,u]=l.useState("/images/database-placeholder.png");return(0,t.jsx)(j.Provider,{value:{user:s,databases:a,dbImage:c,setDbImage:u,query:d,duplicateDb:r},children:(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)(n.A,{head:i,user:s,children:(0,t.jsx)(o,{})}),(0,t.jsx)(h.A,{setDbImage:u})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,8319,6272,636,6593,8792],()=>s(6108)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media-f2e686b58b412be8.js similarity index 97% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media-f2e686b58b412be8.js index 66f81b6..bca1229 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media-29e4886d0c31d5c3.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media-f2e686b58b412be8.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{3545:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media",function(){return t(3517)}])},3517:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>_,__N_SSP:()=>g,default:()=>A});var a=t(4848),i=t(6540),l=t(8181),r=t(3647),n=t(5655),d=t(18),o=t(5094),c=t(900);function u(){var e;let{media:s,setTargetMedia:t,user:l,folders:u,staticHost:x}=i.useContext(_);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,a.jsxs)(c.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,n.PB)("add-folder-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(r.A,{user:l})]}),(null==l?void 0:null===(e=l.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.A,{media:s,setTargetMedia:t,folders:u,staticHost:x,user:l}),s&&s[0]&&(0,a.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(d.A,{})]})}var x=t(3142),j=t(1828),m=t(1923),p=t(6217),h=t(431),N=t(1720),w=t(1710),f=t(9200),g=!0;let _=i.createContext({});function A(e){let{user:s,media:t,folders:r,staticHost:n}=e,d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,c]=i.useState(null),[g,A]=i.useState(null),[b,v]=i.useState(null),[y,M]=i.useState(!1),[F,C]=i.useState(null);return(0,a.jsx)(_.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:C,folders:r,staticHost:n},children:(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(l.A,{head:d,user:s,children:[y&&(0,a.jsx)(w.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{setNewMedia:c,setLoading:M}),(0,a.jsx)(h.A,{setNewFile:A,setLoading:M}),(0,a.jsx)(f.A,{setNewVideo:v,setLoading:M})]}),(0,a.jsx)(j.A,{newMedia:o,setNewMedia:c,newFile:g,setNewFile:A,newVideo:b,setNewVideo:v}),(0,a.jsx)(m.A,{targetMedia:F,setTargetMedia:C,staticHost:n,media:t}),(0,a.jsx)(p.A,{}),(0,a.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,2480,636,6593,8792],()=>s(3545)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{3545:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media",function(){return t(3517)}])},3517:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>_,__N_SSP:()=>g,default:()=>A});var a=t(4848),i=t(6540),l=t(8181),r=t(3647),n=t(5655),d=t(18),o=t(5094),c=t(900);function u(){var e;let{media:s,setTargetMedia:t,user:l,folders:u,staticHost:x}=i.useContext(_);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,a.jsxs)(c.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,n.PB)("add-folder-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(r.A,{user:l})]}),(null==l?void 0:null===(e=l.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.A,{media:s,setTargetMedia:t,folders:u,staticHost:x,user:l}),s&&s[0]&&(0,a.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(d.A,{})]})}var x=t(3142),j=t(1828),m=t(1923),p=t(6217),h=t(431),N=t(1720),w=t(1710),f=t(9200),g=!0;let _=i.createContext({});function A(e){let{user:s,media:t,folders:r,staticHost:n}=e,d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,c]=i.useState(null),[g,A]=i.useState(null),[b,v]=i.useState(null),[y,M]=i.useState(!1),[F,C]=i.useState(null);return(0,a.jsx)(_.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:C,folders:r,staticHost:n},children:(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(l.A,{head:d,user:s,children:[y&&(0,a.jsx)(w.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{setNewMedia:c,setLoading:M}),(0,a.jsx)(h.A,{setNewFile:A,setLoading:M}),(0,a.jsx)(f.A,{setNewVideo:v,setLoading:M})]}),(0,a.jsx)(j.A,{newMedia:o,setNewMedia:c,newFile:g,setNewFile:A,newVideo:b,setNewVideo:v}),(0,a.jsx)(m.A,{targetMedia:F,setTargetMedia:C,staticHost:n,media:t}),(0,a.jsx)(p.A,{}),(0,a.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,9551,636,6593,8792],()=>s(3545)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media/[...folder]-235f83b98f9f8c89.js similarity index 90% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media/[...folder]-235f83b98f9f8c89.js index 5562c59..509f0bf 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media/[...folder]-c8df7e4d1118eb40.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/media/[...folder]-235f83b98f9f8c89.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{2444:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(7097)}])},5844:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(4848),l=t(7216);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(l.A,{})})}t(6540)},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7097:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>v,__N_SSP:()=>g,default:()=>_});var r=t(4848),l=t(6540),i=t(8181),a=t(3142),n=t(1828),d=t(1923),o=t(6217),c=t(5844),u=t(3647),x=t(5655),j=t(18),h=t(5094),p=t(900),m=t(7220);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:n,query:d,staticHost:o,folder:f}=l.useContext(v);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:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsx)(m.A,{size:20}),(0,r.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,r.jsxs)(p.A,{children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Media"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,x.PB)("add-folder-popoup",e=>{var s;null==e||null===(s=e.querySelector("input"))||void 0===s||s.focus()})},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Folder"})]})]})]}),(0,r.jsx)(u.A,{user:a})]}),(null==a?void 0:null===(s=a.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(h.A,{media:t,setTargetMedia:i,folders:n,folder:f,staticHost:o,user:a}),t&&t[0]&&(0,r.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,r.jsx)(j.A,{})]})}var w=t(431),N=t(1720),A=t(1710),y=t(9200),g=!0;let v=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[C,M]=l.useState(!1),[F,S]=l.useState(null);return(0,r.jsx)(v.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:S,folders:c,query:u,staticHost:x,folder:j},children:(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)(i.A,{head:h,user:s,children:[C&&(0,r.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,r.jsx)(f,{}),(0,r.jsx)(a.A,{setNewMedia:m,setLoading:M}),(0,r.jsx)(w.A,{setNewFile:_,setLoading:M}),(0,r.jsx)(y.A,{setNewVideo:k,setLoading:M})]}),(0,r.jsx)(n.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(d.A,{targetMedia:F,staticHost:x,setTargetMedia:S,media:t}),(0,r.jsx)(o.A,{folder:j}),(0,r.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,2480,636,6593,8792],()=>s(2444)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{2444:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(9478)}])},5844:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(4848),l=t(7216);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(l.A,{})})}t(6540)},4839:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9478:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>v,__N_SSP:()=>g,default:()=>_});var r=t(4848),l=t(6540),i=t(8181),a=t(3142),n=t(1828),d=t(1923),o=t(6217),c=t(5844),u=t(3647),x=t(5655),j=t(18),h=t(5094),p=t(900),m=t(4839);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:n,query:d,staticHost:o,folder:f}=l.useContext(v);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:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsx)(m.A,{size:20}),(0,r.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,r.jsxs)(p.A,{children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Media"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,x.PB)("add-folder-popoup",e=>{var s;null==e||null===(s=e.querySelector("input"))||void 0===s||s.focus()})},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Folder"})]})]})]}),(0,r.jsx)(u.A,{user:a})]}),(null==a?void 0:null===(s=a.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(h.A,{media:t,setTargetMedia:i,folders:n,folder:f,staticHost:o,user:a}),t&&t[0]&&(0,r.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,r.jsx)(j.A,{})]})}var w=t(431),N=t(1720),A=t(1710),y=t(9200),g=!0;let v=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[C,M]=l.useState(!1),[F,S]=l.useState(null);return(0,r.jsx)(v.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:S,folders:c,query:u,staticHost:x,folder:j},children:(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)(i.A,{head:h,user:s,children:[C&&(0,r.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,r.jsx)(f,{}),(0,r.jsx)(a.A,{setNewMedia:m,setLoading:M}),(0,r.jsx)(w.A,{setNewFile:_,setLoading:M}),(0,r.jsx)(y.A,{setNewVideo:k,setLoading:M})]}),(0,r.jsx)(n.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(d.A,{targetMedia:F,staticHost:x,setTargetMedia:S,media:t}),(0,r.jsx)(o.A,{folder:j}),(0,r.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,9551,636,6593,8792],()=>s(2444)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js rename to dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js index 4daff6e..b676773 100644 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/schema-2ab99d8d3c163b57.js +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/schema-f2ab2c689d728d2f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8591],{9478:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/schema",function(){return a(3259)}])},6100:(e,t,a)=>{"use strict";function l(e){let{editorHTMLElementRef:t,fieldObject:a,setRefresh:l,language:s="javascript",entry:r,jsonTextEditors:i,editorRef:n,readOnly:c,initialContent:d,options:o}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==l||l(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+s,value:d||((null==a?void 0:a.defaultValue)?a.defaultValue:(null==a?void 0:a.fieldName)&&(null==r?void 0:r[a.fieldName])?(()=>{if("json"!==s)return r[a.fieldName];try{return JSON.stringify(JSON.parse(r[a.fieldName]),null,4)}catch(e){return r[a.fieldName]}})():""),placeholder:"json"==s?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:c,...o}),n&&(null==a?void 0:a.fieldName)&&(null==i||i.current.push({fieldName:a.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}a.d(t,{A:()=>l})},6959:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(4848),s=a(2027);function r(e){let{selectOptions:t,name:a,onChangeHandler:r,required:i,setAlert:n,title:c,defaultValue:d,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"),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,l.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[c&&(0,l.jsxs)("label",{htmlFor:a,children:[c,i?"":" (optional)"]}),(0,l.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,l.jsx)("select",{name:a,id:u||a,className:"w-full bg-white",required:i,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:d||void 0,children:t.map((e,t)=>{let{payload:a,title:s}=e;return(0,l.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,l.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,l.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,l.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,l.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,l.jsx)("span",{children:o})}),(0,l.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,l.jsx)("div",{children:"Form Select Error"})}}a(6540)},3231:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var l=a(4848),s=a(9020),r=a(6540),i=a(6100),n=a(856);function c(e){let{editorRef:t,content:a,readOnly:c,language:d="javascript",options:o,wrapperProps:u}=e;try{let e=r.useRef(),[s,m]=r.useState(0);return r.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:m,language:d,readOnly:c,initialContent:a,options:o})},[s,a]),(0,l.jsx)("div",{...u,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==u?void 0:u.className)})}catch(e){return r.useEffect(()=>{(0,s.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,l.jsx)(r.Fragment,{children:(0,l.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},18:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);function s(){return(0,l.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,l.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(6540)},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6793:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},3259:(e,t,a)=>{"use strict";a.r(t),a.d(t,{UserSchemaContext:()=>p,__N_SSP:()=>h,default:()=>f});var l=a(4848),s=a(6540),r=a(8181),i=a(3647),n=a(6959),c=a(9020),d=a(3231),o=a(6793);function u(){let{dbSchemaData:e,user:t}=s.useContext(p),[a,r]=s.useState(e),[u,m]=s.useState(null),[h,f]=s.useState(null),[x,y]=s.useState(null);return s.useEffect(()=>{if(u)try{let t=e.filter(e=>e.dbFullName===u)[0];r(t),f(t.tables)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"UserSchemaContent/lines-64-66",message:e.message,user:t}})}else f(null),y(null),r(e)},[u]),s.useEffect(()=>{if(x&&h&&h[0])try{let e=h.filter(e=>e.tableName===x)[0];r(e)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"UserSchemaContent/lines-87-88",message:e.message,user:t}})}else if(u)try{let t=e.filter(e=>e.dbFullName===u)[0];r(t),f(t.tables)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"UserSchemaContent/lines-100-103",message:e.message,user:t}})}else f(null),y(null),r(e)},[x]),(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,l.jsx)(i.A,{user:t})]}),(0,l.jsx)("section",{className:"paper",children:(0,l.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(n.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...e.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{var t;(null===(t=e.target.value)||void 0===t?void 0:t.match(/^none$/))?m(null):m(e.target.value)}}),h&&h[0]&&(0,l.jsx)(n.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...h.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{var t;(null===(t=e.target.value)||void 0===t?void 0:t.match(/^none$/))?y(null):y(e.target.value)}})]})]}),(0,l.jsx)(d.A,{content:o.A.stringify(a,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}var m=a(18),h=!0;let p=s.createContext({});function f(e){var t;let{user:a,query:n,dbSchemaData:c}=e,d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Add Database | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,l.jsx)(r.A,{head:d,user:a,aceEditor:!0,children:(0,l.jsx)(p.Provider,{value:{user:a,dbSchemaData:c},children:(null==a?void 0:null===(t=a.verification_status)||void 0===t?void 0:t.toString().match(/1/))?(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(u,{})}):(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,l.jsx)(i.A,{user:a})]}),(0,l.jsx)(m.A,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,636,6593,8792],()=>t(9478)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8591],{7097:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/schema",function(){return a(3259)}])},6100:(e,t,a)=>{"use strict";function l(e){let{editorHTMLElementRef:t,fieldObject:a,setRefresh:l,language:s="javascript",entry:r,jsonTextEditors:i,editorRef:n,readOnly:c,initialContent:d,options:o}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==l||l(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+s,value:d||((null==a?void 0:a.defaultValue)?a.defaultValue:(null==a?void 0:a.fieldName)&&(null==r?void 0:r[a.fieldName])?(()=>{if("json"!==s)return r[a.fieldName];try{return JSON.stringify(JSON.parse(r[a.fieldName]),null,4)}catch(e){return r[a.fieldName]}})():""),placeholder:"json"==s?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:c,...o}),n&&(null==a?void 0:a.fieldName)&&(null==i||i.current.push({fieldName:a.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}a.d(t,{A:()=>l})},6959:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var l=a(4848),s=a(2027);function r(e){let{selectOptions:t,name:a,onChangeHandler:r,required:i,setAlert:n,title:c,defaultValue:d,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"),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,l.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[c&&(0,l.jsxs)("label",{htmlFor:a,children:[c,i?"":" (optional)"]}),(0,l.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,l.jsx)("select",{name:a,id:u||a,className:"w-full bg-white",required:i,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:d||void 0,children:t.map((e,t)=>{let{payload:a,title:s}=e;return(0,l.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,l.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,l.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,l.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,l.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,l.jsx)("span",{children:o})}),(0,l.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,l.jsx)("div",{children:"Form Select Error"})}}a(6540)},3231:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var l=a(4848),s=a(9020),r=a(6540),i=a(6100),n=a(856);function c(e){let{editorRef:t,content:a,readOnly:c,language:d="javascript",options:o,wrapperProps:u}=e;try{let e=r.useRef(),[s,m]=r.useState(0);return r.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:m,language:d,readOnly:c,initialContent:a,options:o})},[s,a]),(0,l.jsx)("div",{...u,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==u?void 0:u.className)})}catch(e){return r.useEffect(()=>{(0,s.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,l.jsx)(r.Fragment,{children:(0,l.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},18:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(4848);function s(){return(0,l.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,l.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(6540)},7216:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},9140:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l=(0,a(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},6793:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l={parse:function(e,t){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,t)}catch(e){return}}},stringify:function(e,t,a){try{return JSON.stringify(e,t||void 0,a)}catch(e){return}}}},3259:(e,t,a)=>{"use strict";a.r(t),a.d(t,{UserSchemaContext:()=>p,__N_SSP:()=>h,default:()=>f});var l=a(4848),s=a(6540),r=a(8181),i=a(3647),n=a(6959),c=a(9020),d=a(3231),o=a(6793);function u(){let{dbSchemaData:e,user:t}=s.useContext(p),[a,r]=s.useState(e),[u,m]=s.useState(null),[h,f]=s.useState(null),[x,y]=s.useState(null);return s.useEffect(()=>{if(u)try{let t=e.filter(e=>e.dbFullName===u)[0];r(t),f(t.tables)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"UserSchemaContent/lines-64-66",message:e.message,user:t}})}else f(null),y(null),r(e)},[u]),s.useEffect(()=>{if(x&&h&&h[0])try{let e=h.filter(e=>e.tableName===x)[0];r(e)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"UserSchemaContent/lines-87-88",message:e.message,user:t}})}else if(u)try{let t=e.filter(e=>e.dbFullName===u)[0];r(t),f(t.tables)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"UserSchemaContent/lines-100-103",message:e.message,user:t}})}else f(null),y(null),r(e)},[x]),(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,l.jsx)(i.A,{user:t})]}),(0,l.jsx)("section",{className:"paper",children:(0,l.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(n.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...e.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{var t;(null===(t=e.target.value)||void 0===t?void 0:t.match(/^none$/))?m(null):m(e.target.value)}}),h&&h[0]&&(0,l.jsx)(n.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...h.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{var t;(null===(t=e.target.value)||void 0===t?void 0:t.match(/^none$/))?y(null):y(e.target.value)}})]})]}),(0,l.jsx)(d.A,{content:o.A.stringify(a,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}var m=a(18),h=!0;let p=s.createContext({});function f(e){var t;let{user:a,query:n,dbSchemaData:c}=e,d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Add Database | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,l.jsx)(r.A,{head:d,user:a,aceEditor:!0,children:(0,l.jsx)(p.Provider,{value:{user:a,dbSchemaData:c},children:(null==a?void 0:null===(t=a.verification_status)||void 0===t?void 0:t.toString().match(/1/))?(0,l.jsx)(s.Fragment,{children:(0,l.jsx)(u,{})}):(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,l.jsx)(i.A,{user:a})]}),(0,l.jsx)(m.A,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,7391,636,6593,8792],()=>t(7097)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js deleted file mode 100644 index 492f99e..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/settings-203cb6b64dc51850.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[189],{9922:(e,s,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/settings",function(){return l(9241)}])},2592:(e,s,l)=>{"use strict";l.d(s,{A:()=>o});var t=l(4848),a=l(6540),i=l(9020),r=l(5655),n=l(1710);function o(e){let{setDbImage:s}=e,[l,o]=a.useState(!0);a.useState(null);let[c,d]=a.useState(null);return a.useEffect(()=>{(0,i.A)("/api/getUserMedia").then(e=>{o(!1),d(e.media)})},[]),(0,t.jsxs)(r.Ay,{title:"user-media-popup",children:[l&&(0,t.jsx)(n.A,{width:"20px"}),(0,t.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,t.jsx)("div",{className:"grid grid-cols-2",children:(null==c?void 0:c[0])&&c.filter(e=>"image"==e.media_type).map((e,l)=>(0,t.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:l=>{s(e.media_thumbnail_url||null),(0,r.fs)()},children:(0,t.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},l+1))})]})}},5655:(e,s,l)=>{"use strict";l.d(s,{Ay:()=>r,PB:()=>n,fs:()=>o});var t=l(4848),a=l(6897),i=l(6540);function r(e){let{children:s,title:l,data:r,fullPage:n,wrapperClasses:c,closePopupDispatch:d,wrapperStyle:u,noContainer:p}=e;return n?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(c||""),"data-popupid":l||null,style:u,children:[p?(0,t.jsx)(i.Fragment,{children:s}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:s}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),d&&d()},children:(0,t.jsx)(a.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),d&&d()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":l||null,children:[p?(0,t.jsx)(i.Fragment,{children:s}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[s,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),d&&d()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),d&&d()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),d&&d()}})]})}function n(e,s){let l=document.querySelector("[data-popupid='".concat(e,"']"));l&&(l.style.display="flex",null==s||s(l))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),null==e||e()}},900:(e,s,l)=>{"use strict";l.d(s,{A:()=>i});var t=l(4848),a=l(6540);function i(e){let{children:s,column:l,className:i}=e,r=a.useRef();return a.useEffect(()=>{try{let e=r.current;if(!e)throw Error("No Button Group Wrapper!");let s=e.childNodes,t=Array.from(s);if((null==t?void 0:t.length)===1)return;t.forEach((e,s)=>{let a=e;if(a.classList.contains("dropdown-wrapper")){let s=Array.from(e.childNodes).filter(e=>{var s;return(null==e?void 0:null===(s=e.nodeName)||void 0===s?void 0:s.match(/button/i))||e.classList.contains("button")});s&&s[0]&&(a=s[0])}s0&&(a.style[l?"borderTop":"borderLeft"]="none",a.style[l?"borderTopRightRadius":"borderTopLeftRadius"]=0,a.style[l?"borderTopLeftRadius":"borderBottomLeftRadius"]=0)})}catch(e){console.log(e.message)}},[]),(0,t.jsx)("div",{className:"items-stretch gap-0"+(l?" flex-col":" flex-wrap xl:flex-nowrap")+(i?" "+i:""),ref:r,children:s})}},2659:(e,s,l)=>{"use strict";l.d(s,{A:()=>a});var t=l(1335);let a=l.n(t)().media.imageInputFileToBase64},4909:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(5737).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"}]])},6897:(e,s,l)=>{"use strict";l.d(s,{A:()=>t});let t=(0,l(5737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9241:(e,s,l)=>{"use strict";l.r(s),l.d(s,{SettingsContext:()=>x,__N_SSP:()=>h,default:()=>f});var t=l(4848),a=l(6540),i=l(8181),r=l(3647),n=l(4060),o=l(2659),c=l(5655),d=l(900);function u(e){let{user:s,image:l,setImage:i}=e,r=a.useRef();return(0,t.jsxs)("div",{className:"paper w-full items-center",children:[(0,t.jsx)("h2",{className:"m-0 text-xl",children:"User Image"}),(0,t.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,t.jsx)("img",{src:l?"string"==typeof l?l:l.imageBase64Full:"/images/database-placeholder.png",alt:"User Image",width:100,className:"w-full h-full object-cover",ref:r,"data-imagepreview":"image"})}),(0,t.jsxs)("div",{className:"w-full flex-col",id:"upload-user-image-options",children:[(0,t.jsxs)(d.A,{column:!0,className:"w-full",children:[(0,t.jsx)("button",{className:"outlined gray w-full whitespace-normal",onClick:e=>{(0,c.PB)("user-media-popup")},children:"Choose image From your Uploads"}),(0,t.jsx)("button",{className:"secondary w-full whitespace-normal",onClick:e=>{var s,l;null===(l=e.target.closest("#upload-user-image-options"))||void 0===l||null===(s=l.querySelector("input"))||void 0===s||s.click()},children:(0,t.jsx)("span",{children:"Choose image From your Computer"})})]}),(0,t.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Image",className:"hidden",onChange:async e=>{var s;let l=e.target,t=null==l?void 0:null===(s=l.files)||void 0===s?void 0:s[0];t&&i(await (0,o.A)({imageInputFile:t,maxWidth:400}))}})]})]})}function p(){let{user:e,image:s,setImage:l,activeUser:i}=a.useContext(x),[o,c]=a.useState(!1);return(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,t.jsx)("h1",{className:"text-3xl m-0",children:"Settings"}),(0,t.jsx)("div",{children:!(null==e?void 0:e.social_login)&&(0,t.jsx)("a",{href:"/send-password-reset-link",className:"button outlined",children:"Reset Password"})})]}),(0,t.jsx)(r.A,{user:e})]}),(0,t.jsx)("section",{className:"p-0",children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-8 items-stretch",children:[(0,t.jsxs)("div",{className:"paper w-full",children:[(0,t.jsx)("h2",{className:"m-0 text-xl",children:"Account Information"}),(0,t.jsxs)("div",{className:"flex flex-row w-full",children:[(0,t.jsx)("span",{children:"USER ID"}),(0,t.jsx)("b",{className:"info w-auto",children:e.id})]}),(0,t.jsx)(n.A,{user:i,image:s})]}),(0,t.jsx)("div",{className:"items-stretch",children:(0,t.jsx)(u,{image:s,setImage:l})})]})}),!1]})}l(1710),l(9020);var m=l(2592),h=!0;let x=a.createContext({});function f(e){let{user:s,databases:l,activeUser:r}=e,n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,c]=a.useState(r.image);return(0,t.jsx)(i.A,{head:n,user:s,children:(0,t.jsxs)(x.Provider,{value:{user:s,image:o,setImage:c,activeUser:r},children:[(0,t.jsx)(p,{}),(0,t.jsx)(m.A,{setDbImage:c})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,6999,4060,636,6593,8792],()=>s(9922)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/settings-cda1d1faa0aab729.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/settings-cda1d1faa0aab729.js new file mode 100644 index 0000000..96efc0f --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/settings-cda1d1faa0aab729.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[189],{9922:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/settings",function(){return a(9241)}])},4060:(e,s,a)=>{"use strict";let l;a.d(s,{A:()=>m});var t=a(4848),r=a(6540),i=a(9020);async function n(e){let{e:s,setLoading:a,user:l,image:t,query:r}=e;a(!0);let n={first_name:s.target.first_name.value,last_name:s.target.last_name.value,email:l?null:s.target.email_address.value,username:l?null:s.target.username.value,password:l?null:s.target.password.value,image:t||null};(null==r?void 0:r.invite)&&(n.inviteObject=r),(0,i.A)(l?"/api/updateUser":"/api/registerUser",{method:"post",body:n},!!l).then(e=>{console.log(e),!l&&(null==e?void 0:e.insertId)?(localStorage.setItem("id",e.insertId),(0,i.A)("/api/loginUser",{method:"post",body:{email:n.email,password:n.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):l&&(null==e?void 0:e.user)?window.location.reload():(null==e?void 0:e.msg)&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{a(!1)},2e3)})}var o=a(6234),d=a(1710),c=a(7384);function m(e){let{user:s,query:a,image:m}=e,u=(null==a?void 0:a.email)?a.email:(null==s?void 0:s.email)?s.email:"",[p,h]=r.useState(null),[x,g]=r.useState(!1);return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[x&&(0,t.jsx)(d.A,{}),!s&&(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("hr",{className:"opacity-0"}),(0,t.jsx)(c.A,{user:null,userType:"admin",setLoading:g}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]})]}),(0,t.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),window.confirm("Update Account Information?")&&n({e,setLoading:g,user:s,image:m,query:a})},children:[p&&(0,t.jsx)(o.A,{message:p}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,t.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let s=e.target;s.value.match(/./)?(s.classList.remove("warning"),h(null)):s.classList.add("warning")},defaultValue:s?s.first_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,t.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let s=e.target;s.value.match(/./)?(s.classList.remove("warning"),h(null)):s.classList.add("warning")},defaultValue:s?s.last_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"username",children:"Username"}),(0,t.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let s=e.target;s.value.match(/./)?(s.classList.remove("warning"),h(null)):s.classList.add("warning"),window.clearTimeout(l),l=setTimeout(()=>{(0,i.A)("/api/checkDuplicateData?type=username&value=".concat(s.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(h("Username Already Exists"),s.classList.add("warning")):(h(null),s.classList.remove("warning"))})},300)},defaultValue:s?s.username:"",required:!s,readOnly:!!s})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let s=e.target;window.clearTimeout(l),l=setTimeout(()=>{(0,i.A)("/api/checkDuplicateData?type=email&value=".concat(s.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(h("Email Already Exists"),s.classList.add("warning")):(h(null),s.classList.remove("warning"))})},300)},defaultValue:u,required:!0,readOnly:!!s})]}),!s&&(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"password",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,t.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var s;let a=e.target;(null===(s=a.closest("form"))||void 0===s?void 0:s.password.value)===a.value?a.classList.remove("warning"):a.classList.add("warning")},required:!0})]}),(0,t.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,t.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,t.jsx)("button",{type:"submit",className:"w-full",children:s?(0,t.jsx)("span",{children:"Update Account Info"}):(0,t.jsx)("span",{children:"Create Account"})}),!s&&(0,t.jsx)(r.Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,t.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}},4909:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});let l=(0,a(5737).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"}]])},9241:(e,s,a)=>{"use strict";a.r(s),a.d(s,{SettingsContext:()=>x,__N_SSP:()=>h,default:()=>g});var l=a(4848),t=a(6540),r=a(8181),i=a(3647),n=a(4060),o=a(2659),d=a(5655),c=a(900);function m(e){let{user:s,image:a,setImage:r}=e,i=t.useRef();return(0,l.jsxs)("div",{className:"paper w-full items-center",children:[(0,l.jsx)("h2",{className:"m-0 text-xl",children:"User Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:a?"string"==typeof a?a:a.imageBase64Full:"/images/database-placeholder.png",alt:"User Image",width:100,className:"w-full h-full object-cover",ref:i,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"upload-user-image-options",children:[(0,l.jsxs)(c.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined gray w-full whitespace-normal",onClick:e=>{(0,d.PB)("user-media-popup")},children:"Choose image From your Uploads"}),(0,l.jsx)("button",{className:"secondary w-full whitespace-normal",onClick:e=>{var s,a;null===(a=e.target.closest("#upload-user-image-options"))||void 0===a||null===(s=a.querySelector("input"))||void 0===s||s.click()},children:(0,l.jsx)("span",{children:"Choose image From your Computer"})})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Image",className:"hidden",onChange:async e=>{var s;let a=e.target,l=null==a?void 0:null===(s=a.files)||void 0===s?void 0:s[0];l&&r(await (0,o.A)({imageInputFile:l,maxWidth:400}))}})]})]})}function u(){let{user:e,image:s,setImage:a,activeUser:r}=t.useContext(x),[o,d]=t.useState(!1);return(0,l.jsxs)(t.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,l.jsx)("h1",{className:"text-3xl m-0",children:"Settings"}),(0,l.jsx)("div",{children:!(null==e?void 0:e.social_login)&&(0,l.jsx)("a",{href:"/send-password-reset-link",className:"button outlined",children:"Reset Password"})})]}),(0,l.jsx)(i.A,{user:e})]}),(0,l.jsx)("section",{className:"p-0",children:(0,l.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-8 items-stretch",children:[(0,l.jsxs)("div",{className:"paper w-full",children:[(0,l.jsx)("h2",{className:"m-0 text-xl",children:"Account Information"}),(0,l.jsxs)("div",{className:"flex flex-row w-full",children:[(0,l.jsx)("span",{children:"USER ID"}),(0,l.jsx)("b",{className:"info w-auto",children:e.id})]}),(0,l.jsx)(n.A,{user:r,image:s})]}),(0,l.jsx)("div",{className:"items-stretch",children:(0,l.jsx)(m,{image:s,setImage:a})})]})}),!1]})}a(1710),a(9020);var p=a(2592),h=!0;let x=t.createContext({});function g(e){let{user:s,databases:a,activeUser:i}=e,n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,d]=t.useState(i.image);return(0,l.jsx)(r.A,{head:n,user:s,children:(0,l.jsxs)(x.Provider,{value:{user:s,image:o,setImage:d,activeUser:i},children:[(0,l.jsx)(u,{}),(0,l.jsx)(p.A,{setDbImage:d})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,8319,7384,636,6593,8792],()=>s(9922)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-01fbcda5d58677e8.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-01fbcda5d58677e8.js new file mode 100644 index 0000000..1e2ccab --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-01fbcda5d58677e8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5707],{2892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/users/databases/[database]/[user]",function(){return t(9343)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var l=t(4848),s=t(6540),i=t(2659);function d(e){let{user:a,userImage:t,setUserImage:d,database:r,className:n}=e,c=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col"+(n?" "+n:""),children:[(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,l.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,i.A)({imageInputFile:t,maxWidth:400});null==d||d(e)}else window.alert("No File Provided!")}})]})]})}},2408:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(4848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:d,baseText:r,smallText:n,className:c}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(d?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(c||""),children:t.map((e,t)=>{let{payload:d,title:c,onChangeHandler:o,fixed:u,jsx:m}=e,h=e.name?"".concat(a,"-").concat(e.name):d?a+"-"+d:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:h,id:h,onChange:a=>{s&&s(null),o&&o(a,e)},value:d,style:{minWidth:"20px"},...e.props}),m||(0,l.jsx)("label",{htmlFor:h,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(r||n?" text-base":" text-lg"),children:c})]},t+1)})})}t(6540)},5844:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var l=t(4848),s=t(7216);function i(){return(0,l.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,l.jsx)(s.A,{})})}t(6540)},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(1335);let s=t.n(l)().media.imageInputFileToBase64},7216:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5014:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},9140:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},9508:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9753:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},7273:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},4909:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).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"}]])},9343:(e,a,t)=>{"use strict";t.r(a),t.d(a,{SingleDatabaseSingleUserContext:()=>p,__N_SSP:()=>h,default:()=>x});var l=t(4848),s=t(6540),i=t(8181),d=t(3647),r=t(5844),n=t(9020),c=t(1710),o=t(2408),u=t(6829);function m(){var e,a;let{singleUser:t,user:i}=s.useContext(p),m=Object.keys(t).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[h,x]=s.useState(!1),[v,y]=s.useState((null===(e=t.user_type)||void 0===e?void 0:e.match(/invitation/))?null===(a=t.user_priviledge)||void 0===a?void 0:a.split("|"):["Edit"]),[f,g]=s.useState(t.image);return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(r.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]})]}),(0,l.jsx)("button",{className:"bg-red-500",onClick:e=>{x(!0),window.confirm("Delete this user?")&&(0,n.A)("/api/deleteUserUser",{method:"post",body:{...t}},!0).then(e=>{e.success&&(window.location.pathname="/admin/".concat(null==i?void 0:i.id,"/users/databases/").concat(t.database))})},children:"Delete User"})]}),(0,l.jsx)(d.A,{user:i})]}),(0,l.jsxs)("section",{children:[h&&(0,l.jsx)(c.A,{}),(0,l.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,l.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:e=>{var a;e.preventDefault(),x(!0);let l=Array.from(e.target),s={};l.forEach(e=>{var a,t,l;(null==e||null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&(null==e?void 0:e.name)&&(null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(null!=e&&null!==(l=e.name)&&void 0!==l&&l.match(/username|email/)||(s[e.name]=e.value))});let i={...s,user_type:t.user_type,id:t.id};(null===(a=t.user_type)||void 0===a?void 0:a.match(/invitation/i))&&(i.user_priviledge=null==v?void 0:v.join("|")),(0,n.A)("/api/updateUserUser",{method:"post",body:i},!0).then(e=>{if("object"==typeof f&&(null==f?void 0:f.imageBase64)){var a;f.imageName="".concat(t.database,"-user-").concat(t.id),f.mimeType="jpeg",delete f.imageBase64Full,(0,n.A)("/api/addUserMedia",{method:"post",body:{media:[f],folder:null===(a=t.database)||void 0===a?void 0:a.replace(/_/g,"-"),type:"image"}},!0).then(e=>{var a;e&&e.mediaData&&(null===(a=e.mediaData[0])||void 0===a?void 0:a.media_url)?(0,n.A)("/api/updateUserUser",{method:"post",body:{id:t.id,user_type:t.user_type,image:e.mediaData[0].media_url,image_thumbnail:e.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{x(!1)},500)}):window.location.reload()})}else window.location.reload()})},children:[m.map((e,a)=>{var i,d,r;return(null==e?void 0:e.match(/user_priviledge/))&&(null===(i=t.user_type)||void 0===i?void 0:i.match(/invitation/))?(0,l.jsx)("div",{className:"flex-col items-start w-full gap-1",children:(0,l.jsx)(o.A,{checkBoxValues:null===(r=t[e])||void 0===r?void 0:r.split("|").map(e=>({title:e,name:e,onChangeHandler:()=>{(null==v?void 0:v.includes("Edit"))?y([...v.filter(e=>"Edit"!=e)]):y(e=>e?[...e,"Edit"]:[])}})),smallText:!0,flexRow:!0})},a+1):(null==e?void 0:e.match(/user_priviledge/))&&!(null===(d=t.user_type)||void 0===d?void 0:d.match(/invitation/))?(0,l.jsx)(s.Fragment,{},a+1):(null==e?void 0:e.match(/password|^database|email|username/))?(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:e,children:e}),(0,l.jsx)("input",{type:"text",name:e,id:e,value:t[e],placeholder:e,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},a+1)]},a+1):(null==e?void 0:e.match(/more_user_data/))?(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:e,children:e}),(0,l.jsx)("textarea",{name:e,id:e,defaultValue:t[e]?t[e]:void 0,placeholder:e,rows:6},a+1)]},a+1):(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:e,children:e}),(0,l.jsx)("input",{type:"text",name:e,id:e,defaultValue:t[e]?t[e]:void 0,placeholder:e},a+1)]},a+1)}),(0,l.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),f&&g&&(0,l.jsx)(u.A,{userImage:f,setUserImage:g})]}),(0,l.jsx)("button",{children:"Update User"})]})})]})]})}var h=!0;let p=s.createContext({});function x(e){let{user:a,singleUser:t}=e,s="".concat(t.first_name," ").concat(t.last_name,' Users | Datasquirel"'),d=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:s}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:d,user:a,children:(0,l.jsx)(p.Provider,{value:{user:a,singleUser:t},children:(0,l.jsx)(m,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[1335,7391,636,6593,8792],()=>a(2892)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js b/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js deleted file mode 100644 index 2da4443..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-096740ae36fd55b2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5707],{2892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/users/databases/[database]/[user]",function(){return t(9343)}])},6829:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var l=t(4848),s=t(6540),i=t(2659);function r(e){let{user:a,userImage:t,setUserImage:r,database:d,className:n}=e,o=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col"+(n?" "+n:""),children:[(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:o,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,l.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{var a;let t=null===(a=e.target.files)||void 0===a?void 0:a[0];if(t){let e=await (0,i.A)({imageInputFile:t,maxWidth:400});null==r||r(e)}else window.alert("No File Provided!")}})]})]})}},2408:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(4848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:r,baseText:d,smallText:n,className:o}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(r?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((e,t)=>{let{payload:r,title:o,onChangeHandler:c,fixed:u,jsx:m}=e,h=e.name?"".concat(a,"-").concat(e.name):r?a+"-"+r:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:h,id:h,onChange:a=>{s&&s(null),c&&c(a,e)},value:r,style:{minWidth:"20px"},...e.props}),m||(0,l.jsx)("label",{htmlFor:h,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(d||n?" text-base":" text-lg"),children:o})]},t+1)})})}t(6540)},5844:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var l=t(4848),s=t(7216);function i(){return(0,l.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,l.jsx)(s.A,{})})}t(6540)},2659:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(1335);let s=t.n(l)().media.imageInputFileToBase64},4909:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5737).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"}]])},9343:(e,a,t)=>{"use strict";t.r(a),t.d(a,{SingleDatabaseSingleUserContext:()=>p,__N_SSP:()=>h,default:()=>v});var l=t(4848),s=t(6540),i=t(8181),r=t(3647),d=t(5844),n=t(9020),o=t(1710),c=t(2408),u=t(6829);function m(){var e,a;let{singleUser:t,user:i}=s.useContext(p),m=Object.keys(t).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[h,v]=s.useState(!1),[x,f]=s.useState((null===(e=t.user_type)||void 0===e?void 0:e.match(/invitation/))?null===(a=t.user_priviledge)||void 0===a?void 0:a.split("|"):["Edit"]),[g,j]=s.useState(t.image);return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(d.A,{}),(0,l.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]})]}),(0,l.jsx)("button",{className:"bg-red-500",onClick:e=>{v(!0),window.confirm("Delete this user?")&&(0,n.A)("/api/deleteUserUser",{method:"post",body:{...t}},!0).then(e=>{e.success&&(window.location.pathname="/admin/".concat(null==i?void 0:i.id,"/users/databases/").concat(t.database))})},children:"Delete User"})]}),(0,l.jsx)(r.A,{user:i})]}),(0,l.jsxs)("section",{children:[h&&(0,l.jsx)(o.A,{}),(0,l.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,l.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:e=>{var a;e.preventDefault(),v(!0);let l=Array.from(e.target),s={};l.forEach(e=>{var a,t,l;(null==e||null===(a=e.nodeName)||void 0===a||!a.match(/button/i))&&(null==e?void 0:e.name)&&(null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.match(/./))&&(null!=e&&null!==(l=e.name)&&void 0!==l&&l.match(/username|email/)||(s[e.name]=e.value))});let i={...s,user_type:t.user_type,id:t.id};(null===(a=t.user_type)||void 0===a?void 0:a.match(/invitation/i))&&(i.user_priviledge=null==x?void 0:x.join("|")),(0,n.A)("/api/updateUserUser",{method:"post",body:i},!0).then(e=>{if("object"==typeof g&&(null==g?void 0:g.imageBase64)){var a;g.imageName="".concat(t.database,"-user-").concat(t.id),g.mimeType="jpeg",delete g.imageBase64Full,(0,n.A)("/api/addUserMedia",{method:"post",body:{media:[g],folder:null===(a=t.database)||void 0===a?void 0:a.replace(/_/g,"-"),type:"image"}},!0).then(e=>{var a;e&&e.mediaData&&(null===(a=e.mediaData[0])||void 0===a?void 0:a.media_url)?(0,n.A)("/api/updateUserUser",{method:"post",body:{id:t.id,user_type:t.user_type,image:e.mediaData[0].media_url,image_thumbnail:e.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{v(!1)},500)}):window.location.reload()})}else window.location.reload()})},children:[m.map((e,a)=>{var i,r,d;return(null==e?void 0:e.match(/user_priviledge/))&&(null===(i=t.user_type)||void 0===i?void 0:i.match(/invitation/))?(0,l.jsx)("div",{className:"flex-col items-start w-full gap-1",children:(0,l.jsx)(c.A,{checkBoxValues:null===(d=t[e])||void 0===d?void 0:d.split("|").map(e=>({title:e,name:e,onChangeHandler:()=>{(null==x?void 0:x.includes("Edit"))?f([...x.filter(e=>"Edit"!=e)]):f(e=>e?[...e,"Edit"]:[])}})),smallText:!0,flexRow:!0})},a+1):(null==e?void 0:e.match(/user_priviledge/))&&!(null===(r=t.user_type)||void 0===r?void 0:r.match(/invitation/))?(0,l.jsx)(s.Fragment,{},a+1):(null==e?void 0:e.match(/password|^database|email|username/))?(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:e,children:e}),(0,l.jsx)("input",{type:"text",name:e,id:e,value:t[e],placeholder:e,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},a+1)]},a+1):(null==e?void 0:e.match(/more_user_data/))?(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:e,children:e}),(0,l.jsx)("textarea",{name:e,id:e,defaultValue:t[e]?t[e]:void 0,placeholder:e,rows:6},a+1)]},a+1):(0,l.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,l.jsx)("label",{htmlFor:e,children:e}),(0,l.jsx)("input",{type:"text",name:e,id:e,defaultValue:t[e]?t[e]:void 0,placeholder:e},a+1)]},a+1)}),(0,l.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),g&&j&&(0,l.jsx)(u.A,{userImage:g,setUserImage:j})]}),(0,l.jsx)("button",{children:"Update User"})]})})]})]})}var h=!0;let p=s.createContext({});function v(e){let{user:a,singleUser:t}=e,s="".concat(t.first_name," ").concat(t.last_name,' Users | Datasquirel"'),r=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:s}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(i.A,{head:r,user:a,children:(0,l.jsx)(p.Provider,{value:{user:a,singleUser:t},children:(0,l.jsx)(m,{})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[8261,7391,636,6593,8792],()=>a(2892)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/blog-8c70d46c8352664e.js b/dsql-app/.local_dist/static/chunks/pages/blog-cf9f462c9f1c79b1.js similarity index 96% rename from dsql-app/.local_dist/static/chunks/pages/blog-8c70d46c8352664e.js rename to dsql-app/.local_dist/static/chunks/pages/blog-cf9f462c9f1c79b1.js index a456043..2d1ba82 100644 --- a/dsql-app/.local_dist/static/chunks/pages/blog-8c70d46c8352664e.js +++ b/dsql-app/.local_dist/static/chunks/pages/blog-cf9f462c9f1c79b1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9892],{1775:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return r(8820)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},8820:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(9625),r(4252)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(1775)),_N_E=t.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9892],{1775:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return r(8820)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},8820:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(9625),r(8883)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(1775)),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/contact-f2a4f3c2e97b25fb.js b/dsql-app/.local_dist/static/chunks/pages/contact-015582f94d67d7a7.js similarity index 97% rename from dsql-app/.local_dist/static/chunks/pages/contact-f2a4f3c2e97b25fb.js rename to dsql-app/.local_dist/static/chunks/pages/contact-015582f94d67d7a7.js index 600629f..ad6acb8 100644 --- a/dsql-app/.local_dist/static/chunks/pages/contact-f2a4f3c2e97b25fb.js +++ b/dsql-app/.local_dist/static/chunks/pages/contact-015582f94d67d7a7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{9260:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(9658)}])},6234:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e}=t;return(0,n.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,n.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},4179:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e,className:r}=t;return(0,n.jsxs)("div",{className:"info green"+(r?" "+r:""),children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4848),s=r(6540);function c(t){let{pageTitle:e,pageDescription:r,pagePathname:c,aceEditor:o}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),o&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},9658:(t,e,r)=>{"use strict";r.r(e),r.d(e,{HomepageContext:()=>s,default:()=>c}),r(4848);var n=r(6540);r(4252),r(9625),r(3434),r(9020),r(6234),r(4179),r(1710);let s=n.createContext({});function c(){return n.useEffect(()=>{window.location.href="https://datasquirel.com/contact"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9260)),_N_E=t.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{9260:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(9658)}])},6234:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e}=t;return(0,n.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,n.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},4179:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e,className:r}=t;return(0,n.jsxs)("div",{className:"info green"+(r?" "+r:""),children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4848),s=r(6540);function c(t){let{pageTitle:e,pageDescription:r,pagePathname:c,aceEditor:o}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),o&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},9658:(t,e,r)=>{"use strict";r.r(e),r.d(e,{HomepageContext:()=>s,default:()=>c}),r(4848);var n=r(6540);r(8883),r(9625),r(3434),r(9020),r(6234),r(4179),r(1710);let s=n.createContext({});function c(){return n.useEffect(()=>{window.location.href="https://datasquirel.com/contact"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9260)),_N_E=t.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/create-account-59f89a25241640f4.js b/dsql-app/.local_dist/static/chunks/pages/create-account-59f89a25241640f4.js deleted file mode 100644 index bcfc6e3..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/create-account-59f89a25241640f4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8810],{7900:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-account",function(){return n(6660)}])},4329:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(4848);n(6540);var r=n(1710);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(r.A,{width:"25px",position:"relative"})})]})})}},9625:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(4848),r=n(6540);function a(e){let{pageTitle:t,pageDescription:n,pagePathname:a,aceEditor:i}=e;return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{property:"og:title",content:t}),(0,s.jsx)("meta",{property:"og:description",content:n}),(0,s.jsx)("meta",{itemProp:"name",content:t}),(0,s.jsx)("meta",{itemProp:"description",content:n}),(0,s.jsx)("meta",{name:"twitter:title",content:t}),(0,s.jsx)("meta",{name:"twitter:description",content:n}),i&&(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},6660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CreateAccountContext:()=>x,__N_SSP:()=>d,default:()=>m});var s=n(4848),r=n(6540),a=n(4252),i=n(9625),c=n(4060);function l(){let{query:e,invitingUser:t}=r.useContext(x);return(0,s.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,s.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,s.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:[(null==t?void 0:t.first_name)&&(0,s.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,s.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,s.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,s.jsx)(c.A,{query:e})]})]})}var o=n(9020),u=n(4329),d=!0;let x=r.createContext({});function m(e){var t;let n="Create Account | Datasquirel",c="Create a FREE account and start storing data.",d=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:n}),(0,s.jsx)("meta",{name:"description",content:c}),(0,s.jsx)(i.A,{pageTitle:n,pageDescription:c,pagePathname:"/"})]}),[m,p]=r.useState(null);return(r.useEffect(()=>{var t;(null===(t=e.query)||void 0===t?void 0:t.invite)&&!e.isAuthCookie&&setTimeout(()=>{(0,o.A)("/api/addAdminUserUser",{method:"POST",body:{query:e.query}},!0).then(t=>{var n;window.location.pathname="/admin/".concat(null===(n=e.user)||void 0===n?void 0:n.id,"/users")})},1e3)},[]),null===(t=e.query)||void 0===t?void 0:t.invite)?(0,s.jsx)(u.A,{}):(0,s.jsx)(a.A,{head:d,children:(0,s.jsx)(x.Provider,{value:{user:m,query:e.query,invitingUser:e.invitingUser},children:(0,s.jsx)("main",{children:(0,s.jsx)(l,{})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6999,4060,636,6593,8792],()=>t(7900)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/create-account-7bb20b64ad6eb40f.js b/dsql-app/.local_dist/static/chunks/pages/create-account-7bb20b64ad6eb40f.js new file mode 100644 index 0000000..cf274ed --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/create-account-7bb20b64ad6eb40f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8810],{7900:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-account",function(){return t(6660)}])},6234:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});var s=t(4848);function l(e){let{message:a}=e;return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:a})]})}t(6540)},4329:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848);t(6540);var l=t(1710);function r(){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)(l.A,{width:"25px",position:"relative"})})]})})}},9625:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848),l=t(6540);function r(e){let{pageTitle:a,pageDescription:t,pagePathname:r,aceEditor:n}=e;return(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+r}),(0,s.jsx)("meta",{property:"og:title",content:a}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:a}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:a}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),n&&(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},4060:(e,a,t)=>{"use strict";let s;t.d(a,{A:()=>m});var l=t(4848),r=t(6540),n=t(9020);async function i(e){let{e:a,setLoading:t,user:s,image:l,query:r}=e;t(!0);let i={first_name:a.target.first_name.value,last_name:a.target.last_name.value,email:s?null:a.target.email_address.value,username:s?null:a.target.username.value,password:s?null:a.target.password.value,image:l||null};(null==r?void 0:r.invite)&&(i.inviteObject=r),(0,n.A)(s?"/api/updateUser":"/api/registerUser",{method:"post",body:i},!!s).then(e=>{console.log(e),!s&&(null==e?void 0:e.insertId)?(localStorage.setItem("id",e.insertId),(0,n.A)("/api/loginUser",{method:"post",body:{email:i.email,password:i.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):s&&(null==e?void 0:e.user)?window.location.reload():(null==e?void 0:e.msg)&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{t(!1)},2e3)})}var o=t(6234),c=t(1710),d=t(7384);function m(e){let{user:a,query:t,image:m}=e,u=(null==t?void 0:t.email)?t.email:(null==a?void 0:a.email)?a.email:"",[x,p]=r.useState(null),[g,h]=r.useState(!1);return(0,l.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[g&&(0,l.jsx)(c.A,{}),!a&&(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("hr",{className:"opacity-0"}),(0,l.jsx)(d.A,{user:null,userType:"admin",setLoading:h}),(0,l.jsxs)("div",{className:"w-full justify-center relative",children:[(0,l.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,l.jsx)("hr",{className:"absolute"})]})]}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),window.confirm("Update Account Information?")&&i({e,setLoading:h,user:a,image:m,query:t})},children:[x&&(0,l.jsx)(o.A,{message:x}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,l.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning")},defaultValue:a?a.first_name:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning")},defaultValue:a?a.last_name:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{(0,n.A)("/api/checkDuplicateData?type=username&value=".concat(a.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(p("Username Already Exists"),a.classList.add("warning")):(p(null),a.classList.remove("warning"))})},300)},defaultValue:a?a.username:"",required:!a,readOnly:!!a})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let a=e.target;window.clearTimeout(s),s=setTimeout(()=>{(0,n.A)("/api/checkDuplicateData?type=email&value=".concat(a.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(p("Email Already Exists"),a.classList.add("warning")):(p(null),a.classList.remove("warning"))})},300)},defaultValue:u,required:!0,readOnly:!!a})]}),!a&&(0,l.jsxs)(r.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let t=e.target;(null===(a=t.closest("form"))||void 0===a?void 0:a.password.value)===t.value?t.classList.remove("warning"):t.classList.add("warning")},required:!0})]}),(0,l.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,l.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,l.jsx)("button",{type:"submit",className:"w-full",children:a?(0,l.jsx)("span",{children:"Update Account Info"}):(0,l.jsx)("span",{children:"Create Account"})}),!a&&(0,l.jsx)(r.Fragment,{children:(0,l.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,l.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}},6660:(e,a,t)=>{"use strict";t.r(a),t.d(a,{CreateAccountContext:()=>u,__N_SSP:()=>m,default:()=>x});var s=t(4848),l=t(6540),r=t(8883),n=t(9625),i=t(4060);function o(){let{query:e,invitingUser:a}=l.useContext(u);return(0,s.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,s.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,s.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:[(null==a?void 0:a.first_name)&&(0,s.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,s.jsxs)("b",{children:[a.first_name," ",a.last_name," (",a.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,s.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,s.jsx)(i.A,{query:e})]})]})}var c=t(9020),d=t(4329),m=!0;let u=l.createContext({});function x(e){var a;let t="Create Account | Datasquirel",i="Create a FREE account and start storing data.",m=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{name:"description",content:i}),(0,s.jsx)(n.A,{pageTitle:t,pageDescription:i,pagePathname:"/"})]}),[x,p]=l.useState(null);return(l.useEffect(()=>{var a;(null===(a=e.query)||void 0===a?void 0:a.invite)&&!e.isAuthCookie&&setTimeout(()=>{(0,c.A)("/api/addAdminUserUser",{method:"POST",body:{query:e.query}},!0).then(a=>{var t;window.location.pathname="/admin/".concat(null===(t=e.user)||void 0===t?void 0:t.id,"/users")})},1e3)},[]),null===(a=e.query)||void 0===a?void 0:a.invite)?(0,s.jsx)(d.A,{}):(0,s.jsx)(r.A,{head:m,children:(0,s.jsx)(u.Provider,{value:{user:x,query:e.query,invitingUser:e.invitingUser},children:(0,s.jsx)("main",{children:(0,s.jsx)(o,{})})})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[7384,636,6593,8792],()=>a(7900)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/docs-354599f34e0b3ced.js b/dsql-app/.local_dist/static/chunks/pages/docs-eb06d9879a01da6a.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/docs-354599f34e0b3ced.js rename to dsql-app/.local_dist/static/chunks/pages/docs-eb06d9879a01da6a.js index bb4a48b..a1fd667 100644 --- a/dsql-app/.local_dist/static/chunks/pages/docs-354599f34e0b3ced.js +++ b/dsql-app/.local_dist/static/chunks/pages/docs-eb06d9879a01da6a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7797],{501:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs",function(){return s(2189)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:c}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),c&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let c="".concat(r,"/").concat(s.slug),n=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:c,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),n&&n[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(n,c)})]},a)})}(s,"/docs")})]})}},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},2189:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>x,default:()=>h});var l=s(4848),r=s(6540),a=s(4252),c=s(9625),n=s(3434),i=s(1806);function o(){return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,l.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}var d=s(2027);function m(e){let{title:t,description:s,url:r}=e;return(0,l.jsxs)("a",{href:r,className:"card",children:[(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("span",{className:"text-2xl font-semibold",children:t}),(0,l.jsx)("span",{className:"max-w-md text-slate-600",children:s})]}),(0,l.jsx)(d.A,{size:20})]})}function u(){return(0,l.jsx)("section",{className:"py-14",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,l.jsx)(m,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,l.jsx)(m,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,l.jsx)(m,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}var x=!0;function h(e){let{pages:t,targetPage:s}=e,d="".concat(s.title," | Datasquirel docs"),m=s.description,x=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:d}),(0,l.jsx)("meta",{name:"description",content:m}),(0,l.jsx)(c.A,{pageTitle:d,pageDescription:m,pagePathname:"/"})]}),[h,f]=r.useState(null);return r.useEffect(()=>{(0,n.A)({setUser:f})},[]),(0,l.jsx)(a.A,{head:x,user:h,children:(0,l.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,l.jsx)(i.A,{pages:t}),(0,l.jsxs)("main",{children:[(0,l.jsx)(o,{}),(0,l.jsx)(u,{})]})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(501)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7797],{501:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs",function(){return s(2189)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:c}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),c&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let c="".concat(r,"/").concat(s.slug),n=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:c,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),n&&n[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(n,c)})]},a)})}(s,"/docs")})]})}},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},2189:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>x,default:()=>h});var l=s(4848),r=s(6540),a=s(8883),c=s(9625),n=s(3434),i=s(1806);function o(){return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,l.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}var d=s(2027);function m(e){let{title:t,description:s,url:r}=e;return(0,l.jsxs)("a",{href:r,className:"card",children:[(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("span",{className:"text-2xl font-semibold",children:t}),(0,l.jsx)("span",{className:"max-w-md text-slate-600",children:s})]}),(0,l.jsx)(d.A,{size:20})]})}function u(){return(0,l.jsx)("section",{className:"py-14",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,l.jsx)(m,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,l.jsx)(m,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,l.jsx)(m,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}var x=!0;function h(e){let{pages:t,targetPage:s}=e,d="".concat(s.title," | Datasquirel docs"),m=s.description,x=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:d}),(0,l.jsx)("meta",{name:"description",content:m}),(0,l.jsx)(c.A,{pageTitle:d,pageDescription:m,pagePathname:"/"})]}),[h,f]=r.useState(null);return r.useEffect(()=>{(0,n.A)({setUser:f})},[]),(0,l.jsx)(a.A,{head:x,user:h,children:(0,l.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,l.jsx)(i.A,{pages:t}),(0,l.jsxs)("main",{children:[(0,l.jsx)(o,{}),(0,l.jsx)(u,{})]})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(501)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js b/dsql-app/.local_dist/static/chunks/pages/docs/[page]-21bb67b33655c0e4.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js rename to dsql-app/.local_dist/static/chunks/pages/docs/[page]-21bb67b33655c0e4.js index 32c5b37..6ab77df 100644 --- a/dsql-app/.local_dist/static/chunks/pages/docs/[page]-2cdf66e0a0a6fd83.js +++ b/dsql-app/.local_dist/static/chunks/pages/docs/[page]-21bb67b33655c0e4.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5151],{9365:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]",function(){return s(8070)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},8070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>n,default:()=>c});var l=s(4848),r=s(6540),a=s(4252);s(9625),s(3434),s(1806),s(9072);var n=!0;function c(e){let{pages:t,targetPage:s}=e;try{return r.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),(0,l.jsx)(r.Fragment,{})}catch(e){return r.useEffect(()=>{window.location.pathname="/docs"},[]),(0,l.jsx)(a.A,{head:null,user:null,children:(0,l.jsx)("span",{children:"Redirection ..."})})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(9365)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5151],{9365:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]",function(){return s(8070)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},8070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>n,default:()=>c});var l=s(4848),r=s(6540),a=s(8883);s(9625),s(3434),s(1806),s(9072);var n=!0;function c(e){let{pages:t,targetPage:s}=e;try{return r.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),(0,l.jsx)(r.Fragment,{})}catch(e){return r.useEffect(()=>{window.location.pathname="/docs"},[]),(0,l.jsx)(a.A,{head:null,user:null,children:(0,l.jsx)("span",{children:"Redirection ..."})})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(9365)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js b/dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-b127761336e2c313.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js rename to dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-b127761336e2c313.js index 340261e..f20a618 100644 --- a/dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-380f5cc7ef3513d4.js +++ b/dsql-app/.local_dist/static/chunks/pages/docs/[page]/[sub-page]-b127761336e2c313.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1980],{1027:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]/[sub-page]",function(){return s(9323)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},9323:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>r,default:()=>a}),s(4848);var l=s(6540);s(4252),s(9625),s(3434),s(1806),s(9072);var r=!0;function a(e){let{pages:t,targetPage:s}=e;return l.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),null}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(1027)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1980],{1027:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]/[sub-page]",function(){return s(9323)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(0,l.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},9323:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>r,default:()=>a}),s(4848);var l=s(6540);s(8883),s(9625),s(3434),s(1806),s(9072);var r=!0;function a(e){let{pages:t,targetPage:s}=e;return l.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),null}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(1027)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/email-verification-fec9fecfdcb56e8d.js b/dsql-app/.local_dist/static/chunks/pages/email-verification-b9eba009160729b0.js similarity index 97% rename from dsql-app/.local_dist/static/chunks/pages/email-verification-fec9fecfdcb56e8d.js rename to dsql-app/.local_dist/static/chunks/pages/email-verification-b9eba009160729b0.js index bbb10da..757be6f 100644 --- a/dsql-app/.local_dist/static/chunks/pages/email-verification-fec9fecfdcb56e8d.js +++ b/dsql-app/.local_dist/static/chunks/pages/email-verification-b9eba009160729b0.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6712],{6227:(e,s,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/email-verification",function(){return i(2751)}])},2751:(e,s,i)=>{"use strict";i.r(s),i.d(s,{__N_SSP:()=>r,default:()=>d});var n=i(4848),l=i(6540),a=i(1710),c=i(9020),t=i(4252),r=!0;function d(e){let{user:s,verified:i}=e,[r,d]=l.useState(!1),[o,m]=l.useState(null);return i?(l.useEffect(()=>{try{setTimeout(()=>{window.location.pathname="/admin"},2e3)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"email-verification/index-page-component/lines-72-74",message:e.message,user:s}}),window.location.pathname="/logout"}},[]),(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,n.jsx)("div",{className:"login-block gap-2",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,n.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})})):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,n.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[o&&(0,n.jsx)("div",{className:o.class+" w-full rounded py-2 px-4 flex justify-center",children:o.msg}),r&&(0,n.jsx)(a.A,{position:"absolute"}),(0,n.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,n.jsx)("span",{children:"Please click the button below to send verification link"}),(0,n.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),d(!0),(0,c.A)("/api/sendEmailVerificationLink").then(e=>{d(!1),e.success&&m({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,n.jsx)("span",{children:"Send Verification Link"})}),(0,n.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,n.jsx)("span",{children:"Go Back"})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(6227)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6712],{6227:(e,s,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/email-verification",function(){return i(2751)}])},2751:(e,s,i)=>{"use strict";i.r(s),i.d(s,{__N_SSP:()=>r,default:()=>d});var n=i(4848),l=i(6540),a=i(1710),c=i(9020),t=i(8883),r=!0;function d(e){let{user:s,verified:i}=e,[r,d]=l.useState(!1),[o,m]=l.useState(null);return i?(l.useEffect(()=>{try{setTimeout(()=>{window.location.pathname="/admin"},2e3)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"email-verification/index-page-component/lines-72-74",message:e.message,user:s}}),window.location.pathname="/logout"}},[]),(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,n.jsx)("div",{className:"login-block gap-2",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,n.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})})):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,n.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[o&&(0,n.jsx)("div",{className:o.class+" w-full rounded py-2 px-4 flex justify-center",children:o.msg}),r&&(0,n.jsx)(a.A,{position:"absolute"}),(0,n.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,n.jsx)("span",{children:"Please click the button below to send verification link"}),(0,n.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),d(!0),(0,c.A)("/api/sendEmailVerificationLink").then(e=>{d(!1),e.success&&m({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,n.jsx)("span",{children:"Send Verification Link"})}),(0,n.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,n.jsx)("span",{children:"Go Back"})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(6227)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/index-d8f75819eb449ffc.js b/dsql-app/.local_dist/static/chunks/pages/index-f4368d8e4e652a17.js similarity index 93% rename from dsql-app/.local_dist/static/chunks/pages/index-d8f75819eb449ffc.js rename to dsql-app/.local_dist/static/chunks/pages/index-f4368d8e4e652a17.js index effafcb..681d66d 100644 --- a/dsql-app/.local_dist/static/chunks/pages/index-d8f75819eb449ffc.js +++ b/dsql-app/.local_dist/static/chunks/pages/index-f4368d8e4e652a17.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{2022:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(464)}])},4819:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(4848),h=a(6540),i=a(7220);function c(e){let{content:t,language:a,style:c,showCopy:s}=e,[o,l]=h.useState(!1),y=()=>{l(!0)},d={};return(0,r.jsxs)("pre",{className:"language-".concat(a||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:c?{...c,...d}:d,children:[(0,r.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,r.jsx)("button",{className:"outlined copy-code "+(s?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{y()})},children:(0,r.jsx)(i.A,{className:"text-white",size:20})})]})}},5356:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var r=a(4848);function h(e){let{src:t,alt:a,className:h,fadeHeight:i,width:c,height:s,opacity:o}=e;return(0,r.jsxs)("div",{className:"overflow-hidden z-0"+(h?" "+h:""),children:[(0,r.jsx)("img",{src:t,alt:a,className:"w-full h-full object-cover",width:c,height:s}),(0,r.jsx)("div",{className:"fade-side",style:{height:i}})]})}a(6540)},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},464:(e,t,a)=>{"use strict";a.r(t),a.d(t,{HomepageContext:()=>i,default:()=>c}),a(4848);var r=a(6540);a(4252),a(9625),a(3434),a(6369),a(817),a(7512),a(5356),a(4819),a(5014);var h=a(5737);(0,h.A)("SquareGanttChart",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]),(0,h.A)("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),a(8190),(0,h.A)("EarthLock",[["path",{d:"M7 3.34V5a3 3 0 0 0 3 3",key:"w732o8"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"f02343"}],["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M12 2a10 10 0 1 0 9.54 13",key:"zjsr6q"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]]),a(2894),a(3419);let i=r.createContext({});function c(){r.useEffect(()=>{window.location.replace("/login")},[])}},7512:e=>{e.exports={hero_section_wrapper:"Home_hero_section_wrapper__rAO8W",hero_image:"Home_hero_image__qie3Q",hero_image_alt:"Home_hero_image_alt__Bl1L4",hero_text_section:"Home_hero_text_section__tNqS5"}}},e=>{var t=t=>e(e.s=t);e.O(0,[3298,636,6593,8792],()=>t(2022)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{2022:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(464)}])},4819:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(4848),h=a(6540),i=a(4839);function c(e){let{content:t,language:a,style:c,showCopy:s}=e,[o,l]=h.useState(!1),y=()=>{l(!0)},d={};return(0,r.jsxs)("pre",{className:"language-".concat(a||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:c?{...c,...d}:d,children:[(0,r.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,r.jsx)("button",{className:"outlined copy-code "+(s?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{y()})},children:(0,r.jsx)(i.A,{className:"text-white",size:20})})]})}},5356:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var r=a(4848);function h(e){let{src:t,alt:a,className:h,fadeHeight:i,width:c,height:s,opacity:o}=e;return(0,r.jsxs)("div",{className:"overflow-hidden z-0"+(h?" "+h:""),children:[(0,r.jsx)("img",{src:t,alt:a,className:"w-full h-full object-cover",width:c,height:s}),(0,r.jsx)("div",{className:"fade-side",style:{height:i}})]})}a(6540)},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},464:(e,t,a)=>{"use strict";a.r(t),a.d(t,{HomepageContext:()=>i,default:()=>c}),a(4848);var r=a(6540);a(8883),a(9625),a(3434),a(6369),a(817),a(7512),a(5356),a(4819),a(5014);var h=a(5737);(0,h.A)("SquareGanttChart",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]),(0,h.A)("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),a(8190),(0,h.A)("EarthLock",[["path",{d:"M7 3.34V5a3 3 0 0 0 3 3",key:"w732o8"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"f02343"}],["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M12 2a10 10 0 1 0 9.54 13",key:"zjsr6q"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]]),a(2894),a(3419);let i=r.createContext({});function c(){r.useEffect(()=>{window.location.replace("/login")},[])}},7512:e=>{e.exports={hero_section_wrapper:"Home_hero_section_wrapper__rAO8W",hero_image:"Home_hero_image__qie3Q",hero_image_alt:"Home_hero_image_alt__Bl1L4",hero_text_section:"Home_hero_text_section__tNqS5"}}},e=>{var t=t=>e(e.s=t);e.O(0,[3298,636,6593,8792],()=>t(2022)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/login-4d7e5dc8974c6b4f.js b/dsql-app/.local_dist/static/chunks/pages/login-4d7e5dc8974c6b4f.js new file mode 100644 index 0000000..5f61282 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/login-4d7e5dc8974c6b4f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[676],{7864:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return a(5386)}])},4329:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t=a(4848);a(6540);var r=a(1710);function l(){return(0,t.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,t.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,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,t.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,t.jsx)(r.A,{width:"25px",position:"relative"})})]})})}},5386:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>v,default:()=>w});var t=a(4848),r=a(6540),l=a(3368),n=a.n(l),i=a(9020),o=a(1335),c=a.n(o);async function d(e){let{e:s,setAlert:a,setLoading:t,query:r}=e;s.preventDefault(),t(!0);let l=s.target["email-or-username-input"],n=s.target.password;if((null==l?void 0:l.value)===""&&(null==n?void 0:n.value)===""){l.classList.add("warning"),n.classList.add("warning"),a("No Email or Password Provided"),t(!1);return}if((null==n?void 0:n.value)===""){a(!1),n.classList.add("warning"),a(!0),t(!1);return}l.classList.remove("warning"),n.classList.remove("warning"),a(!1);let o={email:l.value,password:n.value,query:r};(0,i.A)("/api/loginUser",{method:"post",body:o}).then(e=>{var s;e.success&&(null===(s=e.payload)||void 0===s?void 0:s.logged_in_status)?(c().auth.postLogin(e),window.location.reload()):e.msg&&(a(e.msg),t(!1))})}var u=a(1710),m=a(7384);let x=r.createContext({});function h(e){let{user:s,query:a}=e,[l,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(!1);return(0,t.jsxs)(x.Provider,{value:{loading:i,setLoading:o,alert:l,setAlert:n,user:s},children:[(0,t.jsx)(m.A,{user:s,userType:"admin",setLoading:o}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]}),(0,t.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[i&&(0,t.jsx)(u.A,{}),l&&(0,t.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:l}),(0,t.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{d({e,setAlert:n,setLoading:o,query:a})},children:[(0,t.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:(null==a?void 0:a.email)?a.email:"",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("button",{type:"submit",children:"Login"})]}),(0,t.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,t.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,t.jsx)("span",{children:"Dont have an account yet?"}),(0,t.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,t.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,t.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,t.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var f=a(6232),p=a(4329),v=!0;function w(e){return(r.useEffect(()=>{setTimeout(()=>{e.query.invite&&e.user&&(window.location.pathname="/create-account")},1e3),e.query.invite||localStorage.setItem("user","{}")},[]),e.query.invite&&e.user)?(0,t.jsx)(p.A,{}):(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)(n(),{children:[(0,t.jsx)("title",{children:"Login to your account"}),(0,t.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,t.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,t.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,t.jsx)(f.A,{}),(0,t.jsx)("hr",{}),(0,t.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,t.jsx)(h,{user:e.user,query:e.query})]})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7384,636,6593,8792],()=>s(7864)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/login-f10f3645e54e61fd.js b/dsql-app/.local_dist/static/chunks/pages/login-f10f3645e54e61fd.js deleted file mode 100644 index bd8cce0..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/login-f10f3645e54e61fd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[676],{7864:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(5386)}])},4329:(e,s,r)=>{"use strict";r.d(s,{A:()=>l});var t=r(4848);r(6540);var a=r(1710);function l(){return(0,t.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,t.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,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,t.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,t.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},5386:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>p,default:()=>w});var t=r(4848),a=r(6540),l=r(3368),n=r.n(l),i=r(8639),o=r(9020);async function c(e){let{e:s,setAlert:r,setLoading:t,query:a}=e;s.preventDefault(),t(!0);let l=s.target["email-or-username-input"],n=s.target.password;if((null==l?void 0:l.value)===""&&(null==n?void 0:n.value)===""){l.classList.add("warning"),n.classList.add("warning"),r("No Email or Password Provided"),t(!1);return}if((null==n?void 0:n.value)===""){r(!1),n.classList.add("warning"),r(!0),t(!1);return}l.classList.remove("warning"),n.classList.remove("warning"),r(!1);let c={email:l.value,password:n.value,query:a};(0,o.A)("/api/loginUser",{method:"post",body:c}).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,i.A)().then(()=>{window.location.reload()})):(r(e.msg),t(!1))})}var d=r(1710),u=r(6999);let m=a.createContext({});function x(e){let{user:s,query:r}=e,[l,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1);return(0,t.jsxs)(m.Provider,{value:{loading:i,setLoading:o,alert:l,setAlert:n,user:s},children:[(0,t.jsx)(u.A,{user:s,userType:"admin",setLoading:o}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]}),(0,t.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[i&&(0,t.jsx)(d.A,{}),l&&(0,t.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:l}),(0,t.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{c({e,setAlert:n,setLoading:o,query:r})},children:[(0,t.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:(null==r?void 0:r.email)?r.email:"",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("button",{type:"submit",children:"Login"})]}),(0,t.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,t.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,t.jsx)("span",{children:"Dont have an account yet?"}),(0,t.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,t.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,t.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,t.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var f=r(6232),h=r(4329),p=!0;function w(e){return(a.useEffect(()=>{setTimeout(()=>{e.query.invite&&e.user&&(window.location.pathname="/create-account")},1e3),e.query.invite||localStorage.setItem("user","{}")},[]),e.query.invite&&e.user)?(0,t.jsx)(h.A,{}):(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)(n(),{children:[(0,t.jsx)("title",{children:"Login to your account"}),(0,t.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,t.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,t.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,t.jsx)(f.A,{}),(0,t.jsx)("hr",{}),(0,t.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,t.jsx)(x,{user:e.user,query:e.query})]})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[6999,636,6593,8792],()=>s(7864)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/logout-455304f72b658ce6.js b/dsql-app/.local_dist/static/chunks/pages/logout-455304f72b658ce6.js deleted file mode 100644 index 5eacd9d..0000000 --- a/dsql-app/.local_dist/static/chunks/pages/logout-455304f72b658ce6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{5692:(e,o,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(732)}])},8639:(e,o,t)=>{"use strict";async function i(){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)}}t.d(o,{A:()=>i})},732:(e,o,t)=>{"use strict";t.r(o),t.d(o,{__N_SSP:()=>d,default:()=>g});var i=t(4848),n=t(6540),s=t(3368),l=t.n(s),a=t(9020),c=t(8639),r=t(1710),d=!0;function g(e){let{user:o,query:t}=e,s=(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Login you out"}),(0,i.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,i.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return n.useEffect(()=>{localStorage.removeItem("user"),localStorage.removeItem("csrf")},[]),n.useEffect(()=>{function e(){var e,i;return(null==t?void 0:t.invite)&&(null==t?void 0:t.login)?window.location.href="/login"+window.location.search:(null==t?void 0:t.login)||(null===(e=localStorage.getItem("logoutParadigm"))||void 0===e?void 0:e.match(/reset/))?window.location.href="/login":void((null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&localStorage.setItem("google_prompt_skipped","logout"),window.location.pathname="/")}(0,a.A)("/api/logoutUser").then(async t=>{await (0,c.A)();let i=await navigator.serviceWorker.getRegistrations();for(let e=0;e{if(t.authResponse)n.logout(()=>{e()});else{var i;s.accounts.id.initialize({client_id:""}),(null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&o.social_id?(s.accounts.id.revoke(),s.accounts.id.revoke(o.social_id,o=>{console.log(o.error),e()})):e()}})}catch(e){(0,a.A)("/api/admin/clientError",{method:"post",body:{component:"logout-page-component/lines-111-142",message:e.message,user:o}})}})},[]),(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(l(),{children:s}),(0,i.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,i.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,i.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,i.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,i.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,i.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,i.jsx)(r.A,{position:"relative",width:"20px"})]})})]})}}},e=>{var o=o=>e(e.s=o);e.O(0,[636,6593,8792],()=>o(5692)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/logout-5713792f28342582.js b/dsql-app/.local_dist/static/chunks/pages/logout-5713792f28342582.js new file mode 100644 index 0000000..7fa2950 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/pages/logout-5713792f28342582.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{5692:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(5152)}])},5152:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>u,default:()=>h});var n=t(4848),r=t(6540),c=t(1335),i=t.n(c),o=t(3368),a=t.n(o),l=t(1710);function d(){let e=(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Login you out"}),(0,n.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,n.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return r.useEffect(()=>{i().auth.logout({}).then(()=>{window.location.pathname="/"})},[]),(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(a(),{children:e}),(0,n.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,n.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,n.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,n.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,n.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,n.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,n.jsx)(l.A,{position:"relative",width:"20px"})]})})]})}var u=!0;function h(){return(0,n.jsx)(d,{})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,636,6593,8792],()=>s(5692)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/privacy-3a1d5e267140271e.js b/dsql-app/.local_dist/static/chunks/pages/privacy-2af1bbeba3506b4f.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/privacy-3a1d5e267140271e.js rename to dsql-app/.local_dist/static/chunks/pages/privacy-2af1bbeba3506b4f.js index 47c9a45..020bdcb 100644 --- a/dsql-app/.local_dist/static/chunks/pages/privacy-3a1d5e267140271e.js +++ b/dsql-app/.local_dist/static/chunks/pages/privacy-2af1bbeba3506b4f.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{7580:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy",function(){return o(3619)}])},5356:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var i=o(4848);function r(e){let{src:t,alt:o,className:r,fadeHeight:s,width:a,height:n,opacity:c}=e;return(0,i.jsxs)("div",{className:"overflow-hidden z-0"+(r?" "+r:""),children:[(0,i.jsx)("img",{src:t,alt:o,className:"w-full h-full object-cover",width:a,height:n}),(0,i.jsx)("div",{className:"fade-side",style:{height:s}})]})}o(6540)},9625:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(4848),r=o(6540);function s(e){let{pageTitle:t,pageDescription:o,pagePathname:s,aceEditor:a}=e;return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,i.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,i.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,i.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,i.jsx)("meta",{property:"og:title",content:t}),(0,i.jsx)("meta",{property:"og:description",content:o}),(0,i.jsx)("meta",{itemProp:"name",content:t}),(0,i.jsx)("meta",{itemProp:"description",content:o}),(0,i.jsx)("meta",{name:"twitter:title",content:t}),(0,i.jsx)("meta",{name:"twitter:description",content:o}),a&&(0,i.jsxs)(r.Fragment,{children:[(0,i.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,i.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"})]})]})}},3434:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var i=o(9020);function r(e){let{setUser:t}=e,o=localStorage.getItem("user");if(o)try{t(JSON.parse(o));return}catch(e){t({});return}(0,i.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let o=e.user?e.user:{};t(o),localStorage.setItem("user",JSON.stringify(o))}).catch(e=>{console.log(e)})}},3619:(e,t,o)=>{"use strict";o.r(t),o.d(t,{PrivacyContext:()=>d,default:()=>u});var i=o(4848),r=o(6540),s=o(4252),a=o(9625),n=o(3434),c=o(5356);function l(){return(0,i.jsxs)("section",{className:"pt-20 pb-10 overflow-visible relative",children:[(0,i.jsxs)("div",{className:"w-full max-w-4xl flex-col relative z-10 items-start",children:[(0,i.jsx)("h1",{className:"m-0",children:"Privacy Policy"}),(0,i.jsx)("span",{className:"info w-auto small green",children:"Privacy Policy for Datasquirel"})]}),(0,i.jsx)(c.A,{src:"/images/grid.webp",className:"top-0 left-0 w-full absolute dark:opacity-20",fadeHeight:"500px",alt:"Dotted image background"})]})}function h(){return(0,i.jsx)(r.Fragment,{children:(0,i.jsx)("section",{children:(0,i.jsxs)("div",{className:"flex-col items-start w-full max-w-4xl",children:[(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Consent"}),(0,i.jsx)("p",{children:"By using our website, you hereby consent to our Privacy Policy and agree to its terms."}),(0,i.jsx)("h2",{children:"Information we collect"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"How we use your information"}),(0,i.jsx)("p",{children:"We use the information we collect in various ways, including to:"}),(0,i.jsx)("div",{className:"paper",children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Provide, operate, and maintain our website"}),(0,i.jsx)("li",{children:"Improve, personalize, and expand our website"}),(0,i.jsx)("li",{children:"Understand and analyze how you use our website"}),(0,i.jsx)("li",{children:"Develop new products, services, features, and functionality"}),(0,i.jsx)("li",{children:"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"}),(0,i.jsx)("li",{children:"Send you emails"}),(0,i.jsx)("li",{children:"Find and prevent fraud"})]})}),(0,i.jsx)("h2",{children:"Log Files"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Cookies and Web Beacons"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Advertising Partners Privacy Policies"}),(0,i.jsx)("p",{children:"You may consult this list to find the Privacy Policy for each of the advertising partners of datasquirel.com."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"Note that datasquirel.com has no access to or control over these cookies that are used by third-party advertisers."}),(0,i.jsx)("h2",{children:"Third Party Privacy Policies"}),(0,i.jsxs)("p",{children:["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."," "]}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"CCPA Privacy Rights (Do Not Sell My Personal Information)"}),(0,i.jsx)("p",{children:"Under the CCPA, among other rights, California consumers have the right to:"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"Request that a business delete any personal data about the consumer that a business has collected."}),(0,i.jsx)("p",{children:"Request that a business that sells a consumer's personal data, not sell the consumer's personal data."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"GDPR Data Protection Rights"}),(0,i.jsx)("p",{children:"We would like to make sure you are fully aware of all of your data protection rights. Every user is entitled to the following:"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"The right to erasure – You have the right to request that we erase your personal data, under certain conditions."}),(0,i.jsx)("p",{children:"The right to restrict processing – You have the right to request that we restrict the processing of your personal data, under certain conditions."}),(0,i.jsx)("p",{children:"The right to object to processing – You have the right to object to our processing of your personal data, under certain conditions."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Children's Information"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."})]})})})}let d=r.createContext({});function u(){let e="Privacy Policy | Datasquirel",t="Privacy Policy for Datasquirel",o=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:e}),(0,i.jsx)("meta",{name:"description",content:t}),(0,i.jsx)(a.A,{pageTitle:e,pageDescription:t,pagePathname:"/"}),(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"h1,h2,h3,h4,h5,h6{margin-bottom:0}p{margin-top:0}"}})]}),[c,u]=r.useState(null);return r.useEffect(()=>{(0,n.A)({setUser:u})},[]),(0,i.jsx)(s.A,{head:o,user:c,children:(0,i.jsx)(d.Provider,{value:{user:c},children:(0,i.jsxs)("main",{children:[(0,i.jsx)(l,{}),(0,i.jsx)(h,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(7580)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{7580:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/privacy",function(){return o(3619)}])},5356:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var i=o(4848);function r(e){let{src:t,alt:o,className:r,fadeHeight:s,width:a,height:n,opacity:c}=e;return(0,i.jsxs)("div",{className:"overflow-hidden z-0"+(r?" "+r:""),children:[(0,i.jsx)("img",{src:t,alt:o,className:"w-full h-full object-cover",width:a,height:n}),(0,i.jsx)("div",{className:"fade-side",style:{height:s}})]})}o(6540)},9625:(e,t,o)=>{"use strict";o.d(t,{A:()=>s});var i=o(4848),r=o(6540);function s(e){let{pageTitle:t,pageDescription:o,pagePathname:s,aceEditor:a}=e;return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,i.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,i.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,i.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,i.jsx)("meta",{property:"og:title",content:t}),(0,i.jsx)("meta",{property:"og:description",content:o}),(0,i.jsx)("meta",{itemProp:"name",content:t}),(0,i.jsx)("meta",{itemProp:"description",content:o}),(0,i.jsx)("meta",{name:"twitter:title",content:t}),(0,i.jsx)("meta",{name:"twitter:description",content:o}),a&&(0,i.jsxs)(r.Fragment,{children:[(0,i.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,i.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"})]})]})}},3434:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var i=o(9020);function r(e){let{setUser:t}=e,o=localStorage.getItem("user");if(o)try{t(JSON.parse(o));return}catch(e){t({});return}(0,i.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let o=e.user?e.user:{};t(o),localStorage.setItem("user",JSON.stringify(o))}).catch(e=>{console.log(e)})}},3619:(e,t,o)=>{"use strict";o.r(t),o.d(t,{PrivacyContext:()=>d,default:()=>u});var i=o(4848),r=o(6540),s=o(8883),a=o(9625),n=o(3434),c=o(5356);function l(){return(0,i.jsxs)("section",{className:"pt-20 pb-10 overflow-visible relative",children:[(0,i.jsxs)("div",{className:"w-full max-w-4xl flex-col relative z-10 items-start",children:[(0,i.jsx)("h1",{className:"m-0",children:"Privacy Policy"}),(0,i.jsx)("span",{className:"info w-auto small green",children:"Privacy Policy for Datasquirel"})]}),(0,i.jsx)(c.A,{src:"/images/grid.webp",className:"top-0 left-0 w-full absolute dark:opacity-20",fadeHeight:"500px",alt:"Dotted image background"})]})}function h(){return(0,i.jsx)(r.Fragment,{children:(0,i.jsx)("section",{children:(0,i.jsxs)("div",{className:"flex-col items-start w-full max-w-4xl",children:[(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Consent"}),(0,i.jsx)("p",{children:"By using our website, you hereby consent to our Privacy Policy and agree to its terms."}),(0,i.jsx)("h2",{children:"Information we collect"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"How we use your information"}),(0,i.jsx)("p",{children:"We use the information we collect in various ways, including to:"}),(0,i.jsx)("div",{className:"paper",children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Provide, operate, and maintain our website"}),(0,i.jsx)("li",{children:"Improve, personalize, and expand our website"}),(0,i.jsx)("li",{children:"Understand and analyze how you use our website"}),(0,i.jsx)("li",{children:"Develop new products, services, features, and functionality"}),(0,i.jsx)("li",{children:"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"}),(0,i.jsx)("li",{children:"Send you emails"}),(0,i.jsx)("li",{children:"Find and prevent fraud"})]})}),(0,i.jsx)("h2",{children:"Log Files"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Cookies and Web Beacons"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Advertising Partners Privacy Policies"}),(0,i.jsx)("p",{children:"You may consult this list to find the Privacy Policy for each of the advertising partners of datasquirel.com."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"Note that datasquirel.com has no access to or control over these cookies that are used by third-party advertisers."}),(0,i.jsx)("h2",{children:"Third Party Privacy Policies"}),(0,i.jsxs)("p",{children:["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."," "]}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"CCPA Privacy Rights (Do Not Sell My Personal Information)"}),(0,i.jsx)("p",{children:"Under the CCPA, among other rights, California consumers have the right to:"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"Request that a business delete any personal data about the consumer that a business has collected."}),(0,i.jsx)("p",{children:"Request that a business that sells a consumer's personal data, not sell the consumer's personal data."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"GDPR Data Protection Rights"}),(0,i.jsx)("p",{children:"We would like to make sure you are fully aware of all of your data protection rights. Every user is entitled to the following:"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"The right to erasure – You have the right to request that we erase your personal data, under certain conditions."}),(0,i.jsx)("p",{children:"The right to restrict processing – You have the right to request that we restrict the processing of your personal data, under certain conditions."}),(0,i.jsx)("p",{children:"The right to object to processing – You have the right to object to our processing of your personal data, under certain conditions."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("h2",{children:"Children's Information"}),(0,i.jsx)("p",{children:"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."}),(0,i.jsx)("p",{children:"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."})]})})})}let d=r.createContext({});function u(){let e="Privacy Policy | Datasquirel",t="Privacy Policy for Datasquirel",o=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:e}),(0,i.jsx)("meta",{name:"description",content:t}),(0,i.jsx)(a.A,{pageTitle:e,pageDescription:t,pagePathname:"/"}),(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"h1,h2,h3,h4,h5,h6{margin-bottom:0}p{margin-top:0}"}})]}),[c,u]=r.useState(null);return r.useEffect(()=>{(0,n.A)({setUser:u})},[]),(0,i.jsx)(s.A,{head:o,user:c,children:(0,i.jsx)(d.Provider,{value:{user:c},children:(0,i.jsxs)("main",{children:[(0,i.jsx)(l,{}),(0,i.jsx)(h,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(7580)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/reset-password-404836a50d6e9e32.js b/dsql-app/.local_dist/static/chunks/pages/reset-password-6b15512e80d3b798.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/reset-password-404836a50d6e9e32.js rename to dsql-app/.local_dist/static/chunks/pages/reset-password-6b15512e80d3b798.js index 9a85d4b..4c4f7df 100644 --- a/dsql-app/.local_dist/static/chunks/pages/reset-password-404836a50d6e9e32.js +++ b/dsql-app/.local_dist/static/chunks/pages/reset-password-6b15512e80d3b798.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{2710:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(2939)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(4848);function a(e){let{message:s,className:t}=e;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:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var r=t(4848),a=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:o}=e;return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:title",content:s}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:s}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:s}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),o&&(0,r.jsxs)(a.Fragment,{children:[(0,r.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,r.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"})]})]})}},2939:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ResetPasswordContext:()=>u,__N_SSP:()=>p,default:()=>w});var r=t(4848),a=t(6540),n=t(4252),o=t(9625),c=t(1710),i=t(9020),l=t(4179),d=t(2543),m=t.n(d),p=!0;let u=a.createContext({});function w(e){let{email:s}=e,t="Reset Password | Datasquirel",d="Set a new password",p=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:d}),(0,r.jsx)(o.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[w,x]=a.useState(!1),[h,g]=a.useState(!1);return(0,r.jsx)(n.A,{head:p,user:e.user,children:(0,r.jsx)(u.Provider,{value:{user:e.user},children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[w&&(0,r.jsx)(c.A,{}),(0,r.jsx)("div",{className:"main-container flex-col items-start",children:h?(0,r.jsx)(l.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,r.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,r.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{x(!0),e.preventDefault();let t=e.target,r=t.password.value,a=t["confirm-password"].classList.contains("warning");if((null==r?void 0:r.length)<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{x(!1)},500);return}if(a){window.alert("Passwords don't match"),setTimeout(()=>{x(!1)},500);return}(0,i.A)("/api/resetPassword?email=".concat(s,"&password=").concat(r)).then(e=>{setTimeout(()=>{x(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&g(!0)})},children:[(0,r.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let s=e.target,t=s.closest("form");try{t.password.value.match(new RegExp("^".concat(m().escapeRegExp(s.value),"$")))?s.classList.remove("warning"):s.classList.add("warning")}catch(s){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:s.message,user:{}}}),e.target.classList.add("warning")}}}),(0,r.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(2710)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{2710:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(2939)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(4848);function a(e){let{message:s,className:t}=e;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:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var r=t(4848),a=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:o}=e;return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:title",content:s}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:s}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:s}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),o&&(0,r.jsxs)(a.Fragment,{children:[(0,r.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,r.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"})]})]})}},2939:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ResetPasswordContext:()=>u,__N_SSP:()=>p,default:()=>w});var r=t(4848),a=t(6540),n=t(8883),o=t(9625),c=t(1710),i=t(9020),l=t(4179),d=t(2543),m=t.n(d),p=!0;let u=a.createContext({});function w(e){let{email:s}=e,t="Reset Password | Datasquirel",d="Set a new password",p=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:d}),(0,r.jsx)(o.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[w,x]=a.useState(!1),[h,g]=a.useState(!1);return(0,r.jsx)(n.A,{head:p,user:e.user,children:(0,r.jsx)(u.Provider,{value:{user:e.user},children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[w&&(0,r.jsx)(c.A,{}),(0,r.jsx)("div",{className:"main-container flex-col items-start",children:h?(0,r.jsx)(l.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,r.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,r.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{x(!0),e.preventDefault();let t=e.target,r=t.password.value,a=t["confirm-password"].classList.contains("warning");if((null==r?void 0:r.length)<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{x(!1)},500);return}if(a){window.alert("Passwords don't match"),setTimeout(()=>{x(!1)},500);return}(0,i.A)("/api/resetPassword?email=".concat(s,"&password=").concat(r)).then(e=>{setTimeout(()=>{x(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&g(!0)})},children:[(0,r.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let s=e.target,t=s.closest("form");try{t.password.value.match(new RegExp("^".concat(m().escapeRegExp(s.value),"$")))?s.classList.remove("warning"):s.classList.add("warning")}catch(s){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:s.message,user:{}}}),e.target.classList.add("warning")}}}),(0,r.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(2710)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js b/dsql-app/.local_dist/static/chunks/pages/send-password-reset-link-757b50458fb65f03.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js rename to dsql-app/.local_dist/static/chunks/pages/send-password-reset-link-757b50458fb65f03.js index 40a637b..523c757 100644 --- a/dsql-app/.local_dist/static/chunks/pages/send-password-reset-link-01b2509dfe7be8b2.js +++ b/dsql-app/.local_dist/static/chunks/pages/send-password-reset-link-757b50458fb65f03.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6827],{7934:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/send-password-reset-link",function(){return t(7569)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var a=t(4848);function r(e){let{message:s,className:t}=e;return(0,a.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,a.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,a.jsx)("span",{children:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(4848),r=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:l}=e;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:title",content:s}),(0,a.jsx)("meta",{property:"og:description",content:t}),(0,a.jsx)("meta",{itemProp:"name",content:s}),(0,a.jsx)("meta",{itemProp:"description",content:t}),(0,a.jsx)("meta",{name:"twitter:title",content:s}),(0,a.jsx)("meta",{name:"twitter:description",content:t}),l&&(0,a.jsxs)(r.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"})]})]})}},7569:(e,s,t)=>{"use strict";t.r(s),t.d(s,{SendPassResetContext:()=>h,__N_SSP:()=>u,default:()=>x});var a=t(4848),r=t(6540),n=t(4252),l=t(9625),i=t(1710),c=t(9020),o=t(4179);let d=(0,t(5737).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 m(e){let{message:s}=e;return(0,a.jsxs)("div",{className:"info gray",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"font-normal",children:s})]})}var u=!0;let h=r.createContext({});function x(e){var s;let t="Cloudbased SQL data management system | Datasquirel",d="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.",u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("meta",{name:"description",content:d}),(0,a.jsx)(l.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[x,p]=r.useState(!1),[j,f]=r.useState(!1);return(0,a.jsx)(n.A,{head:u,user:e.user,children:(0,a.jsx)(h.Provider,{value:{user:e.user},children:(0,a.jsx)("main",{children:(0,a.jsxs)("section",{children:[x&&(0,a.jsx)(i.A,{}),j?(0,a.jsx)(o.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,a.jsx)("div",{className:"paper",children:(0,a.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,a.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,a.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{p(!0),e.preventDefault();let s=e.target["email-address"].value;(0,c.A)("/api/sendPasswordResetLink?email=".concat(s)).then(e=>{console.log(e),setTimeout(()=>{p(!1)},500),e.success&&f(!0)})},children:[(0,a.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:(null==e?void 0:null===(s=e.user)||void 0===s?void 0:s.logged_in_status)?e.user.email:"",required:!0}),(0,a.jsx)("button",{children:"Send password reset Email"}),(0,a.jsx)(m,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(7934)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6827],{7934:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/send-password-reset-link",function(){return t(7569)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var a=t(4848);function r(e){let{message:s,className:t}=e;return(0,a.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,a.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,a.jsx)("span",{children:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(4848),r=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:l}=e;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:title",content:s}),(0,a.jsx)("meta",{property:"og:description",content:t}),(0,a.jsx)("meta",{itemProp:"name",content:s}),(0,a.jsx)("meta",{itemProp:"description",content:t}),(0,a.jsx)("meta",{name:"twitter:title",content:s}),(0,a.jsx)("meta",{name:"twitter:description",content:t}),l&&(0,a.jsxs)(r.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"})]})]})}},7569:(e,s,t)=>{"use strict";t.r(s),t.d(s,{SendPassResetContext:()=>h,__N_SSP:()=>u,default:()=>x});var a=t(4848),r=t(6540),n=t(8883),l=t(9625),i=t(1710),c=t(9020),o=t(4179);let d=(0,t(5737).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 m(e){let{message:s}=e;return(0,a.jsxs)("div",{className:"info gray",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"font-normal",children:s})]})}var u=!0;let h=r.createContext({});function x(e){var s;let t="Cloudbased SQL data management system | Datasquirel",d="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.",u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("meta",{name:"description",content:d}),(0,a.jsx)(l.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[x,p]=r.useState(!1),[j,f]=r.useState(!1);return(0,a.jsx)(n.A,{head:u,user:e.user,children:(0,a.jsx)(h.Provider,{value:{user:e.user},children:(0,a.jsx)("main",{children:(0,a.jsxs)("section",{children:[x&&(0,a.jsx)(i.A,{}),j?(0,a.jsx)(o.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,a.jsx)("div",{className:"paper",children:(0,a.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,a.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,a.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{p(!0),e.preventDefault();let s=e.target["email-address"].value;(0,c.A)("/api/sendPasswordResetLink?email=".concat(s)).then(e=>{console.log(e),setTimeout(()=>{p(!1)},500),e.success&&f(!0)})},children:[(0,a.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:(null==e?void 0:null===(s=e.user)||void 0===s?void 0:s.logged_in_status)?e.user.email:"",required:!0}),(0,a.jsx)("button",{children:"Send password reset Email"}),(0,a.jsx)(m,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(7934)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js b/dsql-app/.local_dist/static/chunks/pages/su/load-balancing-795c8e791cf6f943.js similarity index 97% rename from dsql-app/.local_dist/static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js rename to dsql-app/.local_dist/static/chunks/pages/su/load-balancing-795c8e791cf6f943.js index 5b87f02..a42259e 100644 --- a/dsql-app/.local_dist/static/chunks/pages/su/load-balancing-d0b790d61a50a4ef.js +++ b/dsql-app/.local_dist/static/chunks/pages/su/load-balancing-795c8e791cf6f943.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9157],{3832:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/load-balancing",function(){return t(6735)}])},5139:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(4848);t(6540);var r=t(7220),l=t(856);function i(e){let{slugText:s,justIcon:t,noIcon:i,title:d,outlined:c,extraClasses:n}=e;return(0,a.jsxs)("div",{className:(0,l.QP)("button small-text hover:!bg-transparent",c?" outlined gray bg-white":" ghost light-gray",n),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:c?void 0:{padding:0},children:[!i&&(0,a.jsx)(r.A,{size:c?15:20}),!t&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:d||"Copy Slug"})]})}},5125:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var a=t(4848),r=t(5139),l=t(2750),i=t(856);function d(e){var s;let{server:t,noLoadBalance:r}=e;return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:t.host}),r?(0,a.jsx)(a.Fragment,{}):t.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,i.QP)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:null===(s=t.users)||void 0===s?void 0:s.map((e,s)=>(0,a.jsx)(c,{user:e},s))})})]})}function c(e){let{user:s}=e;return(0,a.jsx)("li",{className:(0,i.QP)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:s.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(r.A,{slugText:s.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},7296:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6831:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},8622:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},7206:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},4858:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},2750:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},2595:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},6735:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>n,default:()=>h});var a=t(4848),r=t(6540),l=t(5810),i=t(9632),d=t(5125);function c(){let e=r.useContext(i.AppContext).pageProps;e.user;let s=e.servers;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Load Balancing"}),(0,a.jsx)("span",{children:"Distribute database load accross servers"})]}),(0,a.jsx)("div",{})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-base m-0",children:"Servers"}),(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:s.map((e,s)=>(0,a.jsx)(d.A,{server:e},s))})]})]})}var n=!0;function h(e){let{user:s,data:t}=e,r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(l.A,{head:r,user:s,children:(0,a.jsx)(c,{})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[6428,5810,636,6593,8792],()=>s(3832)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9157],{3832:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/load-balancing",function(){return t(6735)}])},5139:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(4848);t(6540);var r=t(4839),l=t(856);function i(e){let{slugText:s,justIcon:t,noIcon:i,title:d,outlined:c,extraClasses:n}=e;return(0,a.jsxs)("div",{className:(0,l.QP)("button small-text hover:!bg-transparent",c?" outlined gray bg-white":" ghost light-gray",n),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:c?void 0:{padding:0},children:[!i&&(0,a.jsx)(r.A,{size:c?15:20}),!t&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:d||"Copy Slug"})]})}},5125:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var a=t(4848),r=t(5139),l=t(2750),i=t(856);function d(e){var s;let{server:t,noLoadBalance:r}=e;return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:t.host}),r?(0,a.jsx)(a.Fragment,{}):t.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,i.QP)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:null===(s=t.users)||void 0===s?void 0:s.map((e,s)=>(0,a.jsx)(c,{user:e},s))})})]})}function c(e){let{user:s}=e;return(0,a.jsx)("li",{className:(0,i.QP)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:s.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(r.A,{slugText:s.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},7296:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},4839:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6831:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},8622:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},7206:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},4858:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},2750:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},2595:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},6735:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>n,default:()=>h});var a=t(4848),r=t(6540),l=t(5810),i=t(9632),d=t(5125);function c(){let e=r.useContext(i.AppContext).pageProps;e.user;let s=e.servers;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Load Balancing"}),(0,a.jsx)("span",{children:"Distribute database load accross servers"})]}),(0,a.jsx)("div",{})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-base m-0",children:"Servers"}),(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:s.map((e,s)=>(0,a.jsx)(d.A,{server:e},s))})]})]})}var n=!0;function h(e){let{user:s,data:t}=e,r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(l.A,{head:r,user:s,children:(0,a.jsx)(c,{})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[6428,5810,636,6593,8792],()=>s(3832)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/su/servers-d48477ad4489744d.js b/dsql-app/.local_dist/static/chunks/pages/su/servers-2ebfc87f21d94901.js similarity index 97% rename from dsql-app/.local_dist/static/chunks/pages/su/servers-d48477ad4489744d.js rename to dsql-app/.local_dist/static/chunks/pages/su/servers-2ebfc87f21d94901.js index 1f79e8b..bb88ad1 100644 --- a/dsql-app/.local_dist/static/chunks/pages/su/servers-d48477ad4489744d.js +++ b/dsql-app/.local_dist/static/chunks/pages/su/servers-2ebfc87f21d94901.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3821],{6610:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/servers",function(){return t(495)}])},5139:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(4848);t(6540);var r=t(7220),l=t(856);function i(e){let{slugText:s,justIcon:t,noIcon:i,title:d,outlined:n,extraClasses:c}=e;return(0,a.jsxs)("div",{className:(0,l.QP)("button small-text hover:!bg-transparent",n?" outlined gray bg-white":" ghost light-gray",c),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:n?void 0:{padding:0},children:[!i&&(0,a.jsx)(r.A,{size:n?15:20}),!t&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:d||"Copy Slug"})]})}},5125:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var a=t(4848),r=t(5139),l=t(2750),i=t(856);function d(e){var s;let{server:t,noLoadBalance:r}=e;return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:t.host}),r?(0,a.jsx)(a.Fragment,{}):t.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,i.QP)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:null===(s=t.users)||void 0===s?void 0:s.map((e,s)=>(0,a.jsx)(n,{user:e},s))})})]})}function n(e){let{user:s}=e;return(0,a.jsx)("li",{className:(0,i.QP)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:s.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(r.A,{slugText:s.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},7296:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6831:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},8622:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},7206:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},4858:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},2750:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},2595:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},495:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>c,default:()=>h});var a=t(4848),r=t(6540),l=t(5810),i=t(9632),d=t(5125);function n(){let e=r.useContext(i.AppContext).pageProps;e.user;let s=e.servers;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,a.jsx)("span",{children:"All Servers"})]}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{children:"Add Server"})})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:s.map((e,s)=>(0,a.jsx)(d.A,{server:e,noLoadBalance:!0},s))}),(0,a.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}var c=!0;function h(e){let{user:s,data:t}=e,r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(l.A,{head:r,user:s,children:(0,a.jsx)(n,{})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[6428,5810,636,6593,8792],()=>s(6610)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3821],{6610:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/servers",function(){return t(495)}])},5139:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(4848);t(6540);var r=t(4839),l=t(856);function i(e){let{slugText:s,justIcon:t,noIcon:i,title:d,outlined:n,extraClasses:c}=e;return(0,a.jsxs)("div",{className:(0,l.QP)("button small-text hover:!bg-transparent",n?" outlined gray bg-white":" ghost light-gray",c),onClick:e=>{navigator.clipboard.writeText(s).then(()=>{alert('Copied: "'.concat(s,'"'))})},style:n?void 0:{padding:0},children:[!i&&(0,a.jsx)(r.A,{size:n?15:20}),!t&&(0,a.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:d||"Copy Slug"})]})}},5125:(e,s,t)=>{"use strict";t.d(s,{A:()=>d});var a=t(4848),r=t(5139),l=t(2750),i=t(856);function d(e){var s;let{server:t,noLoadBalance:r}=e;return(0,a.jsxs)("div",{className:"stack w-full",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(l.A,{size:15,opacity:.5}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:t.host}),r?(0,a.jsx)(a.Fragment,{}):t.loadBalanced?(0,a.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,a.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,a.jsx)("div",{className:(0,i.QP)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,a.jsx)("ul",{className:"p-0 m-0 pl-4",children:null===(s=t.users)||void 0===s?void 0:s.map((e,s)=>(0,a.jsx)(n,{user:e},s))})})]})}function n(e){let{user:s}=e;return(0,a.jsx)("li",{className:(0,i.QP)("w-full"),children:(0,a.jsxs)("div",{className:"stack gap-0",children:[(0,a.jsxs)("span",{children:["user: ",(0,a.jsx)("b",{children:s.name})]}),(0,a.jsxs)("span",{children:["pass:"," ",(0,a.jsx)("b",{children:(0,a.jsx)(r.A,{slugText:s.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}},7296:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},4839:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6831:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},8622:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},7206:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},4858:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},2750:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},2595:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(5737).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"}]])},495:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>c,default:()=>h});var a=t(4848),r=t(6540),l=t(5810),i=t(9632),d=t(5125);function n(){let e=r.useContext(i.AppContext).pageProps;e.user;let s=e.servers;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,a.jsx)("span",{children:"All Servers"})]}),(0,a.jsx)("div",{children:(0,a.jsx)("button",{children:"Add Server"})})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("div",{className:"flex flex-col gap-2 w-full",children:s.map((e,s)=>(0,a.jsx)(d.A,{server:e,noLoadBalance:!0},s))}),(0,a.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}var c=!0;function h(e){let{user:s,data:t}=e,r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Load Balancing"}),(0,a.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,a.jsx)(l.A,{head:r,user:s,children:(0,a.jsx)(n,{})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[6428,5810,636,6593,8792],()=>s(6610)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js b/dsql-app/.local_dist/static/chunks/pages/su/users/[single]-41de29bb2522359b.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js rename to dsql-app/.local_dist/static/chunks/pages/su/users/[single]-41de29bb2522359b.js index 02a23b0..fd4ff9f 100644 --- a/dsql-app/.local_dist/static/chunks/pages/su/users/[single]-a95d897a2dad7f62.js +++ b/dsql-app/.local_dist/static/chunks/pages/su/users/[single]-41de29bb2522359b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3632],{8280:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/users/[single]",function(){return s(5738)}])},6100:(e,t,s)=>{"use strict";function a(e){let{editorHTMLElementRef:t,fieldObject:s,setRefresh:a,language:l="javascript",entry:r,jsonTextEditors:i,editorRef:n,readOnly:c,initialContent:o,options:d}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==a||a(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+l,value:o||((null==s?void 0:s.defaultValue)?s.defaultValue:(null==s?void 0:s.fieldName)&&(null==r?void 0:r[s.fieldName])?(()=>{if("json"!==l)return r[s.fieldName];try{return JSON.stringify(JSON.parse(r[s.fieldName]),null,4)}catch(e){return r[s.fieldName]}})():""),placeholder:"json"==l?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:c,...d}),n&&(null==s?void 0:s.fieldName)&&(null==i||i.current.push({fieldName:s.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}s.d(t,{A:()=>a})},6959:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4848),l=s(2027);function r(e){let{selectOptions:t,name:s,onChangeHandler:r,required:i,setAlert:n,title:c,defaultValue:o,info:d,id:u}=e;try{function h(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[c&&(0,a.jsxs)("label",{htmlFor:s,children:[c,i?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:s,id:u||s,className:"w-full bg-white",required:i,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:o||void 0,children:t.map((e,t)=>{let{payload:s,title:l}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:l},t+1)})}),(0,a.jsx)(l.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(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:h,onMouseLeave:h,onClick:h,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:d})}),(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"})}}s(6540)},3231:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(4848),l=s(9020),r=s(6540),i=s(6100),n=s(856);function c(e){let{editorRef:t,content:s,readOnly:c,language:o="javascript",options:d,wrapperProps:u}=e;try{let e=r.useRef(),[l,h]=r.useState(0);return r.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:h,language:o,readOnly:c,initialContent:s,options:d})},[l,s]),(0,a.jsx)("div",{...u,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==u?void 0:u.className)})}catch(e){return r.useEffect(()=>{(0,l.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,a.jsx)(r.Fragment,{children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},5844:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4848),l=s(7216);function r(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(l.A,{})})}s(6540)},4819:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(4848),l=s(6540),r=s(7220);function i(e){let{content:t,language:s,style:i,showCopy:n}=e,[c,o]=l.useState(!1),d=()=>{o(!0)},u={};return(0,a.jsxs)("pre",{className:"language-".concat(s||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:i?{...i,...u}:u,children:[(0,a.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,a.jsx)("button",{className:"outlined copy-code "+(n?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{d()})},children:(0,a.jsx)(r.A,{className:"text-white",size:20})})]})}},5175:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4848),l=s(6540);function r(e){let{userObject:t,userPage:s}=e,r=Object.keys(t),[i,n]=l.useState(!1),[c,o]=l.useState(0),[d,u]=l.useState(!s);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(d?s?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:t.image_thumbnail,alt:"",className:"rounded-full object-cover"+(s?" w-16 h-16":" w-12 h-12")}),!s&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[t.first_name," ",t.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{d?u(!1):u(!0)},children:d?"More Details":"Collapse"}),!s&&(0,a.jsx)("a",{href:"/su/users/".concat(t.id),className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((e,s)=>(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[e,":"," ",(0,a.jsx)("b",{children:t[e]})]})}),s{u(!0)},children:"Collapse"})]})}},7216:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},7296:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},7220:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6831:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},8622:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},5501:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FolderSync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]])},9753:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},7206:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},4858:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},7996:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},2750:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},2595:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},5738:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>A,default:()=>S});var a=s(4848),l=s(6540),r=s(5810),i=s(5175),n=s(5844),c=s(1710),o=s(9020),d=s(5501);function u(e){let{user:t,refresh:s,setRefresh:r}=e,[i,n]=l.useState(!1),[u,h]=l.useState([]);return l.useEffect(()=>{(0,o.A)("/api/admin/getUserBackups",{method:"post",body:{user:t}}).then(e=>{h(e.backups)})},[s]),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Backups"}),!u&&(0,a.jsx)(c.A,{width:"20px",position:"relative"}),u&&!u[0]&&(0,a.jsx)("div",{children:"This user has no backups"}),u&&u[0]&&u.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((e,s)=>{let l=new Date(parseInt(e));return(0,a.jsxs)("a",{href:"/su/users/".concat(t.id,"/").concat(e),className:"card w-full items-center",children:[(0,a.jsx)(d.A,{}),(0,a.jsx)("b",{children:"Backup:"}),(0,a.jsx)("span",{children:l.toString()})]},e)})]})}var h=s(4819),m=s(9753);function x(e){let{user:t,file:s,activeFile:l,setActiveFile:r}=e;return(0,a.jsxs)("button",{className:"justify-start gap-4"+((null==l?void 0:l.path)==="".concat(s.root,"/").concat(s.name)?" dark":" light-gray"),onClick:e=>{(0,o.A)("/api/admin/grabFile",{method:"post",body:{user:t,type:"file",path:"".concat(s.root,"/").concat(s.name)}}).then(e=>{if(e.success)try{r({title:s.name,path:"".concat(s.root,"/").concat(s.name),data:JSON.stringify(JSON.parse(e.data),null,4)})}catch(t){r({title:s.name,path:"".concat(s.root,"/").concat(s.name),data:e.data})}})},children:[(0,a.jsx)(m.A,{}),s.name]})}var p=s(7220),f=s(7996);function y(e){let{user:t,file:s,activeFile:r,setActiveFile:i}=e,[n,c]=l.useState(null),[o,d]=l.useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full items-start relative",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(p.A,{fontSize:"small",className:"text-slate-400"}),s.name,(0,a.jsx)(f.A,{className:"ml-auto absolute right-2"})]}),s.content&&(0,a.jsx)("div",{className:"flex-col w-full pl-4 items-start ml-2",style:{borderLeft:"1px solid var(--slate-200)"},children:s.content.map((e,s)=>{var l;return(null==e?void 0:null===(l=e.type)||void 0===l?void 0:l.match(/file/i))?(0,a.jsx)(x,{user:t,file:e,activeFile:r,setActiveFile:i},s):(0,a.jsx)(y,{user:t,file:e,activeFile:r,setActiveFile:i},s)})})]})}function j(e){let{user:t,rootFilesArray:s}=e,[r,i]=l.useState(null);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:"User Files"}),(0,a.jsxs)("div",{className:"w-full items-start max-w-7xl",children:[(0,a.jsx)("div",{className:"flex-col items-stretch w-[40%]",children:s.map((e,s)=>{var l;return(null==e?void 0:null===(l=e.type)||void 0===l?void 0:l.match(/file/))?(0,a.jsx)(x,{user:t,file:e,activeFile:r||void 0,setActiveFile:i},s):(0,a.jsx)(y,{user:t,file:e,activeFile:r||void 0,setActiveFile:i},s)})}),(0,a.jsx)("div",{className:"grow flex-col items-start justify-start w-[60%] h-full -mt-4",children:r&&(0,a.jsx)(h.A,{content:r.data||"",language:"javascript"})})]})]})}var v=s(3231);function g(e){let{data:t,user:s}=e;try{return Object.keys(t[0]),(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,a.jsx)(v.A,{content:JSON.stringify(t,null,4)})})})}catch(e){return(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("span",{children:"No results"})})}}var w=s(6959);function b(e){let{user:t,databases:s}=e;try{let e=l.useRef(),i=l.useRef(),n=l.useRef(s[0]),[d,u]=l.useState(!1),[h,m]=l.useState(!1),[x,p]=l.useState(0),[f,y]=l.useState(s[0]);function r(){u(!0);let e=i.current?i.current.getValue():null;if(!(null==e?void 0:e.match(/./)))return;let t=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,o.A)("/api/admin/runUserDbQuery",{method:"post",body:{database:n.current,query:t}},!0).then(e=>{e.success?m(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{u(!1)},500)})}l.useEffect(()=>{var e;if(!(null===(e=ace)||void 0===e?void 0:e.edit)){setTimeout(()=>{p(e=>e+1)},1e3);return}let t=ace.edit("ace-editor-wrapper");t.setOptions({mode:"ace/mode/mysql",theme:"ace/theme/twilight",value:"SELECT * FROM table_name",placeholder:"Type an SQL query",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),t.commands.addCommand({name:"myCommand",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},exec:function(e){r()},readOnly:!0}),i.current=t},[x]);let[j,v]=l.useState([]);return l.useEffect(()=>{(0,o.A)("/api/admin/getTablesForUserDatabase?database=".concat(f)).then(e=>{e.success&&v(e.tables)})},[f,x]),(0,a.jsxs)("div",{className:"paper w-full",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:(0,a.jsx)("span",{children:"Database Shell"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(w.A,{selectOptions:s.map(e=>({payload:e,title:null==e?void 0:e.replace(new RegExp("datasquirel_user_".concat(t.id,"_")),"")})),name:"select-database",onChangeHandler:e=>{y(e.target.value),n.current=e.target.value},title:"Databases"}),f&&j&&(0,a.jsx)(w.A,{selectOptions:j.map(e=>({payload:e,title:e})),name:"select-database-table",title:"Tables"})]}),(0,a.jsxs)("div",{className:"w-full flex-col relative",children:[(0,a.jsx)("div",{ref:e,id:"ace-editor-wrapper",style:{height:"100px"}}),(0,a.jsxs)("button",{className:"absolute right-4 bottom-4"+(d?" pointer-events-none opacity-70":""),onClick:e=>{r()},children:[d&&(0,a.jsx)(c.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),d?"Running Query ...":"Run Query"]})]}),h&&!d&&(0,a.jsx)(g,{data:h,user:t})]})}catch(e){return console.log(e),(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("section",{className:"card",children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})})}}function k(e){let{user:t,refresh:s,setRefresh:r}=e,[i,n]=l.useState(!1),[c,d]=l.useState(null),[u,h]=l.useState(null);return l.useEffect(()=>{(0,o.A)("/api/admin/getUserData",{method:"post",body:{user:t}}).then(e=>{console.log(e),e.success&&(d(e.data),h(e.databases))})},[s]),(0,a.jsxs)("div",{className:"paper w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Data"}),c&&(0,a.jsx)(j,{user:t,rootFilesArray:c}),u&&(0,a.jsx)(b,{user:t,databases:u})]})}function N(e){let{data:t}=e,s=t.user,[r,d]=l.useState(0),[h,m]=l.useState(!1);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:[s.first_name," ",s.last_name]}),(0,a.jsx)("span",{className:"info w-auto gray font-normal",children:s.email})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{onClick:e=>{window.confirm("Create a new backup for ".concat(s.first_name,"?"))&&(m(!0),(0,o.A)("/api/admin/addUserBackup",{method:"post",body:{user:s}}).then(e=>{console.log(e),e.success&&d(e=>e+1),setTimeout(()=>{m(!1)},1e3)}))},className:"relative",children:[h&&(0,a.jsx)(c.A,{width:"20px"}),"Backup User"]})})]}),(0,a.jsx)(i.A,{userObject:s,userPage:!0}),(0,a.jsx)(u,{user:s,refresh:r,setRefresh:d}),(0,a.jsx)(k,{user:s,refresh:r,setRefresh:d})]})}var A=!0;function S(e){let{user:t,data:s}=e,i=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"}),(0,a.jsxs)(l.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"})]})]});return(0,a.jsx)(r.A,{head:i,user:t,children:(0,a.jsx)(N,{data:s})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,5810,636,6593,8792],()=>t(8280)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3632],{8280:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/su/users/[single]",function(){return s(5738)}])},6100:(e,t,s)=>{"use strict";function a(e){let{editorHTMLElementRef:t,fieldObject:s,setRefresh:a,language:l="javascript",entry:r,jsonTextEditors:i,editorRef:n,readOnly:c,initialContent:o,options:d}=e;try{var u;if(!(null===(u=ace)||void 0===u?void 0:u.edit)||!t.current){console.log("Ace Editor not found!"),setTimeout(()=>{null==a||a(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+l,value:o||((null==s?void 0:s.defaultValue)?s.defaultValue:(null==s?void 0:s.fieldName)&&(null==r?void 0:r[s.fieldName])?(()=>{if("json"!==l)return r[s.fieldName];try{return JSON.stringify(JSON.parse(r[s.fieldName]),null,4)}catch(e){return r[s.fieldName]}})():""),placeholder:"json"==l?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:c,...d}),n&&(null==s?void 0:s.fieldName)&&(null==i||i.current.push({fieldName:s.fieldName,ref:n}),n.current=e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}s.d(t,{A:()=>a})},6959:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4848),l=s(2027);function r(e){let{selectOptions:t,name:s,onChangeHandler:r,required:i,setAlert:n,title:c,defaultValue:o,info:d,id:u}=e;try{function h(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[c&&(0,a.jsxs)("label",{htmlFor:s,children:[c,i?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:s,id:u||s,className:"w-full bg-white",required:i,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:o||void 0,children:t.map((e,t)=>{let{payload:s,title:l}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:l},t+1)})}),(0,a.jsx)(l.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(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:h,onMouseLeave:h,onClick:h,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:d})}),(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"})}}s(6540)},3231:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(4848),l=s(9020),r=s(6540),i=s(6100),n=s(856);function c(e){let{editorRef:t,content:s,readOnly:c,language:o="javascript",options:d,wrapperProps:u}=e;try{let e=r.useRef(),[l,h]=r.useState(0);return r.useEffect(()=>{(0,i.A)({editorRef:t,fieldObject:{fieldName:"test"},editorHTMLElementRef:e,setRefresh:h,language:o,readOnly:c,initialContent:s,options:d})},[l,s]),(0,a.jsx)("div",{...u,ref:e,className:(0,n.QP)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",null==u?void 0:u.className)})}catch(e){return r.useEffect(()=>{(0,l.A)("/api/admin/clientError",{method:"post",body:{component:"AceEditor/main-catch-error",message:e.message,user:{}}})},[]),(0,a.jsx)(r.Fragment,{children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}},5844:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4848),l=s(7216);function r(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(l.A,{})})}s(6540)},4819:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(4848),l=s(6540),r=s(4839);function i(e){let{content:t,language:s,style:i,showCopy:n}=e,[c,o]=l.useState(!1),d=()=>{o(!0)},u={};return(0,a.jsxs)("pre",{className:"language-".concat(s||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:i?{...i,...u}:u,children:[(0,a.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,a.jsx)("button",{className:"outlined copy-code "+(n?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{d()})},children:(0,a.jsx)(r.A,{className:"text-white",size:20})})]})}},5175:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4848),l=s(6540);function r(e){let{userObject:t,userPage:s}=e,r=Object.keys(t),[i,n]=l.useState(!1),[c,o]=l.useState(0),[d,u]=l.useState(!s);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(d?s?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:t.image_thumbnail,alt:"",className:"rounded-full object-cover"+(s?" w-16 h-16":" w-12 h-12")}),!s&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[t.first_name," ",t.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{d?u(!1):u(!0)},children:d?"More Details":"Collapse"}),!s&&(0,a.jsx)("a",{href:"/su/users/".concat(t.id),className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((e,s)=>(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[e,":"," ",(0,a.jsx)("b",{children:t[e]})]})}),s{u(!0)},children:"Collapse"})]})}},7216:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},7296:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},4839:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6831:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},8622:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},5501:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("FolderSync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]])},9753:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},7206:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},4858:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},7996:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},2750:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},2595:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5737).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"}]])},5738:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>A,default:()=>S});var a=s(4848),l=s(6540),r=s(5810),i=s(5175),n=s(5844),c=s(1710),o=s(9020),d=s(5501);function u(e){let{user:t,refresh:s,setRefresh:r}=e,[i,n]=l.useState(!1),[u,h]=l.useState([]);return l.useEffect(()=>{(0,o.A)("/api/admin/getUserBackups",{method:"post",body:{user:t}}).then(e=>{h(e.backups)})},[s]),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Backups"}),!u&&(0,a.jsx)(c.A,{width:"20px",position:"relative"}),u&&!u[0]&&(0,a.jsx)("div",{children:"This user has no backups"}),u&&u[0]&&u.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((e,s)=>{let l=new Date(parseInt(e));return(0,a.jsxs)("a",{href:"/su/users/".concat(t.id,"/").concat(e),className:"card w-full items-center",children:[(0,a.jsx)(d.A,{}),(0,a.jsx)("b",{children:"Backup:"}),(0,a.jsx)("span",{children:l.toString()})]},e)})]})}var h=s(4819),m=s(9753);function x(e){let{user:t,file:s,activeFile:l,setActiveFile:r}=e;return(0,a.jsxs)("button",{className:"justify-start gap-4"+((null==l?void 0:l.path)==="".concat(s.root,"/").concat(s.name)?" dark":" light-gray"),onClick:e=>{(0,o.A)("/api/admin/grabFile",{method:"post",body:{user:t,type:"file",path:"".concat(s.root,"/").concat(s.name)}}).then(e=>{if(e.success)try{r({title:s.name,path:"".concat(s.root,"/").concat(s.name),data:JSON.stringify(JSON.parse(e.data),null,4)})}catch(t){r({title:s.name,path:"".concat(s.root,"/").concat(s.name),data:e.data})}})},children:[(0,a.jsx)(m.A,{}),s.name]})}var p=s(4839),f=s(7996);function y(e){let{user:t,file:s,activeFile:r,setActiveFile:i}=e,[n,c]=l.useState(null),[o,d]=l.useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full items-start relative",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(p.A,{fontSize:"small",className:"text-slate-400"}),s.name,(0,a.jsx)(f.A,{className:"ml-auto absolute right-2"})]}),s.content&&(0,a.jsx)("div",{className:"flex-col w-full pl-4 items-start ml-2",style:{borderLeft:"1px solid var(--slate-200)"},children:s.content.map((e,s)=>{var l;return(null==e?void 0:null===(l=e.type)||void 0===l?void 0:l.match(/file/i))?(0,a.jsx)(x,{user:t,file:e,activeFile:r,setActiveFile:i},s):(0,a.jsx)(y,{user:t,file:e,activeFile:r,setActiveFile:i},s)})})]})}function j(e){let{user:t,rootFilesArray:s}=e,[r,i]=l.useState(null);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:"User Files"}),(0,a.jsxs)("div",{className:"w-full items-start max-w-7xl",children:[(0,a.jsx)("div",{className:"flex-col items-stretch w-[40%]",children:s.map((e,s)=>{var l;return(null==e?void 0:null===(l=e.type)||void 0===l?void 0:l.match(/file/))?(0,a.jsx)(x,{user:t,file:e,activeFile:r||void 0,setActiveFile:i},s):(0,a.jsx)(y,{user:t,file:e,activeFile:r||void 0,setActiveFile:i},s)})}),(0,a.jsx)("div",{className:"grow flex-col items-start justify-start w-[60%] h-full -mt-4",children:r&&(0,a.jsx)(h.A,{content:r.data||"",language:"javascript"})})]})]})}var v=s(3231);function g(e){let{data:t,user:s}=e;try{return Object.keys(t[0]),(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl",style:{width:"100%",height:"600px",overflow:"auto"},children:(0,a.jsx)(v.A,{content:JSON.stringify(t,null,4)})})})}catch(e){return(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("span",{children:"No results"})})}}var w=s(6959);function b(e){let{user:t,databases:s}=e;try{let e=l.useRef(),i=l.useRef(),n=l.useRef(s[0]),[d,u]=l.useState(!1),[h,m]=l.useState(!1),[x,p]=l.useState(0),[f,y]=l.useState(s[0]);function r(){u(!0);let e=i.current?i.current.getValue():null;if(!(null==e?void 0:e.match(/./)))return;let t=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,o.A)("/api/admin/runUserDbQuery",{method:"post",body:{database:n.current,query:t}},!0).then(e=>{e.success?m(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{u(!1)},500)})}l.useEffect(()=>{var e;if(!(null===(e=ace)||void 0===e?void 0:e.edit)){setTimeout(()=>{p(e=>e+1)},1e3);return}let t=ace.edit("ace-editor-wrapper");t.setOptions({mode:"ace/mode/mysql",theme:"ace/theme/twilight",value:"SELECT * FROM table_name",placeholder:"Type an SQL query",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),t.commands.addCommand({name:"myCommand",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter"},exec:function(e){r()},readOnly:!0}),i.current=t},[x]);let[j,v]=l.useState([]);return l.useEffect(()=>{(0,o.A)("/api/admin/getTablesForUserDatabase?database=".concat(f)).then(e=>{e.success&&v(e.tables)})},[f,x]),(0,a.jsxs)("div",{className:"paper w-full",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:(0,a.jsx)("span",{children:"Database Shell"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(w.A,{selectOptions:s.map(e=>({payload:e,title:null==e?void 0:e.replace(new RegExp("datasquirel_user_".concat(t.id,"_")),"")})),name:"select-database",onChangeHandler:e=>{y(e.target.value),n.current=e.target.value},title:"Databases"}),f&&j&&(0,a.jsx)(w.A,{selectOptions:j.map(e=>({payload:e,title:e})),name:"select-database-table",title:"Tables"})]}),(0,a.jsxs)("div",{className:"w-full flex-col relative",children:[(0,a.jsx)("div",{ref:e,id:"ace-editor-wrapper",style:{height:"100px"}}),(0,a.jsxs)("button",{className:"absolute right-4 bottom-4"+(d?" pointer-events-none opacity-70":""),onClick:e=>{r()},children:[d&&(0,a.jsx)(c.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),d?"Running Query ...":"Run Query"]})]}),h&&!d&&(0,a.jsx)(g,{data:h,user:t})]})}catch(e){return console.log(e),(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("section",{className:"card",children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})})}}function k(e){let{user:t,refresh:s,setRefresh:r}=e,[i,n]=l.useState(!1),[c,d]=l.useState(null),[u,h]=l.useState(null);return l.useEffect(()=>{(0,o.A)("/api/admin/getUserData",{method:"post",body:{user:t}}).then(e=>{console.log(e),e.success&&(d(e.data),h(e.databases))})},[s]),(0,a.jsxs)("div",{className:"paper w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Data"}),c&&(0,a.jsx)(j,{user:t,rootFilesArray:c}),u&&(0,a.jsx)(b,{user:t,databases:u})]})}function N(e){let{data:t}=e,s=t.user,[r,d]=l.useState(0),[h,m]=l.useState(!1);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:[s.first_name," ",s.last_name]}),(0,a.jsx)("span",{className:"info w-auto gray font-normal",children:s.email})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{onClick:e=>{window.confirm("Create a new backup for ".concat(s.first_name,"?"))&&(m(!0),(0,o.A)("/api/admin/addUserBackup",{method:"post",body:{user:s}}).then(e=>{console.log(e),e.success&&d(e=>e+1),setTimeout(()=>{m(!1)},1e3)}))},className:"relative",children:[h&&(0,a.jsx)(c.A,{width:"20px"}),"Backup User"]})})]}),(0,a.jsx)(i.A,{userObject:s,userPage:!0}),(0,a.jsx)(u,{user:s,refresh:r,setRefresh:d}),(0,a.jsx)(k,{user:s,refresh:r,setRefresh:d})]})}var A=!0;function S(e){let{user:t,data:s}=e,i=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"}),(0,a.jsxs)(l.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"})]})]});return(0,a.jsx)(r.A,{head:i,user:t,children:(0,a.jsx)(N,{data:s})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6428,5810,636,6593,8792],()=>t(8280)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/terms-37fb4519d728aa13.js b/dsql-app/.local_dist/static/chunks/pages/terms-d72b3b55d9844241.js similarity index 99% rename from dsql-app/.local_dist/static/chunks/pages/terms-37fb4519d728aa13.js rename to dsql-app/.local_dist/static/chunks/pages/terms-d72b3b55d9844241.js index 12d414b..2316406 100644 --- a/dsql-app/.local_dist/static/chunks/pages/terms-37fb4519d728aa13.js +++ b/dsql-app/.local_dist/static/chunks/pages/terms-d72b3b55d9844241.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3769],{1196:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/terms",function(){return i(8123)}])},5356:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var o=i(4848);function n(e){let{src:t,alt:i,className:n,fadeHeight:s,width:r,height:a,opacity:l}=e;return(0,o.jsxs)("div",{className:"overflow-hidden z-0"+(n?" "+n:""),children:[(0,o.jsx)("img",{src:t,alt:i,className:"w-full h-full object-cover",width:r,height:a}),(0,o.jsx)("div",{className:"fade-side",style:{height:s}})]})}i(6540)},9625:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var o=i(4848),n=i(6540);function s(e){let{pageTitle:t,pageDescription:i,pagePathname:s,aceEditor:r}=e;return(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,o.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,o.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,o.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,o.jsx)("meta",{property:"og:title",content:t}),(0,o.jsx)("meta",{property:"og:description",content:i}),(0,o.jsx)("meta",{itemProp:"name",content:t}),(0,o.jsx)("meta",{itemProp:"description",content:i}),(0,o.jsx)("meta",{name:"twitter:title",content:t}),(0,o.jsx)("meta",{name:"twitter:description",content:i}),r&&(0,o.jsxs)(n.Fragment,{children:[(0,o.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,o.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"})]})]})}},3434:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var o=i(9020);function n(e){let{setUser:t}=e,i=localStorage.getItem("user");if(i)try{t(JSON.parse(i));return}catch(e){t({});return}(0,o.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let i=e.user?e.user:{};t(i),localStorage.setItem("user",JSON.stringify(i))}).catch(e=>{console.log(e)})}},8123:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TermsPageContext:()=>h,default:()=>u});var o=i(4848),n=i(6540),s=i(4252),r=i(9625),a=i(3434),l=i(5356);function c(){return(0,o.jsxs)("section",{className:"pt-20 pb-10 overflow-visible relative",children:[(0,o.jsxs)("div",{className:"w-full max-w-4xl flex-col relative z-10 items-start",children:[(0,o.jsx)("h1",{className:"m-0",children:"Terms and Conditions"}),(0,o.jsx)("span",{className:"info w-auto small green",children:"Welcome to datasquirel.com!"})]}),(0,o.jsx)(l.A,{src:"/images/grid.webp",className:"top-0 left-0 w-full absolute dark:opacity-20",fadeHeight:"500px",alt:"Dotted image background"})]})}function d(){return(0,o.jsx)(n.Fragment,{children:(0,o.jsx)("section",{children:(0,o.jsxs)("div",{className:"flex-col items-start w-full max-w-4xl",children:[(0,o.jsx)("p",{children:"These terms and conditions outline the rules and regulations for the use of Datasquirel's Website, located at https://datasquirel.com."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:'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.'}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Cookies"})}),(0,o.jsxs)("p",{children:["We employ the use of cookies. By accessing datasquirel.com, you agreed to use cookies in agreement with the Datasquirel's Privacy Policy."," "]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"License"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"You must not:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"Republish material from datasquirel.com"}),(0,o.jsx)("li",{children:"Sell, rent or sub-license material from datasquirel.com"}),(0,o.jsx)("li",{children:"Reproduce, duplicate or copy material from datasquirel.com"}),(0,o.jsx)("li",{children:"Redistribute content from datasquirel.com"})]}),(0,o.jsx)("p",{children:"This Agreement shall begin on the date hereof."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"You warrant and represent that:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;"}),(0,o.jsx)("li",{children:"The Comments do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;"}),(0,o.jsx)("li",{children:"The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy"}),(0,o.jsx)("li",{children:"The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Hyperlinking to our Content"})}),(0,o.jsx)("p",{children:"The following organizations may link to our Website without prior written approval:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"Government agencies;"}),(0,o.jsx)("li",{children:"Search engines;"}),(0,o.jsx)("li",{children:"News organizations;"}),(0,o.jsx)("li",{children:"Online directory distributors may link to our Website in the same manner as they hyperlink to the Websites of other listed businesses; and"}),(0,o.jsx)("li",{children:"System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"We may consider and approve other link requests from the following types of organizations:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"commonly-known consumer and/or business information sources;"}),(0,o.jsx)("li",{children:"dot.com community sites;"}),(0,o.jsx)("li",{children:"associations or other groups representing charities;"}),(0,o.jsx)("li",{children:"online directory distributors;"}),(0,o.jsx)("li",{children:"internet portals;"}),(0,o.jsx)("li",{children:"accounting, law and consulting firms; and"}),(0,o.jsx)("li",{children:"educational institutions and trade associations."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"Approved organizations may hyperlink to our Website as follows:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"By use of our corporate name; or"}),(0,o.jsx)("li",{children:"By use of the uniform resource locator being linked to; or"}),(0,o.jsx)("li",{children:"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."})]}),(0,o.jsx)("p",{children:"No use of Datasquirel's logo or other artwork will be allowed for linking absent a trademark license agreement."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"iFrames"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Content Liability"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Your Privacy"})}),(0,o.jsx)("p",{children:"Please read Privacy Policy"}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Reservation of Rights"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Removal of links from our website"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Disclaimer"})}),(0,o.jsx)("p",{children:"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:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"limit or exclude our or your liability for death or personal injury;"}),(0,o.jsx)("li",{children:"limit or exclude our or your liability for fraud or fraudulent misrepresentation;"}),(0,o.jsx)("li",{children:"limit any of our or your liabilities in any way that is not permitted under applicable law; or"}),(0,o.jsx)("li",{children:"exclude any of our or your liabilities that may not be excluded under applicable law."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."})]})})})}let h=n.createContext({});function u(){let e="Terms and Conditions | Datasquirel",t="Datasquirel terms of use",i=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:e}),(0,o.jsx)("meta",{name:"description",content:t}),(0,o.jsx)(r.A,{pageTitle:e,pageDescription:t,pagePathname:"/"}),(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"h1,h2,h3,h4,h5,h6{margin-bottom:0}p{margin-top:0}"}})]}),[l,u]=n.useState(null);return n.useEffect(()=>{(0,a.A)({setUser:u})},[]),(0,o.jsx)(s.A,{head:i,user:l,children:(0,o.jsx)(h.Provider,{value:{user:l},children:(0,o.jsxs)("main",{children:[(0,o.jsx)(c,{}),(0,o.jsx)(d,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(1196)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3769],{1196:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/terms",function(){return i(8123)}])},5356:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var o=i(4848);function n(e){let{src:t,alt:i,className:n,fadeHeight:s,width:r,height:a,opacity:l}=e;return(0,o.jsxs)("div",{className:"overflow-hidden z-0"+(n?" "+n:""),children:[(0,o.jsx)("img",{src:t,alt:i,className:"w-full h-full object-cover",width:r,height:a}),(0,o.jsx)("div",{className:"fade-side",style:{height:s}})]})}i(6540)},9625:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var o=i(4848),n=i(6540);function s(e){let{pageTitle:t,pageDescription:i,pagePathname:s,aceEditor:r}=e;return(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,o.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,o.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,o.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,o.jsx)("meta",{property:"og:title",content:t}),(0,o.jsx)("meta",{property:"og:description",content:i}),(0,o.jsx)("meta",{itemProp:"name",content:t}),(0,o.jsx)("meta",{itemProp:"description",content:i}),(0,o.jsx)("meta",{name:"twitter:title",content:t}),(0,o.jsx)("meta",{name:"twitter:description",content:i}),r&&(0,o.jsxs)(n.Fragment,{children:[(0,o.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,o.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"})]})]})}},3434:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var o=i(9020);function n(e){let{setUser:t}=e,i=localStorage.getItem("user");if(i)try{t(JSON.parse(i));return}catch(e){t({});return}(0,o.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let i=e.user?e.user:{};t(i),localStorage.setItem("user",JSON.stringify(i))}).catch(e=>{console.log(e)})}},8123:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TermsPageContext:()=>h,default:()=>u});var o=i(4848),n=i(6540),s=i(8883),r=i(9625),a=i(3434),l=i(5356);function c(){return(0,o.jsxs)("section",{className:"pt-20 pb-10 overflow-visible relative",children:[(0,o.jsxs)("div",{className:"w-full max-w-4xl flex-col relative z-10 items-start",children:[(0,o.jsx)("h1",{className:"m-0",children:"Terms and Conditions"}),(0,o.jsx)("span",{className:"info w-auto small green",children:"Welcome to datasquirel.com!"})]}),(0,o.jsx)(l.A,{src:"/images/grid.webp",className:"top-0 left-0 w-full absolute dark:opacity-20",fadeHeight:"500px",alt:"Dotted image background"})]})}function d(){return(0,o.jsx)(n.Fragment,{children:(0,o.jsx)("section",{children:(0,o.jsxs)("div",{className:"flex-col items-start w-full max-w-4xl",children:[(0,o.jsx)("p",{children:"These terms and conditions outline the rules and regulations for the use of Datasquirel's Website, located at https://datasquirel.com."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:'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.'}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Cookies"})}),(0,o.jsxs)("p",{children:["We employ the use of cookies. By accessing datasquirel.com, you agreed to use cookies in agreement with the Datasquirel's Privacy Policy."," "]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"License"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"You must not:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"Republish material from datasquirel.com"}),(0,o.jsx)("li",{children:"Sell, rent or sub-license material from datasquirel.com"}),(0,o.jsx)("li",{children:"Reproduce, duplicate or copy material from datasquirel.com"}),(0,o.jsx)("li",{children:"Redistribute content from datasquirel.com"})]}),(0,o.jsx)("p",{children:"This Agreement shall begin on the date hereof."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"You warrant and represent that:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;"}),(0,o.jsx)("li",{children:"The Comments do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;"}),(0,o.jsx)("li",{children:"The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy"}),(0,o.jsx)("li",{children:"The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Hyperlinking to our Content"})}),(0,o.jsx)("p",{children:"The following organizations may link to our Website without prior written approval:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"Government agencies;"}),(0,o.jsx)("li",{children:"Search engines;"}),(0,o.jsx)("li",{children:"News organizations;"}),(0,o.jsx)("li",{children:"Online directory distributors may link to our Website in the same manner as they hyperlink to the Websites of other listed businesses; and"}),(0,o.jsx)("li",{children:"System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"We may consider and approve other link requests from the following types of organizations:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"commonly-known consumer and/or business information sources;"}),(0,o.jsx)("li",{children:"dot.com community sites;"}),(0,o.jsx)("li",{children:"associations or other groups representing charities;"}),(0,o.jsx)("li",{children:"online directory distributors;"}),(0,o.jsx)("li",{children:"internet portals;"}),(0,o.jsx)("li",{children:"accounting, law and consulting firms; and"}),(0,o.jsx)("li",{children:"educational institutions and trade associations."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"Approved organizations may hyperlink to our Website as follows:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"By use of our corporate name; or"}),(0,o.jsx)("li",{children:"By use of the uniform resource locator being linked to; or"}),(0,o.jsx)("li",{children:"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."})]}),(0,o.jsx)("p",{children:"No use of Datasquirel's logo or other artwork will be allowed for linking absent a trademark license agreement."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"iFrames"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Content Liability"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Your Privacy"})}),(0,o.jsx)("p",{children:"Please read Privacy Policy"}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Reservation of Rights"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Removal of links from our website"})}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("h3",{children:(0,o.jsx)("strong",{children:"Disclaimer"})}),(0,o.jsx)("p",{children:"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:"}),(0,o.jsxs)("ul",{children:[(0,o.jsx)("li",{children:"limit or exclude our or your liability for death or personal injury;"}),(0,o.jsx)("li",{children:"limit or exclude our or your liability for fraud or fraudulent misrepresentation;"}),(0,o.jsx)("li",{children:"limit any of our or your liabilities in any way that is not permitted under applicable law; or"}),(0,o.jsx)("li",{children:"exclude any of our or your liabilities that may not be excluded under applicable law."})]}),(0,o.jsx)("p",{children:"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."}),(0,o.jsx)("p",{children:"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."})]})})})}let h=n.createContext({});function u(){let e="Terms and Conditions | Datasquirel",t="Datasquirel terms of use",i=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:e}),(0,o.jsx)("meta",{name:"description",content:t}),(0,o.jsx)(r.A,{pageTitle:e,pageDescription:t,pagePathname:"/"}),(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"h1,h2,h3,h4,h5,h6{margin-bottom:0}p{margin-top:0}"}})]}),[l,u]=n.useState(null);return n.useEffect(()=>{(0,a.A)({setUser:u})},[]),(0,o.jsx)(s.A,{head:i,user:l,children:(0,o.jsx)(h.Provider,{value:{user:l},children:(0,o.jsxs)("main",{children:[(0,o.jsx)(c,{}),(0,o.jsx)(d,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(1196)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/pages/unsubscribe-e6a608d5b8cea536.js b/dsql-app/.local_dist/static/chunks/pages/unsubscribe-2c980eb18878b40b.js similarity index 98% rename from dsql-app/.local_dist/static/chunks/pages/unsubscribe-e6a608d5b8cea536.js rename to dsql-app/.local_dist/static/chunks/pages/unsubscribe-2c980eb18878b40b.js index 1168e68..2b493d6 100644 --- a/dsql-app/.local_dist/static/chunks/pages/unsubscribe-e6a608d5b8cea536.js +++ b/dsql-app/.local_dist/static/chunks/pages/unsubscribe-2c980eb18878b40b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3751],{5263:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return s(9911)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(4848),n=s(6540);function c(e){let{pageTitle:t,pageDescription:s,pagePathname:c,aceEditor:a}=e;return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:s}),(0,r.jsx)("meta",{itemProp:"name",content:t}),(0,r.jsx)("meta",{itemProp:"description",content:s}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:s}),a&&(0,r.jsxs)(n.Fragment,{children:[(0,r.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,r.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"})]})]})}},9911:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>o,default:()=>m});var r=s(4848),n=s(6540),c=s(1710),a=s(9625),l=s(9020),i=s(4252),o=!0;function m(e){let{user:t,email:s,productionEnvironment:o,existingAlerts:m}=e,x="Unsubscribe | Datasquirel",h="Unsubscribe from email alerts",d=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:x}),(0,r.jsx)("meta",{name:"description",content:h}),(0,r.jsx)(a.A,{pageTitle:x,pageDescription:h,pagePathname:"/unsubscribe"})]}),[u,p]=n.useState(!1);return(0,r.jsx)(n.Fragment,{children:(0,r.jsx)(i.A,{head:d,user:t,productionEnvironment:o,children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[u&&(0,r.jsx)(c.A,{}),(0,r.jsxs)("div",{className:"flex-col",children:[(0,r.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!s&&(0,r.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,r.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,r.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),s&&(0,r.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:e=>{e.preventDefault(),p(!0);let r=e.target;(0,l.A)("/api/unsubscribe",{method:"post",body:{email:s,alerts:r.alerts_checkbox.checked,userId:(null==t?void 0:t.id)?t.id:null}}).then(e=>{console.log(e),p(!1)})},children:[(0,r.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:s}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!m,className:"w-6 h-6"}),(0,r.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,r.jsx)("button",{children:"Save Settings"})]})]})]})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(5263)),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3751],{5263:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return s(9911)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(4848),n=s(6540);function c(e){let{pageTitle:t,pageDescription:s,pagePathname:c,aceEditor:a}=e;return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:s}),(0,r.jsx)("meta",{itemProp:"name",content:t}),(0,r.jsx)("meta",{itemProp:"description",content:s}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:s}),a&&(0,r.jsxs)(n.Fragment,{children:[(0,r.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,r.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"})]})]})}},9911:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>o,default:()=>m});var r=s(4848),n=s(6540),c=s(1710),a=s(9625),l=s(9020),i=s(8883),o=!0;function m(e){let{user:t,email:s,productionEnvironment:o,existingAlerts:m}=e,x="Unsubscribe | Datasquirel",h="Unsubscribe from email alerts",d=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:x}),(0,r.jsx)("meta",{name:"description",content:h}),(0,r.jsx)(a.A,{pageTitle:x,pageDescription:h,pagePathname:"/unsubscribe"})]}),[u,p]=n.useState(!1);return(0,r.jsx)(n.Fragment,{children:(0,r.jsx)(i.A,{head:d,user:t,productionEnvironment:o,children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[u&&(0,r.jsx)(c.A,{}),(0,r.jsxs)("div",{className:"flex-col",children:[(0,r.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!s&&(0,r.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,r.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,r.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),s&&(0,r.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:e=>{e.preventDefault(),p(!0);let r=e.target;(0,l.A)("/api/unsubscribe",{method:"post",body:{email:s,alerts:r.alerts_checkbox.checked,userId:(null==t?void 0:t.id)?t.id:null}}).then(e=>{console.log(e),p(!1)})},children:[(0,r.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:s}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!m,className:"w-6 h-6"}),(0,r.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,r.jsx)("button",{children:"Save Settings"})]})]})]})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(5263)),_N_E=e.O()}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/trace b/dsql-app/.local_dist/trace index e28d603..6a551df 100644 --- a/dsql-app/.local_dist/trace +++ b/dsql-app/.local_dist/trace @@ -1,27 +1,27 @@ -[{"name":"generate-buildid","duration":357,"timestamp":912689,"id":4,"parentId":1,"tags":{},"startTime":1736839426951,"traceId":"a2ec8ad33bb0e2b2"},{"name":"load-custom-routes","duration":465,"timestamp":913144,"id":5,"parentId":1,"tags":{},"startTime":1736839426951,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-dist-dir","duration":184,"timestamp":963717,"id":6,"parentId":1,"tags":{},"startTime":1736839427002,"traceId":"a2ec8ad33bb0e2b2"},{"name":"verify-typescript-setup","duration":546258,"timestamp":972115,"id":7,"parentId":1,"tags":{},"startTime":1736839427010,"traceId":"a2ec8ad33bb0e2b2"},{"name":"collect-pages","duration":2308,"timestamp":1518650,"id":8,"parentId":1,"tags":{},"startTime":1736839427557,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-pages-mapping","duration":1595,"timestamp":1522252,"id":9,"parentId":1,"tags":{},"startTime":1736839427561,"traceId":"a2ec8ad33bb0e2b2"},{"name":"public-dir-conflict-check","duration":4657,"timestamp":1524114,"id":10,"parentId":1,"tags":{},"startTime":1736839427562,"traceId":"a2ec8ad33bb0e2b2"},{"name":"generate-routes-manifest","duration":6302,"timestamp":1529076,"id":11,"parentId":1,"tags":{},"startTime":1736839427567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-entrypoints","duration":113682,"timestamp":1547828,"id":14,"parentId":1,"tags":{},"startTime":1736839427586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"generate-webpack-config","duration":550236,"timestamp":1661554,"id":15,"parentId":13,"tags":{},"startTime":1736839427700,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-trace-entrypoint-plugin","duration":1926,"timestamp":2329300,"id":17,"parentId":16,"tags":{},"startTime":1736839428368,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":140452,"timestamp":2541084,"id":212,"parentId":19,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839428579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":141864,"timestamp":2542654,"id":213,"parentId":21,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839428581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":143966,"timestamp":2542824,"id":214,"parentId":22,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839428581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":145149,"timestamp":2543034,"id":215,"parentId":23,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":145531,"timestamp":2543837,"id":216,"parentId":24,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":146116,"timestamp":2543955,"id":217,"parentId":25,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":146705,"timestamp":2544070,"id":218,"parentId":26,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":160813,"timestamp":2537818,"id":211,"parentId":20,"tags":{"name":"/app/pages/_document.tsx","layer":null},"startTime":1736839428576,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11287,"timestamp":2709375,"id":219,"parentId":27,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428748,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11774,"timestamp":2709713,"id":220,"parentId":28,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428748,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12398,"timestamp":2709853,"id":221,"parentId":29,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428748,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13166,"timestamp":2709973,"id":222,"parentId":30,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428748,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13872,"timestamp":2710109,"id":223,"parentId":31,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428748,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":14538,"timestamp":2710222,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428748,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":15099,"timestamp":2710329,"id":225,"parentId":33,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":15572,"timestamp":2710415,"id":226,"parentId":34,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":16058,"timestamp":2710499,"id":227,"parentId":35,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":16556,"timestamp":2710584,"id":228,"parentId":36,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":17080,"timestamp":2710666,"id":229,"parentId":37,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":17647,"timestamp":2710752,"id":230,"parentId":38,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":18125,"timestamp":2710840,"id":231,"parentId":39,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":18607,"timestamp":2710915,"id":232,"parentId":40,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":19090,"timestamp":2710994,"id":233,"parentId":41,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":19581,"timestamp":2711081,"id":234,"parentId":42,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":19989,"timestamp":2711161,"id":235,"parentId":43,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428749,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":20461,"timestamp":2711241,"id":236,"parentId":44,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":20898,"timestamp":2711339,"id":237,"parentId":45,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":21314,"timestamp":2711425,"id":238,"parentId":46,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":21720,"timestamp":2711513,"id":239,"parentId":47,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":22101,"timestamp":2711615,"id":240,"parentId":48,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":22539,"timestamp":2711722,"id":241,"parentId":49,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":23369,"timestamp":2711809,"id":242,"parentId":50,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":24052,"timestamp":2711924,"id":243,"parentId":51,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":24909,"timestamp":2712065,"id":244,"parentId":52,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":25568,"timestamp":2712234,"id":245,"parentId":53,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":26365,"timestamp":2712493,"id":246,"parentId":54,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":26735,"timestamp":2712799,"id":247,"parentId":55,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":27349,"timestamp":2712925,"id":248,"parentId":56,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":27967,"timestamp":2713034,"id":249,"parentId":57,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":28651,"timestamp":2713137,"id":250,"parentId":58,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":29331,"timestamp":2713249,"id":251,"parentId":59,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":30048,"timestamp":2713343,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":31145,"timestamp":2713415,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":32095,"timestamp":2713486,"id":254,"parentId":62,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":33149,"timestamp":2713560,"id":255,"parentId":63,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":34322,"timestamp":2713638,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":35336,"timestamp":2713716,"id":257,"parentId":65,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":36027,"timestamp":2713809,"id":258,"parentId":66,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":36774,"timestamp":2713883,"id":259,"parentId":67,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":37370,"timestamp":2713962,"id":260,"parentId":68,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":37940,"timestamp":2714055,"id":261,"parentId":69,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":38579,"timestamp":2714137,"id":262,"parentId":70,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":39149,"timestamp":2714208,"id":263,"parentId":71,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428752,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":39679,"timestamp":2714279,"id":264,"parentId":72,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":40173,"timestamp":2714351,"id":265,"parentId":73,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":40717,"timestamp":2714429,"id":266,"parentId":74,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":41378,"timestamp":2714505,"id":267,"parentId":75,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":42183,"timestamp":2714577,"id":268,"parentId":76,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":42996,"timestamp":2714670,"id":269,"parentId":77,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":43695,"timestamp":2714760,"id":270,"parentId":78,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":44188,"timestamp":2714848,"id":271,"parentId":79,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":44650,"timestamp":2714925,"id":272,"parentId":80,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":45077,"timestamp":2715001,"id":273,"parentId":81,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":45428,"timestamp":2715090,"id":274,"parentId":82,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":45796,"timestamp":2715172,"id":275,"parentId":83,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428753,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":46227,"timestamp":2715248,"id":276,"parentId":84,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428754,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":46755,"timestamp":2715331,"id":277,"parentId":85,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428754,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":47457,"timestamp":2715433,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428754,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":48039,"timestamp":2715509,"id":279,"parentId":87,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428754,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":48742,"timestamp":2715585,"id":280,"parentId":88,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428754,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":49361,"timestamp":2715661,"id":281,"parentId":89,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428754,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6670,"timestamp":2889551,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428928,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6807,"timestamp":2889898,"id":283,"parentId":91,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428928,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7084,"timestamp":2890009,"id":284,"parentId":92,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428928,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7246,"timestamp":2890226,"id":285,"parentId":93,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7503,"timestamp":2890347,"id":286,"parentId":94,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7862,"timestamp":2890444,"id":287,"parentId":95,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8127,"timestamp":2890539,"id":288,"parentId":96,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8340,"timestamp":2890662,"id":289,"parentId":97,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8561,"timestamp":2890808,"id":290,"parentId":98,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8761,"timestamp":2890930,"id":291,"parentId":99,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9038,"timestamp":2891025,"id":292,"parentId":100,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9312,"timestamp":2891111,"id":293,"parentId":101,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9593,"timestamp":2891194,"id":294,"parentId":102,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9830,"timestamp":2891327,"id":295,"parentId":103,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10062,"timestamp":2891456,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10286,"timestamp":2891608,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10564,"timestamp":2891754,"id":298,"parentId":106,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10818,"timestamp":2891852,"id":299,"parentId":107,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11041,"timestamp":2891946,"id":300,"parentId":108,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module","duration":11709,"timestamp":2892034,"id":301,"parentId":109,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12018,"timestamp":2892125,"id":302,"parentId":110,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428930,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12334,"timestamp":2892226,"id":303,"parentId":111,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12664,"timestamp":2892314,"id":304,"parentId":112,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13071,"timestamp":2892418,"id":305,"parentId":113,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13437,"timestamp":2892570,"id":306,"parentId":114,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13753,"timestamp":2892666,"id":307,"parentId":115,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":14253,"timestamp":2892753,"id":308,"parentId":116,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":14978,"timestamp":2892832,"id":309,"parentId":117,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":15647,"timestamp":2892911,"id":310,"parentId":118,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":16491,"timestamp":2893006,"id":311,"parentId":119,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":16924,"timestamp":2893138,"id":312,"parentId":120,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428931,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":17265,"timestamp":2893273,"id":313,"parentId":121,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428932,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":17718,"timestamp":2893368,"id":314,"parentId":122,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428932,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":18140,"timestamp":2893464,"id":315,"parentId":123,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839428932,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6083,"timestamp":2962022,"id":316,"parentId":124,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429000,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6346,"timestamp":2962270,"id":317,"parentId":125,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6820,"timestamp":2962388,"id":318,"parentId":126,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7272,"timestamp":2962472,"id":319,"parentId":127,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7713,"timestamp":2962551,"id":320,"parentId":128,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8080,"timestamp":2962627,"id":321,"parentId":129,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8454,"timestamp":2962702,"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%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8918,"timestamp":2962777,"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.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429001,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5683,"timestamp":2987140,"id":324,"parentId":132,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429025,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5937,"timestamp":2987409,"id":325,"parentId":133,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429026,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6245,"timestamp":2987530,"id":326,"parentId":134,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429026,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6559,"timestamp":2987638,"id":327,"parentId":135,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429026,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7367,"timestamp":2987762,"id":328,"parentId":137,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429026,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10158,"timestamp":3005137,"id":329,"parentId":138,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429043,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5978,"timestamp":3015900,"id":330,"parentId":139,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429054,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6652,"timestamp":3016208,"id":331,"parentId":140,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429054,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5534,"timestamp":3024013,"id":332,"parentId":141,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429062,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6124,"timestamp":3024380,"id":333,"parentId":142,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429063,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6840,"timestamp":3024577,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429063,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7513,"timestamp":3024830,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429063,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8294,"timestamp":3025037,"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%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429063,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":3360,"timestamp":3046811,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429085,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":3814,"timestamp":3047094,"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%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429085,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4382,"timestamp":3047234,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4947,"timestamp":3047335,"id":340,"parentId":149,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5482,"timestamp":3047427,"id":341,"parentId":150,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6059,"timestamp":3047516,"id":342,"parentId":151,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6676,"timestamp":3047608,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7315,"timestamp":3047693,"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%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7881,"timestamp":3047794,"id":345,"parentId":154,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429086,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5912,"timestamp":3072480,"id":346,"parentId":155,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429111,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6195,"timestamp":3072836,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429111,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6691,"timestamp":3072989,"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%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429111,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7263,"timestamp":3073114,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429111,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7819,"timestamp":3073257,"id":350,"parentId":159,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8322,"timestamp":3073468,"id":351,"parentId":160,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8853,"timestamp":3073619,"id":352,"parentId":161,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9397,"timestamp":3073744,"id":353,"parentId":162,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10012,"timestamp":3073864,"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%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10532,"timestamp":3074006,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11116,"timestamp":3074131,"id":356,"parentId":165,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429112,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11582,"timestamp":3074324,"id":357,"parentId":166,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12099,"timestamp":3074488,"id":358,"parentId":167,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12568,"timestamp":3074659,"id":359,"parentId":168,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12991,"timestamp":3074817,"id":360,"parentId":169,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13495,"timestamp":3074954,"id":361,"parentId":170,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":13707,"timestamp":3075078,"id":362,"parentId":171,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4370,"timestamp":3120099,"id":363,"parentId":172,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429158,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4666,"timestamp":3120327,"id":364,"parentId":173,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5001,"timestamp":3120434,"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%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5307,"timestamp":3120542,"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%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5611,"timestamp":3120633,"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-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5918,"timestamp":3120721,"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%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6225,"timestamp":3120803,"id":369,"parentId":178,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6838,"timestamp":3120876,"id":370,"parentId":179,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7993,"timestamp":3120981,"id":371,"parentId":180,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8506,"timestamp":3121084,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9059,"timestamp":3121183,"id":373,"parentId":182,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9559,"timestamp":3121321,"id":374,"parentId":183,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429160,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10048,"timestamp":3121458,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429160,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10576,"timestamp":3121581,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429160,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11049,"timestamp":3121701,"id":377,"parentId":186,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429160,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11584,"timestamp":3121799,"id":378,"parentId":187,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429160,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12005,"timestamp":3121925,"id":379,"parentId":188,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429160,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":3659,"timestamp":3164386,"id":380,"parentId":189,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":3924,"timestamp":3164710,"id":381,"parentId":190,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4362,"timestamp":3164848,"id":382,"parentId":191,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4887,"timestamp":3164937,"id":383,"parentId":192,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5401,"timestamp":3165014,"id":384,"parentId":193,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5896,"timestamp":3165091,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6456,"timestamp":3165176,"id":386,"parentId":195,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429203,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6922,"timestamp":3165277,"id":387,"parentId":196,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7475,"timestamp":3165370,"id":388,"parentId":197,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8066,"timestamp":3165441,"id":389,"parentId":198,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8655,"timestamp":3165511,"id":390,"parentId":199,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9243,"timestamp":3165589,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9786,"timestamp":3165657,"id":392,"parentId":201,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10275,"timestamp":3165728,"id":393,"parentId":202,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10731,"timestamp":3165819,"id":394,"parentId":203,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11254,"timestamp":3165896,"id":395,"parentId":204,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":423,"timestamp":3209385,"id":402,"parentId":211,"tags":{"name":"react/jsx-runtime","layer":null},"startTime":1736839429248,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":23,"timestamp":3209844,"id":403,"parentId":211,"tags":{"name":"react","layer":null},"startTime":1736839429248,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7562,"timestamp":3208461,"id":396,"parentId":205,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429247,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8037,"timestamp":3208726,"id":397,"parentId":206,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429247,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8558,"timestamp":3208844,"id":398,"parentId":207,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429247,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9030,"timestamp":3208962,"id":399,"parentId":208,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429247,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module","duration":9806,"timestamp":3209058,"id":400,"parentId":209,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429247,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10261,"timestamp":3209153,"id":401,"parentId":210,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736839429247,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12157,"timestamp":3209965,"id":405,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":null},"startTime":1736839429248,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11993,"timestamp":3210838,"id":408,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":"api"},"startTime":1736839429249,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15082,"timestamp":3210791,"id":407,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":null},"startTime":1736839429249,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15480,"timestamp":3211231,"id":409,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":16927,"timestamp":3211297,"id":410,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/module.compiled.js","layer":null},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17250,"timestamp":3211359,"id":411,"parentId":211,"tags":{"name":"/app/node_modules/next/document.js","layer":null},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":18110,"timestamp":3211385,"id":412,"parentId":215,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19721,"timestamp":3211598,"id":416,"parentId":216,"tags":{"name":"/app/pages/api/addAdminUserUser.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22629,"timestamp":3209879,"id":404,"parentId":136,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736839429248,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22929,"timestamp":3211459,"id":413,"parentId":214,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24655,"timestamp":3211514,"id":414,"parentId":213,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":27729,"timestamp":3211707,"id":418,"parentId":218,"tags":{"name":"/app/pages/api/addDbUser.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":31929,"timestamp":3211565,"id":415,"parentId":215,"tags":{"name":"/app/pages/api/acceptUserInvitation.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":34256,"timestamp":3211628,"id":417,"parentId":217,"tags":{"name":"/app/pages/api/addApiKey.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":35102,"timestamp":3211769,"id":420,"parentId":219,"tags":{"name":"/app/pages/api/addNewMediaFolder.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":37902,"timestamp":3211810,"id":422,"parentId":220,"tags":{"name":"/app/pages/api/addSocialLogin.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":41088,"timestamp":3211791,"id":421,"parentId":224,"tags":{"name":"/app/pages/api/addUserUser.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":46775,"timestamp":3211859,"id":424,"parentId":223,"tags":{"name":"/app/pages/api/addUsersTableToDatabase.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":48854,"timestamp":3211747,"id":419,"parentId":221,"tags":{"name":"/app/pages/api/addTableEntry.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":51437,"timestamp":3211835,"id":423,"parentId":222,"tags":{"name":"/app/pages/api/addUserTable.ts","layer":"api"},"startTime":1736839429250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":58306,"timestamp":3210731,"id":406,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736839429249,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":4401,"timestamp":3317581,"id":427,"parentId":226,"tags":{"name":"/app/pages/api/admin/clearErrorLogs.ts","layer":"api"},"startTime":1736839429356,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5576,"timestamp":3317552,"id":426,"parentId":227,"tags":{"name":"/app/pages/api/admin/clientError.ts","layer":"api"},"startTime":1736839429356,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":8222,"timestamp":3317445,"id":425,"parentId":225,"tags":{"name":"/app/pages/api/admin/addUserBackup.ts","layer":"api"},"startTime":1736839429356,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7457,"timestamp":3319135,"id":430,"parentId":234,"tags":{"name":"/app/pages/api/admin/grabErrorLogs.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":8440,"timestamp":3319114,"id":429,"parentId":231,"tags":{"name":"/app/pages/api/admin/getUserBackups.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9019,"timestamp":3319155,"id":431,"parentId":233,"tags":{"name":"/app/pages/api/admin/grabBackups.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10351,"timestamp":3319169,"id":432,"parentId":228,"tags":{"name":"/app/pages/api/admin/createNewBackup.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11174,"timestamp":3319202,"id":434,"parentId":241,"tags":{"name":"/app/pages/api/checkExistingFolder.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12311,"timestamp":3319047,"id":428,"parentId":230,"tags":{"name":"/app/pages/api/admin/getTablesForUserDatabase.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13325,"timestamp":3319185,"id":433,"parentId":239,"tags":{"name":"/app/pages/api/changeDbUserPassword.ts","layer":"api"},"startTime":1736839429357,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5477,"timestamp":3342160,"id":436,"parentId":229,"tags":{"name":"/app/pages/api/admin/docs/[action].ts","layer":"api"},"startTime":1736839429380,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7613,"timestamp":3342017,"id":435,"parentId":232,"tags":{"name":"/app/pages/api/admin/getUserData.ts","layer":"api"},"startTime":1736839429380,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6186,"timestamp":3344026,"id":437,"parentId":242,"tags":{"name":"/app/pages/api/clientSideAuth.ts","layer":"api"},"startTime":1736839429382,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6873,"timestamp":3344256,"id":442,"parentId":235,"tags":{"name":"/app/pages/api/admin/grabFile.ts","layer":"api"},"startTime":1736839429383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7460,"timestamp":3344216,"id":440,"parentId":251,"tags":{"name":"/app/pages/api/deleteInvitation.ts","layer":"api"},"startTime":1736839429382,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":8712,"timestamp":3344186,"id":439,"parentId":240,"tags":{"name":"/app/pages/api/checkDuplicateData.ts","layer":"api"},"startTime":1736839429382,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9495,"timestamp":3344112,"id":438,"parentId":237,"tags":{"name":"/app/pages/api/admin/runUserDbQuery.ts","layer":"api"},"startTime":1736839429382,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10546,"timestamp":3344236,"id":441,"parentId":248,"tags":{"name":"/app/pages/api/deleteApiKey.ts","layer":"api"},"startTime":1736839429383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17414,"timestamp":3378200,"id":444,"parentId":247,"tags":{"name":"/app/pages/api/contact.ts","layer":"api"},"startTime":1736839429416,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18159,"timestamp":3378278,"id":446,"parentId":250,"tags":{"name":"/app/pages/api/deleteDbUser.ts","layer":"api"},"startTime":1736839429417,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19620,"timestamp":3378071,"id":443,"parentId":236,"tags":{"name":"/app/pages/api/admin/loginSuUser.ts","layer":"api"},"startTime":1736839429416,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22569,"timestamp":3378250,"id":445,"parentId":249,"tags":{"name":"/app/pages/api/createUserDatabase.ts","layer":"api"},"startTime":1736839429417,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9194,"timestamp":3457853,"id":447,"parentId":238,"tags":{"name":"/app/pages/api/admin/updateEnv.ts","layer":"api"},"startTime":1736839429496,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":4118,"timestamp":3483401,"id":448,"parentId":254,"tags":{"name":"/app/pages/api/deleteMediaFolder.ts","layer":"api"},"startTime":1736839429522,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9703,"timestamp":3493094,"id":449,"parentId":253,"tags":{"name":"/app/pages/api/deleteUser.ts","layer":"api"},"startTime":1736839429531,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6327,"timestamp":3503486,"id":455,"parentId":260,"tags":{"name":"/app/pages/api/exportDatabase.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7138,"timestamp":3503511,"id":457,"parentId":258,"tags":{"name":"/app/pages/api/deleteUserUser.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7787,"timestamp":3503526,"id":458,"parentId":243,"tags":{"name":"/app/pages/api/connect/disconnect.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":8451,"timestamp":3503498,"id":456,"parentId":263,"tags":{"name":"/app/pages/api/getDatabaseTables.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9160,"timestamp":3503415,"id":451,"parentId":252,"tags":{"name":"/app/pages/api/deleteTableEntry.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9802,"timestamp":3503471,"id":454,"parentId":261,"tags":{"name":"/app/pages/api/fetch-entries-basic.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10814,"timestamp":3503334,"id":450,"parentId":255,"tags":{"name":"/app/pages/api/deleteUserDatabase.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11734,"timestamp":3503435,"id":452,"parentId":257,"tags":{"name":"/app/pages/api/deleteUserMedia.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13077,"timestamp":3503453,"id":453,"parentId":256,"tags":{"name":"/app/pages/api/deleteUserTable.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14011,"timestamp":3503553,"id":460,"parentId":245,"tags":{"name":"/app/pages/api/connect/index.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14997,"timestamp":3503610,"id":463,"parentId":259,"tags":{"name":"/app/pages/api/downloadDatabaseSchema.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16334,"timestamp":3503566,"id":461,"parentId":246,"tags":{"name":"/app/pages/api/connect/verify.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17054,"timestamp":3503537,"id":459,"parentId":244,"tags":{"name":"/app/pages/api/connect/handshake.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17882,"timestamp":3503623,"id":464,"parentId":265,"tags":{"name":"/app/pages/api/getDelegatedDatabases.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19080,"timestamp":3503635,"id":465,"parentId":264,"tags":{"name":"/app/pages/api/getDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20319,"timestamp":3503578,"id":462,"parentId":262,"tags":{"name":"/app/pages/api/get-authorized-databases.ts","layer":"api"},"startTime":1736839429542,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13829,"timestamp":3547198,"id":472,"parentId":271,"tags":{"name":"/app/pages/api/healthcheck.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14510,"timestamp":3547109,"id":467,"parentId":267,"tags":{"name":"/app/pages/api/getUserDatabaseTables.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15143,"timestamp":3547147,"id":469,"parentId":269,"tags":{"name":"/app/pages/api/getUserMedia.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15479,"timestamp":3547251,"id":476,"parentId":276,"tags":{"name":"/app/pages/api/logoutUser.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16332,"timestamp":3546999,"id":466,"parentId":268,"tags":{"name":"/app/pages/api/getUserDatabases.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16761,"timestamp":3547239,"id":475,"parentId":270,"tags":{"name":"/app/pages/api/getUserSchemaData.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17869,"timestamp":3547181,"id":471,"parentId":273,"tags":{"name":"/app/pages/api/importDatabaseSchema.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18766,"timestamp":3547213,"id":473,"parentId":272,"tags":{"name":"/app/pages/api/importDatabase.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19915,"timestamp":3547225,"id":474,"parentId":274,"tags":{"name":"/app/pages/api/infiniteScroll.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20825,"timestamp":3547271,"id":478,"parentId":282,"tags":{"name":"/app/pages/api/queryEntriesSearchTerm.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21651,"timestamp":3547261,"id":477,"parentId":278,"tags":{"name":"/app/pages/api/purgeDb.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":23539,"timestamp":3547133,"id":468,"parentId":266,"tags":{"name":"/app/pages/api/getDiskUsage.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24645,"timestamp":3547327,"id":480,"parentId":281,"tags":{"name":"/app/pages/api/query/[user_id]/get.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":26922,"timestamp":3547163,"id":470,"parentId":275,"tags":{"name":"/app/pages/api/loginUser.ts","layer":"api"},"startTime":1736839429585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":28211,"timestamp":3547290,"id":479,"parentId":280,"tags":{"name":"/app/pages/api/query/[user_id]/get-schema.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":30548,"timestamp":3547344,"id":481,"parentId":277,"tags":{"name":"/app/pages/api/media/addPrivateMedia.ts","layer":"api"},"startTime":1736839429586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19506,"timestamp":3603440,"id":484,"parentId":288,"tags":{"name":"/app/pages/api/resetDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19943,"timestamp":3603492,"id":486,"parentId":289,"tags":{"name":"/app/pages/api/resetPassword.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20777,"timestamp":3603355,"id":482,"parentId":279,"tags":{"name":"/app/pages/api/media/getPrivateMedia.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21012,"timestamp":3603424,"id":483,"parentId":283,"tags":{"name":"/app/pages/api/reAuthenticateUser.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21527,"timestamp":3603519,"id":488,"parentId":292,"tags":{"name":"/app/pages/api/sendPasswordResetLink.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21900,"timestamp":3603504,"id":487,"parentId":290,"tags":{"name":"/app/pages/api/runUserDbQuery.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22252,"timestamp":3603532,"id":489,"parentId":291,"tags":{"name":"/app/pages/api/sendEmailVerificationLink.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22729,"timestamp":3603608,"id":492,"parentId":285,"tags":{"name":"/app/pages/api/refreshEntry.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":23359,"timestamp":3603572,"id":491,"parentId":284,"tags":{"name":"/app/pages/api/query/[user_id]/update-schema-from-single-database.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24300,"timestamp":3603475,"id":485,"parentId":287,"tags":{"name":"/app/pages/api/renameMedia.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":26446,"timestamp":3603558,"id":490,"parentId":286,"tags":{"name":"/app/pages/api/registerUser.ts","layer":"api"},"startTime":1736839429642,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":28915,"timestamp":3646430,"id":495,"parentId":296,"tags":{"name":"/app/pages/api/social-login/utils/checkSocialId.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":29117,"timestamp":3646591,"id":503,"parentId":306,"tags":{"name":"/app/pages/api/unsubscribe.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":29641,"timestamp":3646456,"id":496,"parentId":297,"tags":{"name":"/app/pages/api/social-login/utils/checkEmail.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":29850,"timestamp":3646519,"id":499,"parentId":298,"tags":{"name":"/app/pages/api/social-login/utils/getEmailFromSocialId.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":30320,"timestamp":3646495,"id":498,"parentId":293,"tags":{"name":"/app/pages/api/social-login/facebook-auth.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":30744,"timestamp":3646543,"id":500,"parentId":300,"tags":{"name":"/app/pages/api/sql-users/delete.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":31501,"timestamp":3646400,"id":494,"parentId":295,"tags":{"name":"/app/pages/api/social-login/google-auth.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":32108,"timestamp":3646319,"id":493,"parentId":294,"tags":{"name":"/app/pages/api/social-login/github-auth.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":32711,"timestamp":3646480,"id":497,"parentId":299,"tags":{"name":"/app/pages/api/sql-users/create.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":33307,"timestamp":3646553,"id":501,"parentId":301,"tags":{"name":"/app/pages/api/sql-users/update.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-ts","duration":33583,"timestamp":3646744,"id":511,"parentId":304,"tags":{"name":"/app/pages/api/test/cors.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":34114,"timestamp":3646628,"id":504,"parentId":307,"tags":{"name":"/app/pages/api/updateAdminUserAccess.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":35118,"timestamp":3646562,"id":502,"parentId":308,"tags":{"name":"/app/pages/api/updateClonedTableForeignKeys.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":35203,"timestamp":3646757,"id":512,"parentId":305,"tags":{"name":"/app/pages/api/test/mail.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":35491,"timestamp":3646844,"id":518,"parentId":318,"tags":{"name":"/app/pages/api/user/[user_id]/delete-user.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":35904,"timestamp":3646832,"id":517,"parentId":317,"tags":{"name":"/app/pages/api/user/[user_id]/add-user.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":36290,"timestamp":3646770,"id":513,"parentId":302,"tags":{"name":"/app/pages/api/stream/[path].ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":36629,"timestamp":3646872,"id":519,"parentId":319,"tags":{"name":"/app/pages/api/user/[user_id]/get-user.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":37290,"timestamp":3646783,"id":514,"parentId":315,"tags":{"name":"/app/pages/api/updateUserUser.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":38294,"timestamp":3646721,"id":509,"parentId":312,"tags":{"name":"/app/pages/api/updateUser.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":38878,"timestamp":3646709,"id":508,"parentId":311,"tags":{"name":"/app/pages/api/updateDbUser.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":39652,"timestamp":3646803,"id":516,"parentId":316,"tags":{"name":"/app/pages/api/user-schema/replace-database-schema.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":40533,"timestamp":3646664,"id":506,"parentId":310,"tags":{"name":"/app/pages/api/updateTableEntry.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":41579,"timestamp":3646731,"id":510,"parentId":313,"tags":{"name":"/app/pages/api/updateUserDatabase.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":42492,"timestamp":3646677,"id":507,"parentId":309,"tags":{"name":"/app/pages/api/updateDbSchemaDataForUser.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":43550,"timestamp":3646793,"id":515,"parentId":314,"tags":{"name":"/app/pages/api/updateUserTable.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":45040,"timestamp":3646649,"id":505,"parentId":303,"tags":{"name":"/app/pages/api/sync-table-data.ts","layer":"api"},"startTime":1736839429685,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":57,"timestamp":3727508,"id":532,"parentId":410,"tags":{"name":"next/dist/compiled/next-server/pages.runtime.prod.js","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8,"timestamp":3727591,"id":533,"parentId":412,"tags":{"name":"next/dist/compiled/next-server/pages-api.runtime.prod.js","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11,"timestamp":3727648,"id":535,"parentId":417,"tags":{"name":"fs","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13038,"timestamp":3727319,"id":524,"parentId":324,"tags":{"name":"/app/pages/api/user/[user_id]/reauth-user.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13758,"timestamp":3727291,"id":523,"parentId":320,"tags":{"name":"/app/pages/api/user/[user_id]/github-login.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14273,"timestamp":3727372,"id":526,"parentId":325,"tags":{"name":"/app/pages/api/user/[user_id]/send-email-code.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14864,"timestamp":3727345,"id":525,"parentId":326,"tags":{"name":"/app/pages/api/user/[user_id]/update-user.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15389,"timestamp":3727226,"id":521,"parentId":321,"tags":{"name":"/app/pages/api/user/[user_id]/google-login.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15942,"timestamp":3727414,"id":528,"parentId":327,"tags":{"name":"/app/pages/api/webhooks/github-push.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16510,"timestamp":3727261,"id":522,"parentId":323,"tags":{"name":"/app/pages/api/user/[user_id]/grab-google-user-from-token.ts","layer":"api"},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17045,"timestamp":3727128,"id":520,"parentId":322,"tags":{"name":"/app/pages/api/user/[user_id]/login-user.ts","layer":"api"},"startTime":1736839429765,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17858,"timestamp":3727398,"id":527,"parentId":328,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18949,"timestamp":3727478,"id":531,"parentId":331,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19765,"timestamp":3727452,"id":530,"parentId":330,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20421,"timestamp":3727426,"id":529,"parentId":329,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20998,"timestamp":3727692,"id":536,"parentId":333,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22049,"timestamp":3727726,"id":537,"parentId":332,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22786,"timestamp":3727754,"id":538,"parentId":334,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23903,"timestamp":3727778,"id":539,"parentId":335,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":39713,"timestamp":3727605,"id":534,"parentId":411,"tags":{"name":"/app/node_modules/next/dist/pages/_document.js","layer":null},"startTime":1736839429766,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1464866,"timestamp":2338056,"id":79,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1464788,"timestamp":2338214,"id":112,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1465391,"timestamp":2337673,"id":35,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":50,"timestamp":3853732,"id":541,"parentId":420,"tags":{"name":"path","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9030,"timestamp":3853661,"id":540,"parentId":404,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10793,"timestamp":3853969,"id":545,"parentId":340,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13143,"timestamp":3853893,"id":543,"parentId":343,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15829,"timestamp":3854005,"id":546,"parentId":344,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18719,"timestamp":3853819,"id":542,"parentId":342,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20522,"timestamp":3853927,"id":544,"parentId":337,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22110,"timestamp":3854041,"id":547,"parentId":336,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23759,"timestamp":3854089,"id":548,"parentId":338,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25651,"timestamp":3854131,"id":549,"parentId":339,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736839429892,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1576809,"timestamp":2338208,"id":110,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":2934,"timestamp":3985809,"id":550,"parentId":348,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736839430024,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10683,"timestamp":4006150,"id":555,"parentId":351,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736839430044,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11419,"timestamp":4005932,"id":551,"parentId":341,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736839430044,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11970,"timestamp":4006118,"id":554,"parentId":347,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736839430044,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12652,"timestamp":4006070,"id":553,"parentId":346,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736839430044,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13636,"timestamp":4006021,"id":552,"parentId":345,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736839430044,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14438,"timestamp":4006163,"id":556,"parentId":349,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736839430044,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":54,"timestamp":4078963,"id":579,"parentId":425,"tags":{"name":"os","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":18,"timestamp":4079044,"id":580,"parentId":425,"tags":{"name":"child_process","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15424,"timestamp":4078516,"id":562,"parentId":361,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16534,"timestamp":4078257,"id":557,"parentId":350,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17212,"timestamp":4078530,"id":563,"parentId":356,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17968,"timestamp":4078626,"id":566,"parentId":357,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18735,"timestamp":4078589,"id":565,"parentId":359,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19701,"timestamp":4078434,"id":559,"parentId":354,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20322,"timestamp":4078657,"id":567,"parentId":358,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21378,"timestamp":4078561,"id":564,"parentId":360,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22545,"timestamp":4078416,"id":558,"parentId":353,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":23314,"timestamp":4078734,"id":569,"parentId":369,"tags":{"name":"/app/pages/api/query/[user_id]/post.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24288,"timestamp":4078750,"id":570,"parentId":368,"tags":{"name":"/app/pages/api/query/[user_id]/add-image.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":25342,"timestamp":4078702,"id":568,"parentId":366,"tags":{"name":"/app/pages/api/query/[user_id]/delete-file.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26683,"timestamp":4078452,"id":560,"parentId":352,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27719,"timestamp":4078485,"id":561,"parentId":355,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":27723,"timestamp":4078875,"id":575,"parentId":364,"tags":{"name":"/app/pages/api/fetch-media.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":28262,"timestamp":4078784,"id":571,"parentId":363,"tags":{"name":"/app/pages/api/exportTableData.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":28838,"timestamp":4079118,"id":583,"parentId":372,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":29629,"timestamp":4079144,"id":585,"parentId":375,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":30582,"timestamp":4078889,"id":576,"parentId":371,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":31346,"timestamp":4078809,"id":572,"parentId":365,"tags":{"name":"/app/pages/api/query/[user_id]/get-private-file.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":32261,"timestamp":4078848,"id":574,"parentId":367,"tags":{"name":"/app/pages/api/query/[user_id]/add-file.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":32629,"timestamp":4079132,"id":584,"parentId":377,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":33963,"timestamp":4079073,"id":581,"parentId":376,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35378,"timestamp":4078900,"id":577,"parentId":373,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36739,"timestamp":4079087,"id":582,"parentId":374,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":39616,"timestamp":4078838,"id":573,"parentId":362,"tags":{"name":"/app/pages/api/addUserMedia.ts","layer":"api"},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":43157,"timestamp":4078915,"id":578,"parentId":406,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736839430117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1837090,"timestamp":2338467,"id":173,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11650,"timestamp":4235302,"id":587,"parentId":370,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736839430274,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12258,"timestamp":4235319,"id":588,"parentId":379,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736839430274,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13817,"timestamp":4235332,"id":589,"parentId":382,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736839430274,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15643,"timestamp":4235342,"id":590,"parentId":381,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736839430274,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17507,"timestamp":4235216,"id":586,"parentId":378,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736839430273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15323,"timestamp":4286631,"id":593,"parentId":384,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15788,"timestamp":4286656,"id":595,"parentId":394,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16177,"timestamp":4286715,"id":599,"parentId":385,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16683,"timestamp":4286644,"id":594,"parentId":386,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17040,"timestamp":4286702,"id":598,"parentId":391,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17538,"timestamp":4286673,"id":596,"parentId":393,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18437,"timestamp":4286683,"id":597,"parentId":392,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19731,"timestamp":4286543,"id":591,"parentId":380,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-tsx","duration":22401,"timestamp":4286616,"id":592,"parentId":383,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736839430325,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10563,"timestamp":4356238,"id":601,"parentId":388,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736839430395,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11076,"timestamp":4356262,"id":602,"parentId":389,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736839430395,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11649,"timestamp":4356122,"id":600,"parentId":387,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736839430394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11916,"timestamp":4356284,"id":603,"parentId":390,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736839430395,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12375,"timestamp":4356303,"id":604,"parentId":400,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736839430395,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12916,"timestamp":4356318,"id":605,"parentId":395,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736839430395,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":73,"timestamp":4410643,"id":607,"parentId":415,"tags":{"name":"lodash","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6,"timestamp":4410741,"id":608,"parentId":404,"tags":{"name":"next/head","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":1183,"timestamp":4410818,"id":613,"parentId":404,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":842,"timestamp":4411249,"id":614,"parentId":404,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736839430450,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":1211,"timestamp":4411298,"id":615,"parentId":424,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":"api"},"startTime":1736839430450,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":1244,"timestamp":4411333,"id":616,"parentId":424,"tags":{"name":"/app/package-shared/data/presets/users.json","layer":"api"},"startTime":1736839430450,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-cjs","duration":6460,"timestamp":4411356,"id":617,"parentId":406,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","layer":null},"startTime":1736839430450,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8316,"timestamp":4410795,"id":611,"parentId":399,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8776,"timestamp":4410775,"id":610,"parentId":398,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9077,"timestamp":4411383,"id":618,"parentId":404,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736839430450,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10536,"timestamp":4410807,"id":612,"parentId":397,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12051,"timestamp":4410565,"id":606,"parentId":396,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13385,"timestamp":4410756,"id":609,"parentId":401,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736839430449,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":48,"timestamp":4445847,"id":633,"parentId":461,"tags":{"name":"url","layer":null},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9284,"timestamp":4445496,"id":621,"parentId":414,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9791,"timestamp":4445520,"id":622,"parentId":413,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10230,"timestamp":4445582,"id":625,"parentId":427,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10673,"timestamp":4445625,"id":627,"parentId":419,"tags":{"name":"/app/functions/backend/checkUserRights.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11295,"timestamp":4445355,"id":619,"parentId":413,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11627,"timestamp":4445535,"id":623,"parentId":413,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12065,"timestamp":4445593,"id":626,"parentId":432,"tags":{"name":"/app/functions/backend/copyFolderRecursively.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12579,"timestamp":4445548,"id":624,"parentId":419,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13372,"timestamp":4445477,"id":620,"parentId":416,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13403,"timestamp":4445764,"id":631,"parentId":418,"tags":{"name":"/app/package-shared/functions/dsql/hashPassword.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14320,"timestamp":4445682,"id":629,"parentId":421,"tags":{"name":"/app/package-shared/functions/backend/handleNodemailer.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14292,"timestamp":4446051,"id":637,"parentId":423,"tags":{"name":"/app/package-shared/functions/backend/setUserSchemaData.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15420,"timestamp":4445643,"id":628,"parentId":415,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15423,"timestamp":4445966,"id":635,"parentId":423,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16733,"timestamp":4445721,"id":630,"parentId":416,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17129,"timestamp":4445919,"id":634,"parentId":419,"tags":{"name":"/app/functions/backend/handleTableEntryOrder.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17648,"timestamp":4446092,"id":638,"parentId":439,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18273,"timestamp":4446007,"id":636,"parentId":441,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19042,"timestamp":4445803,"id":632,"parentId":417,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20821,"timestamp":4446201,"id":641,"parentId":420,"tags":{"name":"/app/package-shared/functions/backend/db/sanitizeSql.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22608,"timestamp":4446165,"id":640,"parentId":418,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24138,"timestamp":4446132,"id":639,"parentId":424,"tags":{"name":"/app/package-shared/shell/createDbFromSchema.ts","layer":"api"},"startTime":1736839430484,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22664,"timestamp":4486257,"id":643,"parentId":436,"tags":{"name":"/app/functions/backend/admin/addDocPage.ts","layer":"api"},"startTime":1736839430525,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":23193,"timestamp":4486149,"id":642,"parentId":441,"tags":{"name":"/app/package-shared/functions/backend/db/deleteDbEntry.ts","layer":"api"},"startTime":1736839430524,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5045,"timestamp":4514381,"id":647,"parentId":436,"tags":{"name":"/app/functions/backend/admin/grabParentPages.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5401,"timestamp":4514324,"id":645,"parentId":436,"tags":{"name":"/app/functions/backend/admin/deleteDocPage.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5794,"timestamp":4514239,"id":644,"parentId":436,"tags":{"name":"/app/functions/backend/admin/grabChildPages.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6221,"timestamp":4514438,"id":649,"parentId":415,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7036,"timestamp":4514356,"id":646,"parentId":436,"tags":{"name":"/app/functions/backend/admin/getSnippets.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7763,"timestamp":4514465,"id":650,"parentId":441,"tags":{"name":"/app/package-shared/functions/backend/api-cred.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":8460,"timestamp":4514413,"id":648,"parentId":436,"tags":{"name":"/app/functions/backend/admin/persistDocs.ts","layer":"api"},"startTime":1736839430553,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2189870,"timestamp":2338190,"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.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2189950,"timestamp":2338193,"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.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2189972,"timestamp":2338196,"id":106,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":27,"timestamp":4528670,"id":653,"parentId":497,"tags":{"name":"generate-password","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5,"timestamp":4528709,"id":654,"parentId":528,"tags":{"name":"crypto","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":5,"timestamp":4528725,"id":655,"parentId":494,"tags":{"name":"google-auth-library","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2195551,"timestamp":2338116,"id":88,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13005,"timestamp":4528809,"id":658,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/get-page-files.js","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13712,"timestamp":4528850,"id":659,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/htmlescape.js","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14494,"timestamp":4528963,"id":662,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14641,"timestamp":4529065,"id":666,"parentId":470,"tags":{"name":"/app/functions/backend/delay.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15634,"timestamp":4528554,"id":651,"parentId":443,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15742,"timestamp":4528993,"id":663,"parentId":452,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16280,"timestamp":4529076,"id":667,"parentId":459,"tags":{"name":"/app/functions/backend/dbSchemaExec.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17045,"timestamp":4528635,"id":652,"parentId":445,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17355,"timestamp":4528762,"id":657,"parentId":539,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17505,"timestamp":4529088,"id":668,"parentId":449,"tags":{"name":"/app/functions/backend/deleteFolderRecursively.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17921,"timestamp":4529150,"id":670,"parentId":455,"tags":{"name":"/app/functions/backend/exportDb.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18675,"timestamp":4529008,"id":664,"parentId":461,"tags":{"name":"/app/package-shared/functions/backend/httpsRequest.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19606,"timestamp":4528740,"id":656,"parentId":536,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20315,"timestamp":4529039,"id":665,"parentId":490,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21706,"timestamp":4529117,"id":669,"parentId":473,"tags":{"name":"/app/functions/backend/createDbSchemaFromDb.ts","layer":"api"},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23136,"timestamp":4528930,"id":661,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":25528,"timestamp":4528897,"id":660,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736839430567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2223922,"timestamp":2338326,"id":135,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2224229,"timestamp":2338152,"id":97,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2224100,"timestamp":2338312,"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.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2224392,"timestamp":2338099,"id":84,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2225273,"timestamp":2338470,"id":174,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":16092,"timestamp":4563437,"id":671,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/utils.js","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":16784,"timestamp":4563519,"id":672,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/lib/pretty-bytes.js","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20152,"timestamp":4563708,"id":678,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/tracer.js","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20719,"timestamp":4563653,"id":676,"parentId":530,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21134,"timestamp":4563626,"id":675,"parentId":536,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21693,"timestamp":4563552,"id":673,"parentId":530,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22146,"timestamp":4563598,"id":674,"parentId":536,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22815,"timestamp":4563682,"id":677,"parentId":545,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":null},"startTime":1736839430602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261505,"timestamp":2337663,"id":34,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261594,"timestamp":2337653,"id":33,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261528,"timestamp":2337741,"id":42,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261566,"timestamp":2337721,"id":39,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261565,"timestamp":2337737,"id":41,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261636,"timestamp":2337681,"id":36,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261623,"timestamp":2337730,"id":40,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261630,"timestamp":2337744,"id":43,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261632,"timestamp":2337757,"id":46,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261792,"timestamp":2337616,"id":27,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261801,"timestamp":2337621,"id":28,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261674,"timestamp":2337768,"id":49,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"add-entry","duration":2261944,"timestamp":2337760,"id":47,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261957,"timestamp":2337771,"id":50,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261781,"timestamp":2337967,"id":59,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261788,"timestamp":2337977,"id":62,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261806,"timestamp":2337974,"id":61,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261795,"timestamp":2338002,"id":68,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261821,"timestamp":2337993,"id":66,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261825,"timestamp":2338012,"id":71,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261863,"timestamp":2337997,"id":67,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261855,"timestamp":2338032,"id":73,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261922,"timestamp":2338010,"id":70,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261916,"timestamp":2338040,"id":75,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261931,"timestamp":2338049,"id":77,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261959,"timestamp":2338043,"id":76,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261976,"timestamp":2338052,"id":78,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261939,"timestamp":2338105,"id":86,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2262023,"timestamp":2338035,"id":74,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261973,"timestamp":2338102,"id":85,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261945,"timestamp":2338144,"id":96,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261966,"timestamp":2338141,"id":95,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2262030,"timestamp":2338109,"id":87,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2261953,"timestamp":2338201,"id":108,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":1210,"timestamp":4601362,"id":694,"parentId":542,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":16792,"timestamp":4600816,"id":679,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/utils.js","layer":null},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17078,"timestamp":4600958,"id":681,"parentId":534,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","layer":null},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17407,"timestamp":4601121,"id":686,"parentId":550,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":null},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17863,"timestamp":4601182,"id":688,"parentId":493,"tags":{"name":"/app/package-shared/functions/api/social-login/githubLogin.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18268,"timestamp":4601277,"id":691,"parentId":519,"tags":{"name":"/app/package-shared/functions/api/users/api-get-user.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19111,"timestamp":4601153,"id":687,"parentId":493,"tags":{"name":"/app/package-shared/shell/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19799,"timestamp":4601011,"id":682,"parentId":490,"tags":{"name":"/app/package-shared/functions/backend/addMariadbUser.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20413,"timestamp":4601056,"id":683,"parentId":483,"tags":{"name":"/app/functions/backend/reAuthUser.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":20990,"timestamp":4601096,"id":685,"parentId":509,"tags":{"name":"/app/functions/backend/fsWriteImageToDisk.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21598,"timestamp":4601068,"id":684,"parentId":480,"tags":{"name":"/app/package-shared/functions/api/query/get.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21748,"timestamp":4601306,"id":692,"parentId":518,"tags":{"name":"/app/package-shared/functions/api/users/api-delete-user.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22744,"timestamp":4601240,"id":690,"parentId":517,"tags":{"name":"/app/package-shared/functions/api/users/api-create-user.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22780,"timestamp":4601582,"id":703,"parentId":527,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":23318,"timestamp":4601638,"id":705,"parentId":523,"tags":{"name":"/app/package-shared/functions/api/users/social/api-github-login.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24793,"timestamp":4601211,"id":689,"parentId":498,"tags":{"name":"/app/package-shared/functions/api/social-login/handleSocialDb.ts","layer":"api"},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24947,"timestamp":4601610,"id":704,"parentId":527,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":25936,"timestamp":4601546,"id":701,"parentId":526,"tags":{"name":"/app/package-shared/functions/api/users/api-send-email-code.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":26624,"timestamp":4601422,"id":697,"parentId":505,"tags":{"name":"/app/functions/backend/importExportTableDataFn.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":27096,"timestamp":4601461,"id":698,"parentId":524,"tags":{"name":"/app/package-shared/functions/api/users/api-reauth-user.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":27891,"timestamp":4601491,"id":699,"parentId":520,"tags":{"name":"/app/package-shared/functions/api/users/api-login.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":28090,"timestamp":4601571,"id":702,"parentId":527,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":28690,"timestamp":4601721,"id":707,"parentId":536,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":30036,"timestamp":4601397,"id":696,"parentId":507,"tags":{"name":"/app/functions/backend/updateSchemaData.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":30400,"timestamp":4601385,"id":695,"parentId":505,"tags":{"name":"/app/functions/backend/delegatedUser.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":30635,"timestamp":4601675,"id":706,"parentId":521,"tags":{"name":"/app/package-shared/functions/api/users/social/api-google-login.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":31393,"timestamp":4601517,"id":700,"parentId":525,"tags":{"name":"/app/package-shared/functions/api/users/api-update-user.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":33036,"timestamp":4601334,"id":693,"parentId":497,"tags":{"name":"/app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts","layer":"api"},"startTime":1736839430640,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36443,"timestamp":4600899,"id":680,"parentId":540,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736839430639,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2320434,"timestamp":2338127,"id":91,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2321812,"timestamp":2338299,"id":127,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2322446,"timestamp":2338296,"id":126,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2342985,"timestamp":2338314,"id":132,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2343086,"timestamp":2338309,"id":130,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2346311,"timestamp":2338322,"id":134,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2347366,"timestamp":2338211,"id":111,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2347160,"timestamp":2338461,"id":172,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13090,"timestamp":4698024,"id":709,"parentId":530,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13189,"timestamp":4698160,"id":713,"parentId":530,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13713,"timestamp":4698268,"id":717,"parentId":529,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14625,"timestamp":4698060,"id":710,"parentId":530,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15086,"timestamp":4698220,"id":715,"parentId":539,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15489,"timestamp":4698301,"id":718,"parentId":555,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16114,"timestamp":4698189,"id":714,"parentId":550,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16166,"timestamp":4698370,"id":720,"parentId":529,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16404,"timestamp":4698548,"id":725,"parentId":542,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16818,"timestamp":4698431,"id":722,"parentId":542,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17200,"timestamp":4698401,"id":721,"parentId":531,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18484,"timestamp":4698245,"id":716,"parentId":538,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19017,"timestamp":4698494,"id":723,"parentId":545,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20824,"timestamp":4698094,"id":711,"parentId":536,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21702,"timestamp":4698342,"id":719,"parentId":539,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21897,"timestamp":4698612,"id":727,"parentId":537,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22623,"timestamp":4698521,"id":724,"parentId":543,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24237,"timestamp":4698126,"id":712,"parentId":529,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24282,"timestamp":4698573,"id":726,"parentId":545,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26254,"timestamp":4697892,"id":708,"parentId":536,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736839430736,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26757,"timestamp":4698676,"id":728,"parentId":546,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736839430737,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5239,"timestamp":4812335,"id":736,"parentId":578,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","layer":null},"startTime":1736839430851,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6119,"timestamp":4812188,"id":732,"parentId":546,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736839430850,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6739,"timestamp":4812144,"id":731,"parentId":577,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":null},"startTime":1736839430850,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7513,"timestamp":4812108,"id":730,"parentId":577,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":null},"startTime":1736839430850,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":8371,"timestamp":4811993,"id":729,"parentId":545,"tags":{"name":"/app/functions/backend/grabTableSchemaData.ts","layer":null},"startTime":1736839430850,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8768,"timestamp":4812297,"id":735,"parentId":578,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736839430851,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9108,"timestamp":4812259,"id":734,"parentId":578,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736839430851,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9881,"timestamp":4812221,"id":733,"parentId":578,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736839430850,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":38,"timestamp":4847880,"id":745,"parentId":581,"tags":{"name":"serverless-mysql","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":10,"timestamp":4848034,"id":748,"parentId":581,"tags":{"name":"@moduletrace/datasquirel","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2724,"timestamp":4847547,"id":737,"parentId":578,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-cjs","duration":4011,"timestamp":4847762,"id":741,"parentId":578,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":3851,"timestamp":4848054,"id":749,"parentId":594,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":4994,"timestamp":4847823,"id":743,"parentId":593,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5603,"timestamp":4847745,"id":740,"parentId":560,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5817,"timestamp":4847957,"id":746,"parentId":550,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6147,"timestamp":4847997,"id":747,"parentId":555,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7182,"timestamp":4847653,"id":738,"parentId":547,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7858,"timestamp":4847792,"id":742,"parentId":548,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8539,"timestamp":4847710,"id":739,"parentId":544,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9927,"timestamp":4847841,"id":744,"parentId":549,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-tsx","duration":12093,"timestamp":4848075,"id":750,"parentId":553,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736839430886,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11061,"timestamp":4908726,"id":759,"parentId":589,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11339,"timestamp":4908774,"id":762,"parentId":558,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11954,"timestamp":4908646,"id":756,"parentId":565,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12389,"timestamp":4908797,"id":763,"parentId":560,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13362,"timestamp":4908529,"id":752,"parentId":556,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13720,"timestamp":4908751,"id":761,"parentId":560,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14528,"timestamp":4908828,"id":764,"parentId":573,"tags":{"name":"/app/functions/backend/fsWriteImageToDiskFromBase64.ts","layer":"api"},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15371,"timestamp":4908738,"id":760,"parentId":558,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16315,"timestamp":4908592,"id":754,"parentId":551,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17170,"timestamp":4908564,"id":753,"parentId":554,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16989,"timestamp":4908994,"id":771,"parentId":584,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17344,"timestamp":4909008,"id":772,"parentId":585,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17896,"timestamp":4908968,"id":770,"parentId":569,"tags":{"name":"/app/package-shared/functions/api/query/post.ts","layer":"api"},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18298,"timestamp":4909031,"id":773,"parentId":585,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18762,"timestamp":4908903,"id":767,"parentId":584,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19163,"timestamp":4908878,"id":766,"parentId":557,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19476,"timestamp":4908945,"id":769,"parentId":560,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20185,"timestamp":4908922,"id":768,"parentId":564,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21784,"timestamp":4908619,"id":755,"parentId":552,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22397,"timestamp":4908852,"id":765,"parentId":558,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24551,"timestamp":4908430,"id":751,"parentId":564,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26300,"timestamp":4908699,"id":758,"parentId":566,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":29824,"timestamp":4908672,"id":757,"parentId":563,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736839430947,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":33,"timestamp":4988866,"id":776,"parentId":636,"tags":{"name":"buffer","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":8,"timestamp":4989338,"id":794,"parentId":664,"tags":{"name":"https","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4,"timestamp":4989354,"id":795,"parentId":664,"tags":{"name":"http","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7,"timestamp":4989523,"id":802,"parentId":640,"tags":{"name":"sanitize-html","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4,"timestamp":4989537,"id":803,"parentId":629,"tags":{"name":"nodemailer","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12762,"timestamp":4988921,"id":777,"parentId":576,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12830,"timestamp":4989213,"id":788,"parentId":581,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13128,"timestamp":4989191,"id":787,"parentId":583,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13471,"timestamp":4989103,"id":783,"parentId":583,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14068,"timestamp":4989089,"id":782,"parentId":583,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14915,"timestamp":4988743,"id":774,"parentId":567,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15208,"timestamp":4988961,"id":778,"parentId":576,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15615,"timestamp":4989130,"id":784,"parentId":560,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16313,"timestamp":4989155,"id":785,"parentId":560,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16443,"timestamp":4989327,"id":793,"parentId":590,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17458,"timestamp":4989178,"id":786,"parentId":584,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18071,"timestamp":4989237,"id":789,"parentId":561,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19054,"timestamp":4988985,"id":779,"parentId":560,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19010,"timestamp":4989305,"id":792,"parentId":589,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20327,"timestamp":4988834,"id":775,"parentId":559,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20138,"timestamp":4989294,"id":791,"parentId":589,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21292,"timestamp":4989038,"id":780,"parentId":560,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21360,"timestamp":4989261,"id":790,"parentId":577,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21397,"timestamp":4989420,"id":798,"parentId":587,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21656,"timestamp":4989363,"id":796,"parentId":588,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22004,"timestamp":4989511,"id":801,"parentId":593,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22709,"timestamp":4989392,"id":797,"parentId":588,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23120,"timestamp":4989627,"id":806,"parentId":593,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24900,"timestamp":4989062,"id":781,"parentId":560,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736839431027,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25429,"timestamp":4989644,"id":807,"parentId":599,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26042,"timestamp":4989463,"id":800,"parentId":660,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26114,"timestamp":4989671,"id":808,"parentId":678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-thenable.js","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26592,"timestamp":4989550,"id":804,"parentId":658,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":27044,"timestamp":4989436,"id":799,"parentId":662,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":27357,"timestamp":4989589,"id":805,"parentId":658,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","layer":null},"startTime":1736839431028,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685359,"timestamp":2337812,"id":53,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685507,"timestamp":2337748,"id":44,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685276,"timestamp":2338024,"id":72,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685553,"timestamp":2337830,"id":54,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685574,"timestamp":2337840,"id":55,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685269,"timestamp":2338171,"id":100,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685295,"timestamp":2338165,"id":99,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2685264,"timestamp":2338216,"id":113,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":33,"timestamp":5058544,"id":810,"parentId":621,"tags":{"name":"@moduletrace/datasquirel/dist/client/fetch","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7,"timestamp":5058683,"id":815,"parentId":685,"tags":{"name":"node-fetch","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4,"timestamp":5058696,"id":816,"parentId":685,"tags":{"name":"sharp","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":7,"timestamp":5058795,"id":821,"parentId":680,"tags":{"name":"react-dom","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10507,"timestamp":5058471,"id":809,"parentId":678,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/constants.js","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22215,"timestamp":5058592,"id":811,"parentId":678,"tags":{"name":"/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24301,"timestamp":5059682,"id":827,"parentId":605,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736839431098,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":25611,"timestamp":5058717,"id":817,"parentId":595,"tags":{"name":"/app/functions/backend/su/get-servers.ts","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":24973,"timestamp":5059669,"id":826,"parentId":639,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":"api"},"startTime":1736839431098,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26184,"timestamp":5058747,"id":819,"parentId":602,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25484,"timestamp":5059698,"id":828,"parentId":604,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736839431098,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25982,"timestamp":5059625,"id":825,"parentId":595,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736839431098,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27277,"timestamp":5058735,"id":818,"parentId":597,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27923,"timestamp":5058671,"id":814,"parentId":598,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27332,"timestamp":5059721,"id":830,"parentId":619,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736839431098,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":28875,"timestamp":5058771,"id":820,"parentId":601,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":29771,"timestamp":5058661,"id":813,"parentId":596,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":30708,"timestamp":5058624,"id":812,"parentId":594,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":30445,"timestamp":5059709,"id":829,"parentId":604,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736839431098,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":32120,"timestamp":5058837,"id":823,"parentId":680,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":32966,"timestamp":5058809,"id":822,"parentId":680,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":40405,"timestamp":5058875,"id":824,"parentId":704,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431097,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2763099,"timestamp":2338304,"id":129,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":37,"timestamp":5117390,"id":833,"parentId":693,"tags":{"name":"dotenv","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9202,"timestamp":5117445,"id":834,"parentId":619,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9567,"timestamp":5117645,"id":838,"parentId":606,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9996,"timestamp":5117510,"id":835,"parentId":639,"tags":{"name":"/app/package-shared/shell/utils/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10042,"timestamp":5117758,"id":843,"parentId":639,"tags":{"name":"/app/package-shared/shell/utils/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10634,"timestamp":5117551,"id":836,"parentId":634,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":"api"},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10882,"timestamp":5117598,"id":837,"parentId":674,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11191,"timestamp":5117694,"id":841,"parentId":630,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":"api"},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12130,"timestamp":5117248,"id":831,"parentId":619,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11964,"timestamp":5117681,"id":840,"parentId":611,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12270,"timestamp":5117662,"id":839,"parentId":610,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-ts","duration":12845,"timestamp":5117725,"id":842,"parentId":674,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13132,"timestamp":5117787,"id":844,"parentId":605,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14672,"timestamp":5117331,"id":832,"parentId":619,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736839431156,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2798373,"timestamp":2338597,"id":205,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2393,"timestamp":5137696,"id":846,"parentId":719,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431176,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9534,"timestamp":5137597,"id":845,"parentId":612,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736839431176,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3517,"timestamp":5150269,"id":853,"parentId":708,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4753,"timestamp":5150487,"id":858,"parentId":732,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12896,"timestamp":5150224,"id":852,"parentId":643,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":"api"},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13030,"timestamp":5150422,"id":856,"parentId":669,"tags":{"name":"/app/package-shared/shell/utils/slugToCamelTitle.ts","layer":"api"},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13458,"timestamp":5150316,"id":854,"parentId":652,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":"api"},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13679,"timestamp":5150387,"id":855,"parentId":686,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":null},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14304,"timestamp":5150197,"id":851,"parentId":639,"tags":{"name":"/app/package-shared/shell/utils/dbHandler.ts","layer":"api"},"startTime":1736839431188,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14925,"timestamp":5150066,"id":848,"parentId":674,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":null},"startTime":1736839431188,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15402,"timestamp":5149961,"id":847,"parentId":638,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":"api"},"startTime":1736839431188,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16097,"timestamp":5150127,"id":849,"parentId":639,"tags":{"name":"/app/package-shared/shell/utils/createTable.ts","layer":"api"},"startTime":1736839431188,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16412,"timestamp":5150454,"id":857,"parentId":690,"tags":{"name":"/app/package-shared/functions/backend/addUsersTableToDb.ts","layer":"api"},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18352,"timestamp":5150526,"id":859,"parentId":730,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":null},"startTime":1736839431189,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21170,"timestamp":5150165,"id":850,"parentId":639,"tags":{"name":"/app/package-shared/shell/utils/updateTable.ts","layer":"api"},"startTime":1736839431188,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2837438,"timestamp":2337685,"id":37,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2837159,"timestamp":2338061,"id":80,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2837281,"timestamp":2337981,"id":63,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":721,"timestamp":5196895,"id":867,"parentId":728,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":10763,"timestamp":5196759,"id":862,"parentId":701,"tags":{"name":"/app/package-shared/utils/serialize-cookies.ts","layer":"api"},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11298,"timestamp":5196906,"id":868,"parentId":705,"tags":{"name":"/app/package-shared/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12322,"timestamp":5196788,"id":863,"parentId":690,"tags":{"name":"/app/package-shared/functions/backend/updateUsersTableSchema.ts","layer":"api"},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12859,"timestamp":5196839,"id":865,"parentId":703,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13193,"timestamp":5196932,"id":869,"parentId":703,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13863,"timestamp":5196864,"id":866,"parentId":689,"tags":{"name":"/app/package-shared/functions/api/social-login/loginSocialUser.ts","layer":"api"},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14776,"timestamp":5196724,"id":861,"parentId":684,"tags":{"name":"/app/package-shared/functions/backend/db/runQuery.ts","layer":"api"},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15040,"timestamp":5196997,"id":872,"parentId":707,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15834,"timestamp":5196813,"id":864,"parentId":693,"tags":{"name":"/app/package-shared/shell/mariadb-users/handleGrants.ts","layer":"api"},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16532,"timestamp":5196634,"id":860,"parentId":707,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17040,"timestamp":5196968,"id":871,"parentId":707,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17730,"timestamp":5196953,"id":870,"parentId":715,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736839431235,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2880881,"timestamp":2338317,"id":133,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2880979,"timestamp":2338302,"id":128,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2885236,"timestamp":2338199,"id":107,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2885298,"timestamp":2338204,"id":109,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2887774,"timestamp":2338175,"id":101,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2887808,"timestamp":2338185,"id":103,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2887831,"timestamp":2338181,"id":102,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3105,"timestamp":5234719,"id":887,"parentId":772,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4015,"timestamp":5234886,"id":894,"parentId":767,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8927,"timestamp":5234412,"id":877,"parentId":725,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9207,"timestamp":5234608,"id":884,"parentId":708,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9747,"timestamp":5234541,"id":882,"parentId":716,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10214,"timestamp":5234487,"id":880,"parentId":721,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10703,"timestamp":5234388,"id":876,"parentId":717,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11063,"timestamp":5234427,"id":878,"parentId":725,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11544,"timestamp":5234328,"id":874,"parentId":709,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11779,"timestamp":5234456,"id":879,"parentId":721,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12783,"timestamp":5234241,"id":873,"parentId":709,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12921,"timestamp":5234661,"id":885,"parentId":723,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13774,"timestamp":5234571,"id":883,"parentId":723,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13746,"timestamp":5234861,"id":893,"parentId":712,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14098,"timestamp":5234812,"id":891,"parentId":719,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14648,"timestamp":5234774,"id":889,"parentId":711,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15224,"timestamp":5234784,"id":890,"parentId":711,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15788,"timestamp":5234937,"id":896,"parentId":719,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16606,"timestamp":5234747,"id":888,"parentId":708,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18137,"timestamp":5234361,"id":875,"parentId":713,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18348,"timestamp":5234915,"id":895,"parentId":711,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20947,"timestamp":5234513,"id":881,"parentId":722,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23103,"timestamp":5234691,"id":886,"parentId":723,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24514,"timestamp":5234837,"id":892,"parentId":727,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736839431273,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5666,"timestamp":5289289,"id":900,"parentId":784,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431328,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6937,"timestamp":5289318,"id":901,"parentId":785,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431328,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8012,"timestamp":5289341,"id":902,"parentId":791,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431328,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6980,"timestamp":5291485,"id":904,"parentId":781,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431330,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24471,"timestamp":5289139,"id":897,"parentId":724,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736839431327,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25170,"timestamp":5289229,"id":898,"parentId":728,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736839431328,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25971,"timestamp":5289259,"id":899,"parentId":728,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736839431328,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-process","duration":31083,"timestamp":5487175,"id":906,"parentId":905,"tags":{},"startTime":1736839431525,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-loader","duration":226227,"timestamp":5292073,"id":905,"parentId":903,"tags":{},"startTime":1736839431330,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-loader","duration":40314,"timestamp":5518453,"id":907,"parentId":903,"tags":{"astUsed":"true"},"startTime":1736839431557,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":269761,"timestamp":5289363,"id":903,"parentId":773,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736839431328,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":556,"timestamp":5565235,"id":913,"parentId":751,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736839431604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2599,"timestamp":5565022,"id":908,"parentId":806,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7760,"timestamp":5565151,"id":910,"parentId":747,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736839431603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8411,"timestamp":5565209,"id":912,"parentId":747,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736839431603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17517,"timestamp":5565113,"id":909,"parentId":746,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736839431603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18028,"timestamp":5565181,"id":911,"parentId":747,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736839431603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9355,"timestamp":5588229,"id":915,"parentId":804,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736839431627,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13279,"timestamp":5588140,"id":914,"parentId":805,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736839431626,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":252,"timestamp":5608181,"id":937,"parentId":812,"tags":{"name":"ansi-regex","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-io-client","duration":21,"timestamp":5608518,"id":938,"parentId":812,"tags":{"name":"socket.io-client","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23140,"timestamp":5607348,"id":922,"parentId":832,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22591,"timestamp":5608869,"id":945,"parentId":860,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":25091,"timestamp":5608948,"id":947,"parentId":870,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26255,"timestamp":5608994,"id":948,"parentId":871,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":36213,"timestamp":5607673,"id":929,"parentId":859,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37668,"timestamp":5607093,"id":918,"parentId":742,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736839431645,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37236,"timestamp":5608122,"id":936,"parentId":744,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":37522,"timestamp":5608570,"id":939,"parentId":859,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37935,"timestamp":5608635,"id":940,"parentId":756,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":39611,"timestamp":5607533,"id":926,"parentId":750,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":40298,"timestamp":5607411,"id":923,"parentId":742,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":39128,"timestamp":5608777,"id":943,"parentId":761,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":40824,"timestamp":5607605,"id":928,"parentId":744,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":41411,"timestamp":5607467,"id":924,"parentId":750,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-tsx","duration":43072,"timestamp":5607038,"id":917,"parentId":738,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736839431645,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":41494,"timestamp":5608918,"id":946,"parentId":773,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":41996,"timestamp":5608732,"id":942,"parentId":763,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":42591,"timestamp":5608686,"id":941,"parentId":752,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":42476,"timestamp":5609037,"id":949,"parentId":772,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":42787,"timestamp":5609058,"id":950,"parentId":768,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":44902,"timestamp":5607751,"id":930,"parentId":859,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":46231,"timestamp":5607491,"id":925,"parentId":739,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":45917,"timestamp":5608822,"id":944,"parentId":753,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736839431647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":49416,"timestamp":5607138,"id":919,"parentId":742,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736839431645,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":49955,"timestamp":5607180,"id":920,"parentId":824,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736839431645,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":49778,"timestamp":5607557,"id":927,"parentId":846,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":49692,"timestamp":5607795,"id":931,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":50833,"timestamp":5606842,"id":916,"parentId":805,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736839431645,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":49988,"timestamp":5607846,"id":932,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":50969,"timestamp":5607242,"id":921,"parentId":804,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":50461,"timestamp":5607912,"id":933,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":50551,"timestamp":5607985,"id":934,"parentId":853,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":50640,"timestamp":5608037,"id":935,"parentId":858,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736839431646,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2372,"timestamp":5693725,"id":954,"parentId":877,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10574,"timestamp":5693584,"id":951,"parentId":768,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11020,"timestamp":5693654,"id":952,"parentId":766,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11502,"timestamp":5693710,"id":953,"parentId":755,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12775,"timestamp":5693905,"id":960,"parentId":894,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13034,"timestamp":5693843,"id":958,"parentId":887,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13170,"timestamp":5693869,"id":959,"parentId":887,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13436,"timestamp":5693786,"id":956,"parentId":887,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13610,"timestamp":5693756,"id":955,"parentId":887,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13754,"timestamp":5693814,"id":957,"parentId":887,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736839431732,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":33,"timestamp":5711783,"id":974,"parentId":886,"tags":{"name":"gsap/Flip","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":9,"timestamp":5711843,"id":975,"parentId":884,"tags":{"name":"tailwind-merge","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":6,"timestamp":5711859,"id":976,"parentId":886,"tags":{"name":"gsap","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4041,"timestamp":5711484,"id":965,"parentId":873,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4754,"timestamp":5711689,"id":972,"parentId":897,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5534,"timestamp":5711726,"id":973,"parentId":898,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15631,"timestamp":5711660,"id":971,"parentId":781,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16273,"timestamp":5711412,"id":963,"parentId":778,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16580,"timestamp":5711550,"id":967,"parentId":787,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17095,"timestamp":5711570,"id":968,"parentId":780,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17714,"timestamp":5711464,"id":964,"parentId":784,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17375,"timestamp":5712288,"id":985,"parentId":781,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736839431751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18744,"timestamp":5711393,"id":962,"parentId":786,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19266,"timestamp":5711305,"id":961,"parentId":773,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19624,"timestamp":5711522,"id":966,"parentId":786,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19446,"timestamp":5712229,"id":984,"parentId":775,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736839431751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20531,"timestamp":5711635,"id":970,"parentId":780,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22116,"timestamp":5711603,"id":969,"parentId":775,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22164,"timestamp":5712001,"id":980,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22514,"timestamp":5711919,"id":978,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22497,"timestamp":5712161,"id":983,"parentId":904,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22995,"timestamp":5711873,"id":977,"parentId":900,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23026,"timestamp":5712032,"id":981,"parentId":902,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23099,"timestamp":5712107,"id":982,"parentId":904,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23432,"timestamp":5711968,"id":979,"parentId":901,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736839431750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":37,"timestamp":5760558,"id":1004,"parentId":943,"tags":{"name":"@moduletrace/datasquirel/dist/client","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11,"timestamp":5760732,"id":1010,"parentId":936,"tags":{"name":"react-tiny-popover","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4709,"timestamp":5760041,"id":988,"parentId":912,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5569,"timestamp":5760219,"id":994,"parentId":936,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5444,"timestamp":5761226,"id":1022,"parentId":952,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15939,"timestamp":5760647,"id":1006,"parentId":817,"tags":{"name":"/app/functions/backend/su/get-servers-json-path.ts","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17065,"timestamp":5759994,"id":987,"parentId":781,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16882,"timestamp":5760616,"id":1005,"parentId":817,"tags":{"name":"/app/functions/backend/su/check-servers.ts","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17730,"timestamp":5760674,"id":1007,"parentId":812,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18755,"timestamp":5760687,"id":1008,"parentId":832,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20395,"timestamp":5760168,"id":992,"parentId":781,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21299,"timestamp":5760103,"id":990,"parentId":801,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21388,"timestamp":5760702,"id":1009,"parentId":832,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22724,"timestamp":5760076,"id":989,"parentId":801,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21923,"timestamp":5761144,"id":1019,"parentId":842,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.ts","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":22243,"timestamp":5761114,"id":1018,"parentId":841,"tags":{"name":"/app/package-shared/utils/backend/grabDbSSL.ts","layer":"api"},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23291,"timestamp":5760752,"id":1011,"parentId":813,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24654,"timestamp":5760204,"id":993,"parentId":818,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24408,"timestamp":5760923,"id":1013,"parentId":807,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25179,"timestamp":5760786,"id":1012,"parentId":820,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25259,"timestamp":5761198,"id":1021,"parentId":845,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":25515,"timestamp":5761336,"id":1025,"parentId":849,"tags":{"name":"/app/package-shared/shell/utils/generateColumnDescription.ts","layer":"api"},"startTime":1736839431800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":25926,"timestamp":5761308,"id":1024,"parentId":837,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":null},"startTime":1736839431800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":26256,"timestamp":5761280,"id":1023,"parentId":836,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":"api"},"startTime":1736839431800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26718,"timestamp":5761170,"id":1020,"parentId":845,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27389,"timestamp":5760961,"id":1014,"parentId":825,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":30030,"timestamp":5759891,"id":986,"parentId":807,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30211,"timestamp":5760327,"id":997,"parentId":948,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30441,"timestamp":5760291,"id":996,"parentId":945,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30781,"timestamp":5760135,"id":991,"parentId":908,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736839431798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30829,"timestamp":5760259,"id":995,"parentId":945,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30854,"timestamp":5760425,"id":1000,"parentId":948,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31047,"timestamp":5760393,"id":999,"parentId":945,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31234,"timestamp":5760362,"id":998,"parentId":948,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31278,"timestamp":5760458,"id":1001,"parentId":947,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31398,"timestamp":5760492,"id":1002,"parentId":948,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31527,"timestamp":5760522,"id":1003,"parentId":948,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31601,"timestamp":5760992,"id":1015,"parentId":920,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31968,"timestamp":5761072,"id":1017,"parentId":921,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":33753,"timestamp":5761027,"id":1016,"parentId":921,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736839431799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461982,"timestamp":2337585,"id":24,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461579,"timestamp":2338086,"id":83,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461842,"timestamp":2337854,"id":56,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461747,"timestamp":2337971,"id":60,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461772,"timestamp":2337990,"id":65,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461308,"timestamp":2338475,"id":175,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461527,"timestamp":2338277,"id":123,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"add-entry","duration":3461822,"timestamp":2338259,"id":120,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461848,"timestamp":2338253,"id":119,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461872,"timestamp":2338246,"id":118,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462360,"timestamp":2337779,"id":51,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462361,"timestamp":2337795,"id":52,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462619,"timestamp":2337597,"id":26,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462702,"timestamp":2337573,"id":23,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462707,"timestamp":2337592,"id":25,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462669,"timestamp":2337648,"id":32,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462711,"timestamp":2337626,"id":29,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462216,"timestamp":2338138,"id":94,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462154,"timestamp":2338220,"id":114,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3462156,"timestamp":2338235,"id":115,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461930,"timestamp":2338480,"id":177,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461953,"timestamp":2338478,"id":176,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3461988,"timestamp":2338459,"id":171,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2514,"timestamp":5822562,"id":1030,"parentId":964,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11071,"timestamp":5822850,"id":1038,"parentId":861,"tags":{"name":"/app/package-shared/utils/trim-sql.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11654,"timestamp":5822535,"id":1029,"parentId":847,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11878,"timestamp":5822498,"id":1028,"parentId":848,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12068,"timestamp":5822778,"id":1036,"parentId":861,"tags":{"name":"/app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12492,"timestamp":5822749,"id":1035,"parentId":861,"tags":{"name":"/app/package-shared/functions/backend/fullAccessDbHandler.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13326,"timestamp":5822350,"id":1026,"parentId":849,"tags":{"name":"/app/package-shared/shell/utils/supplementTable.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13713,"timestamp":5822450,"id":1027,"parentId":857,"tags":{"name":"/app/package-shared/functions/backend/grabNewUsersTableSchema.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14368,"timestamp":5822814,"id":1037,"parentId":863,"tags":{"name":"/app/package-shared/functions/backend/grabSchemaFieldsFromData.ts","layer":"api"},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15873,"timestamp":5822863,"id":1039,"parentId":876,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16766,"timestamp":5822939,"id":1042,"parentId":878,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17744,"timestamp":5822889,"id":1040,"parentId":874,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19465,"timestamp":5822915,"id":1041,"parentId":878,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20338,"timestamp":5822602,"id":1031,"parentId":972,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20553,"timestamp":5822633,"id":1032,"parentId":972,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20766,"timestamp":5822669,"id":1033,"parentId":972,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20965,"timestamp":5822707,"id":1034,"parentId":972,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736839431861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515453,"timestamp":2337764,"id":48,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515396,"timestamp":2337918,"id":58,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515343,"timestamp":2338005,"id":69,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515397,"timestamp":2337984,"id":64,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515328,"timestamp":2338072,"id":82,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515302,"timestamp":2338124,"id":90,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515743,"timestamp":2337698,"id":38,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515703,"timestamp":2337752,"id":45,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515312,"timestamp":2338158,"id":98,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515349,"timestamp":2338134,"id":93,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3515234,"timestamp":2338262,"id":121,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6124,"timestamp":5852896,"id":1043,"parentId":989,"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":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6971,"timestamp":5853007,"id":1044,"parentId":1012,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3532562,"timestamp":2338119,"id":89,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3532305,"timestamp":2338489,"id":178,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533705,"timestamp":2337639,"id":31,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533757,"timestamp":2337630,"id":30,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533531,"timestamp":2337881,"id":57,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533366,"timestamp":2338069,"id":81,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533328,"timestamp":2338129,"id":92,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533238,"timestamp":2338237,"id":116,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533253,"timestamp":2338240,"id":117,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533247,"timestamp":2338265,"id":122,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533246,"timestamp":2338286,"id":124,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3533434,"timestamp":2338291,"id":125,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27676,"timestamp":5853166,"id":1048,"parentId":886,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":29180,"timestamp":5853180,"id":1049,"parentId":886,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30357,"timestamp":5853121,"id":1047,"parentId":1022,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30639,"timestamp":5853043,"id":1045,"parentId":988,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30780,"timestamp":5853086,"id":1046,"parentId":994,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736839431891,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":56,"timestamp":5888762,"id":1056,"parentId":1007,"tags":{"name":"xterm","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":12,"timestamp":5888838,"id":1057,"parentId":1007,"tags":{"name":"xterm-addon-fit","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2605,"timestamp":5888722,"id":1055,"parentId":1014,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11647,"timestamp":5888910,"id":1059,"parentId":1017,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12598,"timestamp":5888490,"id":1050,"parentId":886,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":12432,"timestamp":5889005,"id":1062,"parentId":899,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13521,"timestamp":5888628,"id":1052,"parentId":881,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14000,"timestamp":5888658,"id":1053,"parentId":879,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14628,"timestamp":5888941,"id":1060,"parentId":886,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15380,"timestamp":5889030,"id":1063,"parentId":897,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16370,"timestamp":5888974,"id":1061,"parentId":886,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17898,"timestamp":5888589,"id":1051,"parentId":879,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19629,"timestamp":5888693,"id":1054,"parentId":875,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":19714,"timestamp":5888857,"id":1058,"parentId":1015,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736839431927,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4280,"timestamp":5915834,"id":1064,"parentId":1040,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17369,"timestamp":5916241,"id":1071,"parentId":912,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736839431955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18337,"timestamp":5916081,"id":1067,"parentId":889,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19155,"timestamp":5915979,"id":1065,"parentId":886,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19745,"timestamp":5916047,"id":1066,"parentId":881,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20472,"timestamp":5916200,"id":1070,"parentId":897,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20842,"timestamp":5916379,"id":1076,"parentId":897,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736839431955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21891,"timestamp":5916253,"id":1072,"parentId":899,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736839431955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23160,"timestamp":5916321,"id":1074,"parentId":911,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736839431955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24210,"timestamp":5916349,"id":1075,"parentId":898,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736839431955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25680,"timestamp":5916290,"id":1073,"parentId":899,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736839431955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26437,"timestamp":5916114,"id":1068,"parentId":1015,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26578,"timestamp":5916155,"id":1069,"parentId":1030,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736839431954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16927,"timestamp":5949400,"id":1087,"parentId":917,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736839431988,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17931,"timestamp":5949350,"id":1086,"parentId":928,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736839431988,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19367,"timestamp":5949434,"id":1088,"parentId":936,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736839431988,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20198,"timestamp":5949200,"id":1083,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20588,"timestamp":5949060,"id":1079,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20968,"timestamp":5948902,"id":1077,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20959,"timestamp":5949129,"id":1081,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21226,"timestamp":5949094,"id":1080,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21418,"timestamp":5949165,"id":1082,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21823,"timestamp":5949012,"id":1078,"parentId":1043,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736839431987,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21795,"timestamp":5949252,"id":1084,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736839431988,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-js","duration":22407,"timestamp":5949286,"id":1085,"parentId":1044,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736839431988,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4181,"timestamp":5974258,"id":1089,"parentId":1063,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432013,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3641444,"timestamp":2338618,"id":208,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3641625,"timestamp":2338607,"id":207,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18125,"timestamp":5974508,"id":1091,"parentId":917,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736839432013,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18734,"timestamp":5974703,"id":1092,"parentId":919,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736839432013,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19539,"timestamp":5974779,"id":1093,"parentId":951,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736839432013,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21081,"timestamp":5974409,"id":1090,"parentId":1059,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736839432013,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":74,"timestamp":6000191,"id":1096,"parentId":1013,"tags":{"name":"@tinymce/tinymce-react","layer":null},"startTime":1736839432038,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2656,"timestamp":6000037,"id":1094,"parentId":1076,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432038,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3463,"timestamp":6000144,"id":1095,"parentId":1074,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432038,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12343,"timestamp":6000282,"id":1097,"parentId":1064,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736839432039,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":3031,"timestamp":6020255,"id":1099,"parentId":968,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":3934,"timestamp":6020291,"id":1100,"parentId":917,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":4546,"timestamp":6020315,"id":1101,"parentId":969,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5110,"timestamp":6020165,"id":1098,"parentId":1009,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736839432058,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5459,"timestamp":6020337,"id":1102,"parentId":964,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6679,"timestamp":6020360,"id":1103,"parentId":966,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7473,"timestamp":6020408,"id":1105,"parentId":966,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8338,"timestamp":6020385,"id":1104,"parentId":964,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736839432059,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2414,"timestamp":6031981,"id":1106,"parentId":1091,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16697,"timestamp":6032223,"id":1112,"parentId":986,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17470,"timestamp":6032171,"id":1110,"parentId":986,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18112,"timestamp":6032098,"id":1108,"parentId":1020,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19397,"timestamp":6032196,"id":1111,"parentId":1020,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20502,"timestamp":6032133,"id":1109,"parentId":1013,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21350,"timestamp":6032059,"id":1107,"parentId":1090,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736839432070,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3719938,"timestamp":2337540,"id":20,"parentId":18,"tags":{"request":"private-next-pages/_document.tsx"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":13368,"timestamp":6057032,"id":1117,"parentId":1061,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736839432095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14303,"timestamp":6056941,"id":1115,"parentId":1051,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736839432095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14870,"timestamp":6056989,"id":1116,"parentId":1051,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736839432095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15494,"timestamp":6057057,"id":1118,"parentId":1049,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736839432095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16621,"timestamp":6056866,"id":1114,"parentId":1042,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736839432095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17609,"timestamp":6056774,"id":1113,"parentId":1094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736839432095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2561,"timestamp":6075013,"id":1119,"parentId":1099,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3297,"timestamp":6075111,"id":1120,"parentId":1102,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4014,"timestamp":6075146,"id":1121,"parentId":1098,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15556,"timestamp":6075181,"id":1122,"parentId":1061,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736839432113,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2070,"timestamp":6091813,"id":1123,"parentId":1109,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432130,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756150,"timestamp":2338625,"id":209,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756535,"timestamp":2338329,"id":136,"parentId":18,"tags":{"request":"private-next-pages/_app.tsx"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757747,"timestamp":2337143,"id":19,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428375,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757352,"timestamp":2337558,"id":21,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757378,"timestamp":2337566,"id":22,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428376,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756652,"timestamp":2338331,"id":137,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756540,"timestamp":2338491,"id":179,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756551,"timestamp":2338495,"id":180,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756563,"timestamp":2338498,"id":181,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756572,"timestamp":2338504,"id":182,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756584,"timestamp":2338507,"id":183,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756593,"timestamp":2338512,"id":184,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756605,"timestamp":2338515,"id":185,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756629,"timestamp":2338518,"id":186,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756640,"timestamp":2338521,"id":187,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756653,"timestamp":2338524,"id":188,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756664,"timestamp":2338526,"id":189,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756673,"timestamp":2338532,"id":190,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756683,"timestamp":2338536,"id":191,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756693,"timestamp":2338539,"id":192,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756704,"timestamp":2338545,"id":193,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756709,"timestamp":2338555,"id":195,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756716,"timestamp":2338563,"id":197,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756725,"timestamp":2338567,"id":198,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756734,"timestamp":2338575,"id":199,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756748,"timestamp":2338581,"id":200,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756761,"timestamp":2338584,"id":201,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756771,"timestamp":2338589,"id":202,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756781,"timestamp":2338592,"id":203,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756794,"timestamp":2338595,"id":204,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3756775,"timestamp":2338628,"id":210,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757070,"timestamp":2338347,"id":142,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757080,"timestamp":2338352,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757092,"timestamp":2338354,"id":144,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757074,"timestamp":2338388,"id":152,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757140,"timestamp":2338339,"id":139,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757159,"timestamp":2338335,"id":138,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757169,"timestamp":2338342,"id":140,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757180,"timestamp":2338345,"id":141,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757139,"timestamp":2338405,"id":157,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757144,"timestamp":2338416,"id":160,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757174,"timestamp":2338398,"id":155,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757183,"timestamp":2338402,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757190,"timestamp":2338407,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757229,"timestamp":2338382,"id":150,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757228,"timestamp":2338396,"id":154,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757210,"timestamp":2338428,"id":163,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757229,"timestamp":2338435,"id":165,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757231,"timestamp":2338449,"id":168,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757253,"timestamp":2338440,"id":166,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757249,"timestamp":2338456,"id":170,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757309,"timestamp":2338410,"id":159,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757310,"timestamp":2338425,"id":162,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757294,"timestamp":2338453,"id":169,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3757316,"timestamp":2338445,"id":167,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8333,"timestamp":6091982,"id":1125,"parentId":1052,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736839432130,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9198,"timestamp":6091922,"id":1124,"parentId":1052,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736839432130,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11077,"timestamp":6092028,"id":1126,"parentId":1052,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736839432130,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11453,"timestamp":6092064,"id":1127,"parentId":1106,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736839432130,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9602,"timestamp":6104851,"id":1131,"parentId":1073,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736839432143,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10646,"timestamp":6104864,"id":1132,"parentId":1052,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736839432143,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11319,"timestamp":6104775,"id":1129,"parentId":1052,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736839432143,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-tsx","duration":12240,"timestamp":6104815,"id":1130,"parentId":1052,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736839432143,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14537,"timestamp":6104701,"id":1128,"parentId":1072,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736839432143,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10746,"timestamp":6120861,"id":1133,"parentId":1091,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736839432159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11694,"timestamp":6121006,"id":1136,"parentId":1091,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736839432159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12563,"timestamp":6120962,"id":1134,"parentId":1052,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736839432159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14004,"timestamp":6120977,"id":1135,"parentId":1091,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736839432159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14324,"timestamp":6121081,"id":1138,"parentId":1120,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736839432159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14612,"timestamp":6121034,"id":1137,"parentId":1119,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736839432159,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5310,"timestamp":6136142,"id":1139,"parentId":1104,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736839432174,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5712,"timestamp":6136295,"id":1141,"parentId":1104,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736839432175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6308,"timestamp":6136252,"id":1140,"parentId":1104,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736839432175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6640,"timestamp":6136369,"id":1143,"parentId":1123,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736839432175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6872,"timestamp":6136332,"id":1142,"parentId":1123,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736839432175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10764,"timestamp":6143633,"id":1144,"parentId":1111,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736839432182,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11427,"timestamp":6143726,"id":1146,"parentId":1108,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736839432182,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11974,"timestamp":6143696,"id":1145,"parentId":1108,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736839432182,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13314,"timestamp":6143758,"id":1147,"parentId":1109,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736839432182,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":80,"timestamp":6157807,"id":1148,"parentId":1134,"tags":{"name":"react-dom/client","layer":null},"startTime":1736839432196,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3823908,"timestamp":2338378,"id":149,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3824082,"timestamp":2338367,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6205,"timestamp":6157907,"id":1149,"parentId":1088,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736839432196,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":7338,"timestamp":6158077,"id":1150,"parentId":1109,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736839432196,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3827367,"timestamp":2338385,"id":151,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1648,"timestamp":6165665,"id":1151,"parentId":1141,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432204,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5339,"timestamp":6169233,"id":1152,"parentId":1146,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2838,"timestamp":6172720,"id":1153,"parentId":1145,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432211,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3550,"timestamp":6172784,"id":1154,"parentId":1147,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432211,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3839525,"timestamp":2338600,"id":206,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3839658,"timestamp":2338550,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3839680,"timestamp":2338561,"id":196,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1526,"timestamp":6178647,"id":1156,"parentId":1151,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736839432217,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":2511,"timestamp":6178574,"id":1155,"parentId":1128,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736839432217,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":2611,"timestamp":6179012,"id":1157,"parentId":1136,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736839432217,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3843880,"timestamp":2338420,"id":161,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3844092,"timestamp":2338432,"id":164,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4924,"timestamp":6184426,"id":1159,"parentId":1157,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839432223,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5717,"timestamp":6184185,"id":1158,"parentId":1133,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736839432222,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1152,"timestamp":6192570,"id":1161,"parentId":1159,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736839432231,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1426,"timestamp":6192476,"id":1160,"parentId":1159,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736839432231,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":1286,"timestamp":6194078,"id":1164,"parentId":1158,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736839432232,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":1826,"timestamp":6194002,"id":1162,"parentId":1158,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736839432232,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":2115,"timestamp":6194034,"id":1163,"parentId":1158,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736839432232,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5748,"timestamp":6199418,"id":1165,"parentId":1162,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736839432238,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":2349,"timestamp":6205262,"id":1166,"parentId":1163,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736839432244,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":29,"timestamp":6209501,"id":1167,"parentId":1166,"tags":{"name":"html-prettify","layer":null},"startTime":1736839432248,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3871244,"timestamp":2338360,"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%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3871342,"timestamp":2338370,"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%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3871350,"timestamp":2338393,"id":153,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":3871388,"timestamp":2338375,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736839428377,"traceId":"a2ec8ad33bb0e2b2"},{"name":"make","duration":3873336,"timestamp":2336897,"id":18,"parentId":16,"tags":{},"startTime":1736839428375,"traceId":"a2ec8ad33bb0e2b2"},{"name":"get-entries","duration":1488,"timestamp":6212178,"id":1169,"parentId":1168,"tags":{},"startTime":1736839432250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"node-file-trace-plugin","duration":10782107,"timestamp":6221759,"id":1170,"parentId":1168,"tags":{"traceEntryCount":"382"},"startTime":1736839432260,"traceId":"a2ec8ad33bb0e2b2"},{"name":"collect-traced-files","duration":13144,"timestamp":17003896,"id":1171,"parentId":1168,"tags":{},"startTime":1736839443042,"traceId":"a2ec8ad33bb0e2b2"},{"name":"finish-modules","duration":10805180,"timestamp":6211879,"id":1168,"parentId":17,"tags":{},"startTime":1736839432250,"traceId":"a2ec8ad33bb0e2b2"},{"name":"chunk-graph","duration":466475,"timestamp":17105612,"id":1173,"parentId":1172,"tags":{},"startTime":1736839443144,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-modules","duration":32,"timestamp":17572302,"id":1175,"parentId":1172,"tags":{},"startTime":1736839443611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-chunks","duration":60448,"timestamp":17572457,"id":1176,"parentId":1172,"tags":{},"startTime":1736839443611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-tree","duration":73,"timestamp":17633037,"id":1177,"parentId":1172,"tags":{},"startTime":1736839443671,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-chunk-modules","duration":185281,"timestamp":17633314,"id":1178,"parentId":1172,"tags":{},"startTime":1736839443672,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize","duration":246565,"timestamp":17572212,"id":1174,"parentId":1172,"tags":{},"startTime":1736839443610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"module-hash","duration":76773,"timestamp":17837084,"id":1179,"parentId":1172,"tags":{},"startTime":1736839443875,"traceId":"a2ec8ad33bb0e2b2"},{"name":"code-generation","duration":472177,"timestamp":17914132,"id":1180,"parentId":1172,"tags":{},"startTime":1736839443952,"traceId":"a2ec8ad33bb0e2b2"},{"name":"hash","duration":22742,"timestamp":18400264,"id":1181,"parentId":1172,"tags":{},"startTime":1736839444439,"traceId":"a2ec8ad33bb0e2b2"},{"name":"code-generation-jobs","duration":1525,"timestamp":18423003,"id":1182,"parentId":1172,"tags":{},"startTime":1736839444461,"traceId":"a2ec8ad33bb0e2b2"},{"name":"module-assets","duration":555,"timestamp":18424431,"id":1183,"parentId":1172,"tags":{},"startTime":1736839444463,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-chunk-assets","duration":39789,"timestamp":18425013,"id":1184,"parentId":1172,"tags":{},"startTime":1736839444463,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":223560,"timestamp":18523822,"id":1187,"parentId":1185,"tags":{"name":"../pages/_document.js","cache":"MISS"},"startTime":1736839444562,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":223942,"timestamp":18523976,"id":1188,"parentId":1185,"tags":{"name":"../pages/500.js","cache":"MISS"},"startTime":1736839444562,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226990,"timestamp":18524502,"id":1189,"parentId":1185,"tags":{"name":"../pages/404.js","cache":"MISS"},"startTime":1736839444563,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225715,"timestamp":18525874,"id":1193,"parentId":1185,"tags":{"name":"../pages/api/addDbUser.js","cache":"MISS"},"startTime":1736839444564,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224393,"timestamp":18527277,"id":1198,"parentId":1185,"tags":{"name":"../pages/api/addUsersTableToDatabase.js","cache":"MISS"},"startTime":1736839444566,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225690,"timestamp":18526080,"id":1194,"parentId":1185,"tags":{"name":"../pages/api/addNewMediaFolder.js","cache":"MISS"},"startTime":1736839444564,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226978,"timestamp":18524882,"id":1190,"parentId":1185,"tags":{"name":"../pages/api/acceptUserInvitation.js","cache":"MISS"},"startTime":1736839444563,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226343,"timestamp":18525601,"id":1192,"parentId":1185,"tags":{"name":"../pages/api/addApiKey.js","cache":"MISS"},"startTime":1736839444564,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226769,"timestamp":18525272,"id":1191,"parentId":1185,"tags":{"name":"../pages/api/addAdminUserUser.js","cache":"MISS"},"startTime":1736839444564,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225751,"timestamp":18526384,"id":1195,"parentId":1185,"tags":{"name":"../pages/api/addSocialLogin.js","cache":"MISS"},"startTime":1736839444565,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225326,"timestamp":18526928,"id":1197,"parentId":1185,"tags":{"name":"../pages/api/addUserTable.js","cache":"MISS"},"startTime":1736839444565,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":231738,"timestamp":18520584,"id":1186,"parentId":1185,"tags":{"name":"../pages/_error.js","cache":"MISS"},"startTime":1736839444559,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222624,"timestamp":18529773,"id":1207,"parentId":1185,"tags":{"name":"../pages/api/admin/getUserData.js","cache":"MISS"},"startTime":1736839444568,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221372,"timestamp":18531083,"id":1214,"parentId":1185,"tags":{"name":"../pages/api/changeDbUserPassword.js","cache":"MISS"},"startTime":1736839444569,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222264,"timestamp":18530248,"id":1209,"parentId":1185,"tags":{"name":"../pages/api/admin/grabErrorLogs.js","cache":"MISS"},"startTime":1736839444569,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222498,"timestamp":18530064,"id":1208,"parentId":1185,"tags":{"name":"../pages/api/admin/grabBackups.js","cache":"MISS"},"startTime":1736839444568,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218893,"timestamp":18533771,"id":1230,"parentId":1185,"tags":{"name":"../pages/api/deleteUserDatabase.js","cache":"MISS"},"startTime":1736839444572,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225168,"timestamp":18527555,"id":1199,"parentId":1185,"tags":{"name":"../pages/api/addUserUser.js","cache":"MISS"},"startTime":1736839444566,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219371,"timestamp":18533450,"id":1228,"parentId":1185,"tags":{"name":"../pages/api/deleteUser.js","cache":"MISS"},"startTime":1736839444572,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218555,"timestamp":18534350,"id":1234,"parentId":1185,"tags":{"name":"../pages/api/downloadDatabaseSchema.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222261,"timestamp":18530714,"id":1212,"parentId":1185,"tags":{"name":"../pages/api/admin/runUserDbQuery.js","cache":"MISS"},"startTime":1736839444569,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220377,"timestamp":18532666,"id":1223,"parentId":1185,"tags":{"name":"../pages/api/deleteApiKey.js","cache":"MISS"},"startTime":1736839444571,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221207,"timestamp":18531896,"id":1219,"parentId":1185,"tags":{"name":"../pages/api/connect/handshake.js","cache":"MISS"},"startTime":1736839444570,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220115,"timestamp":18533037,"id":1225,"parentId":1185,"tags":{"name":"../pages/api/deleteDbUser.js","cache":"MISS"},"startTime":1736839444571,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218429,"timestamp":18534790,"id":1237,"parentId":1185,"tags":{"name":"../pages/api/get-authorized-databases.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219981,"timestamp":18533286,"id":1227,"parentId":1185,"tags":{"name":"../pages/api/deleteTableEntry.js","cache":"MISS"},"startTime":1736839444572,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222389,"timestamp":18530920,"id":1213,"parentId":1185,"tags":{"name":"../pages/api/admin/updateEnv.js","cache":"MISS"},"startTime":1736839444569,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224633,"timestamp":18528728,"id":1204,"parentId":1185,"tags":{"name":"../pages/api/admin/docs/[action].js","cache":"MISS"},"startTime":1736839444567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":214459,"timestamp":18538955,"id":1263,"parentId":1185,"tags":{"name":"../pages/api/resetDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219579,"timestamp":18533898,"id":1231,"parentId":1185,"tags":{"name":"../pages/api/deleteUserTable.js","cache":"MISS"},"startTime":1736839444572,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":227007,"timestamp":18526587,"id":1196,"parentId":1185,"tags":{"name":"../pages/api/addTableEntry.js","cache":"MISS"},"startTime":1736839444565,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221091,"timestamp":18532551,"id":1222,"parentId":1185,"tags":{"name":"../pages/api/contact.js","cache":"MISS"},"startTime":1736839444571,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220104,"timestamp":18533637,"id":1229,"parentId":1185,"tags":{"name":"../pages/api/deleteMediaFolder.js","cache":"MISS"},"startTime":1736839444572,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":223303,"timestamp":18530525,"id":1211,"parentId":1185,"tags":{"name":"../pages/api/admin/loginSuUser.js","cache":"MISS"},"startTime":1736839444569,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220733,"timestamp":18533183,"id":1226,"parentId":1185,"tags":{"name":"../pages/api/deleteInvitation.js","cache":"MISS"},"startTime":1736839444571,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"minify-js","duration":223555,"timestamp":18535079,"id":1239,"parentId":1185,"tags":{"name":"../pages/api/getDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":227181,"timestamp":18531676,"id":1218,"parentId":1185,"tags":{"name":"../pages/api/connect/disconnect.js","cache":"MISS"},"startTime":1736839444570,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219901,"timestamp":18539049,"id":1264,"parentId":1185,"tags":{"name":"../pages/api/resetPassword.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226375,"timestamp":18532848,"id":1224,"parentId":1185,"tags":{"name":"../pages/api/createUserDatabase.js","cache":"MISS"},"startTime":1736839444571,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224422,"timestamp":18534940,"id":1238,"parentId":1185,"tags":{"name":"../pages/api/getDatabaseTables.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":215723,"timestamp":18543707,"id":1296,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/google-login.js","cache":"MISS"},"startTime":1736839444582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225270,"timestamp":18534235,"id":1233,"parentId":1185,"tags":{"name":"../pages/api/deleteUserUser.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228007,"timestamp":18531567,"id":1217,"parentId":1185,"tags":{"name":"../pages/api/clientSideAuth.js","cache":"MISS"},"startTime":1736839444570,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":215559,"timestamp":18544098,"id":1298,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/grab-google-user-from-token.js","cache":"MISS"},"startTime":1736839444582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220672,"timestamp":18539147,"id":1265,"parentId":1185,"tags":{"name":"../pages/api/runUserDbQuery.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":230277,"timestamp":18529609,"id":1206,"parentId":1185,"tags":{"name":"../pages/api/admin/getUserBackups.js","cache":"MISS"},"startTime":1736839444568,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":227655,"timestamp":18532347,"id":1221,"parentId":1185,"tags":{"name":"../pages/api/connect/verify.js","cache":"MISS"},"startTime":1736839444571,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225480,"timestamp":18534639,"id":1236,"parentId":1185,"tags":{"name":"../pages/api/fetch-entries-basic.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221408,"timestamp":18538814,"id":1262,"parentId":1185,"tags":{"name":"../pages/api/renameMedia.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":229901,"timestamp":18530386,"id":1210,"parentId":1185,"tags":{"name":"../pages/api/admin/grabFile.js","cache":"MISS"},"startTime":1736839444569,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":231899,"timestamp":18528469,"id":1203,"parentId":1185,"tags":{"name":"../pages/api/admin/createNewBackup.js","cache":"MISS"},"startTime":1736839444567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":216224,"timestamp":18544248,"id":1299,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/reauth-user.js","cache":"MISS"},"startTime":1736839444583,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":229114,"timestamp":18531430,"id":1216,"parentId":1185,"tags":{"name":"../pages/api/checkExistingFolder.js","cache":"MISS"},"startTime":1736839444570,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219225,"timestamp":18541420,"id":1285,"parentId":1185,"tags":{"name":"../pages/api/updateTableEntry.js","cache":"MISS"},"startTime":1736839444580,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228555,"timestamp":18532159,"id":1220,"parentId":1185,"tags":{"name":"../pages/api/connect.js","cache":"MISS"},"startTime":1736839444570,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":232486,"timestamp":18528282,"id":1202,"parentId":1185,"tags":{"name":"../pages/api/admin/clientError.js","cache":"MISS"},"startTime":1736839444567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219631,"timestamp":18541189,"id":1284,"parentId":1185,"tags":{"name":"../pages/api/updateDbSchemaDataForUser.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":216508,"timestamp":18544401,"id":1300,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/send-email-code.js","cache":"MISS"},"startTime":1736839444583,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226536,"timestamp":18534476,"id":1235,"parentId":1185,"tags":{"name":"../pages/api/exportDatabase.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":227042,"timestamp":18534059,"id":1232,"parentId":1185,"tags":{"name":"../pages/api/deleteUserMedia.js","cache":"MISS"},"startTime":1736839444572,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":217342,"timestamp":18543849,"id":1297,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/login-user.js","cache":"MISS"},"startTime":1736839444582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":213718,"timestamp":18550998,"id":1315,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","cache":"MISS"},"startTime":1736839444589,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220201,"timestamp":18544651,"id":1301,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/update-user.js","cache":"MISS"},"startTime":1736839444583,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226335,"timestamp":18538598,"id":1261,"parentId":1185,"tags":{"name":"../pages/api/registerUser.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":233755,"timestamp":18531254,"id":1215,"parentId":1185,"tags":{"name":"../pages/api/checkDuplicateData.js","cache":"MISS"},"startTime":1736839444570,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224001,"timestamp":18541072,"id":1283,"parentId":1185,"tags":{"name":"../pages/api/updateClonedTableForeignKeys.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":237358,"timestamp":18527816,"id":1200,"parentId":1185,"tags":{"name":"../pages/api/admin/addUserBackup.js","cache":"MISS"},"startTime":1736839444566,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":237115,"timestamp":18528115,"id":1201,"parentId":1185,"tags":{"name":"../pages/api/admin/clearErrorLogs.js","cache":"MISS"},"startTime":1736839444566,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":236169,"timestamp":18529192,"id":1205,"parentId":1185,"tags":{"name":"../pages/api/admin/getTablesForUserDatabase.js","cache":"MISS"},"startTime":1736839444567,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":223152,"timestamp":18542291,"id":1289,"parentId":1185,"tags":{"name":"../pages/api/updateUserTable.js","cache":"MISS"},"startTime":1736839444581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224547,"timestamp":18540980,"id":1282,"parentId":1185,"tags":{"name":"../pages/api/updateAdminUserAccess.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224677,"timestamp":18540906,"id":1281,"parentId":1185,"tags":{"name":"../pages/api/unsubscribe.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":213277,"timestamp":18552355,"id":1319,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables.js","cache":"MISS"},"startTime":1736839444591,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":207218,"timestamp":18558516,"id":1335,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/databases.js","cache":"MISS"},"startTime":1736839444597,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":227352,"timestamp":18538455,"id":1260,"parentId":1185,"tags":{"name":"../pages/api/refreshEntry.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":205074,"timestamp":18560788,"id":1346,"parentId":1185,"tags":{"name":"../pages/blog.js","cache":"MISS"},"startTime":1736839444599,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219725,"timestamp":18546243,"id":1306,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/connect.js","cache":"MISS"},"startTime":1736839444585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":223999,"timestamp":18542052,"id":1288,"parentId":1185,"tags":{"name":"../pages/api/updateUserDatabase.js","cache":"MISS"},"startTime":1736839444580,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":210492,"timestamp":18555623,"id":1327,"parentId":1185,"tags":{"name":"../pages/admin/[user_id].js","cache":"MISS"},"startTime":1736839444594,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":208818,"timestamp":18557392,"id":1332,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/add-user.js","cache":"MISS"},"startTime":1736839444596,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225453,"timestamp":18540808,"id":1280,"parentId":1185,"tags":{"name":"../pages/api/test/mail.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222790,"timestamp":18543542,"id":1295,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/github-login.js","cache":"MISS"},"startTime":1736839444582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221169,"timestamp":18545269,"id":1305,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/api-keys.js","cache":"MISS"},"startTime":1736839444584,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228163,"timestamp":18538332,"id":1259,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/update-schema-from-single-database.js","cache":"MISS"},"startTime":1736839444577,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225820,"timestamp":18540725,"id":1279,"parentId":1185,"tags":{"name":"../pages/api/test/cors.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221553,"timestamp":18545049,"id":1304,"parentId":1185,"tags":{"name":"../pages/about.js","cache":"MISS"},"startTime":1736839444583,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":203015,"timestamp":18563674,"id":1354,"parentId":1185,"tags":{"name":"../pages/email-verification.js","cache":"MISS"},"startTime":1736839444602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221752,"timestamp":18544984,"id":1303,"parentId":1185,"tags":{"name":"../pages/_app.js","cache":"MISS"},"startTime":1736839444583,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218070,"timestamp":18548766,"id":1310,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/shell.js","cache":"MISS"},"startTime":1736839444587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":214330,"timestamp":18552658,"id":1320,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table].js","cache":"MISS"},"startTime":1736839444591,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":204147,"timestamp":18562945,"id":1352,"parentId":1185,"tags":{"name":"../pages/docs/[page].js","cache":"MISS"},"startTime":1736839444601,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219984,"timestamp":18547184,"id":1307,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/edit-database.js","cache":"MISS"},"startTime":1736839444585,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":204050,"timestamp":18563171,"id":1353,"parentId":1185,"tags":{"name":"../pages/login.js","cache":"MISS"},"startTime":1736839444601,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219798,"timestamp":18547539,"id":1308,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/connect.js","cache":"MISS"},"startTime":1736839444586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222526,"timestamp":18544865,"id":1302,"parentId":1185,"tags":{"name":"../pages/api/webhooks/github-push.js","cache":"MISS"},"startTime":1736839444583,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":206896,"timestamp":18560576,"id":1345,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/post.js","cache":"MISS"},"startTime":1736839444599,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":203273,"timestamp":18564255,"id":1356,"parentId":1185,"tags":{"name":"../pages/redirect.js","cache":"MISS"},"startTime":1736839444603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":212261,"timestamp":18555328,"id":1326,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases.js","cache":"MISS"},"startTime":1736839444594,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":229528,"timestamp":18538162,"id":1258,"parentId":1185,"tags":{"name":"../pages/api/reAuthenticateUser.js","cache":"MISS"},"startTime":1736839444576,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":209524,"timestamp":18558243,"id":1334,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database].js","cache":"MISS"},"startTime":1736839444597,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":199199,"timestamp":18568634,"id":1374,"parentId":1185,"tags":{"name":"../pages/su/users.js","cache":"MISS"},"startTime":1736839444607,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":208945,"timestamp":18562435,"id":1351,"parentId":1185,"tags":{"name":"../pages/index.js","cache":"MISS"},"startTime":1736839444601,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":231067,"timestamp":18540540,"id":1278,"parentId":1185,"tags":{"name":"../pages/api/sync-table-data.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":205254,"timestamp":18566460,"id":1366,"parentId":1185,"tags":{"name":"../pages/su/docs/pages.js","cache":"MISS"},"startTime":1736839444605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":202962,"timestamp":18568825,"id":1375,"parentId":1185,"tags":{"name":"../pages/su/users/new.js","cache":"MISS"},"startTime":1736839444607,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":231400,"timestamp":18540456,"id":1277,"parentId":1185,"tags":{"name":"../pages/api/stream/[path].js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":214813,"timestamp":18557099,"id":1331,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/media.js","cache":"MISS"},"startTime":1736839444595,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":230201,"timestamp":18541796,"id":1287,"parentId":1185,"tags":{"name":"../pages/api/updateUser.js","cache":"MISS"},"startTime":1736839444580,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":208192,"timestamp":18563927,"id":1355,"parentId":1185,"tags":{"name":"../pages/privacy.js","cache":"MISS"},"startTime":1736839444602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":231823,"timestamp":18540354,"id":1276,"parentId":1185,"tags":{"name":"../pages/api/sql-users/update.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220547,"timestamp":18551758,"id":1318,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/add-table.js","cache":"MISS"},"startTime":1736839444590,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":207979,"timestamp":18564406,"id":1357,"parentId":1185,"tags":{"name":"../pages/logout.js","cache":"MISS"},"startTime":1736839444603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":210295,"timestamp":18562159,"id":1350,"parentId":1185,"tags":{"name":"../pages/docs/[page]/[sub-page].js","cache":"MISS"},"startTime":1736839444600,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":206320,"timestamp":18566283,"id":1365,"parentId":1185,"tags":{"name":"../pages/su/docs/pages/[id].js","cache":"MISS"},"startTime":1736839444605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":234837,"timestamp":18537910,"id":1257,"parentId":1185,"tags":{"name":"../pages/api/queryEntriesSearchTerm.js","cache":"MISS"},"startTime":1736839444576,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221274,"timestamp":18551541,"id":1317,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","cache":"MISS"},"startTime":1736839444590,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":229528,"timestamp":18543372,"id":1294,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/get-user.js","cache":"MISS"},"startTime":1736839444582,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":212588,"timestamp":18560425,"id":1344,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/add-image.js","cache":"MISS"},"startTime":1736839444599,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":204137,"timestamp":18568983,"id":1376,"parentId":1185,"tags":{"name":"../pages/terms.js","cache":"MISS"},"startTime":1736839444607,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224959,"timestamp":18548251,"id":1309,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/schema.js","cache":"MISS"},"startTime":1736839444587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":233052,"timestamp":18540246,"id":1275,"parentId":1185,"tags":{"name":"../pages/api/sql-users/delete.js","cache":"MISS"},"startTime":1736839444579,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":215554,"timestamp":18557848,"id":1333,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database]/[user].js","cache":"MISS"},"startTime":1736839444596,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218533,"timestamp":18554978,"id":1325,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users.js","cache":"MISS"},"startTime":1736839444593,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":233451,"timestamp":18540142,"id":1274,"parentId":1185,"tags":{"name":"../pages/api/sql-users/create.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":232034,"timestamp":18541627,"id":1286,"parentId":1185,"tags":{"name":"../pages/api/updateDbUser.js","cache":"MISS"},"startTime":1736839444580,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":207791,"timestamp":18565933,"id":1364,"parentId":1185,"tags":{"name":"../pages/su/docs.js","cache":"MISS"},"startTime":1736839444604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":201857,"timestamp":18571964,"id":1384,"parentId":1185,"tags":{"name":"5392.js","cache":"MISS"},"startTime":1736839444610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":217131,"timestamp":18556761,"id":1330,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/settings.js","cache":"MISS"},"startTime":1736839444595,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":233933,"timestamp":18540060,"id":1273,"parentId":1185,"tags":{"name":"../pages/api/social-login/utils/getEmailFromSocialId.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":213851,"timestamp":18560261,"id":1343,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/add-file.js","cache":"MISS"},"startTime":1736839444599,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":208398,"timestamp":18565768,"id":1363,"parentId":1185,"tags":{"name":"../pages/su/docs/edit-page.js","cache":"MISS"},"startTime":1736839444604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":201691,"timestamp":18572545,"id":1386,"parentId":1185,"tags":{"name":"3634.js","cache":"MISS"},"startTime":1736839444611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":236709,"timestamp":18537614,"id":1256,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/get.js","cache":"MISS"},"startTime":1736839444576,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":234392,"timestamp":18539981,"id":1272,"parentId":1185,"tags":{"name":"../pages/api/social-login/utils/checkEmail.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":202038,"timestamp":18572394,"id":1385,"parentId":1185,"tags":{"name":"1251.js","cache":"MISS"},"startTime":1736839444611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":206488,"timestamp":18568044,"id":1373,"parentId":1185,"tags":{"name":"../pages/su/users/[single].js","cache":"MISS"},"startTime":1736839444606,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"minify-js","duration":216781,"timestamp":18575987,"id":1394,"parentId":1185,"tags":{"name":"5954.js","cache":"MISS"},"startTime":1736839444614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":252976,"timestamp":18539894,"id":1271,"parentId":1185,"tags":{"name":"../pages/api/social-login/utils/checkSocialId.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221590,"timestamp":18571405,"id":1383,"parentId":1185,"tags":{"name":"9796.js","cache":"MISS"},"startTime":1736839444610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":243012,"timestamp":18550498,"id":1314,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","cache":"MISS"},"startTime":1736839444589,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228060,"timestamp":18565538,"id":1362,"parentId":1185,"tags":{"name":"../pages/su/console.js","cache":"MISS"},"startTime":1736839444604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":239022,"timestamp":18554637,"id":1324,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/add-database.js","cache":"MISS"},"startTime":1736839444593,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":232176,"timestamp":18561593,"id":1349,"parentId":1185,"tags":{"name":"../pages/create-account.js","cache":"MISS"},"startTime":1736839444600,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":242684,"timestamp":18551165,"id":1316,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","cache":"MISS"},"startTime":1736839444589,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":254111,"timestamp":18539786,"id":1270,"parentId":1185,"tags":{"name":"../pages/api/social-login/google-auth.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":256459,"timestamp":18537490,"id":1255,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/get-schema.js","cache":"MISS"},"startTime":1736839444576,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228855,"timestamp":18565134,"id":1360,"parentId":1185,"tags":{"name":"../pages/su/backups.js","cache":"MISS"},"startTime":1736839444603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":233965,"timestamp":18560108,"id":1342,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/delete-file.js","cache":"MISS"},"startTime":1736839444598,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222942,"timestamp":18571186,"id":1382,"parentId":1185,"tags":{"name":"6521.js","cache":"MISS"},"startTime":1736839444609,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228806,"timestamp":18565380,"id":1361,"parentId":1185,"tags":{"name":"../pages/su/docs/create-page.js","cache":"MISS"},"startTime":1736839444604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":237902,"timestamp":18556373,"id":1329,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/schema.js","cache":"MISS"},"startTime":1736839444595,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":220386,"timestamp":18573976,"id":1391,"parentId":1185,"tags":{"name":"3704.js","cache":"MISS"},"startTime":1736839444612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":226678,"timestamp":18567795,"id":1372,"parentId":1185,"tags":{"name":"../pages/su/login.js","cache":"MISS"},"startTime":1736839444606,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":254917,"timestamp":18539616,"id":1269,"parentId":1185,"tags":{"name":"../pages/api/social-login/github-auth.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":257264,"timestamp":18537363,"id":1254,"parentId":1185,"tags":{"name":"../pages/api/media/getPrivateMedia.js","cache":"MISS"},"startTime":1736839444576,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":251525,"timestamp":18543204,"id":1293,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/delete-user.js","cache":"MISS"},"startTime":1736839444581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":233542,"timestamp":18561242,"id":1348,"parentId":1185,"tags":{"name":"../pages/docs.js","cache":"MISS"},"startTime":1736839444600,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":255309,"timestamp":18539514,"id":1268,"parentId":1185,"tags":{"name":"../pages/api/social-login/facebook-auth.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":238889,"timestamp":18556003,"id":1328,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/media/[...folder].js","cache":"MISS"},"startTime":1736839444594,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":224032,"timestamp":18570915,"id":1381,"parentId":1185,"tags":{"name":"9821.js","cache":"MISS"},"startTime":1736839444609,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218925,"timestamp":18576112,"id":1395,"parentId":1185,"tags":{"name":"6903.js","cache":"MISS"},"startTime":1736839444614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":215721,"timestamp":18579400,"id":1402,"parentId":1185,"tags":{"name":"8760.js","cache":"MISS"},"startTime":1736839444618,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":257958,"timestamp":18537217,"id":1253,"parentId":1185,"tags":{"name":"../pages/api/purgeDb.js","cache":"MISS"},"startTime":1736839444575,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":255818,"timestamp":18539400,"id":1267,"parentId":1185,"tags":{"name":"../pages/api/sendPasswordResetLink.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":227664,"timestamp":18567605,"id":1371,"parentId":1185,"tags":{"name":"../pages/su/servers.js","cache":"MISS"},"startTime":1736839444606,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":234349,"timestamp":18560971,"id":1347,"parentId":1185,"tags":{"name":"../pages/contact.js","cache":"MISS"},"startTime":1736839444599,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":221727,"timestamp":18573673,"id":1390,"parentId":1185,"tags":{"name":"3791.js","cache":"MISS"},"startTime":1736839444612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":245385,"timestamp":18550095,"id":1313,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","cache":"MISS"},"startTime":1736839444588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":230709,"timestamp":18564880,"id":1359,"parentId":1185,"tags":{"name":"../pages/reset-password.js","cache":"MISS"},"startTime":1736839444603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":218328,"timestamp":18577347,"id":1398,"parentId":1185,"tags":{"name":"1579.js","cache":"MISS"},"startTime":1736839444616,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":258725,"timestamp":18537002,"id":1252,"parentId":1185,"tags":{"name":"../pages/api/media/addPrivateMedia.js","cache":"MISS"},"startTime":1736839444575,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":241687,"timestamp":18554148,"id":1323,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-user.js","cache":"MISS"},"startTime":1736839444592,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":222421,"timestamp":18573497,"id":1389,"parentId":1185,"tags":{"name":"3155.js","cache":"MISS"},"startTime":1736839444612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":228643,"timestamp":18567327,"id":1370,"parentId":1185,"tags":{"name":"../pages/su/load-balancing.js","cache":"MISS"},"startTime":1736839444606,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":215986,"timestamp":18580060,"id":1405,"parentId":1185,"tags":{"name":"194.js","cache":"MISS"},"startTime":1736839444618,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":236182,"timestamp":18559931,"id":1341,"parentId":1185,"tags":{"name":"../pages/api/query/[user_id]/get-private-file.js","cache":"MISS"},"startTime":1736839444598,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":259260,"timestamp":18536921,"id":1251,"parentId":1185,"tags":{"name":"../pages/api/logoutUser.js","cache":"MISS"},"startTime":1736839444575,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":246561,"timestamp":18549713,"id":1312,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","cache":"MISS"},"startTime":1736839444588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":257044,"timestamp":18539283,"id":1266,"parentId":1185,"tags":{"name":"../pages/api/sendEmailVerificationLink.js","cache":"MISS"},"startTime":1736839444578,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":236535,"timestamp":18559839,"id":1340,"parentId":1185,"tags":{"name":"../pages/api/fetch-media.js","cache":"MISS"},"startTime":1736839444598,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":242821,"timestamp":18553611,"id":1321,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user].js","cache":"MISS"},"startTime":1736839444592,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":253799,"timestamp":18542773,"id":1292,"parentId":1185,"tags":{"name":"../pages/api/user/[user_id]/add-user.js","cache":"MISS"},"startTime":1736839444581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":232015,"timestamp":18564632,"id":1358,"parentId":1185,"tags":{"name":"../pages/send-password-reset-link.js","cache":"MISS"},"startTime":1736839444603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":230061,"timestamp":18566627,"id":1367,"parentId":1185,"tags":{"name":"../pages/su/error-logs.js","cache":"MISS"},"startTime":1736839444605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":229900,"timestamp":18566822,"id":1368,"parentId":1185,"tags":{"name":"../pages/su/envar.js","cache":"MISS"},"startTime":1736839444605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":219691,"timestamp":18577079,"id":1397,"parentId":1185,"tags":{"name":"4627.js","cache":"MISS"},"startTime":1736839444615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":235355,"timestamp":18569556,"id":1378,"parentId":1185,"tags":{"name":"../webpack-runtime.js","cache":"MISS"},"startTime":1736839444608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":245794,"timestamp":18559262,"id":1337,"parentId":1185,"tags":{"name":"../pages/admin.js","cache":"MISS"},"startTime":1736839444598,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":268484,"timestamp":18536673,"id":1250,"parentId":1185,"tags":{"name":"../pages/api/loginUser.js","cache":"MISS"},"startTime":1736839444575,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":235335,"timestamp":18569872,"id":1379,"parentId":1185,"tags":{"name":"../webpack-api-runtime.js","cache":"MISS"},"startTime":1736839444608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":245563,"timestamp":18559717,"id":1339,"parentId":1185,"tags":{"name":"../pages/api/exportTableData.js","cache":"MISS"},"startTime":1736839444598,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":238273,"timestamp":18567065,"id":1369,"parentId":1185,"tags":{"name":"../pages/su.js","cache":"MISS"},"startTime":1736839444605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":229779,"timestamp":18577451,"id":1399,"parentId":1185,"tags":{"name":"5839.js","cache":"MISS"},"startTime":1736839444616,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":268875,"timestamp":18542641,"id":1291,"parentId":1185,"tags":{"name":"../pages/api/user-schema/replace-database-schema.js","cache":"MISS"},"startTime":1736839444581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":258003,"timestamp":18553731,"id":1322,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","cache":"MISS"},"startTime":1736839444592,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":238659,"timestamp":18573154,"id":1388,"parentId":1185,"tags":{"name":"2282.js","cache":"MISS"},"startTime":1736839444611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":276133,"timestamp":18535743,"id":1244,"parentId":1185,"tags":{"name":"../pages/api/getUserMedia.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":276588,"timestamp":18535856,"id":1245,"parentId":1185,"tags":{"name":"../pages/api/getUserSchemaData.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":253838,"timestamp":18559466,"id":1338,"parentId":1185,"tags":{"name":"../pages/api/addUserMedia.js","cache":"MISS"},"startTime":1736839444598,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":237133,"timestamp":18576718,"id":1396,"parentId":1185,"tags":{"name":"6160.js","cache":"MISS"},"startTime":1736839444615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":278555,"timestamp":18535507,"id":1242,"parentId":1185,"tags":{"name":"../pages/api/getUserDatabaseTables.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":256911,"timestamp":18558798,"id":1336,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/users.js","cache":"MISS"},"startTime":1736839444597,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":236320,"timestamp":18579892,"id":1404,"parentId":1185,"tags":{"name":"3496.js","cache":"MISS"},"startTime":1736839444618,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":280507,"timestamp":18535994,"id":1246,"parentId":1185,"tags":{"name":"../pages/api/healthcheck.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":297397,"timestamp":18535216,"id":1240,"parentId":1185,"tags":{"name":"../pages/api/getDelegatedDatabases.js","cache":"MISS"},"startTime":1736839444573,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":296717,"timestamp":18536345,"id":1248,"parentId":1185,"tags":{"name":"../pages/api/importDatabaseSchema.js","cache":"MISS"},"startTime":1736839444575,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":283890,"timestamp":18549230,"id":1311,"parentId":1185,"tags":{"name":"../pages/admin/[user_id]/databases/[single].js","cache":"MISS"},"startTime":1736839444588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":297537,"timestamp":18535625,"id":1243,"parentId":1185,"tags":{"name":"../pages/api/getUserDatabases.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":259060,"timestamp":18574152,"id":1392,"parentId":1185,"tags":{"name":"9901.js","cache":"MISS"},"startTime":1736839444612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":260510,"timestamp":18572732,"id":1387,"parentId":1185,"tags":{"name":"6622.js","cache":"MISS"},"startTime":1736839444611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":253586,"timestamp":18579688,"id":1403,"parentId":1185,"tags":{"name":"6202.js","cache":"MISS"},"startTime":1736839444618,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":290809,"timestamp":18542507,"id":1290,"parentId":1185,"tags":{"name":"../pages/api/updateUserUser.js","cache":"MISS"},"startTime":1736839444581,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":297263,"timestamp":18536082,"id":1247,"parentId":1185,"tags":{"name":"../pages/api/importDatabase.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":298048,"timestamp":18535335,"id":1241,"parentId":1185,"tags":{"name":"../pages/api/getDiskUsage.js","cache":"MISS"},"startTime":1736839444574,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":258013,"timestamp":18575418,"id":1393,"parentId":1185,"tags":{"name":"725.js","cache":"MISS"},"startTime":1736839444614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":264123,"timestamp":18569346,"id":1377,"parentId":1185,"tags":{"name":"../pages/unsubscribe.js","cache":"MISS"},"startTime":1736839444608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":297018,"timestamp":18536486,"id":1249,"parentId":1185,"tags":{"name":"../pages/api/infiniteScroll.js","cache":"MISS"},"startTime":1736839444575,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":255498,"timestamp":18579139,"id":1401,"parentId":1185,"tags":{"name":"3474.js","cache":"MISS"},"startTime":1736839444617,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":265201,"timestamp":18578571,"id":1400,"parentId":1185,"tags":{"name":"8704.js","cache":"MISS"},"startTime":1736839444617,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":296737,"timestamp":18569970,"id":1380,"parentId":1185,"tags":{"name":"883.js","cache":"MISS"},"startTime":1736839444608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-webpack-plugin-optimize","duration":400117,"timestamp":18470282,"id":1185,"parentId":16,"tags":{"compilationName":"server"},"startTime":1736839444509,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-minimizer-plugin","duration":241,"timestamp":18870875,"id":1406,"parentId":16,"tags":{},"startTime":1736839444909,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-trace-assets","duration":10833,"timestamp":18871487,"id":1407,"parentId":17,"tags":{},"startTime":1736839444910,"traceId":"a2ec8ad33bb0e2b2"},{"name":"seal","duration":1818036,"timestamp":17071471,"id":1172,"parentId":16,"tags":{},"startTime":1736839443110,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-compilation","duration":16562098,"timestamp":2327846,"id":16,"parentId":13,"tags":{"name":"server"},"startTime":1736839428366,"traceId":"a2ec8ad33bb0e2b2"},{"name":"emit","duration":22408,"timestamp":18890444,"id":1408,"parentId":13,"tags":{},"startTime":1736839444929,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-close","duration":744053,"timestamp":18919877,"id":1409,"parentId":13,"tags":{"name":"server"},"startTime":1736839444958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-generate-error-stats","duration":3106,"timestamp":19664011,"id":1410,"parentId":1409,"tags":{},"startTime":1736839445702,"traceId":"a2ec8ad33bb0e2b2"},{"name":"make","duration":140,"timestamp":19681621,"id":1412,"parentId":1411,"tags":{},"startTime":1736839445720,"traceId":"a2ec8ad33bb0e2b2"},{"name":"chunk-graph","duration":101,"timestamp":19683167,"id":1414,"parentId":1413,"tags":{},"startTime":1736839445721,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-modules","duration":11,"timestamp":19683334,"id":1416,"parentId":1413,"tags":{},"startTime":1736839445722,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-chunks","duration":206,"timestamp":19683447,"id":1417,"parentId":1413,"tags":{},"startTime":1736839445722,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-tree","duration":11,"timestamp":19683689,"id":1418,"parentId":1413,"tags":{},"startTime":1736839445722,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-chunk-modules","duration":106,"timestamp":19683743,"id":1419,"parentId":1413,"tags":{},"startTime":1736839445722,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize","duration":575,"timestamp":19683304,"id":1415,"parentId":1413,"tags":{},"startTime":1736839445722,"traceId":"a2ec8ad33bb0e2b2"},{"name":"module-hash","duration":27,"timestamp":19684265,"id":1420,"parentId":1413,"tags":{},"startTime":1736839445723,"traceId":"a2ec8ad33bb0e2b2"},{"name":"code-generation","duration":21,"timestamp":19684318,"id":1421,"parentId":1413,"tags":{},"startTime":1736839445723,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"hash","duration":94,"timestamp":19684704,"id":1422,"parentId":1413,"tags":{},"startTime":1736839445723,"traceId":"a2ec8ad33bb0e2b2"},{"name":"code-generation-jobs","duration":47,"timestamp":19684797,"id":1423,"parentId":1413,"tags":{},"startTime":1736839445723,"traceId":"a2ec8ad33bb0e2b2"},{"name":"module-assets","duration":23,"timestamp":19684829,"id":1424,"parentId":1413,"tags":{},"startTime":1736839445723,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-chunk-assets","duration":40,"timestamp":19684868,"id":1425,"parentId":1413,"tags":{},"startTime":1736839445723,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":772,"timestamp":19692196,"id":1427,"parentId":1426,"tags":{"name":"interception-route-rewrite-manifest.js","cache":"MISS"},"startTime":1736839445730,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-webpack-plugin-optimize","duration":1292,"timestamp":19691699,"id":1426,"parentId":1411,"tags":{"compilationName":"edge-server"},"startTime":1736839445730,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-minimizer-plugin","duration":35,"timestamp":19693075,"id":1428,"parentId":1411,"tags":{},"startTime":1736839445731,"traceId":"a2ec8ad33bb0e2b2"},{"name":"seal","duration":11625,"timestamp":19682922,"id":1413,"parentId":1411,"tags":{},"startTime":1736839445721,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-compilation","duration":15519,"timestamp":19679166,"id":1411,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736839445717,"traceId":"a2ec8ad33bb0e2b2"},{"name":"emit","duration":445,"timestamp":19694783,"id":1429,"parentId":13,"tags":{},"startTime":1736839445733,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-close","duration":3789,"timestamp":19695505,"id":1430,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736839445734,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-generate-error-stats","duration":854,"timestamp":19699318,"id":1431,"parentId":1430,"tags":{},"startTime":1736839445738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":411,"timestamp":19743352,"id":1507,"parentId":1506,"tags":{"absolutePagePath":"next/dist/pages/_error"},"startTime":1736839445782,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":4345,"timestamp":19741559,"id":1506,"parentId":1435,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!","layer":null},"startTime":1736839445780,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":118,"timestamp":19746218,"id":1509,"parentId":1508,"tags":{"absolutePagePath":"private-next-pages/500.tsx"},"startTime":1736839445784,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":1151,"timestamp":19746030,"id":1508,"parentId":1436,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!","layer":null},"startTime":1736839445784,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":118,"timestamp":19747319,"id":1511,"parentId":1510,"tags":{"absolutePagePath":"private-next-pages/404.tsx"},"startTime":1736839445786,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":1025,"timestamp":19747229,"id":1510,"parentId":1437,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!","layer":null},"startTime":1736839445786,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":178,"timestamp":19748456,"id":1513,"parentId":1512,"tags":{"absolutePagePath":"private-next-pages/_app.tsx"},"startTime":1736839445787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":1073,"timestamp":19748309,"id":1512,"parentId":1438,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!","layer":null},"startTime":1736839445787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":110,"timestamp":19749521,"id":1515,"parentId":1514,"tags":{"absolutePagePath":"private-next-pages/about.tsx"},"startTime":1736839445788,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":694,"timestamp":19749427,"id":1514,"parentId":1440,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!","layer":null},"startTime":1736839445788,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":229,"timestamp":19750220,"id":1517,"parentId":1516,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/api-keys/index.tsx"},"startTime":1736839445788,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":749,"timestamp":19750155,"id":1516,"parentId":1441,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!","layer":null},"startTime":1736839445788,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":130,"timestamp":19750994,"id":1519,"parentId":1518,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/connect/index.tsx"},"startTime":1736839445789,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":612,"timestamp":19750935,"id":1518,"parentId":1442,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!","layer":null},"startTime":1736839445789,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":139,"timestamp":19751625,"id":1521,"parentId":1520,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/edit-database.tsx"},"startTime":1736839445790,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":541,"timestamp":19751572,"id":1520,"parentId":1443,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!","layer":null},"startTime":1736839445790,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":94,"timestamp":19752196,"id":1523,"parentId":1522,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/connect.tsx"},"startTime":1736839445790,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":466,"timestamp":19752137,"id":1522,"parentId":1444,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!","layer":null},"startTime":1736839445790,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":104,"timestamp":19752677,"id":1525,"parentId":1524,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/schema.tsx"},"startTime":1736839445791,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":459,"timestamp":19752625,"id":1524,"parentId":1445,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!","layer":null},"startTime":1736839445791,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":107,"timestamp":19753146,"id":1527,"parentId":1526,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/shell.tsx"},"startTime":1736839445791,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":446,"timestamp":19753102,"id":1526,"parentId":1446,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!","layer":null},"startTime":1736839445791,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":99,"timestamp":19753613,"id":1529,"parentId":1528,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/index.tsx"},"startTime":1736839445792,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":430,"timestamp":19753575,"id":1528,"parentId":1447,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!","layer":null},"startTime":1736839445792,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":151,"timestamp":19754057,"id":1531,"parentId":1530,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx"},"startTime":1736839445792,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":494,"timestamp":19754024,"id":1530,"parentId":1448,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!","layer":null},"startTime":1736839445792,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":143,"timestamp":19754581,"id":1533,"parentId":1532,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx"},"startTime":1736839445793,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":485,"timestamp":19754541,"id":1532,"parentId":1449,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!","layer":null},"startTime":1736839445793,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":168,"timestamp":19755081,"id":1535,"parentId":1534,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx"},"startTime":1736839445793,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":474,"timestamp":19755045,"id":1534,"parentId":1450,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!","layer":null},"startTime":1736839445793,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":123,"timestamp":19755571,"id":1537,"parentId":1536,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx"},"startTime":1736839445794,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":420,"timestamp":19755535,"id":1536,"parentId":1451,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!","layer":null},"startTime":1736839445794,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":141,"timestamp":19756010,"id":1539,"parentId":1538,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx"},"startTime":1736839445794,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":541,"timestamp":19755973,"id":1538,"parentId":1452,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!","layer":null},"startTime":1736839445794,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":129,"timestamp":19756573,"id":1541,"parentId":1540,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx"},"startTime":1736839445795,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":453,"timestamp":19756535,"id":1540,"parentId":1453,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!","layer":null},"startTime":1736839445795,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":96,"timestamp":19757046,"id":1543,"parentId":1542,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/add-table.tsx"},"startTime":1736839445795,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":433,"timestamp":19757008,"id":1542,"parentId":1454,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!","layer":null},"startTime":1736839445795,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":120,"timestamp":19757504,"id":1545,"parentId":1544,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/index.tsx"},"startTime":1736839445796,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":454,"timestamp":19757464,"id":1544,"parentId":1455,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!","layer":null},"startTime":1736839445796,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":114,"timestamp":19758002,"id":1547,"parentId":1546,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx"},"startTime":1736839445796,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":445,"timestamp":19757961,"id":1546,"parentId":1456,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!","layer":null},"startTime":1736839445796,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":109,"timestamp":19758463,"id":1549,"parentId":1548,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx"},"startTime":1736839445797,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":417,"timestamp":19758424,"id":1548,"parentId":1457,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!","layer":null},"startTime":1736839445797,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":125,"timestamp":19758897,"id":1551,"parentId":1550,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx"},"startTime":1736839445797,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":426,"timestamp":19758857,"id":1550,"parentId":1458,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!","layer":null},"startTime":1736839445797,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":98,"timestamp":19759330,"id":1553,"parentId":1552,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-user.tsx"},"startTime":1736839445798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":378,"timestamp":19759299,"id":1552,"parentId":1459,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736839445798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":139,"timestamp":19759724,"id":1555,"parentId":1554,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/add-database.tsx"},"startTime":1736839445798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":495,"timestamp":19759693,"id":1554,"parentId":1460,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!","layer":null},"startTime":1736839445798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":236,"timestamp":19760243,"id":1557,"parentId":1556,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/index.tsx"},"startTime":1736839445799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":723,"timestamp":19760210,"id":1556,"parentId":1461,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!","layer":null},"startTime":1736839445798,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":144,"timestamp":19761028,"id":1559,"parentId":1558,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/index.tsx"},"startTime":1736839445799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":568,"timestamp":19760966,"id":1558,"parentId":1462,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!","layer":null},"startTime":1736839445799,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":84,"timestamp":19761597,"id":1561,"parentId":1560,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/index.tsx"},"startTime":1736839445800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":453,"timestamp":19761557,"id":1560,"parentId":1463,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!","layer":null},"startTime":1736839445800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":131,"timestamp":19762071,"id":1563,"parentId":1562,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/[...folder].tsx"},"startTime":1736839445800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":474,"timestamp":19762031,"id":1562,"parentId":1464,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!","layer":null},"startTime":1736839445800,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":85,"timestamp":19762564,"id":1565,"parentId":1564,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/schema.tsx"},"startTime":1736839445801,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":394,"timestamp":19762526,"id":1564,"parentId":1465,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!","layer":null},"startTime":1736839445801,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":82,"timestamp":19762975,"id":1567,"parentId":1566,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/settings.tsx"},"startTime":1736839445801,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":377,"timestamp":19762941,"id":1566,"parentId":1466,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!","layer":null},"startTime":1736839445801,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":101,"timestamp":19763379,"id":1569,"parentId":1568,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/index.tsx"},"startTime":1736839445802,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":413,"timestamp":19763336,"id":1568,"parentId":1467,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!","layer":null},"startTime":1736839445802,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":93,"timestamp":19763806,"id":1571,"parentId":1570,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/add-user.tsx"},"startTime":1736839445802,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":507,"timestamp":19763769,"id":1570,"parentId":1468,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736839445802,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":194,"timestamp":19764384,"id":1573,"parentId":1572,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/[user].tsx"},"startTime":1736839445803,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":931,"timestamp":19764309,"id":1572,"parentId":1469,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!","layer":null},"startTime":1736839445803,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":167,"timestamp":19765345,"id":1575,"parentId":1574,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/index.tsx"},"startTime":1736839445804,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":650,"timestamp":19765281,"id":1574,"parentId":1470,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!","layer":null},"startTime":1736839445804,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":158,"timestamp":19766036,"id":1577,"parentId":1576,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/index.tsx"},"startTime":1736839445804,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":592,"timestamp":19765960,"id":1576,"parentId":1471,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!","layer":null},"startTime":1736839445804,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":93,"timestamp":19766619,"id":1579,"parentId":1578,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/index.tsx"},"startTime":1736839445805,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":419,"timestamp":19766574,"id":1578,"parentId":1472,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!","layer":null},"startTime":1736839445805,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":60,"timestamp":19767054,"id":1581,"parentId":1580,"tags":{"absolutePagePath":"private-next-pages/admin/index.tsx"},"startTime":1736839445805,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":374,"timestamp":19767014,"id":1580,"parentId":1473,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!","layer":null},"startTime":1736839445805,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":68,"timestamp":19767439,"id":1583,"parentId":1582,"tags":{"absolutePagePath":"private-next-pages/blog/index.tsx"},"startTime":1736839445806,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":351,"timestamp":19767406,"id":1582,"parentId":1474,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!","layer":null},"startTime":1736839445806,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":55,"timestamp":19767814,"id":1585,"parentId":1584,"tags":{"absolutePagePath":"private-next-pages/contact.tsx"},"startTime":1736839445806,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":345,"timestamp":19767777,"id":1584,"parentId":1475,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!","layer":null},"startTime":1736839445806,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":78,"timestamp":19768172,"id":1587,"parentId":1586,"tags":{"absolutePagePath":"private-next-pages/docs/index.tsx"},"startTime":1736839445806,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":381,"timestamp":19768140,"id":1586,"parentId":1476,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!","layer":null},"startTime":1736839445806,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":61,"timestamp":19768577,"id":1589,"parentId":1588,"tags":{"absolutePagePath":"private-next-pages/create-account.tsx"},"startTime":1736839445807,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":342,"timestamp":19768543,"id":1588,"parentId":1477,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!","layer":null},"startTime":1736839445807,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":81,"timestamp":19768934,"id":1591,"parentId":1590,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/[sub-page]/index.tsx"},"startTime":1736839445807,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":358,"timestamp":19768903,"id":1590,"parentId":1478,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!","layer":null},"startTime":1736839445807,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":54,"timestamp":19769326,"id":1593,"parentId":1592,"tags":{"absolutePagePath":"private-next-pages/index.tsx"},"startTime":1736839445808,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":389,"timestamp":19769278,"id":1592,"parentId":1479,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!","layer":null},"startTime":1736839445808,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":65,"timestamp":19769718,"id":1595,"parentId":1594,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/index.tsx"},"startTime":1736839445808,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module","duration":697,"timestamp":19769685,"id":1594,"parentId":1480,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!","layer":null},"startTime":1736839445808,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":48,"timestamp":19770444,"id":1597,"parentId":1596,"tags":{"absolutePagePath":"private-next-pages/login.tsx"},"startTime":1736839445809,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":344,"timestamp":19770399,"id":1596,"parentId":1481,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!","layer":null},"startTime":1736839445809,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":62,"timestamp":19770793,"id":1599,"parentId":1598,"tags":{"absolutePagePath":"private-next-pages/email-verification/index.tsx"},"startTime":1736839445809,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":363,"timestamp":19770762,"id":1598,"parentId":1482,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!","layer":null},"startTime":1736839445809,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":47,"timestamp":19771182,"id":1601,"parentId":1600,"tags":{"absolutePagePath":"private-next-pages/privacy.tsx"},"startTime":1736839445809,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":369,"timestamp":19771141,"id":1600,"parentId":1483,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!","layer":null},"startTime":1736839445809,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":56,"timestamp":19771569,"id":1603,"parentId":1602,"tags":{"absolutePagePath":"private-next-pages/redirect.tsx"},"startTime":1736839445810,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":317,"timestamp":19771528,"id":1602,"parentId":1484,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!","layer":null},"startTime":1736839445810,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":47,"timestamp":19771900,"id":1605,"parentId":1604,"tags":{"absolutePagePath":"private-next-pages/logout.tsx"},"startTime":1736839445810,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":316,"timestamp":19771865,"id":1604,"parentId":1485,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!","layer":null},"startTime":1736839445810,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":66,"timestamp":19772227,"id":1607,"parentId":1606,"tags":{"absolutePagePath":"private-next-pages/send-password-reset-link.tsx"},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":327,"timestamp":19772198,"id":1606,"parentId":1486,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!","layer":null},"startTime":1736839445810,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":51,"timestamp":19772569,"id":1609,"parentId":1608,"tags":{"absolutePagePath":"private-next-pages/reset-password.tsx"},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":306,"timestamp":19772540,"id":1608,"parentId":1487,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!","layer":null},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":56,"timestamp":19772892,"id":1611,"parentId":1610,"tags":{"absolutePagePath":"private-next-pages/su/backups.tsx"},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":308,"timestamp":19772862,"id":1610,"parentId":1488,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!","layer":null},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":58,"timestamp":19773217,"id":1613,"parentId":1612,"tags":{"absolutePagePath":"private-next-pages/su/docs/create-page.tsx"},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":300,"timestamp":19773187,"id":1612,"parentId":1489,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!","layer":null},"startTime":1736839445811,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":57,"timestamp":19773535,"id":1615,"parentId":1614,"tags":{"absolutePagePath":"private-next-pages/su/console.tsx"},"startTime":1736839445812,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":313,"timestamp":19773505,"id":1614,"parentId":1490,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!","layer":null},"startTime":1736839445812,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":62,"timestamp":19773866,"id":1617,"parentId":1616,"tags":{"absolutePagePath":"private-next-pages/su/docs/edit-page.tsx"},"startTime":1736839445812,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":308,"timestamp":19773834,"id":1616,"parentId":1491,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!","layer":null},"startTime":1736839445812,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":54,"timestamp":19774194,"id":1619,"parentId":1618,"tags":{"absolutePagePath":"private-next-pages/su/docs/index.tsx"},"startTime":1736839445812,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":310,"timestamp":19774163,"id":1618,"parentId":1492,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!","layer":null},"startTime":1736839445812,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":68,"timestamp":19774518,"id":1621,"parentId":1620,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/[id].tsx"},"startTime":1736839445813,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":312,"timestamp":19774489,"id":1620,"parentId":1493,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!","layer":null},"startTime":1736839445813,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":64,"timestamp":19774841,"id":1623,"parentId":1622,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/index.tsx"},"startTime":1736839445813,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":298,"timestamp":19774815,"id":1622,"parentId":1494,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!","layer":null},"startTime":1736839445813,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":54,"timestamp":19775154,"id":1625,"parentId":1624,"tags":{"absolutePagePath":"private-next-pages/su/error-logs.tsx"},"startTime":1736839445813,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":288,"timestamp":19775127,"id":1624,"parentId":1495,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!","layer":null},"startTime":1736839445813,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":56,"timestamp":19775456,"id":1627,"parentId":1626,"tags":{"absolutePagePath":"private-next-pages/su/envar.tsx"},"startTime":1736839445814,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":271,"timestamp":19775428,"id":1626,"parentId":1496,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!","layer":null},"startTime":1736839445814,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":76,"timestamp":19775758,"id":1629,"parentId":1628,"tags":{"absolutePagePath":"private-next-pages/su/index.tsx"},"startTime":1736839445814,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":390,"timestamp":19775721,"id":1628,"parentId":1497,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!","layer":null},"startTime":1736839445814,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":119,"timestamp":19776170,"id":1631,"parentId":1630,"tags":{"absolutePagePath":"private-next-pages/su/load-balancing.tsx"},"startTime":1736839445814,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":384,"timestamp":19776139,"id":1630,"parentId":1498,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!","layer":null},"startTime":1736839445814,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":103,"timestamp":19776602,"id":1633,"parentId":1632,"tags":{"absolutePagePath":"private-next-pages/su/servers.tsx"},"startTime":1736839445815,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":418,"timestamp":19776552,"id":1632,"parentId":1499,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!","layer":null},"startTime":1736839445815,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":68,"timestamp":19777016,"id":1635,"parentId":1634,"tags":{"absolutePagePath":"private-next-pages/su/login.tsx"},"startTime":1736839445815,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":324,"timestamp":19776986,"id":1634,"parentId":1500,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!","layer":null},"startTime":1736839445815,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":86,"timestamp":19777363,"id":1637,"parentId":1636,"tags":{"absolutePagePath":"private-next-pages/su/users/[single].tsx"},"startTime":1736839445816,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":362,"timestamp":19777331,"id":1636,"parentId":1501,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!","layer":null},"startTime":1736839445816,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":89,"timestamp":19777803,"id":1639,"parentId":1638,"tags":{"absolutePagePath":"private-next-pages/su/users/index.tsx"},"startTime":1736839445816,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":569,"timestamp":19777748,"id":1638,"parentId":1502,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!","layer":null},"startTime":1736839445816,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":144,"timestamp":19778407,"id":1641,"parentId":1640,"tags":{"absolutePagePath":"private-next-pages/su/users/new.tsx"},"startTime":1736839445817,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":586,"timestamp":19778359,"id":1640,"parentId":1503,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!","layer":null},"startTime":1736839445817,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":95,"timestamp":19779011,"id":1643,"parentId":1642,"tags":{"absolutePagePath":"private-next-pages/terms.tsx"},"startTime":1736839445817,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":453,"timestamp":19778970,"id":1642,"parentId":1504,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!","layer":null},"startTime":1736839445817,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-client-pages-loader","duration":93,"timestamp":19779476,"id":1645,"parentId":1644,"tags":{"absolutePagePath":"private-next-pages/unsubscribe.tsx"},"startTime":1736839445818,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":406,"timestamp":19779441,"id":1644,"parentId":1505,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!","layer":null},"startTime":1736839445818,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":46177,"timestamp":19779882,"id":1646,"parentId":1434,"tags":{"name":"/app/node_modules/next/dist/client/next.js","layer":null},"startTime":1736839445818,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3726,"timestamp":19831445,"id":1649,"parentId":1646,"tags":{"name":"/app/node_modules/next/dist/client/webpack.js","layer":null},"startTime":1736839445870,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":7273,"timestamp":19830465,"id":1647,"parentId":1506,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736839445869,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10426,"timestamp":19830620,"id":1648,"parentId":1439,"tags":{"name":"/app/node_modules/next/dist/client/router.js","layer":null},"startTime":1736839445869,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20683,"timestamp":19831542,"id":1650,"parentId":1646,"tags":{"name":"/app/node_modules/next/dist/client/index.js","layer":null},"startTime":1736839445870,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2019,"timestamp":19884328,"id":1651,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4629,"timestamp":19884688,"id":1656,"parentId":1649,"tags":{"name":"/app/node_modules/next/dist/build/deployment-id.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5653,"timestamp":19884623,"id":1655,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9479,"timestamp":19884566,"id":1654,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13422,"timestamp":19884437,"id":1652,"parentId":1647,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13916,"timestamp":19884509,"id":1653,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14697,"timestamp":19884749,"id":1657,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/client/with-router.js","layer":null},"startTime":1736839445923,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5224,"timestamp":19916595,"id":1667,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/polyfill-module.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":7648,"timestamp":19916228,"id":1661,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router-context.shared-runtime.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8334,"timestamp":19916365,"id":1663,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/runtime-config.external.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8862,"timestamp":19916479,"id":1665,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9899,"timestamp":19916305,"id":1662,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/mitt.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11683,"timestamp":19916171,"id":1660,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/route-announcer.js","layer":null},"startTime":1736839445954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12686,"timestamp":19916534,"id":1666,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/querystring.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15720,"timestamp":19916118,"id":1659,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/page-loader.js","layer":null},"startTime":1736839445954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":18564,"timestamp":19915984,"id":1658,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/head-manager.js","layer":null},"startTime":1736839445954,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":18934,"timestamp":19916677,"id":1669,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/remove-base-path.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":19873,"timestamp":19916633,"id":1668,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/portal/index.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":40781,"timestamp":19916426,"id":1664,"parentId":1648,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/router.js","layer":null},"startTime":1736839445955,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2125,"timestamp":19996393,"id":1673,"parentId":1647,"tags":{"name":"/app/node_modules/react/jsx-runtime.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3007,"timestamp":19996419,"id":1674,"parentId":1650,"tags":{"name":"/app/node_modules/react-dom/client.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4657,"timestamp":19996227,"id":1671,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5903,"timestamp":19996068,"id":1670,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/has-base-path.js","layer":null},"startTime":1736839446034,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8701,"timestamp":19996315,"id":1672,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9232,"timestamp":19996617,"id":1677,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10328,"timestamp":19996442,"id":1675,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/pages/_app.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10971,"timestamp":19996481,"id":1676,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11263,"timestamp":19996798,"id":1680,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/tracing/report-to-socket.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11955,"timestamp":19996879,"id":1681,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/shared.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13308,"timestamp":19996746,"id":1679,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/tracing/tracer.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15094,"timestamp":19996684,"id":1678,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/adapters.js","layer":null},"startTime":1736839446035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3960,"timestamp":20030583,"id":1682,"parentId":1650,"tags":{"name":"/app/node_modules/next/dist/client/components/is-next-router-error.js","layer":null},"startTime":1736839446069,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2227,"timestamp":20034911,"id":1683,"parentId":1651,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736839446073,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3453,"timestamp":20035015,"id":1684,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736839446073,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3843,"timestamp":20035062,"id":1685,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","layer":null},"startTime":1736839446073,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2240,"timestamp":20043747,"id":1687,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736839446082,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11363,"timestamp":20043842,"id":1689,"parentId":1647,"tags":{"name":"/app/node_modules/react/index.js","layer":null},"startTime":1736839446082,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12109,"timestamp":20043621,"id":1686,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736839446082,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12341,"timestamp":20043793,"id":1688,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736839446082,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13427,"timestamp":20043871,"id":1690,"parentId":1658,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736839446082,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":700,"timestamp":20062678,"id":1702,"parentId":1664,"tags":{"layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9434,"timestamp":20062580,"id":1701,"parentId":1668,"tags":{"name":"/app/node_modules/react-dom/index.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9410,"timestamp":20063571,"id":1706,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/lib/is-api-route.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12973,"timestamp":20064000,"id":1714,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/lib/constants.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15793,"timestamp":20062071,"id":1692,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736839446100,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-js","duration":18910,"timestamp":20061905,"id":1691,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736839446100,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":18821,"timestamp":20062461,"id":1699,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":19356,"timestamp":20062359,"id":1697,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20475,"timestamp":20062143,"id":1693,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/add-base-path.js","layer":null},"startTime":1736839446100,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20584,"timestamp":20062520,"id":1700,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21322,"timestamp":20062413,"id":1698,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22394,"timestamp":20062217,"id":1694,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/add-locale.js","layer":null},"startTime":1736839446100,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23097,"timestamp":20062308,"id":1696,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22560,"timestamp":20063401,"id":1703,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/detect-domain-locale.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23146,"timestamp":20063481,"id":1704,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/remove-locale.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":24825,"timestamp":20063527,"id":1705,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/resolve-href.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":25499,"timestamp":20063607,"id":1707,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":25807,"timestamp":20063770,"id":1710,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-path.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31809,"timestamp":20062266,"id":1695,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/route-loader.js","layer":null},"startTime":1736839446101,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31118,"timestamp":20063880,"id":1712,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31714,"timestamp":20063927,"id":1713,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/compare-states.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":32672,"timestamp":20063828,"id":1711,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":33893,"timestamp":20063715,"id":1709,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-url.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36217,"timestamp":20063657,"id":1708,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-regex.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36608,"timestamp":20064091,"id":1716,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36864,"timestamp":20064136,"id":1717,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/omit.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37352,"timestamp":20064043,"id":1715,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-local-url.js","layer":null},"startTime":1736839446102,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17843,"timestamp":20108806,"id":1723,"parentId":1673,"tags":{"name":"/app/node_modules/react/cjs/react-jsx-runtime.production.min.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":19945,"timestamp":20108892,"id":1725,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":21528,"timestamp":20108577,"id":1719,"parentId":1672,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23351,"timestamp":20109116,"id":1730,"parentId":1508,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":25949,"timestamp":20108449,"id":1718,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/bloom-filter.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26357,"timestamp":20108682,"id":1721,"parentId":1681,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/report-global-error.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26955,"timestamp":20108633,"id":1720,"parentId":1671,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":27291,"timestamp":20108745,"id":1722,"parentId":1670,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":27450,"timestamp":20108978,"id":1727,"parentId":1678,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":28222,"timestamp":20108842,"id":1724,"parentId":1681,"tags":{"name":"/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":29336,"timestamp":20109022,"id":1728,"parentId":1681,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30210,"timestamp":20109076,"id":1729,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-error.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31453,"timestamp":20108929,"id":1726,"parentId":1680,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/pages/websocket.js","layer":null},"startTime":1736839446147,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31477,"timestamp":20154576,"id":1775,"parentId":1689,"tags":{"name":"/app/node_modules/react/cjs/react.production.min.js","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":34722,"timestamp":20153180,"id":1732,"parentId":1512,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736839446191,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36026,"timestamp":20153304,"id":1738,"parentId":1600,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37034,"timestamp":20153336,"id":1739,"parentId":1602,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":38165,"timestamp":20153064,"id":1731,"parentId":1510,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736839446191,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":38887,"timestamp":20153271,"id":1736,"parentId":1592,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":39374,"timestamp":20153441,"id":1743,"parentId":1642,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":40423,"timestamp":20153288,"id":1737,"parentId":1596,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":41261,"timestamp":20153218,"id":1733,"parentId":1514,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736839446191,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":41970,"timestamp":20153239,"id":1734,"parentId":1584,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":42965,"timestamp":20153388,"id":1741,"parentId":1606,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":43891,"timestamp":20153468,"id":1744,"parentId":1644,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":44926,"timestamp":20153256,"id":1735,"parentId":1588,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":44050,"timestamp":20154646,"id":1776,"parentId":1570,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":46058,"timestamp":20153491,"id":1745,"parentId":1580,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":48307,"timestamp":20153364,"id":1740,"parentId":1604,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":47329,"timestamp":20154824,"id":1779,"parentId":1620,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":48511,"timestamp":20154134,"id":1765,"parentId":1636,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":48548,"timestamp":20154700,"id":1777,"parentId":1578,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":49719,"timestamp":20154211,"id":1768,"parentId":1516,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":49515,"timestamp":20154848,"id":1780,"parentId":1622,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":51285,"timestamp":20154045,"id":1761,"parentId":1594,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":53482,"timestamp":20153413,"id":1742,"parentId":1608,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":53103,"timestamp":20154524,"id":1774,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":53661,"timestamp":20154772,"id":1778,"parentId":1590,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":54855,"timestamp":20154421,"id":1772,"parentId":1562,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":55498,"timestamp":20154316,"id":1770,"parentId":1554,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":56106,"timestamp":20154186,"id":1767,"parentId":1640,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":56737,"timestamp":20154016,"id":1760,"parentId":1566,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":55758,"timestamp":20155536,"id":1792,"parentId":1572,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":56644,"timestamp":20155281,"id":1788,"parentId":1544,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":58555,"timestamp":20153808,"id":1753,"parentId":1626,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":58749,"timestamp":20154267,"id":1769,"parentId":1518,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":59399,"timestamp":20154112,"id":1764,"parentId":1618,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":60206,"timestamp":20153770,"id":1752,"parentId":1624,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":60217,"timestamp":20154164,"id":1766,"parentId":1638,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":59374,"timestamp":20155598,"id":1793,"parentId":1574,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":61473,"timestamp":20154471,"id":1773,"parentId":1568,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":61755,"timestamp":20155197,"id":1787,"parentId":1542,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":62509,"timestamp":20155032,"id":1784,"parentId":1526,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":62561,"timestamp":20155667,"id":1794,"parentId":1532,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":65351,"timestamp":20153939,"id":1757,"parentId":1634,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":66117,"timestamp":20153991,"id":1759,"parentId":1564,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":66449,"timestamp":20154090,"id":1763,"parentId":1616,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":67068,"timestamp":20153903,"id":1756,"parentId":1632,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":66294,"timestamp":20155467,"id":1791,"parentId":1556,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":68579,"timestamp":20153638,"id":1750,"parentId":1614,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":67393,"timestamp":20155398,"id":1790,"parentId":1552,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":68430,"timestamp":20154918,"id":1782,"parentId":1522,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":69904,"timestamp":20153864,"id":1755,"parentId":1630,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":69501,"timestamp":20154868,"id":1781,"parentId":1520,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":69512,"timestamp":20155332,"id":1789,"parentId":1550,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736839446194,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":71115,"timestamp":20154068,"id":1762,"parentId":1612,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":71974,"timestamp":20153616,"id":1749,"parentId":1610,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":71009,"timestamp":20155143,"id":1786,"parentId":1576,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":72647,"timestamp":20153962,"id":1758,"parentId":1560,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":73117,"timestamp":20153837,"id":1754,"parentId":1628,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":73910,"timestamp":20153570,"id":1747,"parentId":1586,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":74424,"timestamp":20153541,"id":1746,"parentId":1582,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":75311,"timestamp":20153595,"id":1748,"parentId":1598,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":74410,"timestamp":20154985,"id":1783,"parentId":1524,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":75168,"timestamp":20155088,"id":1785,"parentId":1528,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":76534,"timestamp":20154364,"id":1771,"parentId":1558,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736839446193,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":78407,"timestamp":20153678,"id":1751,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","layer":null},"startTime":1736839446192,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":83603,"timestamp":20368962,"id":1806,"parentId":1701,"tags":{"name":"/app/node_modules/react-dom/cjs/react-dom.production.min.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":84442,"timestamp":20368600,"id":1797,"parentId":1691,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-js","duration":85250,"timestamp":20368550,"id":1796,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":85492,"timestamp":20368640,"id":1798,"parentId":1692,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":86075,"timestamp":20368984,"id":1807,"parentId":1540,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":87921,"timestamp":20368404,"id":1795,"parentId":1538,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":88598,"timestamp":20369026,"id":1808,"parentId":1546,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":89359,"timestamp":20368845,"id":1803,"parentId":1712,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":89897,"timestamp":20368751,"id":1801,"parentId":1693,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":90167,"timestamp":20368803,"id":1802,"parentId":1708,"tags":{"name":"/app/node_modules/next/dist/shared/lib/escape-regexp.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":90845,"timestamp":20368718,"id":1800,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/client/trusted-types.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":91877,"timestamp":20368680,"id":1799,"parentId":1693,"tags":{"name":"/app/node_modules/next/dist/client/normalize-trailing-slash.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":92050,"timestamp":20368885,"id":1804,"parentId":1712,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-locale.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":92279,"timestamp":20368926,"id":1805,"parentId":1711,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","layer":null},"startTime":1736839446407,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11181,"timestamp":20463515,"id":1809,"parentId":1548,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736839446502,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":4267,"timestamp":20475952,"id":1811,"parentId":1534,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736839446514,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5113,"timestamp":20475789,"id":1810,"parentId":1530,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736839446514,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3459,"timestamp":20478171,"id":1813,"parentId":1647,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_default.js","layer":null},"startTime":1736839446516,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3586,"timestamp":20478986,"id":1814,"parentId":1650,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js","layer":null},"startTime":1736839446517,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5584,"timestamp":20478085,"id":1812,"parentId":1536,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736839446516,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":870,"timestamp":20500084,"id":1820,"parentId":1732,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4207,"timestamp":20499779,"id":1815,"parentId":1652,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/process.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4790,"timestamp":20500055,"id":1819,"parentId":1726,"tags":{"name":"/app/node_modules/next/dist/server/dev/hot-reloader-types.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4729,"timestamp":20500263,"id":1829,"parentId":1732,"tags":{"name":"/app/node_modules/next/head.js","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":63731,"timestamp":20500247,"id":1828,"parentId":1742,"tags":{"name":"/app/node_modules/lodash/lodash.js","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":64319,"timestamp":20500155,"id":1824,"parentId":1730,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":64600,"timestamp":20500198,"id":1826,"parentId":1774,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":64761,"timestamp":20500357,"id":1833,"parentId":1741,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":65112,"timestamp":20500323,"id":1832,"parentId":1741,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":65486,"timestamp":20500291,"id":1831,"parentId":1741,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":66122,"timestamp":20500143,"id":1823,"parentId":1730,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":66646,"timestamp":20500099,"id":1821,"parentId":1730,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":66760,"timestamp":20500384,"id":1835,"parentId":1738,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":67649,"timestamp":20500169,"id":1825,"parentId":1774,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":68434,"timestamp":20500113,"id":1822,"parentId":1730,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":68808,"timestamp":20500273,"id":1830,"parentId":1737,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":69078,"timestamp":20500445,"id":1837,"parentId":1736,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":70117,"timestamp":20500231,"id":1827,"parentId":1732,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":70311,"timestamp":20500515,"id":1840,"parentId":1736,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":71214,"timestamp":20500369,"id":1834,"parentId":1776,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":72018,"timestamp":20500416,"id":1836,"parentId":1738,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":72494,"timestamp":20500502,"id":1839,"parentId":1736,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":72935,"timestamp":20500475,"id":1838,"parentId":1736,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736839446539,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":73961,"timestamp":20499950,"id":1817,"parentId":1729,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-status-code.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":75829,"timestamp":20499885,"id":1816,"parentId":1725,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":76330,"timestamp":20499998,"id":1818,"parentId":1726,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","layer":null},"startTime":1736839446538,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7382,"timestamp":20605413,"id":1841,"parentId":1743,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736839446644,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8996,"timestamp":20605489,"id":1842,"parentId":1743,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736839446644,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":5724,"timestamp":20609221,"id":1853,"parentId":1740,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6045,"timestamp":20609267,"id":1855,"parentId":1779,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6491,"timestamp":20609109,"id":1849,"parentId":1737,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6958,"timestamp":20608969,"id":1845,"parentId":1734,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7717,"timestamp":20608935,"id":1844,"parentId":1733,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8081,"timestamp":20609045,"id":1847,"parentId":1735,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8513,"timestamp":20609128,"id":1850,"parentId":1745,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9088,"timestamp":20609160,"id":1851,"parentId":1745,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9610,"timestamp":20609205,"id":1852,"parentId":1765,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10442,"timestamp":20609010,"id":1846,"parentId":1734,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10788,"timestamp":20609236,"id":1854,"parentId":1765,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10866,"timestamp":20609428,"id":1860,"parentId":1768,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12171,"timestamp":20608868,"id":1843,"parentId":1737,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12104,"timestamp":20609389,"id":1859,"parentId":1768,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13628,"timestamp":20609329,"id":1857,"parentId":1777,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14454,"timestamp":20609491,"id":1862,"parentId":1761,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15249,"timestamp":20609360,"id":1858,"parentId":1780,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16487,"timestamp":20609459,"id":1861,"parentId":1768,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19022,"timestamp":20609298,"id":1856,"parentId":1777,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736839446648,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22089,"timestamp":20609074,"id":1848,"parentId":1776,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736839446647,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":944219,"timestamp":19712281,"id":1484,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7879,"timestamp":20669110,"id":1863,"parentId":1761,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736839446707,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":4489,"timestamp":20673320,"id":1870,"parentId":1760,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736839446712,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5394,"timestamp":20673291,"id":1869,"parentId":1760,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736839446712,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6093,"timestamp":20673262,"id":1868,"parentId":1772,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736839446712,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6842,"timestamp":20673209,"id":1867,"parentId":1772,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736839446711,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12157,"timestamp":20700076,"id":1885,"parentId":1806,"tags":{"name":"/app/node_modules/scheduler/index.js","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12872,"timestamp":20699911,"id":1879,"parentId":1767,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13074,"timestamp":20700101,"id":1886,"parentId":1766,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13877,"timestamp":20699810,"id":1876,"parentId":1770,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14186,"timestamp":20700046,"id":1883,"parentId":1753,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14785,"timestamp":20699995,"id":1882,"parentId":1788,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15464,"timestamp":20699933,"id":1880,"parentId":1772,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16546,"timestamp":20699700,"id":1873,"parentId":1772,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18099,"timestamp":20699739,"id":1874,"parentId":1772,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18602,"timestamp":20700063,"id":1884,"parentId":1752,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18760,"timestamp":20700184,"id":1889,"parentId":1769,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20155,"timestamp":20699777,"id":1875,"parentId":1772,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20154,"timestamp":20700113,"id":1887,"parentId":1769,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21476,"timestamp":20699879,"id":1878,"parentId":1788,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21406,"timestamp":20700404,"id":1897,"parentId":1787,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22336,"timestamp":20700155,"id":1888,"parentId":1769,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24393,"timestamp":20699546,"id":1871,"parentId":1772,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23963,"timestamp":20700438,"id":1898,"parentId":1787,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24478,"timestamp":20700274,"id":1892,"parentId":1759,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25222,"timestamp":20700243,"id":1891,"parentId":1793,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":25942,"timestamp":20700216,"id":1890,"parentId":1773,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26698,"timestamp":20700303,"id":1893,"parentId":1759,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":27688,"timestamp":20700466,"id":1899,"parentId":1750,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":29056,"timestamp":20700316,"id":1894,"parentId":1759,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":31550,"timestamp":20699963,"id":1881,"parentId":1788,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":34112,"timestamp":20699661,"id":1872,"parentId":1772,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35952,"timestamp":20699843,"id":1877,"parentId":1792,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736839446738,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36572,"timestamp":20700377,"id":1896,"parentId":1784,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":38729,"timestamp":20700344,"id":1895,"parentId":1763,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736839446739,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-json","duration":312,"timestamp":20789286,"id":1900,"parentId":1787,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736839446828,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8777,"timestamp":20789357,"id":1901,"parentId":1791,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736839446828,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6087,"timestamp":20800861,"id":1914,"parentId":1746,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6481,"timestamp":20800838,"id":1913,"parentId":1747,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6785,"timestamp":20800812,"id":1912,"parentId":1747,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7411,"timestamp":20800701,"id":1908,"parentId":1781,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7731,"timestamp":20800790,"id":1911,"parentId":1755,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8275,"timestamp":20800645,"id":1906,"parentId":1786,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8717,"timestamp":20800593,"id":1903,"parentId":1756,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":9668,"timestamp":20800493,"id":1902,"parentId":1794,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10246,"timestamp":20800754,"id":1910,"parentId":1782,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11274,"timestamp":20800616,"id":1904,"parentId":1749,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12360,"timestamp":20800629,"id":1905,"parentId":1754,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12320,"timestamp":20801102,"id":1923,"parentId":1808,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13098,"timestamp":20800921,"id":1917,"parentId":1771,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14674,"timestamp":20800726,"id":1909,"parentId":1790,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15200,"timestamp":20800984,"id":1919,"parentId":1795,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16480,"timestamp":20800876,"id":1915,"parentId":1783,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17698,"timestamp":20801026,"id":1920,"parentId":1795,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19153,"timestamp":20800898,"id":1916,"parentId":1785,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20052,"timestamp":20801050,"id":1921,"parentId":1807,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21575,"timestamp":20801079,"id":1922,"parentId":1808,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24579,"timestamp":20800673,"id":1907,"parentId":1789,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26024,"timestamp":20801132,"id":1924,"parentId":1809,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":26642,"timestamp":20800945,"id":1918,"parentId":1818,"tags":{"name":"/app/node_modules/next/dist/shared/lib/normalized-asset-prefix.js","layer":null},"startTime":1736839446839,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3738,"timestamp":20867269,"id":1928,"parentId":1833,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839446906,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5272,"timestamp":20867405,"id":1929,"parentId":1830,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839446906,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":7064,"timestamp":20867453,"id":1930,"parentId":1840,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839446906,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17646,"timestamp":20858230,"id":1926,"parentId":1810,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736839446897,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18838,"timestamp":20858143,"id":1925,"parentId":1811,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736839446896,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20979,"timestamp":20858260,"id":1927,"parentId":1812,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736839446897,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3076,"timestamp":20895763,"id":1931,"parentId":1839,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13219,"timestamp":20895941,"id":1935,"parentId":1815,"tags":{"name":"/app/node_modules/next/dist/compiled/process/browser.js","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15295,"timestamp":20896046,"id":1938,"parentId":1824,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15717,"timestamp":20895980,"id":1936,"parentId":1821,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16070,"timestamp":20896029,"id":1937,"parentId":1835,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16480,"timestamp":20896088,"id":1939,"parentId":1837,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17341,"timestamp":20895850,"id":1932,"parentId":1821,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17587,"timestamp":20896131,"id":1940,"parentId":1837,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18372,"timestamp":20895909,"id":1934,"parentId":1821,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19970,"timestamp":20895874,"id":1933,"parentId":1821,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736839446934,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1208805,"timestamp":19712011,"id":1435,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2874,"timestamp":20920610,"id":1956,"parentId":1881,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-process","duration":11180,"timestamp":20923938,"id":1963,"parentId":1962,"tags":{},"startTime":1736839446962,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-loader","duration":13450,"timestamp":20921700,"id":1962,"parentId":1954,"tags":{},"startTime":1736839446960,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-loader","duration":4280,"timestamp":20935192,"id":1964,"parentId":1954,"tags":{"astUsed":"true"},"startTime":1736839446973,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":19739,"timestamp":20920536,"id":1954,"parentId":1866,"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":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":33299,"timestamp":20920573,"id":1955,"parentId":1885,"tags":{"name":"/app/node_modules/scheduler/cjs/scheduler.production.min.js","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":34312,"timestamp":20920372,"id":1948,"parentId":1850,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35227,"timestamp":20919892,"id":1941,"parentId":1840,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736839446958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35414,"timestamp":20920437,"id":1950,"parentId":1850,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36232,"timestamp":20920310,"id":1946,"parentId":1839,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36751,"timestamp":20920408,"id":1949,"parentId":1850,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37816,"timestamp":20920081,"id":1944,"parentId":1834,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736839446958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":38592,"timestamp":20920042,"id":1943,"parentId":1834,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736839446958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":39798,"timestamp":20919992,"id":1942,"parentId":1834,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736839446958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":40056,"timestamp":20920507,"id":1953,"parentId":1852,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":40913,"timestamp":20920482,"id":1952,"parentId":1852,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":41791,"timestamp":20920466,"id":1951,"parentId":1851,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":43609,"timestamp":20920333,"id":1947,"parentId":1847,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":43519,"timestamp":20920663,"id":1958,"parentId":1854,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":43731,"timestamp":20920692,"id":1959,"parentId":1846,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":44258,"timestamp":20920753,"id":1961,"parentId":1854,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":44921,"timestamp":20920726,"id":1960,"parentId":1854,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":45746,"timestamp":20920643,"id":1957,"parentId":1899,"tags":{"name":"/app/node_modules/ansi-regex/index.js","layer":null},"startTime":1736839446959,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1263507,"timestamp":19711885,"id":1434,"parentId":1433,"tags":{"request":"./node_modules/next/dist/client/next.js"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1263395,"timestamp":19712087,"id":1439,"parentId":1433,"tags":{"request":"/app/node_modules/next/dist/client/router.js"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":1021,"timestamp":20994930,"id":1974,"parentId":1856,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3007,"timestamp":20995058,"id":1980,"parentId":1874,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4192,"timestamp":20995098,"id":1981,"parentId":1875,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5198,"timestamp":20995131,"id":1982,"parentId":1872,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-process","duration":76743,"timestamp":21000705,"id":1986,"parentId":1984,"tags":{},"startTime":1736839447039,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-process","duration":65417,"timestamp":21012044,"id":1987,"parentId":1985,"tags":{},"startTime":1736839447050,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-loader","duration":81299,"timestamp":20996178,"id":1984,"parentId":1978,"tags":{},"startTime":1736839447034,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-loader","duration":81226,"timestamp":20996253,"id":1985,"parentId":1979,"tags":{},"startTime":1736839447035,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-loader","duration":12415,"timestamp":21077514,"id":1988,"parentId":1978,"tags":{"astUsed":"true"},"startTime":1736839447116,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-loader","duration":12390,"timestamp":21077551,"id":1989,"parentId":1979,"tags":{"astUsed":"true"},"startTime":1736839447116,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":96071,"timestamp":20995006,"id":1978,"parentId":1864,"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":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":97082,"timestamp":20995037,"id":1979,"parentId":1865,"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":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":107024,"timestamp":20994970,"id":1977,"parentId":1899,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/index.js","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":107747,"timestamp":20994713,"id":1967,"parentId":1861,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":108488,"timestamp":20994549,"id":1965,"parentId":1854,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":108701,"timestamp":20994833,"id":1971,"parentId":1857,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":109512,"timestamp":20994748,"id":1968,"parentId":1843,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":109937,"timestamp":20994781,"id":1969,"parentId":1859,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":110506,"timestamp":20994815,"id":1970,"parentId":1857,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":111324,"timestamp":20994689,"id":1966,"parentId":1843,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":111935,"timestamp":20994899,"id":1973,"parentId":1858,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":112524,"timestamp":20994943,"id":1975,"parentId":1856,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":113607,"timestamp":20994865,"id":1972,"parentId":1858,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":114387,"timestamp":20994957,"id":1976,"parentId":1856,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":114697,"timestamp":20995168,"id":1983,"parentId":1868,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736839447033,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2088,"timestamp":21122858,"id":1992,"parentId":1904,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447161,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1413780,"timestamp":19712292,"id":1485,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1413809,"timestamp":19712371,"id":1500,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":4057,"timestamp":21122716,"id":1990,"parentId":1867,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736839447161,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":4575,"timestamp":21122914,"id":1994,"parentId":1876,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736839447161,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":5631,"timestamp":21122814,"id":1991,"parentId":1869,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736839447161,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":6165,"timestamp":21122947,"id":1995,"parentId":1874,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736839447161,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7218,"timestamp":21122893,"id":1993,"parentId":1883,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736839447161,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2422,"timestamp":21136682,"id":1997,"parentId":1916,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-js","duration":14062,"timestamp":21136913,"id":2006,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14638,"timestamp":21136883,"id":2005,"parentId":1929,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14946,"timestamp":21136857,"id":2004,"parentId":1928,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15081,"timestamp":21136978,"id":2008,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15275,"timestamp":21137007,"id":2009,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":15620,"timestamp":21136939,"id":2007,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16423,"timestamp":21136729,"id":1999,"parentId":1878,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16922,"timestamp":21136716,"id":1998,"parentId":1878,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17342,"timestamp":21136779,"id":2001,"parentId":1887,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17284,"timestamp":21137069,"id":2011,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17569,"timestamp":21137044,"id":2010,"parentId":1930,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18793,"timestamp":21136755,"id":2000,"parentId":1887,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19853,"timestamp":21136805,"id":2002,"parentId":1878,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21060,"timestamp":21136830,"id":2003,"parentId":1878,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21453,"timestamp":21137107,"id":2012,"parentId":1897,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23623,"timestamp":21136600,"id":1996,"parentId":1889,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736839447175,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":14898,"timestamp":21169613,"id":2018,"parentId":1871,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15548,"timestamp":21169644,"id":2019,"parentId":1894,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15930,"timestamp":21169718,"id":2022,"parentId":1872,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16630,"timestamp":21169702,"id":2021,"parentId":1872,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17316,"timestamp":21169597,"id":2017,"parentId":1894,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17918,"timestamp":21169514,"id":2015,"parentId":1871,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18787,"timestamp":21169324,"id":2013,"parentId":1899,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19133,"timestamp":21169669,"id":2020,"parentId":1881,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19961,"timestamp":21169450,"id":2014,"parentId":1871,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20048,"timestamp":21169781,"id":2025,"parentId":1896,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20639,"timestamp":21169769,"id":2024,"parentId":1877,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21380,"timestamp":21169817,"id":2026,"parentId":1872,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23834,"timestamp":21169755,"id":2023,"parentId":1895,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":26571,"timestamp":21169556,"id":2016,"parentId":1898,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736839447208,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2784,"timestamp":21203499,"id":2030,"parentId":1923,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3828,"timestamp":21203534,"id":2031,"parentId":1933,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4836,"timestamp":21203576,"id":2032,"parentId":1944,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5644,"timestamp":21203600,"id":2033,"parentId":1951,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6899,"timestamp":21203623,"id":2034,"parentId":1958,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8100,"timestamp":21203745,"id":2039,"parentId":1950,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":24580,"timestamp":21203768,"id":2040,"parentId":1954,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":25423,"timestamp":21203977,"id":2047,"parentId":1977,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/url.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":28840,"timestamp":21204019,"id":2048,"parentId":1977,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/manager.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":34918,"timestamp":21204044,"id":2049,"parentId":1977,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/socket.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":35526,"timestamp":21203877,"id":2043,"parentId":1981,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":35861,"timestamp":21203816,"id":2041,"parentId":1980,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36230,"timestamp":21203696,"id":2037,"parentId":1956,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36202,"timestamp":21203927,"id":2045,"parentId":1982,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36895,"timestamp":21203435,"id":2028,"parentId":1931,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36860,"timestamp":21203647,"id":2035,"parentId":1956,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37013,"timestamp":21203720,"id":2038,"parentId":1956,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37261,"timestamp":21203670,"id":2036,"parentId":1956,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37232,"timestamp":21203901,"id":2044,"parentId":1981,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37541,"timestamp":21203847,"id":2042,"parentId":1981,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37614,"timestamp":21203954,"id":2046,"parentId":1982,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":38841,"timestamp":21203338,"id":2027,"parentId":1895,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":39607,"timestamp":21203471,"id":2029,"parentId":1901,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736839447242,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-json","duration":2681,"timestamp":21248215,"id":2067,"parentId":1922,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6251,"timestamp":21247932,"id":2059,"parentId":1995,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":7095,"timestamp":21248240,"id":2069,"parentId":2003,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8068,"timestamp":21248301,"id":2071,"parentId":2000,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":9027,"timestamp":21248488,"id":2078,"parentId":1942,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":592406,"timestamp":20673132,"id":1866,"parentId":1750,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736839446711,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":597376,"timestamp":20669210,"id":1864,"parentId":1732,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736839446707,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":594520,"timestamp":20672993,"id":1865,"parentId":1732,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736839446711,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30921,"timestamp":21248014,"id":2061,"parentId":1990,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/index.js","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31360,"timestamp":21247980,"id":2060,"parentId":1992,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":32210,"timestamp":21247559,"id":2050,"parentId":1913,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":32536,"timestamp":21247735,"id":2053,"parentId":1906,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":33060,"timestamp":21247700,"id":2052,"parentId":1908,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":33468,"timestamp":21247833,"id":2056,"parentId":1917,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":34378,"timestamp":21247649,"id":2051,"parentId":1902,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":34284,"timestamp":21248133,"id":2064,"parentId":1916,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35153,"timestamp":21247891,"id":2058,"parentId":1915,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35668,"timestamp":21248054,"id":2062,"parentId":1911,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":35755,"timestamp":21248377,"id":2074,"parentId":1925,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36055,"timestamp":21248460,"id":2077,"parentId":1927,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":36950,"timestamp":21248406,"id":2075,"parentId":1925,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37685,"timestamp":21248433,"id":2076,"parentId":1927,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":38355,"timestamp":21248272,"id":2070,"parentId":2006,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":39953,"timestamp":21248159,"id":2065,"parentId":1922,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":42386,"timestamp":21247769,"id":2054,"parentId":1902,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":43489,"timestamp":21248325,"id":2072,"parentId":1926,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":44171,"timestamp":21248224,"id":2068,"parentId":1907,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":45914,"timestamp":21247862,"id":2057,"parentId":1909,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":47345,"timestamp":21248104,"id":2063,"parentId":1910,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":48482,"timestamp":21248186,"id":2066,"parentId":1922,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":50821,"timestamp":21247797,"id":2055,"parentId":1902,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736839447286,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":53121,"timestamp":21248350,"id":2073,"parentId":1925,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736839447287,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":211,"timestamp":21355006,"id":2099,"parentId":1866,"tags":{},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":20,"timestamp":21355236,"id":2100,"parentId":1864,"tags":{},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":11,"timestamp":21355263,"id":2101,"parentId":1865,"tags":{},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3718,"timestamp":21354125,"id":2079,"parentId":1952,"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":1736839447392,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4388,"timestamp":21354309,"id":2083,"parentId":1972,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4231,"timestamp":21355284,"id":2102,"parentId":2056,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5123,"timestamp":21355337,"id":2103,"parentId":2077,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":6198,"timestamp":21355376,"id":2104,"parentId":2065,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17724,"timestamp":21354273,"id":2082,"parentId":2013,"tags":{"name":"/app/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-mjs","duration":28564,"timestamp":21354243,"id":2081,"parentId":1998,"tags":{"name":"/app/node_modules/tailwind-merge/dist/bundle-mjs.mjs","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":178314,"timestamp":21354221,"id":2080,"parentId":2013,"tags":{"name":"/app/node_modules/xterm/lib/xterm.js","layer":null},"startTime":1736839447392,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":178426,"timestamp":21354567,"id":2091,"parentId":2048,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/on.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":179009,"timestamp":21354636,"id":2092,"parentId":2048,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/contrib/backo2.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":178470,"timestamp":21355410,"id":2105,"parentId":2070,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":179647,"timestamp":21354452,"id":2087,"parentId":2032,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":179871,"timestamp":21354392,"id":2085,"parentId":2032,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-js","duration":180235,"timestamp":21354483,"id":2088,"parentId":2033,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":180522,"timestamp":21354357,"id":2084,"parentId":2030,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":180544,"timestamp":21354510,"id":2089,"parentId":2039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":180832,"timestamp":21354418,"id":2086,"parentId":2032,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":180875,"timestamp":21354536,"id":2090,"parentId":2039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":181089,"timestamp":21354879,"id":2097,"parentId":1942,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":181377,"timestamp":21354900,"id":2098,"parentId":1950,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181011,"timestamp":21355440,"id":2106,"parentId":2059,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181050,"timestamp":21355569,"id":2110,"parentId":2069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181284,"timestamp":21355500,"id":2108,"parentId":2069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181329,"timestamp":21355636,"id":2112,"parentId":2078,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181527,"timestamp":21355597,"id":2111,"parentId":2078,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181844,"timestamp":21355470,"id":2107,"parentId":2069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":181947,"timestamp":21355540,"id":2109,"parentId":2069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":182017,"timestamp":21355668,"id":2113,"parentId":2078,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736839447394,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":183514,"timestamp":21354766,"id":2095,"parentId":1947,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":184276,"timestamp":21354692,"id":2093,"parentId":1933,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":185117,"timestamp":21354727,"id":2094,"parentId":1933,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":186058,"timestamp":21354807,"id":2096,"parentId":1949,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736839447393,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1831241,"timestamp":19712070,"id":1438,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-process","duration":4264,"timestamp":21551106,"id":2148,"parentId":2147,"tags":{},"startTime":1736839447589,"traceId":"a2ec8ad33bb0e2b2"},{"name":"postcss-loader","duration":5471,"timestamp":21549921,"id":2147,"parentId":2117,"tags":{},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-loader","duration":8612,"timestamp":21555420,"id":2149,"parentId":2117,"tags":{"astUsed":"true"},"startTime":1736839447594,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":15899,"timestamp":21548635,"id":2117,"parentId":1945,"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":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31897,"timestamp":21548591,"id":2116,"parentId":2077,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/Popover.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":33100,"timestamp":21548692,"id":2118,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":34262,"timestamp":21548748,"id":2119,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":35107,"timestamp":21548805,"id":2120,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36140,"timestamp":21548848,"id":2121,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37378,"timestamp":21548889,"id":2122,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37790,"timestamp":21548932,"id":2123,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":38447,"timestamp":21549151,"id":2130,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":38970,"timestamp":21549192,"id":2131,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":39285,"timestamp":21549234,"id":2132,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":39541,"timestamp":21549276,"id":2133,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":39836,"timestamp":21549325,"id":2134,"parentId":2061,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":42824,"timestamp":21549364,"id":2135,"parentId":1977,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/index.js","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":43376,"timestamp":21549392,"id":2136,"parentId":1977,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/index.js","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":44517,"timestamp":21548554,"id":2115,"parentId":2070,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":44876,"timestamp":21548428,"id":2114,"parentId":2078,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":44914,"timestamp":21548969,"id":2124,"parentId":1965,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":45234,"timestamp":21549489,"id":2139,"parentId":1995,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":46329,"timestamp":21549457,"id":2138,"parentId":1994,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":47900,"timestamp":21549096,"id":2128,"parentId":1969,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":49099,"timestamp":21549036,"id":2126,"parentId":1968,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":49313,"timestamp":21549607,"id":2143,"parentId":2003,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":50891,"timestamp":21549123,"id":2129,"parentId":1970,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":51998,"timestamp":21549546,"id":2141,"parentId":2001,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":54731,"timestamp":21549066,"id":2127,"parentId":1968,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":55966,"timestamp":21549519,"id":2140,"parentId":1995,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":57292,"timestamp":21549574,"id":2142,"parentId":2003,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":59390,"timestamp":21549005,"id":2125,"parentId":1965,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736839447587,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":60328,"timestamp":21549420,"id":2137,"parentId":1994,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":60826,"timestamp":21549635,"id":2144,"parentId":2003,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":61834,"timestamp":21549667,"id":2145,"parentId":2012,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":63512,"timestamp":21549696,"id":2146,"parentId":2012,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736839447588,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1926128,"timestamp":19712270,"id":1481,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-css","duration":721043,"timestamp":20920112,"id":1945,"parentId":1839,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736839446958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":20134,"timestamp":21630189,"id":2150,"parentId":2055,"tags":{"name":"/app/node_modules/gsap/index.js","layer":null},"startTime":1736839447668,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36331,"timestamp":21630248,"id":2151,"parentId":2055,"tags":{"name":"/app/node_modules/gsap/Flip.js","layer":null},"startTime":1736839447669,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":36810,"timestamp":21630337,"id":2153,"parentId":2023,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736839447669,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":37252,"timestamp":21630361,"id":2154,"parentId":2023,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736839447669,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":37646,"timestamp":21630388,"id":2155,"parentId":2015,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736839447669,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":40339,"timestamp":21630260,"id":2152,"parentId":1996,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736839447669,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2015,"timestamp":21679948,"id":2159,"parentId":2096,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2498,"timestamp":21680255,"id":2171,"parentId":2062,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447719,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12893,"timestamp":21680154,"id":2167,"parentId":2083,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13294,"timestamp":21680001,"id":2161,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13302,"timestamp":21680207,"id":2169,"parentId":2102,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13713,"timestamp":21679977,"id":2160,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13759,"timestamp":21680119,"id":2166,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13828,"timestamp":21680231,"id":2170,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736839447719,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14173,"timestamp":21680075,"id":2164,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14248,"timestamp":21680178,"id":2168,"parentId":2083,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14557,"timestamp":21680097,"id":2165,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14768,"timestamp":21680052,"id":2163,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14962,"timestamp":21680025,"id":2162,"parentId":2079,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16177,"timestamp":21679802,"id":2156,"parentId":2016,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16757,"timestamp":21679887,"id":2157,"parentId":2017,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17271,"timestamp":21679917,"id":2158,"parentId":2016,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736839447718,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991433,"timestamp":19712388,"id":1503,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991556,"timestamp":19712383,"id":1502,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991639,"timestamp":19712331,"id":1494,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991652,"timestamp":19712339,"id":1496,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991676,"timestamp":19712336,"id":1495,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991718,"timestamp":19712322,"id":1492,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991701,"timestamp":19712360,"id":1499,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991741,"timestamp":19712346,"id":1498,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991805,"timestamp":19712304,"id":1488,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":1991782,"timestamp":19712343,"id":1497,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3507,"timestamp":21701881,"id":2172,"parentId":2139,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4299,"timestamp":21701999,"id":2173,"parentId":2141,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5112,"timestamp":21702040,"id":2174,"parentId":2142,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5912,"timestamp":21702072,"id":2175,"parentId":2144,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14832,"timestamp":21702106,"id":2176,"parentId":2135,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/binary.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":16030,"timestamp":21702142,"id":2177,"parentId":2135,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/is-binary.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":17315,"timestamp":21702244,"id":2179,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transport.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":22325,"timestamp":21702197,"id":2178,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/socket.js","layer":null},"startTime":1736839447740,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23360,"timestamp":21702282,"id":2180,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/util.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":23740,"timestamp":21702345,"id":2181,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/globals.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":24267,"timestamp":21702388,"id":2182,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/PopoverPortal.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"build-module-js","duration":27399,"timestamp":21702422,"id":2183,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/util.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":29224,"timestamp":21702450,"id":2184,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/usePopover.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":29587,"timestamp":21702478,"id":2185,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useMemoizedArray.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":30119,"timestamp":21702512,"id":2186,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useHandlePrevValues.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31121,"timestamp":21702540,"id":2187,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useArrowContainer.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31658,"timestamp":21702584,"id":2188,"parentId":2116,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/ArrowContainer.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31843,"timestamp":21702623,"id":2189,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/index.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":32588,"timestamp":21702684,"id":2190,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-fetch.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":34625,"timestamp":21702734,"id":2191,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-xhr.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":35864,"timestamp":21702795,"id":2192,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/websocket.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":36664,"timestamp":21702857,"id":2193,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/webtransport.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":37373,"timestamp":21702915,"id":2194,"parentId":2136,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseuri.js","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":38430,"timestamp":21702944,"id":2195,"parentId":2027,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736839447741,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module","duration":38,"timestamp":21748076,"id":2196,"parentId":1945,"tags":{},"startTime":1736839447786,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1986,"timestamp":21748140,"id":2197,"parentId":2155,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447786,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":16655,"timestamp":21748244,"id":2198,"parentId":2121,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":31094,"timestamp":21748312,"id":2200,"parentId":2150,"tags":{"name":"/app/node_modules/gsap/CSSPlugin.js","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":65063,"timestamp":21748291,"id":2199,"parentId":2150,"tags":{"name":"/app/node_modules/gsap/gsap-core.js","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":65458,"timestamp":21748329,"id":2201,"parentId":2072,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":65906,"timestamp":21748481,"id":2205,"parentId":2076,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":66510,"timestamp":21748514,"id":2206,"parentId":2072,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":67476,"timestamp":21748456,"id":2204,"parentId":2072,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":68982,"timestamp":21748381,"id":2202,"parentId":2077,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":70302,"timestamp":21748429,"id":2203,"parentId":2065,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736839447787,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14236,"timestamp":21824932,"id":2207,"parentId":2151,"tags":{"name":"/app/node_modules/gsap/utils/matrix.js","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":14625,"timestamp":21824987,"id":2208,"parentId":2027,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/index.js","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15017,"timestamp":21825113,"id":2211,"parentId":2055,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15365,"timestamp":21825085,"id":2210,"parentId":2066,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":15825,"timestamp":21825035,"id":2209,"parentId":2055,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16745,"timestamp":21825158,"id":2213,"parentId":2066,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18033,"timestamp":21825180,"id":2214,"parentId":2055,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19993,"timestamp":21825137,"id":2212,"parentId":2066,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736839447863,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1970,"timestamp":21850260,"id":2218,"parentId":2195,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11114,"timestamp":21850293,"id":2219,"parentId":2179,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseqs.js","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12192,"timestamp":21850325,"id":2220,"parentId":2190,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling.js","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12411,"timestamp":21850369,"id":2221,"parentId":2191,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/has-cors.js","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12829,"timestamp":21850404,"id":2222,"parentId":2184,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useElementRef.js","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13500,"timestamp":21850081,"id":2215,"parentId":2172,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736839447888,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13595,"timestamp":21850180,"id":2216,"parentId":2173,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736839447888,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":13794,"timestamp":21850224,"id":2217,"parentId":2175,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13892,"timestamp":21850565,"id":2227,"parentId":2094,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":15402,"timestamp":21850502,"id":2225,"parentId":2055,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":16163,"timestamp":21850539,"id":2226,"parentId":2073,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":17599,"timestamp":21850429,"id":2223,"parentId":2055,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18996,"timestamp":21850454,"id":2224,"parentId":2055,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736839447889,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2332,"timestamp":21874258,"id":2228,"parentId":2204,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":18081,"timestamp":21874368,"id":2229,"parentId":2197,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":18473,"timestamp":21874411,"id":2230,"parentId":2197,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18754,"timestamp":21874573,"id":2235,"parentId":2125,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19352,"timestamp":21874548,"id":2234,"parentId":2124,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20014,"timestamp":21874515,"id":2233,"parentId":2124,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20634,"timestamp":21874655,"id":2237,"parentId":2140,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":21495,"timestamp":21874485,"id":2232,"parentId":2137,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21909,"timestamp":21874687,"id":2238,"parentId":2140,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":22469,"timestamp":21874712,"id":2239,"parentId":2140,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":23534,"timestamp":21874452,"id":2231,"parentId":2137,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24304,"timestamp":21874614,"id":2236,"parentId":2145,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736839447913,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11058,"timestamp":21906546,"id":2240,"parentId":2048,"tags":{"name":"/app/node_modules/@socket.io/component-emitter/lib/esm/index.js","layer":null},"startTime":1736839447945,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":2170,"timestamp":21919759,"id":2243,"parentId":2227,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10583,"timestamp":21919796,"id":2244,"parentId":2208,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.js","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11403,"timestamp":21919636,"id":2241,"parentId":2218,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11606,"timestamp":21919726,"id":2242,"parentId":2218,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":11885,"timestamp":21920051,"id":2250,"parentId":2156,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":12598,"timestamp":21919885,"id":2246,"parentId":2156,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13041,"timestamp":21920013,"id":2249,"parentId":2156,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":13587,"timestamp":21919972,"id":2248,"parentId":2156,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14432,"timestamp":21919842,"id":2245,"parentId":2156,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":14932,"timestamp":21920085,"id":2251,"parentId":2156,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":16065,"timestamp":21920148,"id":2253,"parentId":2195,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":18031,"timestamp":21920098,"id":2252,"parentId":2195,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20470,"timestamp":21919928,"id":2247,"parentId":2156,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736839447958,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231651,"timestamp":19712049,"id":1436,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231520,"timestamp":19712278,"id":1483,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231762,"timestamp":19712060,"id":1437,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231580,"timestamp":19712264,"id":1479,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231491,"timestamp":19712391,"id":1504,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231814,"timestamp":19712093,"id":1440,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231683,"timestamp":19712243,"id":1475,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231652,"timestamp":19712298,"id":1486,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231569,"timestamp":19712398,"id":1505,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231731,"timestamp":19712252,"id":1477,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231698,"timestamp":19712301,"id":1487,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231786,"timestamp":19712267,"id":1480,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231823,"timestamp":19712260,"id":1478,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231854,"timestamp":19712246,"id":1476,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231881,"timestamp":19712239,"id":1474,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231866,"timestamp":19712274,"id":1482,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231951,"timestamp":19712212,"id":1468,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231961,"timestamp":19712233,"id":1472,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2231993,"timestamp":19712237,"id":1473,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232176,"timestamp":19712097,"id":1441,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232103,"timestamp":19712202,"id":1466,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232147,"timestamp":19712183,"id":1460,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232131,"timestamp":19712218,"id":1469,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232207,"timestamp":19712159,"id":1455,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232280,"timestamp":19712101,"id":1442,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232174,"timestamp":19712225,"id":1470,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232221,"timestamp":19712199,"id":1465,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232346,"timestamp":19712117,"id":1446,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232300,"timestamp":19712187,"id":1461,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232711,"timestamp":19712178,"id":1459,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"add-entry","duration":2232972,"timestamp":19712194,"id":1463,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2232956,"timestamp":19712230,"id":1471,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233033,"timestamp":19712174,"id":1458,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233116,"timestamp":19712109,"id":1444,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233136,"timestamp":19712105,"id":1443,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233142,"timestamp":19712113,"id":1445,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233150,"timestamp":19712121,"id":1447,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233100,"timestamp":19712190,"id":1462,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233158,"timestamp":19712148,"id":1453,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2233158,"timestamp":19712168,"id":1457,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4177,"timestamp":21942201,"id":2254,"parentId":2234,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447980,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":4875,"timestamp":21942277,"id":2255,"parentId":2233,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5557,"timestamp":21942309,"id":2256,"parentId":2239,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17438,"timestamp":21942459,"id":2261,"parentId":2212,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":17854,"timestamp":21942495,"id":2263,"parentId":2223,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":18493,"timestamp":21942424,"id":2260,"parentId":2202,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":19233,"timestamp":21942506,"id":2264,"parentId":2224,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":19995,"timestamp":21942399,"id":2259,"parentId":2204,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":20689,"timestamp":21942371,"id":2258,"parentId":2204,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":21841,"timestamp":21942515,"id":2265,"parentId":2223,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":23411,"timestamp":21942340,"id":2257,"parentId":2204,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":24930,"timestamp":21942470,"id":2262,"parentId":2213,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736839447981,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2259906,"timestamp":19712380,"id":1501,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2260241,"timestamp":19712138,"id":1451,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2264766,"timestamp":19712152,"id":1454,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2264874,"timestamp":19712130,"id":1449,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2264893,"timestamp":19712142,"id":1452,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":7398,"timestamp":21977145,"id":2266,"parentId":2252,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839448015,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8599,"timestamp":21978081,"id":2267,"parentId":2179,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/index.js","layer":null},"startTime":1736839448016,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10191,"timestamp":21978126,"id":2268,"parentId":2244,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.js","layer":null},"startTime":1736839448016,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11429,"timestamp":21978193,"id":2269,"parentId":2244,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js","layer":null},"startTime":1736839448016,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":11550,"timestamp":21978245,"id":2270,"parentId":2244,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.js","layer":null},"startTime":1736839448017,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":12861,"timestamp":21978291,"id":2271,"parentId":2244,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.js","layer":null},"startTime":1736839448017,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":10520,"timestamp":21992220,"id":2272,"parentId":2256,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736839448030,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2292130,"timestamp":19712197,"id":1464,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2292468,"timestamp":19712209,"id":1467,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":7567,"timestamp":22014087,"id":2276,"parentId":2267,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","layer":null},"startTime":1736839448052,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8173,"timestamp":22014159,"id":2277,"parentId":2267,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/commons.js","layer":null},"startTime":1736839448052,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":8999,"timestamp":22014190,"id":2278,"parentId":2267,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/decodePacket.browser.js","layer":null},"startTime":1736839448052,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":9810,"timestamp":22014056,"id":2275,"parentId":2258,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736839448052,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":10308,"timestamp":22014012,"id":2274,"parentId":2259,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736839448052,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":11034,"timestamp":22013888,"id":2273,"parentId":2262,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736839448052,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2315107,"timestamp":19712163,"id":1456,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1328,"timestamp":22028946,"id":2279,"parentId":2274,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736839448067,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-ts","duration":6880,"timestamp":22030901,"id":2282,"parentId":2275,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736839448069,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":7687,"timestamp":22030881,"id":2281,"parentId":2275,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736839448069,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":8163,"timestamp":22030834,"id":2280,"parentId":2275,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736839448069,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":3083,"timestamp":22039778,"id":2283,"parentId":2278,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","layer":null},"startTime":1736839448078,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2330823,"timestamp":19712310,"id":1490,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1280,"timestamp":22042917,"id":2284,"parentId":2279,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736839448081,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":1378,"timestamp":22042993,"id":2285,"parentId":2279,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736839448081,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":405,"timestamp":22044652,"id":2286,"parentId":2271,"tags":{"name":"/app/node_modules/prop-types/index.js","layer":null},"startTime":1736839448083,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":1522,"timestamp":22045138,"id":2287,"parentId":2281,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736839448083,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-tsx","duration":2294,"timestamp":22045182,"id":2288,"parentId":2280,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736839448083,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":5898,"timestamp":22048289,"id":2289,"parentId":2286,"tags":{"name":"/app/node_modules/prop-types/factoryWithThrowingShims.js","layer":null},"startTime":1736839448087,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":701,"timestamp":22055360,"id":2290,"parentId":2288,"tags":{"name":"/app/node_modules/html-prettify/src/index.js","layer":null},"startTime":1736839448094,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":609,"timestamp":22056851,"id":2291,"parentId":2289,"tags":{"name":"/app/node_modules/prop-types/lib/ReactPropTypesSecret.js","layer":null},"startTime":1736839448095,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2345203,"timestamp":19712313,"id":1491,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2345287,"timestamp":19712307,"id":1489,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2345292,"timestamp":19712328,"id":1493,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!"},"startTime":1736839445751,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":590,"timestamp":22057668,"id":2292,"parentId":2290,"tags":{"name":"/app/node_modules/html-prettify/src/utils/addIndentation.js","layer":null},"startTime":1736839448096,"traceId":"a2ec8ad33bb0e2b2"},{"name":"build-module-js","duration":999,"timestamp":22057719,"id":2293,"parentId":2290,"tags":{"name":"/app/node_modules/html-prettify/src/utils/toLines.js","layer":null},"startTime":1736839448096,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2346640,"timestamp":19712127,"id":1448,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"add-entry","duration":2346670,"timestamp":19712134,"id":1450,"parentId":1433,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!"},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"make","duration":2347396,"timestamp":19711513,"id":1433,"parentId":1432,"tags":{},"startTime":1736839445750,"traceId":"a2ec8ad33bb0e2b2"},{"name":"chunk-graph","duration":15708,"timestamp":22099055,"id":2295,"parentId":2294,"tags":{},"startTime":1736839448137,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-modules","duration":12,"timestamp":22114877,"id":2297,"parentId":2294,"tags":{},"startTime":1736839448153,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-chunks","duration":16819,"timestamp":22115060,"id":2298,"parentId":2294,"tags":{},"startTime":1736839448153,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-tree","duration":11,"timestamp":22131939,"id":2299,"parentId":2294,"tags":{},"startTime":1736839448170,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize-chunk-modules","duration":26938,"timestamp":22131989,"id":2300,"parentId":2294,"tags":{},"startTime":1736839448170,"traceId":"a2ec8ad33bb0e2b2"},{"name":"optimize","duration":44189,"timestamp":22114812,"id":2296,"parentId":2294,"tags":{},"startTime":1736839448153,"traceId":"a2ec8ad33bb0e2b2"},{"name":"module-hash","duration":23775,"timestamp":22167090,"id":2301,"parentId":2294,"tags":{},"startTime":1736839448205,"traceId":"a2ec8ad33bb0e2b2"},{"name":"code-generation","duration":245571,"timestamp":22190908,"id":2302,"parentId":2294,"tags":{},"startTime":1736839448229,"traceId":"a2ec8ad33bb0e2b2"},{"name":"hash","duration":9120,"timestamp":22440945,"id":2303,"parentId":2294,"tags":{},"startTime":1736839448479,"traceId":"a2ec8ad33bb0e2b2"},{"name":"code-generation-jobs","duration":244,"timestamp":22450061,"id":2304,"parentId":2294,"tags":{},"startTime":1736839448488,"traceId":"a2ec8ad33bb0e2b2"},{"name":"module-assets","duration":301,"timestamp":22450268,"id":2305,"parentId":2294,"tags":{},"startTime":1736839448489,"traceId":"a2ec8ad33bb0e2b2"},{"name":"create-chunk-assets","duration":14674,"timestamp":22450579,"id":2306,"parentId":2294,"tags":{},"startTime":1736839448489,"traceId":"a2ec8ad33bb0e2b2"},{"name":"NextJsBuildManifest-generateClientManifest","duration":6499,"timestamp":22488346,"id":2308,"parentId":1432,"tags":{},"startTime":1736839448527,"traceId":"a2ec8ad33bb0e2b2"},{"name":"NextJsBuildManifest-createassets","duration":9512,"timestamp":22485362,"id":2307,"parentId":1432,"tags":{},"startTime":1736839448524,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":93487,"timestamp":22557992,"id":2311,"parentId":2309,"tags":{"name":"static/chunks/pages/_error-158556db7d796075.js","cache":"MISS"},"startTime":1736839448596,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":93394,"timestamp":22558187,"id":2313,"parentId":2309,"tags":{"name":"static/chunks/pages/404-33491b2b2da7f694.js","cache":"MISS"},"startTime":1736839448596,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":93591,"timestamp":22558034,"id":2312,"parentId":2309,"tags":{"name":"static/chunks/pages/500-dd65f34beee2af29.js","cache":"MISS"},"startTime":1736839448596,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":90047,"timestamp":22561626,"id":2315,"parentId":2309,"tags":{"name":"static/chunks/pages/about-175c96e0e3bce811.js","cache":"MISS"},"startTime":1736839448600,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":88778,"timestamp":22562947,"id":2318,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-a16460745888b67d.js","cache":"MISS"},"startTime":1736839448601,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":86193,"timestamp":22565580,"id":2326,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-935bba1919a775f4.js","cache":"MISS"},"startTime":1736839448604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":87426,"timestamp":22564646,"id":2323,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-3cb64992d90a2310.js","cache":"MISS"},"startTime":1736839448603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":86146,"timestamp":22566023,"id":2328,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-98fd96c78886d603.js","cache":"MISS"},"startTime":1736839448604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":88237,"timestamp":22564022,"id":2321,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/shell-7cd77f974c81c458.js","cache":"MISS"},"startTime":1736839448602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":90624,"timestamp":22561738,"id":2316,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/api-keys-ebc6dbdf36455187.js","cache":"MISS"},"startTime":1736839448600,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":89253,"timestamp":22563168,"id":2319,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/connect-cbc803a2d049d987.js","cache":"MISS"},"startTime":1736839448601,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":87558,"timestamp":22564914,"id":2324,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-49af600f89c4a62b.js","cache":"MISS"},"startTime":1736839448603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80432,"timestamp":22572082,"id":2350,"parentId":2309,"tags":{"name":"static/chunks/pages/contact-6b6262f89413ba71.js","cache":"MISS"},"startTime":1736839448610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":87349,"timestamp":22565229,"id":2325,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-05536984edfd241f.js","cache":"MISS"},"startTime":1736839448604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":89080,"timestamp":22563553,"id":2320,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/schema-abdcfec0b726d5c3.js","cache":"MISS"},"startTime":1736839448602,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79495,"timestamp":22573181,"id":2356,"parentId":2309,"tags":{"name":"static/chunks/pages/login-1fe25640c5375fc7.js","cache":"MISS"},"startTime":1736839448611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":78864,"timestamp":22573855,"id":2361,"parentId":2309,"tags":{"name":"static/chunks/pages/send-password-reset-link-5bcef21408c821e5.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":88651,"timestamp":22564268,"id":2322,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]-eedb2969902a3df3.js","cache":"MISS"},"startTime":1736839448603,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":90697,"timestamp":22562289,"id":2317,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/connect-9fc2456ec5b13e38.js","cache":"MISS"},"startTime":1736839448601,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":76726,"timestamp":22576302,"id":2378,"parentId":2309,"tags":{"name":"static/chunks/pages/su/users/new-34f1b011a190cd7c.js","cache":"MISS"},"startTime":1736839448615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80064,"timestamp":22573086,"id":2355,"parentId":2309,"tags":{"name":"static/chunks/pages/docs/[page]-b8db6e3ae1419f4e.js","cache":"MISS"},"startTime":1736839448611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80600,"timestamp":22572616,"id":2353,"parentId":2309,"tags":{"name":"static/chunks/pages/docs/[page]/[sub-page]-e1ce842c0179338f.js","cache":"MISS"},"startTime":1736839448611,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"minify-js","duration":79214,"timestamp":22574901,"id":2371,"parentId":2309,"tags":{"name":"static/chunks/pages/su/envar-a744d9ce2e005fcf.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80409,"timestamp":22573761,"id":2360,"parentId":2309,"tags":{"name":"static/chunks/pages/logout-e5762a243749ad0e.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79431,"timestamp":22574778,"id":2370,"parentId":2309,"tags":{"name":"static/chunks/pages/su/error-logs-060485b02b78417f.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79516,"timestamp":22574727,"id":2369,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/pages-9d23a704d1108cf4.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":77455,"timestamp":22576824,"id":2381,"parentId":2309,"tags":{"name":"static/chunks/webpack-810c18afc07353bc.js","cache":"MISS"},"startTime":1736839448615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":78775,"timestamp":22575539,"id":2375,"parentId":2309,"tags":{"name":"static/chunks/pages/su/login-5340c2e7a0c5d584.js","cache":"MISS"},"startTime":1736839448614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80658,"timestamp":22573691,"id":2359,"parentId":2309,"tags":{"name":"static/chunks/pages/redirect-a083a626f8b277a1.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":81920,"timestamp":22572470,"id":2352,"parentId":2309,"tags":{"name":"static/chunks/pages/create-account-442192a6aa2a5db4.js","cache":"MISS"},"startTime":1736839448611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79782,"timestamp":22574642,"id":2368,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/pages/[id]-88e8fa764087cd8e.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":81742,"timestamp":22572717,"id":2354,"parentId":2309,"tags":{"name":"static/chunks/pages/index-86ad3ee311b3631e.js","cache":"MISS"},"startTime":1736839448611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79932,"timestamp":22574569,"id":2367,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs-a820e92d9f236f03.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":87458,"timestamp":22567088,"id":2330,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables-d15e728d6825db77.js","cache":"MISS"},"startTime":1736839448605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":78115,"timestamp":22576703,"id":2380,"parentId":2309,"tags":{"name":"static/chunks/pages/unsubscribe-68ad8fe99d1086ba.js","cache":"MISS"},"startTime":1736839448615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80368,"timestamp":22574521,"id":2366,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/edit-page-0d9f864ae1c2491a.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":89246,"timestamp":22565700,"id":2327,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-90b1d044a8d8a307.js","cache":"MISS"},"startTime":1736839448604,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":82703,"timestamp":22572282,"id":2351,"parentId":2309,"tags":{"name":"static/chunks/pages/docs-e3af333a5ec4b7f9.js","cache":"MISS"},"startTime":1736839448611,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":81556,"timestamp":22573470,"id":2358,"parentId":2309,"tags":{"name":"static/chunks/pages/privacy-159b0695374d3f66.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":84659,"timestamp":22570410,"id":2341,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/settings-b6101336b603a20f.js","cache":"MISS"},"startTime":1736839448609,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80760,"timestamp":22574373,"id":2365,"parentId":2309,"tags":{"name":"static/chunks/pages/su/console-04bd8655e1f27673.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":80856,"timestamp":22574321,"id":2364,"parentId":2309,"tags":{"name":"static/chunks/pages/su/docs/create-page-ec7a474c711f4aab.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":81848,"timestamp":22573374,"id":2357,"parentId":2309,"tags":{"name":"static/chunks/pages/email-verification-8f76f6e6fcc42bae.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79836,"timestamp":22575420,"id":2374,"parentId":2309,"tags":{"name":"static/chunks/pages/su/servers-9cac9ee9f7118043.js","cache":"MISS"},"startTime":1736839448614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":78921,"timestamp":22576422,"id":2379,"parentId":2309,"tags":{"name":"static/chunks/pages/terms-84e76b283c94aa00.js","cache":"MISS"},"startTime":1736839448615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":83393,"timestamp":22571988,"id":2349,"parentId":2309,"tags":{"name":"static/chunks/pages/blog-16433f6c50111391.js","cache":"MISS"},"startTime":1736839448610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":79816,"timestamp":22575617,"id":2376,"parentId":2309,"tags":{"name":"static/chunks/pages/su/users/[single]-cf2aad9c11ffb529.js","cache":"MISS"},"startTime":1736839448614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":81385,"timestamp":22574094,"id":2363,"parentId":2309,"tags":{"name":"static/chunks/pages/su/backups-7b0ae936f386d60d.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":87684,"timestamp":22575254,"id":2373,"parentId":2309,"tags":{"name":"static/chunks/pages/su/load-balancing-f1cbf73ca85f92eb.js","cache":"MISS"},"startTime":1736839448614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":91134,"timestamp":22571896,"id":2348,"parentId":2309,"tags":{"name":"static/chunks/pages/admin-111c2e98619e424d.js","cache":"MISS"},"startTime":1736839448610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":86920,"timestamp":22576164,"id":2377,"parentId":2309,"tags":{"name":"static/chunks/pages/su/users-1bbc526bb9d2f8ce.js","cache":"MISS"},"startTime":1736839448614,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":89172,"timestamp":22573997,"id":2362,"parentId":2309,"tags":{"name":"static/chunks/pages/reset-password-073f6638bd8c602f.js","cache":"MISS"},"startTime":1736839448612,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":97499,"timestamp":22566358,"id":2329,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-9ed3b2c1935e7f49.js","cache":"MISS"},"startTime":1736839448605,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":73691,"timestamp":22590245,"id":2414,"parentId":2309,"tags":{"name":"static/BYGBoTeiBrkCn0j6XrihZ/_buildManifest.js","cache":"MISS"},"startTime":1736839448629,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":73733,"timestamp":22590251,"id":2415,"parentId":2309,"tags":{"name":"server/next-font-manifest.js","cache":"MISS"},"startTime":1736839448629,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":74007,"timestamp":22590213,"id":2410,"parentId":2309,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"MISS"},"startTime":1736839448628,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":103538,"timestamp":22567555,"id":2331,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-16c952028c5343ce.js","cache":"MISS"},"startTime":1736839448606,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":92684,"timestamp":22578500,"id":2386,"parentId":2309,"tags":{"name":"static/chunks/8261-c84643bacdc1fa7c.js","cache":"MISS"},"startTime":1736839448617,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":96437,"timestamp":22575074,"id":2372,"parentId":2309,"tags":{"name":"static/chunks/pages/su-c5ab2df75c7c5c88.js","cache":"MISS"},"startTime":1736839448613,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":100884,"timestamp":22590239,"id":2413,"parentId":2309,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1736839448629,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":100981,"timestamp":22590232,"id":2412,"parentId":2309,"tags":{"name":"static/BYGBoTeiBrkCn0j6XrihZ/_ssgManifest.js","cache":"MISS"},"startTime":1736839448629,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":101022,"timestamp":22590225,"id":2411,"parentId":2309,"tags":{"name":"server/dynamic-css-manifest.js","cache":"MISS"},"startTime":1736839448629,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":109451,"timestamp":22581895,"id":2391,"parentId":2309,"tags":{"name":"static/chunks/7287-7b891520a18d4b44.js","cache":"MISS"},"startTime":1736839448620,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":120329,"timestamp":22571084,"id":2344,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-37f22546b940d5ff.js","cache":"MISS"},"startTime":1736839448609,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":102092,"timestamp":22589386,"id":2406,"parentId":2309,"tags":{"name":"static/chunks/3867-2ad991d347086835.js","cache":"MISS"},"startTime":1736839448628,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":121366,"timestamp":22570187,"id":2340,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/schema-dea2faec1b97303d.js","cache":"MISS"},"startTime":1736839448608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":120005,"timestamp":22571605,"id":2347,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users-3527e3fb682652c8.js","cache":"MISS"},"startTime":1736839448610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":108289,"timestamp":22583376,"id":2396,"parentId":2309,"tags":{"name":"static/chunks/2438-c9e411c1c189c066.js","cache":"MISS"},"startTime":1736839448622,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":121697,"timestamp":22570015,"id":2339,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/media/[...folder]-da544c542cbb5cd2.js","cache":"MISS"},"startTime":1736839448608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":135149,"timestamp":22571436,"id":2346,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases-00c6c7eed959b915.js","cache":"MISS"},"startTime":1736839448610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":123597,"timestamp":22583109,"id":2395,"parentId":2309,"tags":{"name":"static/chunks/9268-e50b8b33479f88cf.js","cache":"MISS"},"startTime":1736839448621,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":116725,"timestamp":22590036,"id":2409,"parentId":2309,"tags":{"name":"static/chunks/4060-5751a2e742d74cb4.js","cache":"MISS"},"startTime":1736839448628,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":137006,"timestamp":22569821,"id":2338,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]-cb69b2f56865df4e.js","cache":"MISS"},"startTime":1736839448608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":119396,"timestamp":22587508,"id":2404,"parentId":2309,"tags":{"name":"static/chunks/2480-09f0d2bd0b57a837.js","cache":"MISS"},"startTime":1736839448626,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":124252,"timestamp":22582709,"id":2394,"parentId":2309,"tags":{"name":"static/chunks/5810-949e2c13b225cb77.js","cache":"MISS"},"startTime":1736839448621,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":137308,"timestamp":22569708,"id":2337,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases-bf3bc5b18c2bc2ae.js","cache":"MISS"},"startTime":1736839448608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":135763,"timestamp":22571304,"id":2345,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]-1420681ea698d5b2.js","cache":"MISS"},"startTime":1736839448610,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":117270,"timestamp":22589853,"id":2408,"parentId":2309,"tags":{"name":"static/chunks/3298-bf77c986348119d2.js","cache":"MISS"},"startTime":1736839448628,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":141089,"timestamp":22570825,"id":2343,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/add-user-70dd307f3209487c.js","cache":"MISS"},"startTime":1736839448609,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":124725,"timestamp":22587277,"id":2403,"parentId":2309,"tags":{"name":"static/chunks/6999-0459b23ea0165396.js","cache":"MISS"},"startTime":1736839448626,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":122484,"timestamp":22589642,"id":2407,"parentId":2309,"tags":{"name":"static/chunks/6099-d50f5ab4ad8155be.js","cache":"MISS"},"startTime":1736839448628,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":154051,"timestamp":22570655,"id":2342,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/media-fb4e8c9a85501a29.js","cache":"MISS"},"startTime":1736839448609,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":142406,"timestamp":22582417,"id":2393,"parentId":2309,"tags":{"name":"static/chunks/8076-348ed73ae542bdcd.js","cache":"MISS"},"startTime":1736839448621,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":155569,"timestamp":22569301,"id":2335,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/add-database-7f176798fb3892dd.js","cache":"MISS"},"startTime":1736839448608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":138252,"timestamp":22586673,"id":2401,"parentId":2309,"tags":{"name":"static/chunks/9950-dcfa4b8a1cdb0d08.js","cache":"MISS"},"startTime":1736839448625,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":155523,"timestamp":22569463,"id":2336,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users-482a585340c1b89e.js","cache":"MISS"},"startTime":1736839448608,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":143007,"timestamp":22582026,"id":2392,"parentId":2309,"tags":{"name":"static/chunks/7391-ece848dab78126c0.js","cache":"MISS"},"startTime":1736839448620,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":136425,"timestamp":22588679,"id":2405,"parentId":2309,"tags":{"name":"static/chunks/4403-6d995a5674a1315a.js","cache":"MISS"},"startTime":1736839448627,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":141348,"timestamp":22583833,"id":2397,"parentId":2309,"tags":{"name":"static/chunks/8311-54cf225740f6b2c6.js","cache":"MISS"},"startTime":1736839448622,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":156263,"timestamp":22568966,"id":2334,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-720739e734176d54.js","cache":"MISS"},"startTime":1736839448607,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":153400,"timestamp":22585749,"id":2399,"parentId":2309,"tags":{"name":"static/chunks/6383-1b6c88d49308b969.js","cache":"MISS"},"startTime":1736839448624,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":170752,"timestamp":22568626,"id":2333,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-e8bee178122af0b3.js","cache":"MISS"},"startTime":1736839448607,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":186200,"timestamp":22568357,"id":2332,"parentId":2309,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-7fc284bf9e00bf83.js","cache":"MISS"},"startTime":1736839448607,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":170169,"timestamp":22585086,"id":2398,"parentId":2309,"tags":{"name":"static/chunks/1580-7b44e7c7734b23fc.js","cache":"MISS"},"startTime":1736839448623,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":168332,"timestamp":22587007,"id":2402,"parentId":2309,"tags":{"name":"static/chunks/6830-9d1d72fda9b42a3d.js","cache":"MISS"},"startTime":1736839448625,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":176590,"timestamp":22578839,"id":2387,"parentId":2309,"tags":{"name":"static/chunks/9660-78c8822b00ea7704.js","cache":"MISS"},"startTime":1736839448617,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":172376,"timestamp":22585994,"id":2400,"parentId":2309,"tags":{"name":"static/chunks/4261-f81c8f64448d27cb.js","cache":"MISS"},"startTime":1736839448624,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":188988,"timestamp":22580340,"id":2389,"parentId":2309,"tags":{"name":"static/chunks/2829-4502fbb746023c5f.js","cache":"MISS"},"startTime":1736839448619,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":191290,"timestamp":22578157,"id":2385,"parentId":2309,"tags":{"name":"static/chunks/6428-871d12a0e04dc58d.js","cache":"MISS"},"startTime":1736839448616,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":225434,"timestamp":22580685,"id":2390,"parentId":2309,"tags":{"name":"static/chunks/2793-e696ad685b3d9b29.js","cache":"MISS"},"startTime":1736839448619,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":257920,"timestamp":22579341,"id":2388,"parentId":2309,"tags":{"name":"static/chunks/6460-0885ae654d195c82.js","cache":"MISS"},"startTime":1736839448618,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":270180,"timestamp":22577321,"id":2383,"parentId":2309,"tags":{"name":"static/chunks/94726e6d-32f68157960855f5.js","cache":"MISS"},"startTime":1736839448616,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":293698,"timestamp":22554016,"id":2310,"parentId":2309,"tags":{"name":"static/chunks/main-a0bdd92e7b43604b.js","cache":"MISS"},"startTime":1736839448592,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":346920,"timestamp":22558280,"id":2314,"parentId":2309,"tags":{"name":"static/chunks/pages/_app-c2b51a705261a37d.js","cache":"MISS"},"startTime":1736839448597,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":338225,"timestamp":22576915,"id":2382,"parentId":2309,"tags":{"name":"static/chunks/framework-bd96dea0d6d5688f.js","cache":"MISS"},"startTime":1736839448615,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-js","duration":426158,"timestamp":22577994,"id":2384,"parentId":2309,"tags":{"name":"static/chunks/ed150ef9-4bae487078acc5bf.js","cache":"MISS"},"startTime":1736839448616,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-webpack-plugin-optimize","duration":507739,"timestamp":22496440,"id":2309,"parentId":1432,"tags":{"compilationName":"client"},"startTime":1736839448535,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-css","duration":399122,"timestamp":23004548,"id":2417,"parentId":2416,"tags":{"file":"static/css/bf9db5436f73da1d.css","cache":"MISS"},"startTime":1736839449043,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-css","duration":398909,"timestamp":23004773,"id":2418,"parentId":2416,"tags":{"file":"static/css/9b1cffe2c89f6bb5.css","cache":"MISS"},"startTime":1736839449043,"traceId":"a2ec8ad33bb0e2b2"},{"name":"minify-css","duration":398901,"timestamp":23004783,"id":2419,"parentId":2416,"tags":{"file":"static/css/2c3db85a1d7310ee.css","cache":"MISS"},"startTime":1736839449043,"traceId":"a2ec8ad33bb0e2b2"},{"name":"css-minimizer-plugin","duration":399296,"timestamp":23004394,"id":2416,"parentId":1432,"tags":{},"startTime":1736839449043,"traceId":"a2ec8ad33bb0e2b2"},{"name":"seal","duration":1340851,"timestamp":22079069,"id":2294,"parentId":1432,"tags":{},"startTime":1736839448117,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-compilation","duration":3711719,"timestamp":19708297,"id":1432,"parentId":13,"tags":{"name":"client"},"startTime":1736839445747,"traceId":"a2ec8ad33bb0e2b2"},{"name":"emit","duration":15503,"timestamp":23420068,"id":2420,"parentId":13,"tags":{},"startTime":1736839449458,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-close","duration":372019,"timestamp":23436574,"id":2421,"parentId":13,"tags":{"name":"client"},"startTime":1736839449475,"traceId":"a2ec8ad33bb0e2b2"},{"name":"webpack-generate-error-stats","duration":991,"timestamp":23808613,"id":2422,"parentId":2421,"tags":{},"startTime":1736839449847,"traceId":"a2ec8ad33bb0e2b2"},{"name":"run-webpack-compiler","duration":22269534,"timestamp":1547823,"id":13,"parentId":1,"tags":{},"startTime":1736839427586,"traceId":"a2ec8ad33bb0e2b2"},{"name":"format-webpack-messages","duration":186,"timestamp":23817429,"id":2423,"parentId":1,"tags":{},"startTime":1736839449856,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-static-error-page","duration":78462,"timestamp":24217430,"id":2426,"parentId":2425,"tags":{},"startTime":1736839450256,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":18208,"timestamp":24344098,"id":2428,"parentId":2425,"tags":{"page":"/_error"},"startTime":1736839450382,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":21653,"timestamp":24341837,"id":2427,"parentId":2425,"tags":{"page":"/_app"},"startTime":1736839450380,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":19576,"timestamp":24344307,"id":2429,"parentId":2425,"tags":{"page":"/_document"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":17078,"timestamp":24347661,"id":2466,"parentId":2425,"tags":{"page":"/api/acceptUserInvitation"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"check-page","duration":18212,"timestamp":24347721,"id":2468,"parentId":2425,"tags":{"page":"/api/addApiKey"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":18438,"timestamp":24347691,"id":2467,"parentId":2425,"tags":{"page":"/api/addAdminUserUser"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":18819,"timestamp":24347820,"id":2469,"parentId":2425,"tags":{"page":"/api/addDbUser"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":19211,"timestamp":24347857,"id":2470,"parentId":2425,"tags":{"page":"/api/addNewMediaFolder"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":20210,"timestamp":24347898,"id":2471,"parentId":2425,"tags":{"page":"/api/addSocialLogin"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":20883,"timestamp":24347941,"id":2472,"parentId":2425,"tags":{"page":"/api/addTableEntry"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":21443,"timestamp":24347992,"id":2473,"parentId":2425,"tags":{"page":"/api/addUserMedia"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":22666,"timestamp":24348018,"id":2474,"parentId":2425,"tags":{"page":"/api/addUserTable"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":23458,"timestamp":24348043,"id":2475,"parentId":2425,"tags":{"page":"/api/addUserUser"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":24147,"timestamp":24348104,"id":2477,"parentId":2425,"tags":{"page":"/api/admin/addUserBackup"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":25077,"timestamp":24348069,"id":2476,"parentId":2425,"tags":{"page":"/api/addUsersTableToDatabase"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":25276,"timestamp":24348134,"id":2478,"parentId":2425,"tags":{"page":"/api/admin/clearErrorLogs"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":25567,"timestamp":24348169,"id":2479,"parentId":2425,"tags":{"page":"/api/admin/clientError"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":25916,"timestamp":24348193,"id":2480,"parentId":2425,"tags":{"page":"/api/admin/createNewBackup"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":26442,"timestamp":24348224,"id":2481,"parentId":2425,"tags":{"page":"/api/admin/docs/[action]"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":26700,"timestamp":24348296,"id":2483,"parentId":2425,"tags":{"page":"/api/admin/getUserBackups"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":27055,"timestamp":24348248,"id":2482,"parentId":2425,"tags":{"page":"/api/admin/getTablesForUserDatabase"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":27489,"timestamp":24348325,"id":2484,"parentId":2425,"tags":{"page":"/api/admin/getUserData"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":27728,"timestamp":24348365,"id":2485,"parentId":2425,"tags":{"page":"/api/admin/grabBackups"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":27979,"timestamp":24348389,"id":2486,"parentId":2425,"tags":{"page":"/api/admin/grabErrorLogs"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":28256,"timestamp":24348416,"id":2487,"parentId":2425,"tags":{"page":"/api/admin/grabFile"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":28539,"timestamp":24348491,"id":2490,"parentId":2425,"tags":{"page":"/api/admin/updateEnv"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":28932,"timestamp":24348440,"id":2488,"parentId":2425,"tags":{"page":"/api/admin/loginSuUser"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":29138,"timestamp":24348558,"id":2492,"parentId":2425,"tags":{"page":"/api/checkDuplicateData"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":29700,"timestamp":24348464,"id":2489,"parentId":2425,"tags":{"page":"/api/admin/runUserDbQuery"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":29880,"timestamp":24348585,"id":2493,"parentId":2425,"tags":{"page":"/api/checkExistingFolder"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":30362,"timestamp":24348523,"id":2491,"parentId":2425,"tags":{"page":"/api/changeDbUserPassword"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":30481,"timestamp":24348611,"id":2494,"parentId":2425,"tags":{"page":"/api/clientSideAuth"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":30784,"timestamp":24348668,"id":2496,"parentId":2425,"tags":{"page":"/api/connect/handshake"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":31202,"timestamp":24348639,"id":2495,"parentId":2425,"tags":{"page":"/api/connect/disconnect"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":31619,"timestamp":24348696,"id":2497,"parentId":2425,"tags":{"page":"/api/connect"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":32013,"timestamp":24348723,"id":2498,"parentId":2425,"tags":{"page":"/api/connect/verify"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":32364,"timestamp":24348747,"id":2499,"parentId":2425,"tags":{"page":"/api/contact"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":33433,"timestamp":24348770,"id":2500,"parentId":2425,"tags":{"page":"/api/createUserDatabase"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":33656,"timestamp":24348833,"id":2502,"parentId":2425,"tags":{"page":"/api/deleteDbUser"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":34185,"timestamp":24348796,"id":2501,"parentId":2425,"tags":{"page":"/api/deleteApiKey"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":34384,"timestamp":24348873,"id":2503,"parentId":2425,"tags":{"page":"/api/deleteInvitation"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":34992,"timestamp":24348940,"id":2504,"parentId":2425,"tags":{"page":"/api/deleteMediaFolder"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":35430,"timestamp":24348982,"id":2505,"parentId":2425,"tags":{"page":"/api/deleteTableEntry"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":36256,"timestamp":24349012,"id":2506,"parentId":2425,"tags":{"page":"/api/deleteUser"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":36682,"timestamp":24349041,"id":2507,"parentId":2425,"tags":{"page":"/api/deleteUserDatabase"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":37219,"timestamp":24349068,"id":2508,"parentId":2425,"tags":{"page":"/api/deleteUserMedia"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":37999,"timestamp":24349098,"id":2509,"parentId":2425,"tags":{"page":"/api/deleteUserTable"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":38276,"timestamp":24349132,"id":2510,"parentId":2425,"tags":{"page":"/api/deleteUserUser"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":38456,"timestamp":24349188,"id":2512,"parentId":2425,"tags":{"page":"/api/exportDatabase"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":38845,"timestamp":24349160,"id":2511,"parentId":2425,"tags":{"page":"/api/downloadDatabaseSchema"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":39081,"timestamp":24349211,"id":2513,"parentId":2425,"tags":{"page":"/api/exportTableData"},"startTime":1736839450387,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":39460,"timestamp":24349238,"id":2514,"parentId":2425,"tags":{"page":"/api/fetch-entries-basic"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":39511,"timestamp":24349279,"id":2515,"parentId":2425,"tags":{"page":"/api/fetch-media"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":40071,"timestamp":24349302,"id":2516,"parentId":2425,"tags":{"page":"/api/get-authorized-databases"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":40370,"timestamp":24349329,"id":2517,"parentId":2425,"tags":{"page":"/api/getDatabaseTables"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":40879,"timestamp":24349361,"id":2518,"parentId":2425,"tags":{"page":"/api/getDelegatedDatabaseToken"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":41299,"timestamp":24349391,"id":2519,"parentId":2425,"tags":{"page":"/api/getDelegatedDatabases"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":42172,"timestamp":24349421,"id":2520,"parentId":2425,"tags":{"page":"/api/getDiskUsage"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":42345,"timestamp":24349458,"id":2521,"parentId":2425,"tags":{"page":"/api/getUserDatabaseTables"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":42523,"timestamp":24349485,"id":2522,"parentId":2425,"tags":{"page":"/api/getUserDatabases"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":42614,"timestamp":24349512,"id":2523,"parentId":2425,"tags":{"page":"/api/getUserMedia"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":42936,"timestamp":24349535,"id":2524,"parentId":2425,"tags":{"page":"/api/getUserSchemaData"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":43056,"timestamp":24349566,"id":2525,"parentId":2425,"tags":{"page":"/api/healthcheck"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":43465,"timestamp":24349592,"id":2526,"parentId":2425,"tags":{"page":"/api/importDatabase"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":43910,"timestamp":24349615,"id":2527,"parentId":2425,"tags":{"page":"/api/importDatabaseSchema"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":44378,"timestamp":24349676,"id":2528,"parentId":2425,"tags":{"page":"/api/infiniteScroll"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":45529,"timestamp":24349729,"id":2529,"parentId":2425,"tags":{"page":"/api/loginUser"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":45575,"timestamp":24349775,"id":2530,"parentId":2425,"tags":{"page":"/api/logoutUser"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":46580,"timestamp":24349829,"id":2531,"parentId":2425,"tags":{"page":"/api/media/addPrivateMedia"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":46719,"timestamp":24349888,"id":2532,"parentId":2425,"tags":{"page":"/api/media/getPrivateMedia"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":47046,"timestamp":24349970,"id":2533,"parentId":2425,"tags":{"page":"/api/purgeDb"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":47227,"timestamp":24350018,"id":2534,"parentId":2425,"tags":{"page":"/api/query/[user_id]/add-file"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":47331,"timestamp":24350066,"id":2535,"parentId":2425,"tags":{"page":"/api/query/[user_id]/add-image"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":47435,"timestamp":24350095,"id":2536,"parentId":2425,"tags":{"page":"/api/query/[user_id]/delete-file"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":47536,"timestamp":24350119,"id":2537,"parentId":2425,"tags":{"page":"/api/query/[user_id]/get-private-file"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":48192,"timestamp":24350145,"id":2538,"parentId":2425,"tags":{"page":"/api/query/[user_id]/get-schema"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":48545,"timestamp":24350173,"id":2539,"parentId":2425,"tags":{"page":"/api/query/[user_id]/get"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":48691,"timestamp":24350198,"id":2540,"parentId":2425,"tags":{"page":"/api/query/[user_id]/post"},"startTime":1736839450388,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":49127,"timestamp":24350230,"id":2541,"parentId":2425,"tags":{"page":"/api/query/[user_id]/update-schema-from-single-database"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":49601,"timestamp":24350255,"id":2542,"parentId":2425,"tags":{"page":"/api/queryEntriesSearchTerm"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":49877,"timestamp":24350280,"id":2543,"parentId":2425,"tags":{"page":"/api/reAuthenticateUser"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":50355,"timestamp":24350304,"id":2544,"parentId":2425,"tags":{"page":"/api/refreshEntry"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":51833,"timestamp":24350330,"id":2545,"parentId":2425,"tags":{"page":"/api/registerUser"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":52410,"timestamp":24350358,"id":2546,"parentId":2425,"tags":{"page":"/api/renameMedia"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":52631,"timestamp":24350384,"id":2547,"parentId":2425,"tags":{"page":"/api/resetDelegatedDatabaseToken"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":52862,"timestamp":24350405,"id":2548,"parentId":2425,"tags":{"page":"/api/resetPassword"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":53203,"timestamp":24350445,"id":2549,"parentId":2425,"tags":{"page":"/api/runUserDbQuery"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":53453,"timestamp":24350478,"id":2550,"parentId":2425,"tags":{"page":"/api/sendEmailVerificationLink"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":53730,"timestamp":24350501,"id":2551,"parentId":2425,"tags":{"page":"/api/sendPasswordResetLink"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":54434,"timestamp":24350528,"id":2552,"parentId":2425,"tags":{"page":"/api/social-login/facebook-auth"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":54934,"timestamp":24350551,"id":2553,"parentId":2425,"tags":{"page":"/api/social-login/github-auth"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":55577,"timestamp":24350579,"id":2554,"parentId":2425,"tags":{"page":"/api/social-login/google-auth"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":55865,"timestamp":24350601,"id":2555,"parentId":2425,"tags":{"page":"/api/social-login/utils/checkEmail"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":56167,"timestamp":24350630,"id":2556,"parentId":2425,"tags":{"page":"/api/social-login/utils/checkSocialId"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":56438,"timestamp":24350661,"id":2557,"parentId":2425,"tags":{"page":"/api/social-login/utils/getEmailFromSocialId"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":56925,"timestamp":24350687,"id":2558,"parentId":2425,"tags":{"page":"/api/sql-users/create"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":57262,"timestamp":24350710,"id":2559,"parentId":2425,"tags":{"page":"/api/sql-users/delete"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":57905,"timestamp":24350737,"id":2560,"parentId":2425,"tags":{"page":"/api/sql-users/update"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":58024,"timestamp":24350759,"id":2561,"parentId":2425,"tags":{"page":"/api/stream/[path]"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":58733,"timestamp":24350781,"id":2562,"parentId":2425,"tags":{"page":"/api/sync-table-data"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":58771,"timestamp":24350812,"id":2563,"parentId":2425,"tags":{"page":"/api/test/cors"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":59031,"timestamp":24350845,"id":2564,"parentId":2425,"tags":{"page":"/api/test/mail"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":59277,"timestamp":24350872,"id":2565,"parentId":2425,"tags":{"page":"/api/unsubscribe"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":59729,"timestamp":24350958,"id":2567,"parentId":2425,"tags":{"page":"/api/updateClonedTableForeignKeys"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":60215,"timestamp":24350904,"id":2566,"parentId":2425,"tags":{"page":"/api/updateAdminUserAccess"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"check-page","duration":61075,"timestamp":24350983,"id":2568,"parentId":2425,"tags":{"page":"/api/updateDbSchemaDataForUser"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":61395,"timestamp":24351026,"id":2569,"parentId":2425,"tags":{"page":"/api/updateDbUser"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":62031,"timestamp":24351077,"id":2570,"parentId":2425,"tags":{"page":"/api/updateTableEntry"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":62679,"timestamp":24351136,"id":2571,"parentId":2425,"tags":{"page":"/api/updateUser"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":63547,"timestamp":24351191,"id":2572,"parentId":2425,"tags":{"page":"/api/updateUserDatabase"},"startTime":1736839450389,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":64429,"timestamp":24351233,"id":2573,"parentId":2425,"tags":{"page":"/api/updateUserTable"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":64710,"timestamp":24351299,"id":2574,"parentId":2425,"tags":{"page":"/api/updateUserUser"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":65243,"timestamp":24351337,"id":2575,"parentId":2425,"tags":{"page":"/api/user-schema/replace-database-schema"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":65543,"timestamp":24351375,"id":2576,"parentId":2425,"tags":{"page":"/api/user/[user_id]/add-user"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":65819,"timestamp":24351412,"id":2577,"parentId":2425,"tags":{"page":"/api/user/[user_id]/delete-user"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":66125,"timestamp":24351466,"id":2578,"parentId":2425,"tags":{"page":"/api/user/[user_id]/get-user"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":66564,"timestamp":24351510,"id":2579,"parentId":2425,"tags":{"page":"/api/user/[user_id]/github-login"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":66954,"timestamp":24351578,"id":2580,"parentId":2425,"tags":{"page":"/api/user/[user_id]/google-login"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":67515,"timestamp":24351621,"id":2581,"parentId":2425,"tags":{"page":"/api/user/[user_id]/grab-google-user-from-token"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":68005,"timestamp":24351662,"id":2582,"parentId":2425,"tags":{"page":"/api/user/[user_id]/login-user"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":68507,"timestamp":24351698,"id":2583,"parentId":2425,"tags":{"page":"/api/user/[user_id]/reauth-user"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":68947,"timestamp":24351733,"id":2584,"parentId":2425,"tags":{"page":"/api/user/[user_id]/send-email-code"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":69359,"timestamp":24351779,"id":2585,"parentId":2425,"tags":{"page":"/api/user/[user_id]/update-user"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":69722,"timestamp":24351824,"id":2586,"parentId":2425,"tags":{"page":"/api/webhooks/github-push"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":817013,"timestamp":24429087,"id":2633,"parentId":2443,"tags":{},"startTime":1736839450467,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":900455,"timestamp":24346000,"id":2443,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":830049,"timestamp":24428644,"id":2632,"parentId":2444,"tags":{},"startTime":1736839450467,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":912673,"timestamp":24346128,"id":2444,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":880364,"timestamp":24430319,"id":2635,"parentId":2445,"tags":{},"startTime":1736839450469,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":964500,"timestamp":24346229,"id":2445,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":889358,"timestamp":24429672,"id":2634,"parentId":2446,"tags":{},"startTime":1736839450468,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":972751,"timestamp":24346328,"id":2446,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/add-table"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":888238,"timestamp":24430963,"id":2636,"parentId":2447,"tags":{},"startTime":1736839450469,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":990272,"timestamp":24346418,"id":2447,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":908166,"timestamp":24431522,"id":2638,"parentId":2449,"tags":{},"startTime":1736839450470,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":993168,"timestamp":24346560,"id":2449,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":911795,"timestamp":24431156,"id":2637,"parentId":2448,"tags":{},"startTime":1736839450469,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":996511,"timestamp":24346484,"id":2448,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":916590,"timestamp":24431965,"id":2639,"parentId":2450,"tags":{},"startTime":1736839450470,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1001960,"timestamp":24346650,"id":2450,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":923792,"timestamp":24432471,"id":2640,"parentId":2451,"tags":{},"startTime":1736839450471,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1009573,"timestamp":24346739,"id":2451,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-user"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":939511,"timestamp":24432928,"id":2641,"parentId":2452,"tags":{},"startTime":1736839450471,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1025695,"timestamp":24346807,"id":2452,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/users"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":939391,"timestamp":24433292,"id":2642,"parentId":2453,"tags":{},"startTime":1736839450472,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1025842,"timestamp":24346860,"id":2453,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/add-database"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":951746,"timestamp":24434029,"id":2644,"parentId":2454,"tags":{},"startTime":1736839450472,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1038932,"timestamp":24346902,"id":2454,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":952338,"timestamp":24433646,"id":2643,"parentId":2455,"tags":{},"startTime":1736839450472,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1039063,"timestamp":24346942,"id":2455,"parentId":2425,"tags":{"page":"/admin/[user_id]"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":965243,"timestamp":24434582,"id":2645,"parentId":2456,"tags":{},"startTime":1736839450473,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1052897,"timestamp":24346979,"id":2456,"parentId":2425,"tags":{"page":"/admin/[user_id]/media/[...folder]"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":969017,"timestamp":24435260,"id":2646,"parentId":2457,"tags":{},"startTime":1736839450474,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1073324,"timestamp":24347048,"id":2457,"parentId":2425,"tags":{"page":"/admin/[user_id]/media"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":984856,"timestamp":24435871,"id":2648,"parentId":2458,"tags":{},"startTime":1736839450474,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1073664,"timestamp":24347094,"id":2458,"parentId":2425,"tags":{"page":"/admin/[user_id]/schema"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":985350,"timestamp":24435580,"id":2647,"parentId":2459,"tags":{},"startTime":1736839450474,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1073820,"timestamp":24347134,"id":2459,"parentId":2425,"tags":{"page":"/admin/[user_id]/settings"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":994287,"timestamp":24436268,"id":2649,"parentId":2460,"tags":{},"startTime":1736839450475,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1083417,"timestamp":24347184,"id":2460,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/add-user"},"startTime":1736839450385,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1001296,"timestamp":24436678,"id":2650,"parentId":2461,"tags":{},"startTime":1736839450475,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1090702,"timestamp":24347322,"id":2461,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/databases/[database]/[user]"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1001157,"timestamp":24436980,"id":2651,"parentId":2462,"tags":{},"startTime":1736839450475,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1090736,"timestamp":24347421,"id":2462,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/databases/[database]"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1008935,"timestamp":24437614,"id":2653,"parentId":2464,"tags":{},"startTime":1736839450476,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1099026,"timestamp":24347571,"id":2464,"parentId":2425,"tags":{"page":"/admin/[user_id]/users"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1021090,"timestamp":24437893,"id":2654,"parentId":2465,"tags":{},"startTime":1736839450476,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1111409,"timestamp":24347624,"id":2465,"parentId":2425,"tags":{"page":"/admin"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1021825,"timestamp":24437301,"id":2652,"parentId":2463,"tags":{},"startTime":1736839450476,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1111636,"timestamp":24347506,"id":2463,"parentId":2425,"tags":{"page":"/admin/[user_id]/users/databases"},"startTime":1736839450386,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1024386,"timestamp":24440200,"id":2656,"parentId":2588,"tags":{},"startTime":1736839450478,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1133431,"timestamp":24351941,"id":2588,"parentId":2425,"tags":{"page":"/contact"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1046121,"timestamp":24439625,"id":2655,"parentId":2587,"tags":{},"startTime":1736839450478,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1133945,"timestamp":24351869,"id":2587,"parentId":2425,"tags":{"page":"/blog"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1067217,"timestamp":24422730,"id":2620,"parentId":2432,"tags":{},"startTime":1736839450461,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1145354,"timestamp":24344653,"id":2432,"parentId":2425,"tags":{"page":"/about"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1133298,"timestamp":24424452,"id":2624,"parentId":2436,"tags":{},"startTime":1736839450463,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1212767,"timestamp":24345053,"id":2436,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/edit-database"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1134119,"timestamp":24424043,"id":2623,"parentId":2434,"tags":{},"startTime":1736839450462,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1213345,"timestamp":24344850,"id":2434,"parentId":2425,"tags":{"page":"/admin/[user_id]/connect"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1136039,"timestamp":24423398,"id":2621,"parentId":2430,"tags":{},"startTime":1736839450462,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1215093,"timestamp":24344389,"id":2430,"parentId":2425,"tags":{"page":"/404"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1121184,"timestamp":24446302,"id":2661,"parentId":2593,"tags":{},"startTime":1736839450485,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1215313,"timestamp":24352218,"id":2593,"parentId":2425,"tags":{"page":"/email-verification"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1122111,"timestamp":24446879,"id":2662,"parentId":2594,"tags":{},"startTime":1736839450485,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1216764,"timestamp":24352275,"id":2594,"parentId":2425,"tags":{"page":"/"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1126162,"timestamp":24443423,"id":2660,"parentId":2592,"tags":{},"startTime":1736839450482,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1217459,"timestamp":24352153,"id":2592,"parentId":2425,"tags":{"page":"/docs"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1124364,"timestamp":24450908,"id":2665,"parentId":2597,"tags":{},"startTime":1736839450489,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1222882,"timestamp":24352450,"id":2597,"parentId":2425,"tags":{"page":"/privacy"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1125335,"timestamp":24450463,"id":2664,"parentId":2596,"tags":{},"startTime":1736839450489,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1223673,"timestamp":24352396,"id":2596,"parentId":2425,"tags":{"page":"/logout"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1158056,"timestamp":24422058,"id":2619,"parentId":2431,"tags":{},"startTime":1736839450460,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1235709,"timestamp":24344460,"id":2431,"parentId":2425,"tags":{"page":"/500"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1142771,"timestamp":24440914,"id":2657,"parentId":2589,"tags":{},"startTime":1736839450479,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1231724,"timestamp":24352002,"id":2589,"parentId":2425,"tags":{"page":"/create-account"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1135700,"timestamp":24448448,"id":2663,"parentId":2595,"tags":{},"startTime":1736839450487,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1231849,"timestamp":24352328,"id":2595,"parentId":2425,"tags":{"page":"/login"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1134868,"timestamp":24452444,"id":2668,"parentId":2600,"tags":{},"startTime":1736839450491,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1234795,"timestamp":24352563,"id":2600,"parentId":2425,"tags":{"page":"/send-password-reset-link"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1144958,"timestamp":24451328,"id":2666,"parentId":2598,"tags":{},"startTime":1736839450490,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1243852,"timestamp":24352492,"id":2598,"parentId":2425,"tags":{"page":"/redirect"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1147388,"timestamp":24453631,"id":2669,"parentId":2601,"tags":{},"startTime":1736839450492,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1248471,"timestamp":24352598,"id":2601,"parentId":2425,"tags":{"page":"/su/backups"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1149236,"timestamp":24451937,"id":2667,"parentId":2599,"tags":{},"startTime":1736839450490,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1248662,"timestamp":24352528,"id":2599,"parentId":2425,"tags":{"page":"/reset-password"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"}] -[{"name":"is-page-static","duration":1179950,"timestamp":24426366,"id":2628,"parentId":2439,"tags":{},"startTime":1736839450465,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1260981,"timestamp":24345385,"id":2439,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/shell"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1155739,"timestamp":24458933,"id":2673,"parentId":2605,"tags":{},"startTime":1736839450497,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1261985,"timestamp":24352741,"id":2605,"parentId":2425,"tags":{"page":"/su/docs"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1193784,"timestamp":24424983,"id":2625,"parentId":2435,"tags":{},"startTime":1736839450463,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1273857,"timestamp":24344955,"id":2435,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/connect"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1167521,"timestamp":24462798,"id":2676,"parentId":2608,"tags":{},"startTime":1736839450501,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1277541,"timestamp":24352841,"id":2608,"parentId":2425,"tags":{"page":"/su/envar"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1169072,"timestamp":24461522,"id":2675,"parentId":2607,"tags":{},"startTime":1736839450500,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1277824,"timestamp":24352803,"id":2607,"parentId":2425,"tags":{"page":"/su/docs/pages"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1204804,"timestamp":24425943,"id":2627,"parentId":2438,"tags":{},"startTime":1736839450464,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1285468,"timestamp":24345300,"id":2438,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/schema"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1174214,"timestamp":24457630,"id":2672,"parentId":2604,"tags":{},"startTime":1736839450496,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1279168,"timestamp":24352701,"id":2604,"parentId":2425,"tags":{"page":"/su/docs/edit-page"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1181009,"timestamp":24456284,"id":2671,"parentId":2603,"tags":{},"startTime":1736839450495,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1284667,"timestamp":24352667,"id":2603,"parentId":2425,"tags":{"page":"/su/docs/create-page"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1167484,"timestamp":24469945,"id":2680,"parentId":2612,"tags":{},"startTime":1736839450508,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1284475,"timestamp":24352969,"id":2612,"parentId":2425,"tags":{"page":"/su/login"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1185335,"timestamp":24467531,"id":2678,"parentId":2610,"tags":{},"startTime":1736839450506,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300022,"timestamp":24352902,"id":2610,"parentId":2425,"tags":{"page":"/su"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1188954,"timestamp":24464106,"id":2677,"parentId":2609,"tags":{},"startTime":1736839450502,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300202,"timestamp":24352873,"id":2609,"parentId":2425,"tags":{"page":"/su/error-logs"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1192952,"timestamp":24460201,"id":2674,"parentId":2606,"tags":{},"startTime":1736839450498,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300391,"timestamp":24352773,"id":2606,"parentId":2425,"tags":{"page":"/su/docs/pages/[id]"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1184887,"timestamp":24468309,"id":2679,"parentId":2611,"tags":{},"startTime":1736839450507,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300269,"timestamp":24352935,"id":2611,"parentId":2425,"tags":{"page":"/su/load-balancing"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1182660,"timestamp":24470571,"id":2681,"parentId":2613,"tags":{},"startTime":1736839450509,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300239,"timestamp":24352999,"id":2613,"parentId":2425,"tags":{"page":"/su/servers"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1179763,"timestamp":24473498,"id":2683,"parentId":2615,"tags":{},"startTime":1736839450512,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300212,"timestamp":24353057,"id":2615,"parentId":2425,"tags":{"page":"/su/users"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1198332,"timestamp":24454962,"id":2670,"parentId":2602,"tags":{},"startTime":1736839450493,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1300677,"timestamp":24352624,"id":2602,"parentId":2425,"tags":{"page":"/su/console"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1226713,"timestamp":24427274,"id":2630,"parentId":2442,"tags":{},"startTime":1736839450466,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1308112,"timestamp":24345901,"id":2442,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1179457,"timestamp":24477738,"id":2686,"parentId":2618,"tags":{},"startTime":1736839450516,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1304089,"timestamp":24353145,"id":2618,"parentId":2425,"tags":{"page":"/unsubscribe"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1184057,"timestamp":24474511,"id":2684,"parentId":2616,"tags":{},"startTime":1736839450513,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1305517,"timestamp":24353084,"id":2616,"parentId":2425,"tags":{"page":"/su/users/new"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1236761,"timestamp":24423735,"id":2622,"parentId":2433,"tags":{},"startTime":1736839450462,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1315766,"timestamp":24344760,"id":2433,"parentId":2425,"tags":{"page":"/admin/[user_id]/api-keys"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1185622,"timestamp":24475015,"id":2685,"parentId":2617,"tags":{},"startTime":1736839450513,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1307550,"timestamp":24353111,"id":2617,"parentId":2425,"tags":{"page":"/terms"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1194025,"timestamp":24472175,"id":2682,"parentId":2614,"tags":{},"startTime":1736839450510,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1313219,"timestamp":24353026,"id":2614,"parentId":2425,"tags":{"page":"/su/users/[single]"},"startTime":1736839450391,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1244409,"timestamp":24426803,"id":2629,"parentId":2440,"tags":{},"startTime":1736839450465,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1325640,"timestamp":24345641,"id":2440,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1253215,"timestamp":24425552,"id":2626,"parentId":2437,"tags":{},"startTime":1736839450464,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1333617,"timestamp":24345214,"id":2437,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]"},"startTime":1736839450383,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1253806,"timestamp":24428002,"id":2631,"parentId":2441,"tags":{},"startTime":1736839450466,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1336042,"timestamp":24345799,"id":2441,"parentId":2425,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]"},"startTime":1736839450384,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1277208,"timestamp":24442824,"id":2659,"parentId":2591,"tags":{},"startTime":1736839450481,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1368036,"timestamp":24352100,"id":2591,"parentId":2425,"tags":{"page":"/docs/[page]"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"is-page-static","duration":1280995,"timestamp":24441805,"id":2658,"parentId":2590,"tags":{},"startTime":1736839450480,"traceId":"a2ec8ad33bb0e2b2"},{"name":"check-page","duration":1370782,"timestamp":24352053,"id":2590,"parentId":2425,"tags":{"page":"/docs/[page]/[sub-page]"},"startTime":1736839450390,"traceId":"a2ec8ad33bb0e2b2"},{"name":"static-check","duration":1506628,"timestamp":24216342,"id":2425,"parentId":1,"tags":{},"startTime":1736839450255,"traceId":"a2ec8ad33bb0e2b2"},{"name":"generate-required-server-files","duration":506,"timestamp":26061824,"id":2688,"parentId":1,"tags":{},"startTime":1736839452100,"traceId":"a2ec8ad33bb0e2b2"},{"name":"write-routes-manifest","duration":2147,"timestamp":26078011,"id":2690,"parentId":1,"tags":{},"startTime":1736839452116,"traceId":"a2ec8ad33bb0e2b2"},{"name":"load-dotenv","duration":198,"timestamp":26094807,"id":2693,"parentId":2692,"tags":{},"startTime":1736839452133,"traceId":"a2ec8ad33bb0e2b2"},{"name":"run-export-path-map","duration":533,"timestamp":26103539,"id":2694,"parentId":2692,"tags":{},"startTime":1736839452142,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-export","duration":14601384,"timestamp":26092719,"id":2692,"parentId":1,"tags":{},"startTime":1736839452131,"traceId":"a2ec8ad33bb0e2b2"},{"name":"node-file-trace-build","duration":14751190,"timestamp":26068471,"id":2689,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1736839452107,"traceId":"a2ec8ad33bb0e2b2"},{"name":"apply-include-excludes","duration":1407,"timestamp":40819699,"id":2695,"parentId":1,"tags":{},"startTime":1736839466858,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":583,"timestamp":40822015,"id":2696,"parentId":2691,"tags":{},"startTime":1736839466860,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":156,"timestamp":40822632,"id":2697,"parentId":2691,"tags":{},"startTime":1736839466861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":164,"timestamp":40822805,"id":2698,"parentId":2691,"tags":{},"startTime":1736839466861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":85,"timestamp":40822980,"id":2699,"parentId":2691,"tags":{},"startTime":1736839466861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":104,"timestamp":40823072,"id":2700,"parentId":2691,"tags":{},"startTime":1736839466861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":150,"timestamp":40823194,"id":2701,"parentId":2691,"tags":{},"startTime":1736839466861,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":91,"timestamp":40823356,"id":2702,"parentId":2691,"tags":{},"startTime":1736839466862,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":80,"timestamp":40823456,"id":2703,"parentId":2691,"tags":{},"startTime":1736839466862,"traceId":"a2ec8ad33bb0e2b2"},{"name":"move-exported-page","duration":67,"timestamp":40823545,"id":2704,"parentId":2691,"tags":{},"startTime":1736839466862,"traceId":"a2ec8ad33bb0e2b2"},{"name":"static-generation","duration":14734384,"timestamp":26089538,"id":2691,"parentId":1,"tags":{},"startTime":1736839452128,"traceId":"a2ec8ad33bb0e2b2"},{"name":"print-tree-view","duration":13400,"timestamp":40827384,"id":2705,"parentId":1,"tags":{},"startTime":1736839466866,"traceId":"a2ec8ad33bb0e2b2"},{"name":"telemetry-flush","duration":460895,"timestamp":40840823,"id":2706,"parentId":1,"tags":{},"startTime":1736839466879,"traceId":"a2ec8ad33bb0e2b2"},{"name":"next-build","duration":40678558,"timestamp":623201,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"15.1.4","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1736839426662,"traceId":"a2ec8ad33bb0e2b2"}] +[{"name":"generate-buildid","duration":357,"timestamp":794141,"id":4,"parentId":1,"tags":{},"startTime":1736868332766,"traceId":"d6db589d9eef97d2"},{"name":"load-custom-routes","duration":442,"timestamp":794584,"id":5,"parentId":1,"tags":{},"startTime":1736868332766,"traceId":"d6db589d9eef97d2"},{"name":"create-dist-dir","duration":638,"timestamp":841052,"id":6,"parentId":1,"tags":{},"startTime":1736868332813,"traceId":"d6db589d9eef97d2"},{"name":"verify-typescript-setup","duration":505684,"timestamp":849699,"id":7,"parentId":1,"tags":{},"startTime":1736868332821,"traceId":"d6db589d9eef97d2"},{"name":"collect-pages","duration":2228,"timestamp":1355643,"id":8,"parentId":1,"tags":{},"startTime":1736868333327,"traceId":"d6db589d9eef97d2"},{"name":"create-pages-mapping","duration":1238,"timestamp":1358817,"id":9,"parentId":1,"tags":{},"startTime":1736868333330,"traceId":"d6db589d9eef97d2"},{"name":"public-dir-conflict-check","duration":4054,"timestamp":1360222,"id":10,"parentId":1,"tags":{},"startTime":1736868333332,"traceId":"d6db589d9eef97d2"},{"name":"generate-routes-manifest","duration":5880,"timestamp":1364513,"id":11,"parentId":1,"tags":{},"startTime":1736868333336,"traceId":"d6db589d9eef97d2"},{"name":"create-entrypoints","duration":101188,"timestamp":1382143,"id":14,"parentId":1,"tags":{},"startTime":1736868333354,"traceId":"d6db589d9eef97d2"},{"name":"generate-webpack-config","duration":493257,"timestamp":1483383,"id":15,"parentId":13,"tags":{},"startTime":1736868333455,"traceId":"d6db589d9eef97d2"},{"name":"next-trace-entrypoint-plugin","duration":1951,"timestamp":2092138,"id":17,"parentId":16,"tags":{},"startTime":1736868334064,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":131384,"timestamp":2295666,"id":212,"parentId":19,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334267,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":132475,"timestamp":2297240,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334269,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":134338,"timestamp":2297405,"id":214,"parentId":22,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334269,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":134651,"timestamp":2298360,"id":216,"parentId":24,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334270,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":135539,"timestamp":2298512,"id":217,"parentId":25,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334270,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":137256,"timestamp":2297613,"id":215,"parentId":23,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334269,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":137090,"timestamp":2298609,"id":218,"parentId":26,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334270,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":150108,"timestamp":2292474,"id":211,"parentId":20,"tags":{"name":"/app/pages/_document.tsx","layer":null},"startTime":1736868334264,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10349,"timestamp":2453097,"id":219,"parentId":27,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10747,"timestamp":2453358,"id":220,"parentId":28,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11351,"timestamp":2453449,"id":221,"parentId":29,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11934,"timestamp":2453546,"id":222,"parentId":30,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12493,"timestamp":2453657,"id":223,"parentId":31,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12969,"timestamp":2453743,"id":224,"parentId":32,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13529,"timestamp":2453816,"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%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14009,"timestamp":2453882,"id":226,"parentId":34,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14499,"timestamp":2453970,"id":227,"parentId":35,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334425,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14956,"timestamp":2454041,"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%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":15441,"timestamp":2454121,"id":229,"parentId":37,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":15952,"timestamp":2454196,"id":230,"parentId":38,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":16437,"timestamp":2454289,"id":231,"parentId":39,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":16918,"timestamp":2454368,"id":232,"parentId":40,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":17406,"timestamp":2454447,"id":233,"parentId":41,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":17873,"timestamp":2454557,"id":234,"parentId":42,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":18282,"timestamp":2454641,"id":235,"parentId":43,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":18740,"timestamp":2454716,"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%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":19134,"timestamp":2454800,"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%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":19563,"timestamp":2454881,"id":238,"parentId":46,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":19907,"timestamp":2454972,"id":239,"parentId":47,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334426,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":20247,"timestamp":2455093,"id":240,"parentId":48,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":20775,"timestamp":2455203,"id":241,"parentId":49,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":21332,"timestamp":2455294,"id":242,"parentId":50,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":21780,"timestamp":2455419,"id":243,"parentId":51,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":22353,"timestamp":2455541,"id":244,"parentId":52,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":22822,"timestamp":2455674,"id":245,"parentId":53,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":23374,"timestamp":2455925,"id":246,"parentId":54,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334427,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":23626,"timestamp":2456117,"id":247,"parentId":55,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":23852,"timestamp":2456332,"id":248,"parentId":56,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":24186,"timestamp":2456429,"id":249,"parentId":57,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":24519,"timestamp":2456519,"id":250,"parentId":58,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":24845,"timestamp":2456616,"id":251,"parentId":59,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":25187,"timestamp":2456705,"id":252,"parentId":60,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":25538,"timestamp":2456789,"id":253,"parentId":61,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":25924,"timestamp":2456875,"id":254,"parentId":62,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":26258,"timestamp":2456954,"id":255,"parentId":63,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334428,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":26591,"timestamp":2457042,"id":256,"parentId":64,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":26909,"timestamp":2457123,"id":257,"parentId":65,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":27190,"timestamp":2457226,"id":258,"parentId":66,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":27496,"timestamp":2457315,"id":259,"parentId":67,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":27787,"timestamp":2457404,"id":260,"parentId":68,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":28090,"timestamp":2457484,"id":261,"parentId":69,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":28444,"timestamp":2457558,"id":262,"parentId":70,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":28765,"timestamp":2457629,"id":263,"parentId":71,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":29030,"timestamp":2457693,"id":264,"parentId":72,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":29277,"timestamp":2457756,"id":265,"parentId":73,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":29557,"timestamp":2457823,"id":266,"parentId":74,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":29837,"timestamp":2457890,"id":267,"parentId":75,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":30137,"timestamp":2457954,"id":268,"parentId":76,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334429,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":30416,"timestamp":2458028,"id":269,"parentId":77,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":30691,"timestamp":2458103,"id":270,"parentId":78,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":30985,"timestamp":2458184,"id":271,"parentId":79,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":31248,"timestamp":2458258,"id":272,"parentId":80,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":31531,"timestamp":2458328,"id":273,"parentId":81,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":31788,"timestamp":2458403,"id":274,"parentId":82,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":32080,"timestamp":2458474,"id":275,"parentId":83,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":32323,"timestamp":2458535,"id":276,"parentId":84,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":32562,"timestamp":2458608,"id":277,"parentId":85,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":32825,"timestamp":2458682,"id":278,"parentId":86,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":33050,"timestamp":2458757,"id":279,"parentId":87,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":33342,"timestamp":2458827,"id":280,"parentId":88,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":33636,"timestamp":2458895,"id":281,"parentId":89,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334430,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6620,"timestamp":2558694,"id":282,"parentId":90,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334530,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6962,"timestamp":2559032,"id":283,"parentId":91,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7293,"timestamp":2559202,"id":284,"parentId":92,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7690,"timestamp":2559291,"id":285,"parentId":93,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8023,"timestamp":2559387,"id":286,"parentId":94,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8318,"timestamp":2559461,"id":287,"parentId":95,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8596,"timestamp":2559529,"id":288,"parentId":96,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8800,"timestamp":2559645,"id":289,"parentId":97,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9064,"timestamp":2559724,"id":290,"parentId":98,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9342,"timestamp":2559800,"id":291,"parentId":99,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9618,"timestamp":2559872,"id":292,"parentId":100,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9882,"timestamp":2559950,"id":293,"parentId":101,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334531,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10152,"timestamp":2560032,"id":294,"parentId":102,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10408,"timestamp":2560110,"id":295,"parentId":103,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10669,"timestamp":2560185,"id":296,"parentId":104,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10905,"timestamp":2560273,"id":297,"parentId":105,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11153,"timestamp":2560352,"id":298,"parentId":106,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11441,"timestamp":2560424,"id":299,"parentId":107,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11723,"timestamp":2560496,"id":300,"parentId":108,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module","duration":12268,"timestamp":2560576,"id":301,"parentId":109,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12480,"timestamp":2560661,"id":302,"parentId":110,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12731,"timestamp":2560735,"id":303,"parentId":111,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12942,"timestamp":2560839,"id":304,"parentId":112,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13178,"timestamp":2560946,"id":305,"parentId":113,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334532,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13432,"timestamp":2561021,"id":306,"parentId":114,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13688,"timestamp":2561127,"id":307,"parentId":115,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13931,"timestamp":2561248,"id":308,"parentId":116,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14194,"timestamp":2561358,"id":309,"parentId":117,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14522,"timestamp":2561463,"id":310,"parentId":118,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14888,"timestamp":2561593,"id":311,"parentId":119,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":15096,"timestamp":2561792,"id":312,"parentId":120,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334533,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":15159,"timestamp":2562068,"id":313,"parentId":121,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334534,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":15337,"timestamp":2562249,"id":314,"parentId":122,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334534,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":2450,"timestamp":2614252,"id":315,"parentId":123,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":2594,"timestamp":2614493,"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%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":2808,"timestamp":2614576,"id":317,"parentId":125,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3063,"timestamp":2614650,"id":318,"parentId":126,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3293,"timestamp":2614721,"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%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3539,"timestamp":2614790,"id":320,"parentId":128,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3761,"timestamp":2614858,"id":321,"parentId":129,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4009,"timestamp":2614922,"id":322,"parentId":130,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4241,"timestamp":2614976,"id":323,"parentId":131,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334586,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4464,"timestamp":2615036,"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%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334587,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4691,"timestamp":2615095,"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%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334587,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4998,"timestamp":2615146,"id":326,"parentId":134,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334587,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5284,"timestamp":2615203,"id":327,"parentId":135,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334587,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5846,"timestamp":2615262,"id":328,"parentId":137,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334587,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":2738,"timestamp":2635258,"id":329,"parentId":138,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334607,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3097,"timestamp":2635528,"id":330,"parentId":139,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334607,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":2820,"timestamp":2645494,"id":331,"parentId":140,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334617,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3217,"timestamp":2645726,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334617,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3821,"timestamp":2645830,"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%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334617,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4409,"timestamp":2645937,"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%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334617,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5052,"timestamp":2646051,"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%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5657,"timestamp":2646136,"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%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6343,"timestamp":2646215,"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%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6931,"timestamp":2646295,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7453,"timestamp":2646388,"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%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8028,"timestamp":2646466,"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%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8605,"timestamp":2646565,"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%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9170,"timestamp":2646644,"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%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9713,"timestamp":2646724,"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%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334618,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6983,"timestamp":2676290,"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%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334648,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7745,"timestamp":2676550,"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%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334648,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5357,"timestamp":2686559,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334658,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5735,"timestamp":2686893,"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%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334658,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6232,"timestamp":2687039,"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%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334659,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6727,"timestamp":2687138,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334659,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7312,"timestamp":2687249,"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%2F%5Bsingle%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334659,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7935,"timestamp":2687356,"id":351,"parentId":160,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334659,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8589,"timestamp":2687489,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334659,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9161,"timestamp":2687603,"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%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334659,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4061,"timestamp":2713278,"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%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334685,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4497,"timestamp":2713580,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334685,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5010,"timestamp":2713727,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334685,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5469,"timestamp":2713900,"id":357,"parentId":166,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334685,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6002,"timestamp":2714000,"id":358,"parentId":167,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6456,"timestamp":2714128,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6915,"timestamp":2714253,"id":360,"parentId":169,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7126,"timestamp":2714381,"id":361,"parentId":170,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7600,"timestamp":2714470,"id":362,"parentId":171,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8092,"timestamp":2714558,"id":363,"parentId":172,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8575,"timestamp":2714664,"id":364,"parentId":173,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9106,"timestamp":2714759,"id":365,"parentId":174,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9612,"timestamp":2714873,"id":366,"parentId":175,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10140,"timestamp":2714969,"id":367,"parentId":176,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334686,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10618,"timestamp":2715089,"id":368,"parentId":177,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334687,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7568,"timestamp":2746044,"id":369,"parentId":178,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7890,"timestamp":2746298,"id":370,"parentId":179,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8328,"timestamp":2746397,"id":371,"parentId":180,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8836,"timestamp":2746478,"id":372,"parentId":181,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9300,"timestamp":2746594,"id":373,"parentId":182,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9821,"timestamp":2746679,"id":374,"parentId":183,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10286,"timestamp":2746766,"id":375,"parentId":184,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10745,"timestamp":2746846,"id":376,"parentId":185,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11155,"timestamp":2746937,"id":377,"parentId":186,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334718,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":334,"timestamp":2776588,"id":402,"parentId":211,"tags":{"name":"react/jsx-runtime","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14,"timestamp":2776955,"id":403,"parentId":211,"tags":{"name":"react","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5748,"timestamp":2774402,"id":378,"parentId":187,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334746,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6143,"timestamp":2774659,"id":379,"parentId":188,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334746,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6363,"timestamp":2774771,"id":380,"parentId":189,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334746,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6871,"timestamp":2774837,"id":381,"parentId":190,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334746,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7342,"timestamp":2774922,"id":382,"parentId":191,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334746,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7860,"timestamp":2775000,"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.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8127,"timestamp":2775075,"id":384,"parentId":193,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8940,"timestamp":2775145,"id":385,"parentId":194,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9513,"timestamp":2775228,"id":386,"parentId":195,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10079,"timestamp":2775297,"id":387,"parentId":196,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10635,"timestamp":2775376,"id":388,"parentId":197,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11021,"timestamp":2775475,"id":389,"parentId":198,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11221,"timestamp":2775575,"id":390,"parentId":199,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11444,"timestamp":2775643,"id":391,"parentId":200,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":11926,"timestamp":2775704,"id":392,"parentId":201,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12171,"timestamp":2775796,"id":393,"parentId":202,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12370,"timestamp":2775869,"id":394,"parentId":203,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12788,"timestamp":2775931,"id":395,"parentId":204,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334747,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12982,"timestamp":2776008,"id":396,"parentId":205,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!","layer":"api"},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13410,"timestamp":2776076,"id":397,"parentId":206,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":13804,"timestamp":2776172,"id":398,"parentId":207,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":14269,"timestamp":2776260,"id":399,"parentId":208,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module","duration":15057,"timestamp":2776338,"id":400,"parentId":209,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":15480,"timestamp":2776408,"id":401,"parentId":210,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17490,"timestamp":2777063,"id":405,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":null},"startTime":1736868334749,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19325,"timestamp":2776979,"id":404,"parentId":136,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736868334748,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26357,"timestamp":2777714,"id":406,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736868334749,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1475,"timestamp":2844614,"id":408,"parentId":216,"tags":{"name":"/app/node_modules/next/dist/server/route-kind.js","layer":"api"},"startTime":1736868334816,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10263,"timestamp":2844494,"id":407,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":null},"startTime":1736868334816,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10571,"timestamp":2844962,"id":409,"parentId":216,"tags":{"name":"/app/node_modules/next/dist/build/templates/helpers.js","layer":"api"},"startTime":1736868334816,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11914,"timestamp":2844999,"id":410,"parentId":212,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/module.compiled.js","layer":null},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12182,"timestamp":2845048,"id":411,"parentId":211,"tags":{"name":"/app/node_modules/next/document.js","layer":null},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12582,"timestamp":2845065,"id":412,"parentId":216,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages-api/module.compiled.js","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14291,"timestamp":2845214,"id":418,"parentId":216,"tags":{"name":"/app/pages/api/admin/grabBackups.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15201,"timestamp":2845261,"id":420,"parentId":220,"tags":{"name":"/app/pages/api/getUserDatabaseTables.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15847,"timestamp":2845164,"id":415,"parentId":217,"tags":{"name":"/app/pages/api/getUserDatabases.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16684,"timestamp":2845288,"id":422,"parentId":230,"tags":{"name":"/app/pages/api/loginUser.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19014,"timestamp":2845181,"id":416,"parentId":215,"tags":{"name":"/app/pages/api/checkDuplicateData.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20482,"timestamp":2845198,"id":417,"parentId":218,"tags":{"name":"/app/pages/api/changeDbUserPassword.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21392,"timestamp":2845244,"id":419,"parentId":234,"tags":{"name":"/app/pages/api/deleteTableEntry.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":23351,"timestamp":2845274,"id":421,"parentId":233,"tags":{"name":"/app/pages/api/getDelegatedDatabases.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25146,"timestamp":2845300,"id":423,"parentId":224,"tags":{"name":"/app/pages/api/deleteUser.ts","layer":"api"},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":26649,"timestamp":2845110,"id":413,"parentId":213,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27879,"timestamp":2845147,"id":414,"parentId":214,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736868334817,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":2831,"timestamp":2891945,"id":427,"parentId":226,"tags":{"name":"/app/pages/api/getUserMedia.ts","layer":"api"},"startTime":1736868334863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3622,"timestamp":2891883,"id":425,"parentId":231,"tags":{"name":"/app/pages/api/logoutUser.ts","layer":"api"},"startTime":1736868334863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5477,"timestamp":2891769,"id":424,"parentId":223,"tags":{"name":"/app/pages/api/deleteUserDatabase.ts","layer":"api"},"startTime":1736868334863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6943,"timestamp":2891923,"id":426,"parentId":232,"tags":{"name":"/app/pages/api/updateTableEntry.ts","layer":"api"},"startTime":1736868334863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10301,"timestamp":2891961,"id":428,"parentId":229,"tags":{"name":"/app/pages/api/getDiskUsage.ts","layer":"api"},"startTime":1736868334863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3648,"timestamp":2913343,"id":430,"parentId":219,"tags":{"name":"/app/pages/api/admin/updateEnv.ts","layer":"api"},"startTime":1736868334885,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5914,"timestamp":2913249,"id":429,"parentId":241,"tags":{"name":"/app/pages/api/deleteMediaFolder.ts","layer":"api"},"startTime":1736868334885,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5377,"timestamp":2914243,"id":431,"parentId":227,"tags":{"name":"/app/pages/api/test/mail.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6022,"timestamp":2914289,"id":432,"parentId":228,"tags":{"name":"/app/pages/api/admin/getUserBackups.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6656,"timestamp":2914306,"id":433,"parentId":222,"tags":{"name":"/app/pages/api/admin/runUserDbQuery.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7564,"timestamp":2914365,"id":436,"parentId":240,"tags":{"name":"/app/pages/api/updateDbUser.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8492,"timestamp":2914407,"id":437,"parentId":225,"tags":{"name":"/app/pages/api/admin/loginSuUser.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9877,"timestamp":2914345,"id":435,"parentId":235,"tags":{"name":"/app/pages/api/infiniteScroll.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11052,"timestamp":2914322,"id":434,"parentId":221,"tags":{"name":"/app/pages/api/admin/getUserData.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11890,"timestamp":2914429,"id":438,"parentId":242,"tags":{"name":"/app/pages/api/getDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736868334886,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":2929,"timestamp":2938860,"id":440,"parentId":246,"tags":{"name":"/app/pages/api/getDatabaseTables.ts","layer":"api"},"startTime":1736868334910,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4271,"timestamp":2938883,"id":441,"parentId":250,"tags":{"name":"/app/pages/api/importDatabaseSchema.ts","layer":"api"},"startTime":1736868334910,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6306,"timestamp":2938697,"id":439,"parentId":245,"tags":{"name":"/app/pages/api/updateDbSchemaDataForUser.ts","layer":"api"},"startTime":1736868334910,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9141,"timestamp":2938914,"id":442,"parentId":244,"tags":{"name":"/app/pages/api/updateUserDatabase.ts","layer":"api"},"startTime":1736868334910,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3301,"timestamp":2958708,"id":443,"parentId":236,"tags":{"name":"/app/pages/api/admin/getTablesForUserDatabase.ts","layer":"api"},"startTime":1736868334930,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11646,"timestamp":2995668,"id":445,"parentId":238,"tags":{"name":"/app/pages/api/test/cors.ts","layer":"api"},"startTime":1736868334967,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12077,"timestamp":2995785,"id":448,"parentId":247,"tags":{"name":"/app/pages/api/admin/grabErrorLogs.ts","layer":"api"},"startTime":1736868334967,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12909,"timestamp":2995717,"id":446,"parentId":237,"tags":{"name":"/app/pages/api/admin/grabFile.ts","layer":"api"},"startTime":1736868334967,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14223,"timestamp":2995813,"id":449,"parentId":253,"tags":{"name":"/app/pages/api/get-authorized-databases.ts","layer":"api"},"startTime":1736868334967,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16820,"timestamp":2995591,"id":444,"parentId":251,"tags":{"name":"/app/pages/api/sync-table-data.ts","layer":"api"},"startTime":1736868334967,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18698,"timestamp":2995757,"id":447,"parentId":249,"tags":{"name":"/app/pages/api/updateUserTable.ts","layer":"api"},"startTime":1736868334967,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7484,"timestamp":3052137,"id":456,"parentId":263,"tags":{"name":"/app/pages/api/healthcheck.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7829,"timestamp":3052173,"id":459,"parentId":260,"tags":{"name":"/app/pages/api/deleteInvitation.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8120,"timestamp":3052182,"id":460,"parentId":262,"tags":{"name":"/app/pages/api/deleteDbUser.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8502,"timestamp":3052149,"id":457,"parentId":265,"tags":{"name":"/app/pages/api/unsubscribe.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9043,"timestamp":3052163,"id":458,"parentId":256,"tags":{"name":"/app/pages/api/admin/clientError.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9584,"timestamp":3052113,"id":455,"parentId":261,"tags":{"name":"/app/pages/api/user/[user_id]/google-login.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10108,"timestamp":3052050,"id":453,"parentId":239,"tags":{"name":"/app/pages/api/user/[user_id]/grab-google-user-from-token.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10844,"timestamp":3052024,"id":451,"parentId":252,"tags":{"name":"/app/pages/api/updateAdminUserAccess.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11288,"timestamp":3052203,"id":462,"parentId":243,"tags":{"name":"/app/pages/api/admin/docs/[action].ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12138,"timestamp":3052213,"id":463,"parentId":259,"tags":{"name":"/app/pages/api/connect/verify.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13172,"timestamp":3051954,"id":450,"parentId":248,"tags":{"name":"/app/pages/api/admin/createNewBackup.ts","layer":"api"},"startTime":1736868335023,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13584,"timestamp":3052193,"id":461,"parentId":254,"tags":{"name":"/app/pages/api/importDatabase.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14082,"timestamp":3052224,"id":464,"parentId":266,"tags":{"name":"/app/pages/api/connect/index.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14961,"timestamp":3052089,"id":454,"parentId":257,"tags":{"name":"/app/pages/api/updateClonedTableForeignKeys.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15865,"timestamp":3052038,"id":452,"parentId":255,"tags":{"name":"/app/pages/api/updateUser.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16004,"timestamp":3052280,"id":468,"parentId":258,"tags":{"name":"/app/pages/api/stream/[path].ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16418,"timestamp":3052232,"id":465,"parentId":273,"tags":{"name":"/app/pages/api/getUserSchemaData.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16572,"timestamp":3052310,"id":471,"parentId":275,"tags":{"name":"/app/pages/api/clientSideAuth.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16937,"timestamp":3052336,"id":473,"parentId":268,"tags":{"name":"/app/pages/api/connect/disconnect.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17552,"timestamp":3052241,"id":466,"parentId":272,"tags":{"name":"/app/pages/api/deleteApiKey.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18563,"timestamp":3052270,"id":467,"parentId":264,"tags":{"name":"/app/pages/api/sql-users/update.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19240,"timestamp":3052289,"id":469,"parentId":271,"tags":{"name":"/app/pages/api/fetch-entries-basic.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20955,"timestamp":3052327,"id":472,"parentId":279,"tags":{"name":"/app/pages/api/createUserDatabase.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22904,"timestamp":3052299,"id":470,"parentId":277,"tags":{"name":"/app/pages/api/addUsersTableToDatabase.ts","layer":"api"},"startTime":1736868335024,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":23842,"timestamp":3113190,"id":474,"parentId":267,"tags":{"name":"/app/pages/api/admin/clearErrorLogs.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24001,"timestamp":3113561,"id":489,"parentId":296,"tags":{"name":"/app/pages/api/sendEmailVerificationLink.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24893,"timestamp":3113322,"id":476,"parentId":280,"tags":{"name":"/app/pages/api/contact.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25310,"timestamp":3113443,"id":482,"parentId":285,"tags":{"name":"/app/pages/api/user/[user_id]/delete-user.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25932,"timestamp":3113481,"id":484,"parentId":286,"tags":{"name":"/app/pages/api/updateUserUser.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":26289,"timestamp":3113631,"id":493,"parentId":292,"tags":{"name":"/app/pages/api/user/[user_id]/add-user.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":27091,"timestamp":3113430,"id":481,"parentId":278,"tags":{"name":"/app/pages/api/sql-users/delete.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":27797,"timestamp":3113501,"id":486,"parentId":290,"tags":{"name":"/app/pages/api/refreshEntry.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":28679,"timestamp":3113618,"id":492,"parentId":294,"tags":{"name":"/app/pages/api/query/[user_id]/get.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":29707,"timestamp":3113510,"id":487,"parentId":284,"tags":{"name":"/app/pages/api/sql-users/create.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":30742,"timestamp":3113408,"id":479,"parentId":269,"tags":{"name":"/app/pages/api/admin/addUserBackup.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":31606,"timestamp":3113469,"id":483,"parentId":282,"tags":{"name":"/app/pages/api/addUserUser.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":32551,"timestamp":3113596,"id":491,"parentId":287,"tags":{"name":"/app/pages/api/query/[user_id]/get-schema.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":33153,"timestamp":3113418,"id":480,"parentId":281,"tags":{"name":"/app/pages/api/checkExistingFolder.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":33197,"timestamp":3113657,"id":496,"parentId":291,"tags":{"name":"/app/pages/api/exportDatabase.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":33842,"timestamp":3113391,"id":478,"parentId":274,"tags":{"name":"/app/pages/api/connect/handshake.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":34453,"timestamp":3113296,"id":475,"parentId":276,"tags":{"name":"/app/pages/api/user/[user_id]/get-user.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":34841,"timestamp":3113342,"id":477,"parentId":270,"tags":{"name":"/app/pages/api/user/[user_id]/github-login.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":35180,"timestamp":3113586,"id":490,"parentId":297,"tags":{"name":"/app/pages/api/sendPasswordResetLink.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":35691,"timestamp":3113734,"id":500,"parentId":305,"tags":{"name":"/app/pages/api/queryEntriesSearchTerm.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":35944,"timestamp":3113765,"id":503,"parentId":302,"tags":{"name":"/app/pages/api/resetPassword.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":37340,"timestamp":3113492,"id":485,"parentId":289,"tags":{"name":"/app/pages/api/addUserTable.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":37706,"timestamp":3113648,"id":495,"parentId":295,"tags":{"name":"/app/pages/api/media/getPrivateMedia.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":37943,"timestamp":3113712,"id":499,"parentId":300,"tags":{"name":"/app/pages/api/resetDelegatedDatabaseToken.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":38778,"timestamp":3113521,"id":488,"parentId":283,"tags":{"name":"/app/pages/api/user-schema/replace-database-schema.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":39254,"timestamp":3113665,"id":497,"parentId":288,"tags":{"name":"/app/pages/api/query/[user_id]/update-schema-from-single-database.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":39482,"timestamp":3113701,"id":498,"parentId":298,"tags":{"name":"/app/pages/api/reAuthenticateUser.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":39891,"timestamp":3113744,"id":501,"parentId":299,"tags":{"name":"/app/pages/api/downloadDatabaseSchema.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":40253,"timestamp":3113777,"id":504,"parentId":306,"tags":{"name":"/app/pages/api/runUserDbQuery.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-ts","duration":41025,"timestamp":3113807,"id":505,"parentId":307,"tags":{"name":"/app/pages/api/purgeDb.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":42198,"timestamp":3113753,"id":502,"parentId":303,"tags":{"name":"/app/pages/api/renameMedia.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":43882,"timestamp":3113640,"id":494,"parentId":293,"tags":{"name":"/app/pages/api/media/addPrivateMedia.ts","layer":"api"},"startTime":1736868335085,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21786,"timestamp":3204823,"id":515,"parentId":314,"tags":{"name":"/app/pages/api/addAdminUserUser.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22236,"timestamp":3204735,"id":513,"parentId":313,"tags":{"name":"/app/pages/api/social-login/utils/checkSocialId.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22771,"timestamp":3204581,"id":508,"parentId":312,"tags":{"name":"/app/pages/api/addNewMediaFolder.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":23009,"timestamp":3204699,"id":512,"parentId":301,"tags":{"name":"/app/pages/api/social-login/utils/checkEmail.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":23127,"timestamp":3204881,"id":519,"parentId":321,"tags":{"name":"/app/pages/api/social-login/utils/getEmailFromSocialId.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":23878,"timestamp":3204484,"id":506,"parentId":308,"tags":{"name":"/app/pages/api/deleteUserUser.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24039,"timestamp":3204793,"id":514,"parentId":315,"tags":{"name":"/app/pages/api/social-login/facebook-auth.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24839,"timestamp":3204556,"id":507,"parentId":311,"tags":{"name":"/app/pages/api/addDbUser.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25058,"timestamp":3204836,"id":516,"parentId":316,"tags":{"name":"/app/pages/api/user/[user_id]/reauth-user.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25775,"timestamp":3204614,"id":510,"parentId":304,"tags":{"name":"/app/pages/api/social-login/github-auth.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":26350,"timestamp":3204657,"id":511,"parentId":310,"tags":{"name":"/app/pages/api/social-login/google-auth.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":26733,"timestamp":3204869,"id":518,"parentId":322,"tags":{"name":"/app/pages/api/deleteUserMedia.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":27158,"timestamp":3204903,"id":520,"parentId":318,"tags":{"name":"/app/pages/api/addTableEntry.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":27535,"timestamp":3204945,"id":523,"parentId":325,"tags":{"name":"/app/pages/api/user/[user_id]/update-user.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":27918,"timestamp":3204914,"id":521,"parentId":319,"tags":{"name":"/app/pages/api/user/[user_id]/login-user.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":28260,"timestamp":3204968,"id":524,"parentId":324,"tags":{"name":"/app/pages/api/user/[user_id]/send-email-code.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":29306,"timestamp":3204859,"id":517,"parentId":317,"tags":{"name":"/app/pages/api/deleteUserTable.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":29844,"timestamp":3205009,"id":527,"parentId":327,"tags":{"name":"/app/pages/api/addApiKey.ts","layer":"api"},"startTime":1736868335177,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":30571,"timestamp":3204934,"id":522,"parentId":320,"tags":{"name":"/app/pages/api/acceptUserInvitation.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31185,"timestamp":3204997,"id":526,"parentId":328,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736868335177,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":32073,"timestamp":3204988,"id":525,"parentId":326,"tags":{"name":"/app/pages/api/addSocialLogin.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":33634,"timestamp":3204603,"id":509,"parentId":309,"tags":{"name":"/app/pages/api/registerUser.ts","layer":"api"},"startTime":1736868335176,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":43,"timestamp":3270205,"id":530,"parentId":418,"tags":{"name":"fs","layer":null},"startTime":1736868335242,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6,"timestamp":3270288,"id":531,"parentId":410,"tags":{"name":"next/dist/compiled/next-server/pages.runtime.prod.js","layer":null},"startTime":1736868335242,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6,"timestamp":3270304,"id":532,"parentId":412,"tags":{"name":"next/dist/compiled/next-server/pages-api.runtime.prod.js","layer":null},"startTime":1736868335242,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15784,"timestamp":3270186,"id":529,"parentId":404,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736868335242,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16842,"timestamp":3270118,"id":528,"parentId":323,"tags":{"name":"/app/pages/api/webhooks/github-push.ts","layer":"api"},"startTime":1736868335242,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17508,"timestamp":3270314,"id":533,"parentId":330,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736868335242,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1187784,"timestamp":2100997,"id":46,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fcors&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fcors.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1187597,"timestamp":2101244,"id":64,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclientError&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclientError.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1187599,"timestamp":2101274,"id":71,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fhealthcheck&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fhealthcheck.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":18,"timestamp":3289564,"id":544,"parentId":423,"tags":{"name":"path","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8287,"timestamp":3289216,"id":534,"parentId":332,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8418,"timestamp":3289600,"id":545,"parentId":339,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9650,"timestamp":3289397,"id":539,"parentId":331,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10250,"timestamp":3289466,"id":541,"parentId":334,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10939,"timestamp":3289383,"id":538,"parentId":335,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11663,"timestamp":3289293,"id":535,"parentId":329,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12202,"timestamp":3289532,"id":543,"parentId":337,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13020,"timestamp":3289434,"id":540,"parentId":336,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13775,"timestamp":3289501,"id":542,"parentId":333,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16729,"timestamp":3289321,"id":536,"parentId":406,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27935,"timestamp":3289352,"id":537,"parentId":411,"tags":{"name":"/app/node_modules/next/dist/pages/_document.js","layer":null},"startTime":1736868335261,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1218804,"timestamp":2101252,"id":66,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fstream%2F%5Bpath%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fstream%2F%5Bpath%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17730,"timestamp":3385651,"id":546,"parentId":340,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18226,"timestamp":3385867,"id":549,"parentId":341,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18831,"timestamp":3385957,"id":552,"parentId":348,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19672,"timestamp":3385770,"id":547,"parentId":342,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20393,"timestamp":3385931,"id":551,"parentId":344,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21252,"timestamp":3385904,"id":550,"parentId":343,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22141,"timestamp":3385811,"id":548,"parentId":338,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736868335357,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5693,"timestamp":3472827,"id":555,"parentId":347,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736868335444,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6631,"timestamp":3472704,"id":553,"parentId":345,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736868335444,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7428,"timestamp":3472850,"id":556,"parentId":352,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736868335444,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8390,"timestamp":3472798,"id":554,"parentId":346,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736868335444,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18107,"timestamp":3507108,"id":557,"parentId":349,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736868335479,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6503,"timestamp":3528520,"id":569,"parentId":364,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7091,"timestamp":3528451,"id":566,"parentId":361,"tags":{"name":"/app/pages/api/fetch-media.ts","layer":"api"},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7706,"timestamp":3528352,"id":562,"parentId":358,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8421,"timestamp":3528261,"id":559,"parentId":353,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8853,"timestamp":3528328,"id":561,"parentId":354,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9568,"timestamp":3528438,"id":565,"parentId":357,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10588,"timestamp":3528184,"id":558,"parentId":350,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11289,"timestamp":3528364,"id":563,"parentId":355,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11560,"timestamp":3528602,"id":573,"parentId":366,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12584,"timestamp":3528466,"id":567,"parentId":359,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13593,"timestamp":3528535,"id":570,"parentId":365,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15244,"timestamp":3528290,"id":560,"parentId":351,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16426,"timestamp":3528398,"id":564,"parentId":356,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17039,"timestamp":3528578,"id":572,"parentId":367,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18818,"timestamp":3528506,"id":568,"parentId":360,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19698,"timestamp":3528549,"id":571,"parentId":363,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736868335500,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1452406,"timestamp":2101764,"id":170,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-media&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-media.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8389,"timestamp":3642760,"id":574,"parentId":362,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8703,"timestamp":3642900,"id":581,"parentId":376,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9086,"timestamp":3642891,"id":580,"parentId":375,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9444,"timestamp":3642909,"id":582,"parentId":374,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10048,"timestamp":3642867,"id":578,"parentId":368,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10315,"timestamp":3642981,"id":586,"parentId":377,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11168,"timestamp":3642857,"id":577,"parentId":369,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11748,"timestamp":3642880,"id":579,"parentId":373,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12345,"timestamp":3642847,"id":576,"parentId":371,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12886,"timestamp":3642831,"id":575,"parentId":370,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13671,"timestamp":3642952,"id":584,"parentId":378,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14708,"timestamp":3642922,"id":583,"parentId":372,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15595,"timestamp":3642970,"id":585,"parentId":381,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16039,"timestamp":3642992,"id":587,"parentId":380,"tags":{"name":"/app/pages/api/exportTableData.ts","layer":"api"},"startTime":1736868335614,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16540,"timestamp":3643002,"id":588,"parentId":382,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736868335615,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":33,"timestamp":3711702,"id":605,"parentId":442,"tags":{"name":"os","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":6,"timestamp":3711756,"id":606,"parentId":442,"tags":{"name":"child_process","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6164,"timestamp":3711485,"id":592,"parentId":385,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6685,"timestamp":3711470,"id":591,"parentId":383,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7064,"timestamp":3711551,"id":596,"parentId":389,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7544,"timestamp":3711495,"id":593,"parentId":386,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8231,"timestamp":3711439,"id":590,"parentId":384,"tags":{"name":"/app/pages/api/query/[user_id]/get-private-file.ts","layer":"api"},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8561,"timestamp":3711540,"id":595,"parentId":387,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8934,"timestamp":3711665,"id":602,"parentId":400,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9669,"timestamp":3711575,"id":598,"parentId":393,"tags":{"name":"/app/pages/api/query/[user_id]/post.ts","layer":"api"},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-tsx","duration":10570,"timestamp":3711361,"id":589,"parentId":379,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11050,"timestamp":3711590,"id":599,"parentId":391,"tags":{"name":"/app/pages/api/query/[user_id]/add-image.ts","layer":"api"},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12050,"timestamp":3711511,"id":594,"parentId":390,"tags":{"name":"/app/pages/api/query/[user_id]/delete-file.ts","layer":"api"},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12794,"timestamp":3711614,"id":600,"parentId":394,"tags":{"name":"/app/pages/api/query/[user_id]/add-file.ts","layer":"api"},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13925,"timestamp":3711675,"id":603,"parentId":399,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14302,"timestamp":3711771,"id":607,"parentId":392,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14889,"timestamp":3711686,"id":604,"parentId":398,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16595,"timestamp":3711562,"id":597,"parentId":396,"tags":{"name":"/app/pages/api/addUserMedia.ts","layer":"api"},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17884,"timestamp":3711652,"id":601,"parentId":388,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736868335683,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":33,"timestamp":3801875,"id":611,"parentId":422,"tags":{"name":"@moduletrace/datasquirel","layer":null},"startTime":1736868335773,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":9,"timestamp":3802371,"id":614,"parentId":430,"tags":{"name":"lodash","layer":null},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":1197,"timestamp":3801925,"id":612,"parentId":404,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736868335773,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":857,"timestamp":3802346,"id":613,"parentId":404,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-cjs","duration":5784,"timestamp":3802393,"id":615,"parentId":406,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","layer":null},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5982,"timestamp":3802600,"id":618,"parentId":420,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":"api"},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6400,"timestamp":3802615,"id":619,"parentId":419,"tags":{"name":"/app/functions/backend/checkUserRights.ts","layer":"api"},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7564,"timestamp":3801859,"id":610,"parentId":401,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736868335773,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7118,"timestamp":3802585,"id":617,"parentId":413,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8196,"timestamp":3802543,"id":616,"parentId":404,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736868335774,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10066,"timestamp":3801761,"id":608,"parentId":395,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736868335773,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11111,"timestamp":3801824,"id":609,"parentId":397,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736868335773,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":29,"timestamp":3835129,"id":623,"parentId":463,"tags":{"name":"url","layer":null},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6746,"timestamp":3835191,"id":625,"parentId":414,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6990,"timestamp":3835362,"id":633,"parentId":439,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7428,"timestamp":3835342,"id":632,"parentId":424,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7671,"timestamp":3835412,"id":635,"parentId":417,"tags":{"name":"/app/package-shared/functions/dsql/hashPassword.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8227,"timestamp":3835211,"id":627,"parentId":426,"tags":{"name":"/app/functions/backend/handleTableEntryOrder.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8724,"timestamp":3835113,"id":622,"parentId":418,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9567,"timestamp":3835201,"id":626,"parentId":413,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10198,"timestamp":3835087,"id":621,"parentId":423,"tags":{"name":"/app/functions/backend/deleteFolderRecursively.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10326,"timestamp":3835382,"id":634,"parentId":425,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11064,"timestamp":3835281,"id":630,"parentId":416,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11730,"timestamp":3835002,"id":620,"parentId":419,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11960,"timestamp":3835175,"id":624,"parentId":413,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12369,"timestamp":3835308,"id":631,"parentId":431,"tags":{"name":"/app/package-shared/functions/backend/handleNodemailer.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12988,"timestamp":3835257,"id":629,"parentId":419,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13215,"timestamp":3835431,"id":636,"parentId":438,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14178,"timestamp":3835236,"id":628,"parentId":439,"tags":{"name":"/app/functions/backend/updateSchemaData.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15109,"timestamp":3835454,"id":637,"parentId":441,"tags":{"name":"/app/package-shared/shell/createDbFromSchema.ts","layer":"api"},"startTime":1736868335807,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1753859,"timestamp":2100961,"id":39,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FlogoutUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FlogoutUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1754399,"timestamp":2100952,"id":38,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FloginUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FloginUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3101,"timestamp":3867202,"id":638,"parentId":420,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":"api"},"startTime":1736868335839,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":27,"timestamp":3873898,"id":641,"parentId":487,"tags":{"name":"generate-password","layer":null},"startTime":1736868335845,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5,"timestamp":3873938,"id":642,"parentId":453,"tags":{"name":"google-auth-library","layer":null},"startTime":1736868335845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":631,"timestamp":3873950,"id":643,"parentId":470,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":"api"},"startTime":1736868335845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":670,"timestamp":3873976,"id":644,"parentId":470,"tags":{"name":"/app/package-shared/data/presets/users.json","layer":"api"},"startTime":1736868335845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":2448,"timestamp":3873811,"id":639,"parentId":419,"tags":{"name":"/app/package-shared/functions/backend/db/deleteDbEntry.ts","layer":"api"},"startTime":1736868335845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3708,"timestamp":3873868,"id":640,"parentId":426,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":"api"},"startTime":1736868335845,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":26,"timestamp":3891899,"id":647,"parentId":528,"tags":{"name":"crypto","layer":null},"startTime":1736868335863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15600,"timestamp":3892022,"id":651,"parentId":462,"tags":{"name":"/app/functions/backend/admin/deleteDocPage.ts","layer":"api"},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15705,"timestamp":3892166,"id":656,"parentId":545,"tags":{"name":"/app/functions/backend/userAuth.ts","layer":null},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16616,"timestamp":3891778,"id":645,"parentId":466,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":"api"},"startTime":1736868335863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17164,"timestamp":3891944,"id":648,"parentId":466,"tags":{"name":"/app/package-shared/functions/backend/api-cred.ts","layer":"api"},"startTime":1736868335863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17751,"timestamp":3891974,"id":649,"parentId":452,"tags":{"name":"/app/functions/backend/fsWriteImageToDisk.ts","layer":"api"},"startTime":1736868335863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18169,"timestamp":3892003,"id":650,"parentId":444,"tags":{"name":"/app/functions/backend/delegatedUser.ts","layer":"api"},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18768,"timestamp":3891867,"id":646,"parentId":462,"tags":{"name":"/app/functions/backend/admin/addDocPage.ts","layer":"api"},"startTime":1736868335863,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18891,"timestamp":3892107,"id":654,"parentId":450,"tags":{"name":"/app/functions/backend/copyFolderRecursively.ts","layer":"api"},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19458,"timestamp":3892083,"id":653,"parentId":444,"tags":{"name":"/app/functions/backend/importExportTableDataFn.ts","layer":"api"},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20511,"timestamp":3892055,"id":652,"parentId":461,"tags":{"name":"/app/functions/backend/createDbSchemaFromDb.ts","layer":"api"},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23723,"timestamp":3892135,"id":655,"parentId":529,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736868335864,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1817509,"timestamp":2101609,"id":131,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fwebhooks%2Fgithub-push&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fwebhooks%2Fgithub-push.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1823363,"timestamp":2101003,"id":47,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgrab-google-user-from-token.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1823012,"timestamp":2101410,"id":95,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11699,"timestamp":3935448,"id":670,"parentId":536,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12442,"timestamp":3935122,"id":659,"parentId":462,"tags":{"name":"/app/functions/backend/admin/grabChildPages.ts","layer":"api"},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12715,"timestamp":3935095,"id":658,"parentId":462,"tags":{"name":"/app/functions/backend/admin/grabParentPages.ts","layer":"api"},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12876,"timestamp":3935281,"id":665,"parentId":545,"tags":{"name":"/app/package-shared/utils/backend/global-db/DB_HANDLER.ts","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13411,"timestamp":3935150,"id":660,"parentId":462,"tags":{"name":"/app/functions/backend/admin/getSnippets.ts","layer":"api"},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13657,"timestamp":3935228,"id":663,"parentId":545,"tags":{"name":"/app/package-shared/functions/backend/noDatabaseDbHandler.ts","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14065,"timestamp":3935256,"id":664,"parentId":533,"tags":{"name":"/app/package-shared/functions/dsql/decrypt.ts","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14638,"timestamp":3935200,"id":662,"parentId":462,"tags":{"name":"/app/functions/backend/admin/persistDocs.ts","layer":"api"},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15505,"timestamp":3935012,"id":657,"parentId":463,"tags":{"name":"/app/package-shared/functions/backend/httpsRequest.ts","layer":"api"},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16485,"timestamp":3935176,"id":661,"parentId":457,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":"api"},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16833,"timestamp":3935415,"id":669,"parentId":536,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17240,"timestamp":3935362,"id":668,"parentId":536,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18061,"timestamp":3935332,"id":667,"parentId":536,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20380,"timestamp":3935305,"id":666,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736868335907,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9019,"timestamp":3959645,"id":671,"parentId":536,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-cjs","duration":9826,"timestamp":3959719,"id":672,"parentId":536,"tags":{"name":"/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10132,"timestamp":3959755,"id":673,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/server/get-page-files.js","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10987,"timestamp":3959779,"id":674,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/server/utils.js","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11478,"timestamp":3959799,"id":675,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/server/htmlescape.js","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12104,"timestamp":3959875,"id":677,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12553,"timestamp":3959826,"id":676,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736868335931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":972,"timestamp":3976086,"id":697,"parentId":542,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736868335948,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4815,"timestamp":3975473,"id":678,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/lib/pretty-bytes.js","layer":null},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7196,"timestamp":3975696,"id":684,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/tracer.js","layer":null},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7390,"timestamp":3975723,"id":685,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/utils.js","layer":null},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7361,"timestamp":3975863,"id":689,"parentId":537,"tags":{"name":"/app/node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","layer":null},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7945,"timestamp":3975637,"id":682,"parentId":540,"tags":{"name":"/app/package-shared/functions/backend/grabUserSchemaData.ts","layer":null},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8320,"timestamp":3975546,"id":679,"parentId":485,"tags":{"name":"/app/package-shared/functions/backend/setUserSchemaData.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8269,"timestamp":3975950,"id":691,"parentId":475,"tags":{"name":"/app/package-shared/functions/api/users/api-get-user.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8639,"timestamp":3975837,"id":688,"parentId":482,"tags":{"name":"/app/package-shared/functions/api/users/api-delete-user.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9266,"timestamp":3975670,"id":683,"parentId":540,"tags":{"name":"/app/package-shared/functions/backend/varDatabaseDbHandler.ts","layer":null},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9761,"timestamp":3975619,"id":681,"parentId":496,"tags":{"name":"/app/functions/backend/exportDb.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10513,"timestamp":3975595,"id":680,"parentId":478,"tags":{"name":"/app/functions/backend/dbSchemaExec.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10817,"timestamp":3975800,"id":687,"parentId":455,"tags":{"name":"/app/package-shared/functions/api/users/social/api-google-login.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11208,"timestamp":3975899,"id":690,"parentId":477,"tags":{"name":"/app/package-shared/functions/api/users/social/api-github-login.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11467,"timestamp":3976075,"id":696,"parentId":502,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":"api"},"startTime":1736868335948,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11924,"timestamp":3976003,"id":693,"parentId":543,"tags":{"name":"/app/functions/backend/grabDelegatedUserFromCookie.ts","layer":null},"startTime":1736868335948,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12478,"timestamp":3976034,"id":694,"parentId":498,"tags":{"name":"/app/functions/backend/reAuthUser.ts","layer":"api"},"startTime":1736868335948,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-ts","duration":13296,"timestamp":3976050,"id":695,"parentId":492,"tags":{"name":"/app/package-shared/functions/api/query/get.ts","layer":"api"},"startTime":1736868335948,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14263,"timestamp":3975978,"id":692,"parentId":493,"tags":{"name":"/app/package-shared/functions/api/users/api-create-user.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15883,"timestamp":3975772,"id":686,"parentId":467,"tags":{"name":"/app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts","layer":"api"},"startTime":1736868335947,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1892229,"timestamp":2101853,"id":193,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget-private-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1900899,"timestamp":2101362,"id":84,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fget-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1901221,"timestamp":2101402,"id":93,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fdelete-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6157,"timestamp":4012857,"id":708,"parentId":551,"tags":{"name":"/app/functions/backend/grabPaths.ts","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6767,"timestamp":4012937,"id":712,"parentId":510,"tags":{"name":"/app/package-shared/shell/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7327,"timestamp":4012796,"id":705,"parentId":510,"tags":{"name":"/app/package-shared/functions/api/social-login/githubLogin.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7854,"timestamp":4012670,"id":700,"parentId":509,"tags":{"name":"/app/package-shared/functions/backend/addMariadbUser.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8320,"timestamp":4012697,"id":701,"parentId":516,"tags":{"name":"/app/package-shared/functions/api/users/api-reauth-user.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8404,"timestamp":4012892,"id":710,"parentId":526,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8708,"timestamp":4012915,"id":711,"parentId":526,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9294,"timestamp":4012872,"id":709,"parentId":548,"tags":{"name":"/app/package-shared/functions/backend/serverError.ts","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9927,"timestamp":4012749,"id":703,"parentId":523,"tags":{"name":"/app/package-shared/functions/api/users/api-update-user.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10473,"timestamp":4012722,"id":702,"parentId":515,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11416,"timestamp":4012643,"id":699,"parentId":508,"tags":{"name":"/app/package-shared/functions/backend/db/sanitizeSql.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12238,"timestamp":4012561,"id":698,"parentId":524,"tags":{"name":"/app/package-shared/functions/api/users/api-send-email-code.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12572,"timestamp":4012819,"id":706,"parentId":545,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12701,"timestamp":4012959,"id":713,"parentId":526,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13900,"timestamp":4012775,"id":704,"parentId":521,"tags":{"name":"/app/package-shared/functions/api/users/api-login.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15005,"timestamp":4012834,"id":707,"parentId":514,"tags":{"name":"/app/package-shared/functions/api/social-login/handleSocialDb.ts","layer":"api"},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15532,"timestamp":4012995,"id":715,"parentId":545,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736868335985,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17103,"timestamp":4012974,"id":714,"parentId":541,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736868335984,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1938525,"timestamp":2101562,"id":124,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Freauth-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1942058,"timestamp":2101614,"id":133,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fupdate-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9979,"timestamp":4061129,"id":717,"parentId":533,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10024,"timestamp":4061322,"id":724,"parentId":538,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10445,"timestamp":4061186,"id":719,"parentId":533,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10706,"timestamp":4061264,"id":722,"parentId":539,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11142,"timestamp":4061209,"id":720,"parentId":534,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11244,"timestamp":4061453,"id":729,"parentId":535,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11986,"timestamp":4061161,"id":718,"parentId":533,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12310,"timestamp":4061232,"id":721,"parentId":534,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12885,"timestamp":4061047,"id":716,"parentId":545,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13047,"timestamp":4061366,"id":726,"parentId":540,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13111,"timestamp":4061505,"id":731,"parentId":535,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13951,"timestamp":4061307,"id":723,"parentId":538,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13969,"timestamp":4061551,"id":733,"parentId":542,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14308,"timestamp":4061530,"id":732,"parentId":542,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15369,"timestamp":4061343,"id":725,"parentId":538,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17041,"timestamp":4061600,"id":735,"parentId":552,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18018,"timestamp":4061481,"id":730,"parentId":535,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19159,"timestamp":4061428,"id":728,"parentId":543,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20433,"timestamp":4061402,"id":727,"parentId":541,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21767,"timestamp":4061621,"id":736,"parentId":552,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23618,"timestamp":4061576,"id":734,"parentId":549,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736868336033,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":33,"timestamp":4137726,"id":741,"parentId":575,"tags":{"name":"next/head","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9809,"timestamp":4137643,"id":738,"parentId":551,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10384,"timestamp":4137547,"id":737,"parentId":581,"tags":{"name":"/app/functions/backend/suAdminUserAuth.ts","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10696,"timestamp":4137660,"id":739,"parentId":547,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11186,"timestamp":4137699,"id":740,"parentId":551,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12032,"timestamp":4137791,"id":742,"parentId":546,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12418,"timestamp":4137837,"id":743,"parentId":551,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13092,"timestamp":4137933,"id":746,"parentId":551,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13831,"timestamp":4137881,"id":744,"parentId":551,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14598,"timestamp":4137957,"id":747,"parentId":551,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15652,"timestamp":4137909,"id":745,"parentId":551,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17147,"timestamp":4137977,"id":748,"parentId":551,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736868336109,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":5956,"timestamp":4204346,"id":752,"parentId":582,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6504,"timestamp":4204456,"id":756,"parentId":603,"tags":{"name":"/app/package-shared/functions/backend/cookies/get-auth-cookie-names.ts","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7263,"timestamp":4204177,"id":749,"parentId":551,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7652,"timestamp":4204306,"id":751,"parentId":553,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7761,"timestamp":4204541,"id":758,"parentId":555,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8406,"timestamp":4204276,"id":750,"parentId":556,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8893,"timestamp":4204366,"id":753,"parentId":550,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9540,"timestamp":4204426,"id":755,"parentId":603,"tags":{"name":"/app/package-shared/functions/backend/addAdminUserOnLogin.ts","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10178,"timestamp":4204502,"id":757,"parentId":548,"tags":{"name":"/app/functions/backend/grabTableSchemaData.ts","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10867,"timestamp":4204603,"id":759,"parentId":553,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12261,"timestamp":4204401,"id":754,"parentId":548,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736868336176,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":41,"timestamp":4251625,"id":769,"parentId":636,"tags":{"name":"buffer","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8,"timestamp":4251851,"id":778,"parentId":608,"tags":{"name":"serverless-mysql","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4,"timestamp":4251866,"id":779,"parentId":618,"tags":{"name":"@moduletrace/datasquirel/dist/users/user-auth","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4551,"timestamp":4251686,"id":770,"parentId":573,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5126,"timestamp":4251439,"id":762,"parentId":562,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5523,"timestamp":4251524,"id":765,"parentId":557,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5526,"timestamp":4251779,"id":775,"parentId":568,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6308,"timestamp":4251411,"id":761,"parentId":548,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6674,"timestamp":4251575,"id":767,"parentId":554,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6825,"timestamp":4251768,"id":774,"parentId":569,"tags":{"name":"/app/components/pages/logout/index.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7484,"timestamp":4251549,"id":766,"parentId":559,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7756,"timestamp":4251743,"id":773,"parentId":563,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8555,"timestamp":4251498,"id":764,"parentId":562,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9372,"timestamp":4251330,"id":760,"parentId":556,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9623,"timestamp":4251703,"id":771,"parentId":564,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10605,"timestamp":4251601,"id":768,"parentId":558,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11153,"timestamp":4251805,"id":776,"parentId":567,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12096,"timestamp":4251728,"id":772,"parentId":573,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13180,"timestamp":4251828,"id":777,"parentId":572,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14278,"timestamp":4251879,"id":780,"parentId":571,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16365,"timestamp":4251468,"id":763,"parentId":561,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17406,"timestamp":4251905,"id":781,"parentId":560,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736868336223,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172072,"timestamp":2101333,"id":81,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserSchemaData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserSchemaData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172157,"timestamp":2101350,"id":83,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FclientSideAuth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FclientSideAuth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172148,"timestamp":2101390,"id":89,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckExistingFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckExistingFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172124,"timestamp":2101435,"id":99,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172091,"timestamp":2101486,"id":108,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172130,"timestamp":2101466,"id":106,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FreAuthenticateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FreAuthenticateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172137,"timestamp":2101479,"id":107,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdownloadDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdownloadDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172092,"timestamp":2101542,"id":120,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddNewMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddNewMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2172036,"timestamp":2101622,"id":134,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddSocialLogin&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddSocialLogin.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"}] +[{"name":"add-entry","duration":2172460,"timestamp":2101458,"id":103,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FgetPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FgetPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":31,"timestamp":4316152,"id":783,"parentId":655,"tags":{"name":"react-dom","layer":null},"startTime":1736868336288,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9575,"timestamp":4316201,"id":784,"parentId":586,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736868336288,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10086,"timestamp":4316215,"id":785,"parentId":577,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736868336288,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10811,"timestamp":4316077,"id":782,"parentId":581,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736868336288,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":26,"timestamp":4332524,"id":791,"parentId":657,"tags":{"name":"https","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":5,"timestamp":4332566,"id":792,"parentId":657,"tags":{"name":"http","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":4,"timestamp":4332577,"id":793,"parentId":649,"tags":{"name":"node-fetch","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3,"timestamp":4332585,"id":794,"parentId":649,"tags":{"name":"sharp","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":8,"timestamp":4332739,"id":801,"parentId":631,"tags":{"name":"nodemailer","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4178,"timestamp":4332823,"id":805,"parentId":584,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4619,"timestamp":4332813,"id":804,"parentId":637,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":"api"},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4939,"timestamp":4332789,"id":803,"parentId":576,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5269,"timestamp":4332726,"id":800,"parentId":575,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5925,"timestamp":4332295,"id":786,"parentId":574,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5889,"timestamp":4332643,"id":796,"parentId":575,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6215,"timestamp":4332657,"id":797,"parentId":579,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6553,"timestamp":4332689,"id":798,"parentId":579,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7184,"timestamp":4332703,"id":799,"parentId":588,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7704,"timestamp":4332833,"id":806,"parentId":575,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8955,"timestamp":4332355,"id":787,"parentId":582,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8986,"timestamp":4332594,"id":795,"parentId":666,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9884,"timestamp":4332425,"id":789,"parentId":655,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9854,"timestamp":4332755,"id":802,"parentId":677,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11394,"timestamp":4332366,"id":788,"parentId":580,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11826,"timestamp":4332484,"id":790,"parentId":655,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736868336304,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2246454,"timestamp":2101258,"id":67,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fverify&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fverify.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2246885,"timestamp":2100904,"id":35,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ftest%2Fmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ftest%2Fmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2246433,"timestamp":2101385,"id":88,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fcontact.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":38,"timestamp":4361561,"id":807,"parentId":625,"tags":{"name":"@moduletrace/datasquirel/dist/client/fetch","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":22,"timestamp":4362045,"id":822,"parentId":640,"tags":{"name":"sanitize-html","layer":null},"startTime":1736868336334,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10772,"timestamp":4361817,"id":812,"parentId":684,"tags":{"name":"/app/node_modules/next/dist/server/lib/trace/constants.js","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22365,"timestamp":4361848,"id":813,"parentId":684,"tags":{"name":"/app/node_modules/next/dist/compiled/@opentelemetry/api/index.js","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":23396,"timestamp":4361617,"id":808,"parentId":581,"tags":{"name":"/app/functions/backend/su/get-servers.ts","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23286,"timestamp":4362016,"id":821,"parentId":596,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736868336334,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23555,"timestamp":4361970,"id":818,"parentId":585,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24011,"timestamp":4361892,"id":815,"parentId":581,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24347,"timestamp":4361923,"id":816,"parentId":576,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24779,"timestamp":4362116,"id":824,"parentId":598,"tags":{"name":"/app/package-shared/functions/api/query/post.ts","layer":"api"},"startTime":1736868336334,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25642,"timestamp":4362004,"id":820,"parentId":591,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736868336334,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":26246,"timestamp":4362084,"id":823,"parentId":589,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736868336334,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27086,"timestamp":4361875,"id":814,"parentId":592,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27666,"timestamp":4361988,"id":819,"parentId":593,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28643,"timestamp":4361943,"id":817,"parentId":583,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":29287,"timestamp":4361782,"id":811,"parentId":684,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-thenable.js","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":29704,"timestamp":4361682,"id":809,"parentId":673,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":30102,"timestamp":4361734,"id":810,"parentId":673,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","layer":null},"startTime":1736868336333,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2291858,"timestamp":2101827,"id":187,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2292152,"timestamp":2101627,"id":136,"parentId":18,"tags":{"request":"private-next-pages/_app.tsx"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2294205,"timestamp":2100214,"id":19,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=next%2Fdist%2Fpages%2F_error&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2292700,"timestamp":2101748,"id":166,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fredirect&preferredRegion=&absolutePagePath=private-next-pages%2Fredirect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":29,"timestamp":4413199,"id":835,"parentId":686,"tags":{"name":"dotenv","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11159,"timestamp":4413146,"id":833,"parentId":617,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11291,"timestamp":4413301,"id":838,"parentId":610,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11838,"timestamp":4413072,"id":830,"parentId":607,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12195,"timestamp":4413037,"id":828,"parentId":604,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12335,"timestamp":4413273,"id":837,"parentId":608,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12854,"timestamp":4413093,"id":831,"parentId":607,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13341,"timestamp":4413180,"id":834,"parentId":617,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13941,"timestamp":4412977,"id":826,"parentId":603,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736868336384,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14302,"timestamp":4413117,"id":832,"parentId":617,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15027,"timestamp":4413004,"id":827,"parentId":604,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15517,"timestamp":4413061,"id":829,"parentId":607,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16449,"timestamp":4412885,"id":825,"parentId":597,"tags":{"name":"/app/functions/backend/fsWriteImageToDiskFromBase64.ts","layer":"api"},"startTime":1736868336384,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17143,"timestamp":4413243,"id":836,"parentId":617,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24228,"timestamp":4413316,"id":839,"parentId":711,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336385,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2339672,"timestamp":2101918,"id":210,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fblog&preferredRegion=&absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4162,"timestamp":4453406,"id":840,"parentId":714,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4824,"timestamp":4453981,"id":860,"parentId":746,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6247,"timestamp":4454003,"id":861,"parentId":747,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336426,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2359909,"timestamp":2101894,"id":204,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2360084,"timestamp":2101899,"id":206,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18079,"timestamp":4453638,"id":846,"parentId":637,"tags":{"name":"/app/package-shared/shell/utils/noDatabaseDbHandler.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18570,"timestamp":4453536,"id":842,"parentId":664,"tags":{"name":"/app/package-shared/utils/grab-keys.ts","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18913,"timestamp":4453501,"id":841,"parentId":635,"tags":{"name":"/app/package-shared/utils/grab-keys.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19131,"timestamp":4453606,"id":845,"parentId":627,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19533,"timestamp":4453583,"id":844,"parentId":683,"tags":{"name":"/app/package-shared/utils/grab-dsql-connection.ts","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19955,"timestamp":4453556,"id":843,"parentId":630,"tags":{"name":"/app/package-shared/utils/grab-dsql-connection.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20113,"timestamp":4453744,"id":850,"parentId":663,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20478,"timestamp":4453711,"id":849,"parentId":632,"tags":{"name":"/app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20950,"timestamp":4453769,"id":851,"parentId":630,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21330,"timestamp":4453814,"id":853,"parentId":630,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21757,"timestamp":4453792,"id":852,"parentId":683,"tags":{"name":"/app/package-shared/functions/backend/parseDbResults.ts","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21902,"timestamp":4453925,"id":858,"parentId":646,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22197,"timestamp":4453902,"id":857,"parentId":700,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22632,"timestamp":4453837,"id":854,"parentId":683,"tags":{"name":"/app/package-shared/utils/db/conn-db-handler.ts","layer":null},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22747,"timestamp":4453959,"id":859,"parentId":652,"tags":{"name":"/app/package-shared/shell/utils/slugToCamelTitle.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24010,"timestamp":4453666,"id":847,"parentId":637,"tags":{"name":"/app/package-shared/shell/utils/createTable.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24216,"timestamp":4453861,"id":855,"parentId":637,"tags":{"name":"/app/package-shared/shell/utils/dbHandler.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24489,"timestamp":4453880,"id":856,"parentId":637,"tags":{"name":"/app/package-shared/shell/utils/varDatabaseDbHandler.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24715,"timestamp":4454048,"id":863,"parentId":698,"tags":{"name":"/app/package-shared/utils/serialize-cookies.ts","layer":"api"},"startTime":1736868336426,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25343,"timestamp":4454026,"id":862,"parentId":692,"tags":{"name":"/app/package-shared/functions/backend/updateUsersTableSchema.ts","layer":"api"},"startTime":1736868336426,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":25904,"timestamp":4454075,"id":864,"parentId":692,"tags":{"name":"/app/package-shared/functions/backend/addUsersTableToDb.ts","layer":"api"},"startTime":1736868336426,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":28794,"timestamp":4453686,"id":848,"parentId":637,"tags":{"name":"/app/package-shared/shell/utils/updateTable.ts","layer":"api"},"startTime":1736868336425,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2386898,"timestamp":2101612,"id":132,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fsend-email-code.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2392479,"timestamp":2101551,"id":122,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddAdminUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddAdminUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396205,"timestamp":2101605,"id":130,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396843,"timestamp":2101008,"id":48,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396565,"timestamp":2101307,"id":76,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fdisconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fdisconnect.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396488,"timestamp":2101405,"id":94,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396578,"timestamp":2101338,"id":82,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect%2Fhandshake&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Fhandshake.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"}] +[{"name":"add-entry","duration":2396296,"timestamp":2101882,"id":200,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-image.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396312,"timestamp":2101890,"id":203,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fadd-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396320,"timestamp":2101896,"id":205,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2396411,"timestamp":2101831,"id":189,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FexportTableData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FexportTableData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2397024,"timestamp":2101236,"id":62,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":1125,"timestamp":4508048,"id":869,"parentId":736,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3453,"timestamp":4508019,"id":868,"parentId":748,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3380,"timestamp":4508609,"id":894,"parentId":761,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6067,"timestamp":4508082,"id":871,"parentId":704,"tags":{"name":"/app/package-shared/utils/grab-db-full-name.ts","layer":"api"},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7361,"timestamp":4507882,"id":865,"parentId":690,"tags":{"name":"/app/package-shared/utils/camelJoinedtoCamelSpace.ts","layer":"api"},"startTime":1736868336479,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7729,"timestamp":4508181,"id":875,"parentId":714,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8195,"timestamp":4508215,"id":877,"parentId":710,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9079,"timestamp":4508106,"id":872,"parentId":707,"tags":{"name":"/app/package-shared/functions/api/social-login/loginSocialUser.ts","layer":"api"},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9376,"timestamp":4508308,"id":881,"parentId":719,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9815,"timestamp":4508285,"id":880,"parentId":722,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10399,"timestamp":4508241,"id":878,"parentId":710,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11180,"timestamp":4508136,"id":873,"parentId":714,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11968,"timestamp":4507966,"id":866,"parentId":686,"tags":{"name":"/app/package-shared/shell/mariadb-users/handleGrants.ts","layer":"api"},"startTime":1736868336479,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12273,"timestamp":4508159,"id":874,"parentId":715,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12830,"timestamp":4508060,"id":870,"parentId":706,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12740,"timestamp":4508332,"id":882,"parentId":722,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13965,"timestamp":4507993,"id":867,"parentId":695,"tags":{"name":"/app/package-shared/functions/backend/db/runQuery.ts","layer":"api"},"startTime":1736868336479,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13788,"timestamp":4508540,"id":891,"parentId":722,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13886,"timestamp":4508680,"id":897,"parentId":730,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14262,"timestamp":4508632,"id":895,"parentId":733,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14590,"timestamp":4508566,"id":892,"parentId":729,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15817,"timestamp":4508265,"id":879,"parentId":717,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15992,"timestamp":4508482,"id":888,"parentId":720,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16480,"timestamp":4508461,"id":887,"parentId":706,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16660,"timestamp":4508709,"id":898,"parentId":735,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17316,"timestamp":4508504,"id":889,"parentId":720,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17756,"timestamp":4508396,"id":885,"parentId":755,"tags":{"name":"/app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18147,"timestamp":4508722,"id":899,"parentId":727,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19270,"timestamp":4508525,"id":890,"parentId":721,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20110,"timestamp":4508344,"id":883,"parentId":719,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21371,"timestamp":4508193,"id":876,"parentId":715,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21711,"timestamp":4508424,"id":886,"parentId":706,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22754,"timestamp":4508367,"id":884,"parentId":755,"tags":{"name":"/app/package-shared/functions/backend/db/addDbEntry.ts","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23648,"timestamp":4508585,"id":893,"parentId":726,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25282,"timestamp":4508657,"id":896,"parentId":732,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736868336480,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2435478,"timestamp":2101584,"id":127,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Flogin-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2444302,"timestamp":2101266,"id":69,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgoogle-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2444313,"timestamp":2101318,"id":78,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fgithub-login.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454444,"timestamp":2100846,"id":28,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454557,"timestamp":2100812,"id":25,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454420,"timestamp":2100969,"id":41,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454533,"timestamp":2100873,"id":32,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454531,"timestamp":2100890,"id":34,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetUserMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetUserMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454585,"timestamp":2100866,"id":31,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454560,"timestamp":2100927,"id":37,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDiskUsage&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDiskUsage.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454493,"timestamp":2101012,"id":49,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteMediaFolder&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteMediaFolder.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454450,"timestamp":2101071,"id":54,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDatabaseTables&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDatabaseTables.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454315,"timestamp":2101221,"id":61,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fget-authorized-databases&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fget-authorized-databases.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454400,"timestamp":2101151,"id":59,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsync-table-data&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsync-table-data.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454305,"timestamp":2101261,"id":68,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454292,"timestamp":2101292,"id":73,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Funsubscribe.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454407,"timestamp":2101205,"id":60,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateAdminUserAccess&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateAdminUserAccess.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454388,"timestamp":2101240,"id":63,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454155,"timestamp":2101492,"id":110,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FresetPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FresetPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454297,"timestamp":2101367,"id":86,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fdelete&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fdelete.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454164,"timestamp":2101513,"id":115,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FpurgeDb&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FpurgeDb.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454198,"timestamp":2101495,"id":111,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrenameMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrenameMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454189,"timestamp":2101518,"id":116,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454151,"timestamp":2101589,"id":128,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FacceptUserInvitation&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FacceptUserInvitation.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454319,"timestamp":2101444,"id":101,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fmedia%2FaddPrivateMedia&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fmedia%2FaddPrivateMedia.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454232,"timestamp":2101545,"id":121,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454301,"timestamp":2101489,"id":109,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FcheckEmail&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FcheckEmail.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2454210,"timestamp":2101594,"id":129,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Futils%2FgetEmailFromSocialId.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2453944,"timestamp":2101872,"id":199,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fdelete-file.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":36,"timestamp":4572345,"id":905,"parentId":774,"tags":{"name":"@moduletrace/datasquirel/dist/client/","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":559,"timestamp":4572333,"id":904,"parentId":754,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2397,"timestamp":4572498,"id":911,"parentId":796,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2947,"timestamp":4572523,"id":912,"parentId":797,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17617,"timestamp":4572477,"id":910,"parentId":743,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18147,"timestamp":4572419,"id":907,"parentId":740,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18623,"timestamp":4572295,"id":902,"parentId":735,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19005,"timestamp":4572321,"id":903,"parentId":728,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19424,"timestamp":4572282,"id":901,"parentId":725,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19643,"timestamp":4572447,"id":908,"parentId":746,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19932,"timestamp":4572457,"id":909,"parentId":739,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20375,"timestamp":4572406,"id":906,"parentId":727,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21107,"timestamp":4572218,"id":900,"parentId":725,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736868336544,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2495543,"timestamp":2101779,"id":173,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogout&preferredRegion=&absolutePagePath=private-next-pages%2Flogout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":94,"timestamp":4618387,"id":940,"parentId":787,"tags":{"name":"ansi-regex","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-io-client","duration":10,"timestamp":4618505,"id":941,"parentId":787,"tags":{"name":"socket.io-client","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6684,"timestamp":4615444,"id":917,"parentId":818,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7688,"timestamp":4615472,"id":918,"parentId":820,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8633,"timestamp":4615561,"id":922,"parentId":817,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9059,"timestamp":4616021,"id":935,"parentId":836,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336588,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16543,"timestamp":4615347,"id":914,"parentId":748,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16710,"timestamp":4615499,"id":919,"parentId":748,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16564,"timestamp":4615891,"id":931,"parentId":765,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16886,"timestamp":4615876,"id":930,"parentId":770,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17392,"timestamp":4615722,"id":926,"parentId":758,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17998,"timestamp":4615522,"id":920,"parentId":748,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18439,"timestamp":4615413,"id":916,"parentId":745,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18272,"timestamp":4615920,"id":932,"parentId":765,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18801,"timestamp":4615789,"id":927,"parentId":759,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19659,"timestamp":4615378,"id":915,"parentId":745,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20283,"timestamp":4615251,"id":913,"parentId":746,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20276,"timestamp":4615819,"id":928,"parentId":759,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-tsx","duration":21480,"timestamp":4615534,"id":921,"parentId":748,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22091,"timestamp":4615944,"id":933,"parentId":754,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20321,"timestamp":4618348,"id":939,"parentId":767,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23412,"timestamp":4615619,"id":924,"parentId":809,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23602,"timestamp":4615667,"id":925,"parentId":810,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24130,"timestamp":4615970,"id":934,"parentId":754,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22225,"timestamp":4618253,"id":937,"parentId":839,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22541,"timestamp":4618522,"id":942,"parentId":840,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22670,"timestamp":4618564,"id":943,"parentId":860,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22766,"timestamp":4618685,"id":946,"parentId":840,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23019,"timestamp":4618611,"id":944,"parentId":861,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23678,"timestamp":4618315,"id":938,"parentId":809,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23567,"timestamp":4618642,"id":945,"parentId":840,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736868336590,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27671,"timestamp":4615846,"id":929,"parentId":759,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":29505,"timestamp":4615589,"id":923,"parentId":810,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736868336587,"traceId":"d6db589d9eef97d2"},{"name":"postcss-process","duration":27651,"timestamp":4818440,"id":948,"parentId":947,"tags":{},"startTime":1736868336790,"traceId":"d6db589d9eef97d2"},{"name":"postcss-loader","duration":226108,"timestamp":4620023,"id":947,"parentId":936,"tags":{},"startTime":1736868336592,"traceId":"d6db589d9eef97d2"},{"name":"css-loader","duration":31170,"timestamp":4846294,"id":949,"parentId":936,"tags":{"astUsed":"true"},"startTime":1736868336818,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":261734,"timestamp":4616055,"id":936,"parentId":798,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736868336588,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2783,"timestamp":4900644,"id":961,"parentId":870,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3407,"timestamp":4900672,"id":962,"parentId":882,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9966,"timestamp":4900519,"id":956,"parentId":771,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11122,"timestamp":4900442,"id":954,"parentId":771,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12384,"timestamp":4900570,"id":958,"parentId":760,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14684,"timestamp":4900544,"id":957,"parentId":768,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16371,"timestamp":4900620,"id":960,"parentId":773,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17999,"timestamp":4900480,"id":955,"parentId":776,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20511,"timestamp":4900595,"id":959,"parentId":771,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21040,"timestamp":4900694,"id":963,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21655,"timestamp":4900353,"id":951,"parentId":840,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21957,"timestamp":4900254,"id":950,"parentId":840,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22111,"timestamp":4900385,"id":952,"parentId":861,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22306,"timestamp":4900413,"id":953,"parentId":861,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736868336872,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":31,"timestamp":4960237,"id":979,"parentId":875,"tags":{"name":"tailwind-merge","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2722,"timestamp":4959958,"id":968,"parentId":888,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3310,"timestamp":4959998,"id":969,"parentId":890,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3922,"timestamp":4960021,"id":970,"parentId":883,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4721,"timestamp":4960100,"id":974,"parentId":886,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5329,"timestamp":4960354,"id":983,"parentId":908,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14332,"timestamp":4960157,"id":976,"parentId":884,"tags":{"name":"/app/package-shared/functions/backend/html/sanitizeHtmlOptions.ts","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14635,"timestamp":4960206,"id":978,"parentId":884,"tags":{"name":"/app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15098,"timestamp":4960134,"id":975,"parentId":884,"tags":{"name":"/app/package-shared/functions/dsql/encrypt.ts","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15632,"timestamp":4959932,"id":967,"parentId":780,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736868336931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15795,"timestamp":4960067,"id":972,"parentId":781,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16447,"timestamp":4959908,"id":966,"parentId":777,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736868336931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16586,"timestamp":4960335,"id":982,"parentId":784,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17182,"timestamp":4960313,"id":981,"parentId":782,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17923,"timestamp":4960045,"id":971,"parentId":781,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18244,"timestamp":4960285,"id":980,"parentId":782,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19070,"timestamp":4960088,"id":973,"parentId":785,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19869,"timestamp":4960187,"id":977,"parentId":884,"tags":{"name":"/app/package-shared/functions/backend/db/updateDbEntry.ts","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20528,"timestamp":4959879,"id":965,"parentId":868,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736868336931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20773,"timestamp":4959788,"id":964,"parentId":894,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736868336931,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20368,"timestamp":4960376,"id":984,"parentId":911,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736868336932,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":30,"timestamp":5001078,"id":990,"parentId":910,"tags":{"name":"@moduletrace/datasquirel/dist/client","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2581,"timestamp":5001290,"id":1000,"parentId":932,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3062,"timestamp":5001393,"id":1004,"parentId":934,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14261,"timestamp":5001266,"id":999,"parentId":808,"tags":{"name":"/app/functions/backend/su/get-servers-json-path.ts","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":14653,"timestamp":5001242,"id":998,"parentId":808,"tags":{"name":"/app/functions/backend/su/check-servers.ts","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14935,"timestamp":5001207,"id":996,"parentId":797,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15438,"timestamp":5001158,"id":992,"parentId":806,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16067,"timestamp":5001186,"id":994,"parentId":787,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16534,"timestamp":5001215,"id":997,"parentId":823,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17075,"timestamp":5001167,"id":993,"parentId":806,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17386,"timestamp":5001317,"id":1001,"parentId":788,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18253,"timestamp":5001125,"id":991,"parentId":799,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19835,"timestamp":5001197,"id":995,"parentId":788,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20501,"timestamp":5001019,"id":988,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20818,"timestamp":5000877,"id":985,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736868336972,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20892,"timestamp":5000962,"id":986,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736868336972,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21017,"timestamp":5000992,"id":987,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736868336972,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21116,"timestamp":5001042,"id":989,"parentId":912,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20934,"timestamp":5001366,"id":1003,"parentId":917,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21122,"timestamp":5001342,"id":1002,"parentId":918,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21501,"timestamp":5001417,"id":1005,"parentId":937,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736868336973,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2524,"timestamp":5027238,"id":1011,"parentId":958,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868336999,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8370,"timestamp":5027134,"id":1009,"parentId":817,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736868336999,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8787,"timestamp":5027186,"id":1010,"parentId":823,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736868336999,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9282,"timestamp":5027108,"id":1008,"parentId":798,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736868336999,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11057,"timestamp":5027006,"id":1007,"parentId":938,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736868336999,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13494,"timestamp":5026831,"id":1006,"parentId":938,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736868336998,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":32,"timestamp":5044931,"id":1016,"parentId":929,"tags":{"name":"gsap/Flip","layer":null},"startTime":1736868337016,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":12,"timestamp":5044975,"id":1017,"parentId":929,"tags":{"name":"gsap","layer":null},"startTime":1736868337016,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2431,"timestamp":5045147,"id":1025,"parentId":972,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5800,"timestamp":5045123,"id":1024,"parentId":852,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6021,"timestamp":5045101,"id":1023,"parentId":851,"tags":{"name":"/app/package-shared/functions/backend/defaultFieldsRegexp.ts","layer":"api"},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6103,"timestamp":5045455,"id":1036,"parentId":847,"tags":{"name":"/app/package-shared/shell/utils/supplementTable.ts","layer":"api"},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6778,"timestamp":5045015,"id":1019,"parentId":841,"tags":{"name":"/app/package-shared/utils/numberfy.ts","layer":"api"},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7011,"timestamp":5044996,"id":1018,"parentId":842,"tags":{"name":"/app/package-shared/utils/numberfy.ts","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7145,"timestamp":5045078,"id":1022,"parentId":827,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7324,"timestamp":5045171,"id":1026,"parentId":830,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7391,"timestamp":5045417,"id":1035,"parentId":847,"tags":{"name":"/app/package-shared/shell/utils/generateColumnDescription.ts","layer":"api"},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7633,"timestamp":5045479,"id":1037,"parentId":864,"tags":{"name":"/app/package-shared/functions/backend/grabNewUsersTableSchema.ts","layer":"api"},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8590,"timestamp":5045067,"id":1021,"parentId":836,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9283,"timestamp":5044754,"id":1012,"parentId":815,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736868337016,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8935,"timestamp":5045499,"id":1038,"parentId":862,"tags":{"name":"/app/package-shared/functions/backend/grabSchemaFieldsFromData.ts","layer":"api"},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9951,"timestamp":5045025,"id":1020,"parentId":836,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10619,"timestamp":5044829,"id":1013,"parentId":961,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736868337016,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10732,"timestamp":5044888,"id":1015,"parentId":961,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736868337016,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11009,"timestamp":5044859,"id":1014,"parentId":961,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736868337016,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10848,"timestamp":5045214,"id":1027,"parentId":968,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-js","duration":11338,"timestamp":5045244,"id":1028,"parentId":969,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11454,"timestamp":5045297,"id":1030,"parentId":974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11584,"timestamp":5045321,"id":1031,"parentId":974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11773,"timestamp":5045271,"id":1029,"parentId":983,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11853,"timestamp":5045342,"id":1032,"parentId":974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11998,"timestamp":5045368,"id":1033,"parentId":974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12117,"timestamp":5045393,"id":1034,"parentId":974,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736868337017,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961143,"timestamp":2100796,"id":23,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcheckDuplicateData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcheckDuplicateData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960977,"timestamp":2101039,"id":52,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960767,"timestamp":2101271,"id":70,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960607,"timestamp":2101500,"id":113,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FqueryEntriesSearchTerm&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FqueryEntriesSearchTerm.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960614,"timestamp":2101510,"id":114,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960562,"timestamp":2101575,"id":125,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961349,"timestamp":2100817,"id":26,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FchangeDbUserPassword&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FchangeDbUserPassword.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960787,"timestamp":2101393,"id":90,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960662,"timestamp":2101533,"id":119,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddDbUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddDbUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961189,"timestamp":2101017,"id":50,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FgetDelegatedDatabaseToken&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FgetDelegatedDatabaseToken.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961340,"timestamp":2100881,"id":33,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FloginSuUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FloginSuUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960781,"timestamp":2101461,"id":104,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendEmailVerificationLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendEmailVerificationLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960793,"timestamp":2101464,"id":105,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FsendPasswordResetLink&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FsendPasswordResetLink.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960989,"timestamp":2101286,"id":72,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fupdate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fupdate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960950,"timestamp":2101399,"id":92,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsql-users%2Fcreate&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsql-users%2Fcreate.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960737,"timestamp":2101625,"id":135,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960854,"timestamp":2101521,"id":117,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FregisterUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FregisterUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960832,"timestamp":2101554,"id":123,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Ffacebook-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Ffacebook-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960909,"timestamp":2101498,"id":112,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgithub-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgithub-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2960893,"timestamp":2101526,"id":118,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fsocial-login%2Fgoogle-auth&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fsocial-login%2Fgoogle-auth.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961104,"timestamp":2101329,"id":80,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteApiKey&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteApiKey.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961016,"timestamp":2101429,"id":98,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FrefreshEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FrefreshEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961162,"timestamp":2101295,"id":74,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fconnect%2Findex.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961666,"timestamp":2100806,"id":24,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961663,"timestamp":2100839,"id":27,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FupdateEnv&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FupdateEnv.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961610,"timestamp":2100914,"id":36,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserBackups&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserBackups.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961683,"timestamp":2100855,"id":30,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FrunUserDbQuery&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FrunUserDbQuery.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961775,"timestamp":2100851,"id":29,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetUserData&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetUserData.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961661,"timestamp":2100982,"id":44,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgetTablesForUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgetTablesForUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961574,"timestamp":2101086,"id":55,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961687,"timestamp":2100986,"id":45,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FgrabFile&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FgrabFile.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961590,"timestamp":2101096,"id":56,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FcreateNewBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FcreateNewBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961675,"timestamp":2101029,"id":51,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2Fdocs%2F%5Baction%5D.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961420,"timestamp":2101304,"id":75,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FclearErrorLogs&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FclearErrorLogs.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961423,"timestamp":2101315,"id":77,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fadmin%2FaddUserBackup&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fadmin%2FaddUserBackup.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961776,"timestamp":2100974,"id":42,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FdeleteTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FdeleteTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961798,"timestamp":2100965,"id":40,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961797,"timestamp":2100978,"id":43,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FinfiniteScroll&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FinfiniteScroll.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961464,"timestamp":2101324,"id":79,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Ffetch-entries-basic&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Ffetch-entries-basic.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2961222,"timestamp":2101580,"id":126,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddTableEntry&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddTableEntry.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3503,"timestamp":5061478,"id":1039,"parentId":980,"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":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3978,"timestamp":5061584,"id":1041,"parentId":991,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969173,"timestamp":2101118,"id":58,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FimportDatabaseSchema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FimportDatabaseSchema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969349,"timestamp":2101054,"id":53,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateDbSchemaDataForUser&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateDbSchemaDataForUser.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969318,"timestamp":2101106,"id":57,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969213,"timestamp":2101247,"id":65,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FupdateClonedTableForeignKeys&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FupdateClonedTableForeignKeys.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969103,"timestamp":2101377,"id":87,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FcreateUserDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FcreateUserDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969131,"timestamp":2101364,"id":85,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUsersTableToDatabase&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUsersTableToDatabase.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969089,"timestamp":2101422,"id":97,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2FaddUserTable&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2FaddUserTable.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969109,"timestamp":2101416,"id":96,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fupdate-schema-from-single-database.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969143,"timestamp":2101396,"id":91,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser-schema%2Freplace-database-schema&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser-schema%2Freplace-database-schema.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2969219,"timestamp":2101441,"id":100,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fuser%2F%5Buser_id%5D%2Fadd-user.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15920,"timestamp":5061825,"id":1051,"parentId":867,"tags":{"name":"/app/package-shared/utils/trim-sql.ts","layer":"api"},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16618,"timestamp":5061609,"id":1042,"parentId":836,"tags":{"name":"/app/hooks/useLocalUser.ts","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16933,"timestamp":5061798,"id":1050,"parentId":891,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18005,"timestamp":5061553,"id":1040,"parentId":876,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18396,"timestamp":5061836,"id":1052,"parentId":895,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18992,"timestamp":5061891,"id":1054,"parentId":898,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19659,"timestamp":5061779,"id":1049,"parentId":892,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20403,"timestamp":5061758,"id":1048,"parentId":881,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21491,"timestamp":5061734,"id":1047,"parentId":888,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22313,"timestamp":5061859,"id":1053,"parentId":891,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23790,"timestamp":5061915,"id":1055,"parentId":879,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24564,"timestamp":5061710,"id":1046,"parentId":1005,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24826,"timestamp":5061622,"id":1043,"parentId":1005,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24950,"timestamp":5061677,"id":1045,"parentId":1000,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":25133,"timestamp":5061648,"id":1044,"parentId":1004,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736868337033,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":51,"timestamp":5111315,"id":1057,"parentId":994,"tags":{"name":"xterm","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":32,"timestamp":5111385,"id":1058,"parentId":972,"tags":{"name":"react-tiny-popover","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":7,"timestamp":5111689,"id":1067,"parentId":994,"tags":{"name":"xterm-addon-fit","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2021,"timestamp":5111654,"id":1066,"parentId":1012,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6237,"timestamp":5111535,"id":1062,"parentId":1007,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":6791,"timestamp":5111586,"id":1064,"parentId":867,"tags":{"name":"/app/package-shared/functions/backend/fullAccessDbHandler.ts","layer":"api"},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7106,"timestamp":5111615,"id":1065,"parentId":867,"tags":{"name":"/app/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.ts","layer":"api"},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7800,"timestamp":5111562,"id":1063,"parentId":896,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9400,"timestamp":5111204,"id":1056,"parentId":895,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9476,"timestamp":5111500,"id":1061,"parentId":1011,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9715,"timestamp":5111429,"id":1059,"parentId":1011,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9825,"timestamp":5111470,"id":1060,"parentId":1011,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9741,"timestamp":5111703,"id":1068,"parentId":1025,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736868337083,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2350,"timestamp":5123186,"id":1069,"parentId":1048,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2831,"timestamp":5123246,"id":1070,"parentId":1047,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3029686,"timestamp":2101451,"id":102,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fget.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3029333,"timestamp":2101888,"id":202,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES_API&page=%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost&preferredRegion=&absolutePagePath=private-next-pages%2Fapi%2Fquery%2F%5Buser_id%5D%2Fpost.ts&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13990,"timestamp":5123563,"id":1082,"parentId":933,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14456,"timestamp":5123604,"id":1084,"parentId":916,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15282,"timestamp":5123536,"id":1081,"parentId":908,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16068,"timestamp":5123585,"id":1083,"parentId":933,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16944,"timestamp":5123506,"id":1080,"parentId":908,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18103,"timestamp":5123626,"id":1085,"parentId":933,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18690,"timestamp":5123374,"id":1075,"parentId":1041,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18771,"timestamp":5123474,"id":1079,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19144,"timestamp":5123350,"id":1074,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19222,"timestamp":5123425,"id":1077,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-js","duration":19792,"timestamp":5123269,"id":1071,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19907,"timestamp":5123329,"id":1073,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19992,"timestamp":5123400,"id":1076,"parentId":1041,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20292,"timestamp":5123297,"id":1072,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20348,"timestamp":5123448,"id":1078,"parentId":1039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736868337095,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049073,"timestamp":2101809,"id":183,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fconsole&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049190,"timestamp":2101795,"id":178,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fenvar&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049150,"timestamp":2101856,"id":194,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Ferror-logs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049176,"timestamp":2101850,"id":192,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fbackups&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049188,"timestamp":2101861,"id":195,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049295,"timestamp":2101769,"id":171,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2Fnew&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049259,"timestamp":2101824,"id":186,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049251,"timestamp":2101845,"id":191,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049319,"timestamp":2101793,"id":177,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3049257,"timestamp":2101868,"id":198,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8805,"timestamp":5148482,"id":1088,"parentId":929,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736868337120,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13085,"timestamp":5148448,"id":1087,"parentId":901,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736868337120,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14034,"timestamp":5148359,"id":1086,"parentId":896,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736868337120,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":19,"timestamp":5165744,"id":1089,"parentId":1001,"tags":{"name":"@tinymce/tinymce-react","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2579,"timestamp":5165904,"id":1093,"parentId":932,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3383,"timestamp":5165866,"id":1092,"parentId":929,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":3759,"timestamp":5165852,"id":1091,"parentId":929,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4162,"timestamp":5166041,"id":1098,"parentId":958,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736868337138,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4743,"timestamp":5166069,"id":1099,"parentId":958,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736868337138,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5675,"timestamp":5166017,"id":1097,"parentId":929,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736868337138,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6590,"timestamp":5165992,"id":1096,"parentId":929,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7479,"timestamp":5165947,"id":1095,"parentId":929,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8497,"timestamp":5165918,"id":1094,"parentId":934,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9265,"timestamp":5165776,"id":1090,"parentId":1062,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736868337137,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3074757,"timestamp":2101820,"id":185,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fload-balancing&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3074855,"timestamp":2101802,"id":180,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fservers&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3323,"timestamp":5179039,"id":1100,"parentId":1084,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3856,"timestamp":5179145,"id":1101,"parentId":1081,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11656,"timestamp":5179242,"id":1104,"parentId":960,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16791,"timestamp":5179296,"id":1106,"parentId":960,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17601,"timestamp":5179215,"id":1103,"parentId":958,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18089,"timestamp":5179268,"id":1105,"parentId":959,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19082,"timestamp":5179320,"id":1107,"parentId":972,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19651,"timestamp":5179175,"id":1102,"parentId":1069,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736868337151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":8133,"timestamp":5202391,"id":1110,"parentId":995,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736868337174,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12883,"timestamp":5202272,"id":1108,"parentId":971,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736868337174,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13591,"timestamp":5202364,"id":1109,"parentId":960,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736868337174,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1495,"timestamp":5219547,"id":1111,"parentId":1098,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337191,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3543,"timestamp":5219732,"id":1115,"parentId":995,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736868337191,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4741,"timestamp":5219752,"id":1116,"parentId":993,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736868337191,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5529,"timestamp":5219707,"id":1114,"parentId":993,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736868337191,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6378,"timestamp":5219665,"id":1113,"parentId":1001,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736868337191,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6810,"timestamp":5219631,"id":1112,"parentId":1090,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736868337191,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3130745,"timestamp":2100765,"id":20,"parentId":18,"tags":{"request":"private-next-pages/_document.tsx"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1972,"timestamp":5230690,"id":1117,"parentId":1106,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2531,"timestamp":5230767,"id":1118,"parentId":1103,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11007,"timestamp":5230926,"id":1123,"parentId":1010,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11386,"timestamp":5230894,"id":1122,"parentId":1020,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12304,"timestamp":5230949,"id":1124,"parentId":1010,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13188,"timestamp":5230829,"id":1120,"parentId":1101,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13380,"timestamp":5230799,"id":1119,"parentId":1100,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13487,"timestamp":5230854,"id":1121,"parentId":1100,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736868337202,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4241,"timestamp":5247728,"id":1127,"parentId":1053,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736868337219,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4781,"timestamp":5247695,"id":1126,"parentId":1053,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736868337219,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5557,"timestamp":5247569,"id":1125,"parentId":1052,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736868337219,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2331,"timestamp":5255950,"id":1128,"parentId":1113,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337227,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9508,"timestamp":5256192,"id":1134,"parentId":1085,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9873,"timestamp":5256282,"id":1138,"parentId":1063,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10440,"timestamp":5256263,"id":1137,"parentId":1080,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10917,"timestamp":5256103,"id":1131,"parentId":1063,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11271,"timestamp":5256064,"id":1130,"parentId":1063,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11512,"timestamp":5256136,"id":1132,"parentId":1063,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12100,"timestamp":5256022,"id":1129,"parentId":1063,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12165,"timestamp":5256333,"id":1140,"parentId":1080,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12591,"timestamp":5256310,"id":1139,"parentId":1080,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13695,"timestamp":5256241,"id":1136,"parentId":1083,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15189,"timestamp":5256201,"id":1135,"parentId":1063,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15574,"timestamp":5256166,"id":1133,"parentId":1111,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736868337228,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1960,"timestamp":5272786,"id":1141,"parentId":1122,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7588,"timestamp":5272909,"id":1144,"parentId":1096,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736868337244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":11701,"timestamp":5272894,"id":1143,"parentId":1095,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736868337244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12333,"timestamp":5272876,"id":1142,"parentId":1063,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736868337244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13479,"timestamp":5272948,"id":1146,"parentId":1106,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736868337244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14485,"timestamp":5272919,"id":1145,"parentId":1096,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736868337244,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3189137,"timestamp":2100781,"id":21,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F404&preferredRegion=&absolutePagePath=private-next-pages%2F404.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3189205,"timestamp":2100790,"id":22,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F500&preferredRegion=&absolutePagePath=private-next-pages%2F500.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334072,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188385,"timestamp":2101630,"id":137,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fabout&preferredRegion=&absolutePagePath=private-next-pages%2Fabout.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188279,"timestamp":2101753,"id":167,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fprivacy&preferredRegion=&absolutePagePath=private-next-pages%2Fprivacy.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188261,"timestamp":2101786,"id":175,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fterms&preferredRegion=&absolutePagePath=private-next-pages%2Fterms.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188280,"timestamp":2101781,"id":174,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Funsubscribe&preferredRegion=&absolutePagePath=private-next-pages%2Funsubscribe.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188315,"timestamp":2101761,"id":169,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Freset-password&preferredRegion=&absolutePagePath=private-next-pages%2Freset-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188295,"timestamp":2101807,"id":182,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2F&preferredRegion=&absolutePagePath=private-next-pages%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188280,"timestamp":2101836,"id":190,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsend-password-reset-link&preferredRegion=&absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188223,"timestamp":2101906,"id":207,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcontact&preferredRegion=&absolutePagePath=private-next-pages%2Fcontact.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188256,"timestamp":2101885,"id":201,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fdocs&preferredRegion=&absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188288,"timestamp":2101866,"id":197,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Femail-verification&preferredRegion=&absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188510,"timestamp":2101655,"id":144,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188496,"timestamp":2101682,"id":150,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188498,"timestamp":2101709,"id":157,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188533,"timestamp":2101690,"id":151,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188585,"timestamp":2101651,"id":143,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188614,"timestamp":2101635,"id":139,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188618,"timestamp":2101644,"id":141,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188644,"timestamp":2101639,"id":140,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188635,"timestamp":2101664,"id":145,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188679,"timestamp":2101632,"id":138,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"}] +[{"name":"add-entry","duration":3188860,"timestamp":2101669,"id":146,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188865,"timestamp":2101679,"id":149,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188850,"timestamp":2101706,"id":156,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188851,"timestamp":2101731,"id":161,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188893,"timestamp":2101703,"id":155,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188899,"timestamp":2101711,"id":158,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188902,"timestamp":2101722,"id":159,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188897,"timestamp":2101740,"id":163,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188860,"timestamp":2101790,"id":176,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188887,"timestamp":2101776,"id":172,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188942,"timestamp":2101734,"id":162,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188886,"timestamp":2101804,"id":181,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3188789,"timestamp":2101916,"id":209,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1415,"timestamp":5294844,"id":1147,"parentId":1140,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337266,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8157,"timestamp":5294952,"id":1148,"parentId":1106,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736868337266,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8445,"timestamp":5295024,"id":1150,"parentId":1128,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736868337267,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8709,"timestamp":5294987,"id":1149,"parentId":1128,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736868337266,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":20,"timestamp":5304252,"id":1151,"parentId":1142,"tags":{"name":"react-dom/client","layer":null},"startTime":1736868337276,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3205655,"timestamp":2101701,"id":154,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3205728,"timestamp":2101757,"id":168,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3937,"timestamp":5304288,"id":1152,"parentId":1116,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736868337276,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4543,"timestamp":5304403,"id":1154,"parentId":1106,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736868337276,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5669,"timestamp":5304356,"id":1153,"parentId":1113,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736868337276,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":6843,"timestamp":5304428,"id":1155,"parentId":1113,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736868337276,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3210382,"timestamp":2101646,"id":142,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3210293,"timestamp":2101800,"id":179,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Flogin&preferredRegion=&absolutePagePath=private-next-pages%2Flogin.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3210442,"timestamp":2101675,"id":148,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3210243,"timestamp":2101913,"id":208,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fcreate-account&preferredRegion=&absolutePagePath=private-next-pages%2Fcreate-account.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":7692,"timestamp":5311968,"id":1157,"parentId":1124,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736868337283,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8365,"timestamp":5311899,"id":1156,"parentId":1123,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736868337283,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8677,"timestamp":5312001,"id":1158,"parentId":1123,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736868337284,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":5658,"timestamp":5321028,"id":1159,"parentId":1107,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736868337293,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6173,"timestamp":5321121,"id":1160,"parentId":1147,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736868337293,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1170,"timestamp":5327437,"id":1161,"parentId":1155,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337299,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3227108,"timestamp":2101698,"id":153,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3227195,"timestamp":2101695,"id":152,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2061,"timestamp":5330013,"id":1162,"parentId":1156,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337302,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2744,"timestamp":5330074,"id":1163,"parentId":1158,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337302,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3231289,"timestamp":2101818,"id":184,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fcreate-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3231330,"timestamp":2101864,"id":196,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fdocs%2Fedit-page&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":9576,"timestamp":5330271,"id":1164,"parentId":1136,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736868337302,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3238903,"timestamp":2101829,"id":188,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fsu%2Fusers%2F%5Bsingle%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2089,"timestamp":5342315,"id":1165,"parentId":1154,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736868337314,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":1725,"timestamp":5345168,"id":1166,"parentId":1148,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736868337317,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1194,"timestamp":5347010,"id":1167,"parentId":1165,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868337319,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5157,"timestamp":5353306,"id":1169,"parentId":1167,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736868337325,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5537,"timestamp":5353149,"id":1168,"parentId":1167,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736868337325,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":1815,"timestamp":5358837,"id":1170,"parentId":1166,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736868337330,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":1732,"timestamp":5360818,"id":1172,"parentId":1166,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736868337332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2204,"timestamp":5360772,"id":1171,"parentId":1166,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736868337332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5539,"timestamp":5365663,"id":1173,"parentId":1171,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736868337337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5313,"timestamp":5366598,"id":1174,"parentId":1170,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736868337338,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":16,"timestamp":5373923,"id":1175,"parentId":1174,"tags":{"name":"html-prettify","layer":null},"startTime":1736868337345,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3272249,"timestamp":2101743,"id":164,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3272318,"timestamp":2101745,"id":165,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3272415,"timestamp":2101672,"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&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":3272382,"timestamp":2101728,"id":160,"parentId":18,"tags":{"request":"next-route-loader?kind=PAGES&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries&preferredRegion=&absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&absoluteAppPath=private-next-pages%2F_app.tsx&absoluteDocumentPath=private-next-pages%2F_document.tsx&middlewareConfigBase64=e30%3D!"},"startTime":1736868334073,"traceId":"d6db589d9eef97d2"},{"name":"make","duration":3274653,"timestamp":2099880,"id":18,"parentId":16,"tags":{},"startTime":1736868334071,"traceId":"d6db589d9eef97d2"},{"name":"get-entries","duration":1319,"timestamp":5376015,"id":1177,"parentId":1176,"tags":{},"startTime":1736868337348,"traceId":"d6db589d9eef97d2"},{"name":"node-file-trace-plugin","duration":9670277,"timestamp":5384610,"id":1178,"parentId":1176,"tags":{"traceEntryCount":"382"},"startTime":1736868337356,"traceId":"d6db589d9eef97d2"},{"name":"collect-traced-files","duration":11154,"timestamp":15054907,"id":1179,"parentId":1176,"tags":{},"startTime":1736868347026,"traceId":"d6db589d9eef97d2"},{"name":"finish-modules","duration":9690461,"timestamp":5375616,"id":1176,"parentId":17,"tags":{},"startTime":1736868337347,"traceId":"d6db589d9eef97d2"},{"name":"chunk-graph","duration":430921,"timestamp":15127580,"id":1181,"parentId":1180,"tags":{},"startTime":1736868347099,"traceId":"d6db589d9eef97d2"},{"name":"optimize-modules","duration":33,"timestamp":15558695,"id":1183,"parentId":1180,"tags":{},"startTime":1736868347530,"traceId":"d6db589d9eef97d2"},{"name":"optimize-chunks","duration":55273,"timestamp":15558824,"id":1184,"parentId":1180,"tags":{},"startTime":1736868347530,"traceId":"d6db589d9eef97d2"},{"name":"optimize-tree","duration":130,"timestamp":15614257,"id":1185,"parentId":1180,"tags":{},"startTime":1736868347586,"traceId":"d6db589d9eef97d2"},{"name":"optimize-chunk-modules","duration":161766,"timestamp":15614662,"id":1186,"parentId":1180,"tags":{},"startTime":1736868347586,"traceId":"d6db589d9eef97d2"},{"name":"optimize","duration":218066,"timestamp":15558606,"id":1182,"parentId":1180,"tags":{},"startTime":1736868347530,"traceId":"d6db589d9eef97d2"},{"name":"module-hash","duration":69240,"timestamp":15793523,"id":1187,"parentId":1180,"tags":{},"startTime":1736868347765,"traceId":"d6db589d9eef97d2"},{"name":"code-generation","duration":424274,"timestamp":15863141,"id":1188,"parentId":1180,"tags":{},"startTime":1736868347835,"traceId":"d6db589d9eef97d2"},{"name":"hash","duration":22293,"timestamp":16298841,"id":1189,"parentId":1180,"tags":{},"startTime":1736868348270,"traceId":"d6db589d9eef97d2"},{"name":"code-generation-jobs","duration":1372,"timestamp":16321131,"id":1190,"parentId":1180,"tags":{},"startTime":1736868348293,"traceId":"d6db589d9eef97d2"},{"name":"module-assets","duration":594,"timestamp":16322403,"id":1191,"parentId":1180,"tags":{},"startTime":1736868348294,"traceId":"d6db589d9eef97d2"},{"name":"create-chunk-assets","duration":35128,"timestamp":16323024,"id":1192,"parentId":1180,"tags":{},"startTime":1736868348295,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167755,"timestamp":16410715,"id":1195,"parentId":1193,"tags":{"name":"../pages/_document.js","cache":"MISS"},"startTime":1736868348382,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166030,"timestamp":16412702,"id":1200,"parentId":1193,"tags":{"name":"../pages/api/getUserDatabases.js","cache":"MISS"},"startTime":1736868348384,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164073,"timestamp":16414739,"id":1209,"parentId":1193,"tags":{"name":"../pages/api/getUserMedia.js","cache":"MISS"},"startTime":1736868348386,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168043,"timestamp":16410838,"id":1196,"parentId":1193,"tags":{"name":"../pages/404.js","cache":"MISS"},"startTime":1736868348382,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166560,"timestamp":16412367,"id":1199,"parentId":1193,"tags":{"name":"../pages/api/admin/grabBackups.js","cache":"MISS"},"startTime":1736868348384,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167540,"timestamp":16411436,"id":1197,"parentId":1193,"tags":{"name":"../pages/500.js","cache":"MISS"},"startTime":1736868348383,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164597,"timestamp":16414424,"id":1208,"parentId":1193,"tags":{"name":"../pages/api/admin/loginSuUser.js","cache":"MISS"},"startTime":1736868348386,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166201,"timestamp":16412891,"id":1201,"parentId":1193,"tags":{"name":"../pages/api/changeDbUserPassword.js","cache":"MISS"},"startTime":1736868348384,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166059,"timestamp":16413082,"id":1202,"parentId":1193,"tags":{"name":"../pages/api/admin/updateEnv.js","cache":"MISS"},"startTime":1736868348385,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165911,"timestamp":16413280,"id":1203,"parentId":1193,"tags":{"name":"../pages/api/getUserDatabaseTables.js","cache":"MISS"},"startTime":1736868348385,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163462,"timestamp":16415779,"id":1213,"parentId":1193,"tags":{"name":"../pages/api/loginUser.js","cache":"MISS"},"startTime":1736868348387,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165933,"timestamp":16413380,"id":1204,"parentId":1193,"tags":{"name":"../pages/api/admin/getUserData.js","cache":"MISS"},"startTime":1736868348385,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164372,"timestamp":16414990,"id":1210,"parentId":1193,"tags":{"name":"../pages/api/test/mail.js","cache":"MISS"},"startTime":1736868348386,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165496,"timestamp":16413943,"id":1207,"parentId":1193,"tags":{"name":"../pages/api/deleteUser.js","cache":"MISS"},"startTime":1736868348385,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163570,"timestamp":16415920,"id":1214,"parentId":1193,"tags":{"name":"../pages/api/logoutUser.js","cache":"MISS"},"startTime":1736868348387,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165853,"timestamp":16413705,"id":1206,"parentId":1193,"tags":{"name":"../pages/api/deleteUserDatabase.js","cache":"MISS"},"startTime":1736868348385,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167784,"timestamp":16411847,"id":1198,"parentId":1193,"tags":{"name":"../pages/api/checkDuplicateData.js","cache":"MISS"},"startTime":1736868348383,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163179,"timestamp":16416509,"id":1216,"parentId":1193,"tags":{"name":"../pages/api/getDelegatedDatabases.js","cache":"MISS"},"startTime":1736868348388,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162300,"timestamp":16417437,"id":1221,"parentId":1193,"tags":{"name":"../pages/api/test/cors.js","cache":"MISS"},"startTime":1736868348389,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":171965,"timestamp":16407827,"id":1194,"parentId":1193,"tags":{"name":"../pages/_error.js","cache":"MISS"},"startTime":1736868348379,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164625,"timestamp":16415213,"id":1211,"parentId":1193,"tags":{"name":"../pages/api/admin/getUserBackups.js","cache":"MISS"},"startTime":1736868348387,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166397,"timestamp":16413524,"id":1205,"parentId":1193,"tags":{"name":"../pages/api/admin/runUserDbQuery.js","cache":"MISS"},"startTime":1736868348385,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162703,"timestamp":16417273,"id":1220,"parentId":1193,"tags":{"name":"../pages/api/admin/grabFile.js","cache":"MISS"},"startTime":1736868348389,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164583,"timestamp":16415440,"id":1212,"parentId":1193,"tags":{"name":"../pages/api/getDiskUsage.js","cache":"MISS"},"startTime":1736868348387,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162515,"timestamp":16417553,"id":1222,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/grab-google-user-from-token.js","cache":"MISS"},"startTime":1736868348389,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162145,"timestamp":16417971,"id":1224,"parentId":1193,"tags":{"name":"../pages/api/deleteMediaFolder.js","cache":"MISS"},"startTime":1736868348389,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161081,"timestamp":16419080,"id":1229,"parentId":1193,"tags":{"name":"../pages/api/getDatabaseTables.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"}] +[{"name":"minify-js","duration":161442,"timestamp":16419647,"id":1233,"parentId":1193,"tags":{"name":"../pages/api/importDatabaseSchema.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164261,"timestamp":16416894,"id":1218,"parentId":1193,"tags":{"name":"../pages/api/infiniteScroll.js","cache":"MISS"},"startTime":1736868348388,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166136,"timestamp":16416667,"id":1217,"parentId":1193,"tags":{"name":"../pages/api/deleteTableEntry.js","cache":"MISS"},"startTime":1736868348388,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164615,"timestamp":16418282,"id":1226,"parentId":1193,"tags":{"name":"../pages/api/admin/docs/[action].js","cache":"MISS"},"startTime":1736868348390,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165891,"timestamp":16417097,"id":1219,"parentId":1193,"tags":{"name":"../pages/api/admin/getTablesForUserDatabase.js","cache":"MISS"},"startTime":1736868348389,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162094,"timestamp":16420943,"id":1243,"parentId":1193,"tags":{"name":"../pages/api/deleteInvitation.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165873,"timestamp":16417785,"id":1223,"parentId":1193,"tags":{"name":"../pages/api/updateDbUser.js","cache":"MISS"},"startTime":1736868348389,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164573,"timestamp":16419326,"id":1231,"parentId":1193,"tags":{"name":"../pages/api/admin/createNewBackup.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160214,"timestamp":16423779,"id":1264,"parentId":1193,"tags":{"name":"../pages/api/checkExistingFolder.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168044,"timestamp":16416043,"id":1215,"parentId":1193,"tags":{"name":"../pages/api/updateTableEntry.js","cache":"MISS"},"startTime":1736868348388,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165344,"timestamp":16418836,"id":1228,"parentId":1193,"tags":{"name":"../pages/api/updateDbSchemaDataForUser.js","cache":"MISS"},"startTime":1736868348390,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165002,"timestamp":16419226,"id":1230,"parentId":1193,"tags":{"name":"../pages/api/admin/grabErrorLogs.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160927,"timestamp":16423404,"id":1261,"parentId":1193,"tags":{"name":"../pages/api/sql-users/delete.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164288,"timestamp":16420131,"id":1237,"parentId":1193,"tags":{"name":"../pages/api/importDatabase.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164798,"timestamp":16420024,"id":1236,"parentId":1193,"tags":{"name":"../pages/api/get-authorized-databases.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161037,"timestamp":16423866,"id":1265,"parentId":1193,"tags":{"name":"../pages/api/addUserUser.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163242,"timestamp":16421713,"id":1250,"parentId":1193,"tags":{"name":"../pages/api/admin/clearErrorLogs.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166931,"timestamp":16418138,"id":1225,"parentId":1193,"tags":{"name":"../pages/api/getDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736868348390,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160231,"timestamp":16424907,"id":1274,"parentId":1193,"tags":{"name":"../pages/api/exportDatabase.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166658,"timestamp":16418571,"id":1227,"parentId":1193,"tags":{"name":"../pages/api/updateUserDatabase.js","cache":"MISS"},"startTime":1736868348390,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165381,"timestamp":16419918,"id":1235,"parentId":1193,"tags":{"name":"../pages/api/updateAdminUserAccess.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159644,"timestamp":16425720,"id":1279,"parentId":1193,"tags":{"name":"../pages/api/sendEmailVerificationLink.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160179,"timestamp":16425282,"id":1276,"parentId":1193,"tags":{"name":"../pages/api/media/addPrivateMedia.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160974,"timestamp":16424542,"id":1271,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/update-schema-from-single-database.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163770,"timestamp":16421825,"id":1251,"parentId":1193,"tags":{"name":"../pages/api/connect/disconnect.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163113,"timestamp":16422568,"id":1255,"parentId":1193,"tags":{"name":"../pages/api/deleteApiKey.js","cache":"MISS"},"startTime":1736868348394,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162086,"timestamp":16423679,"id":1263,"parentId":1193,"tags":{"name":"../pages/api/contact.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160173,"timestamp":16425639,"id":1278,"parentId":1193,"tags":{"name":"../pages/api/media/getPrivateMedia.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":157212,"timestamp":16428648,"id":1304,"parentId":1193,"tags":{"name":"../pages/api/social-login/utils/getEmailFromSocialId.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164337,"timestamp":16421591,"id":1249,"parentId":1193,"tags":{"name":"../pages/api/connect.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":158605,"timestamp":16427370,"id":1294,"parentId":1193,"tags":{"name":"../pages/api/addDbUser.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166578,"timestamp":16419457,"id":1232,"parentId":1193,"tags":{"name":"../pages/api/updateUserTable.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162817,"timestamp":16423271,"id":1260,"parentId":1193,"tags":{"name":"../pages/api/addUsersTableToDatabase.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164667,"timestamp":16421501,"id":1248,"parentId":1193,"tags":{"name":"../pages/api/unsubscribe.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161796,"timestamp":16424434,"id":1270,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/get-schema.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159670,"timestamp":16426648,"id":1288,"parentId":1193,"tags":{"name":"../pages/api/queryEntriesSearchTerm.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162853,"timestamp":16423519,"id":1262,"parentId":1193,"tags":{"name":"../pages/api/createUserDatabase.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166691,"timestamp":16419747,"id":1234,"parentId":1193,"tags":{"name":"../pages/api/sync-table-data.js","cache":"MISS"},"startTime":1736868348391,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165094,"timestamp":16421388,"id":1247,"parentId":1193,"tags":{"name":"../pages/api/sql-users/update.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159274,"timestamp":16427249,"id":1293,"parentId":1193,"tags":{"name":"../pages/api/social-login/google-auth.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161844,"timestamp":16424770,"id":1273,"parentId":1193,"tags":{"name":"../pages/api/refreshEntry.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":158613,"timestamp":16428103,"id":1300,"parentId":1193,"tags":{"name":"../pages/api/deleteUserTable.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161866,"timestamp":16425841,"id":1280,"parentId":1193,"tags":{"name":"../pages/api/sendPasswordResetLink.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162797,"timestamp":16425014,"id":1275,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/add-user.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165561,"timestamp":16422350,"id":1254,"parentId":1193,"tags":{"name":"../pages/api/fetch-entries-basic.js","cache":"MISS"},"startTime":1736868348394,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159304,"timestamp":16428724,"id":1305,"parentId":1193,"tags":{"name":"../pages/api/deleteUserMedia.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167787,"timestamp":16420335,"id":1238,"parentId":1193,"tags":{"name":"../pages/api/updateUser.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167146,"timestamp":16421031,"id":1244,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/google-login.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162849,"timestamp":16425401,"id":1277,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/get.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164011,"timestamp":16424309,"id":1269,"parentId":1193,"tags":{"name":"../pages/api/updateUserUser.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163728,"timestamp":16424644,"id":1272,"parentId":1193,"tags":{"name":"../pages/api/addUserTable.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159890,"timestamp":16428537,"id":1303,"parentId":1193,"tags":{"name":"../pages/api/acceptUserInvitation.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165358,"timestamp":16423131,"id":1259,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/get-user.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167365,"timestamp":16421194,"id":1245,"parentId":1193,"tags":{"name":"../pages/api/deleteDbUser.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167292,"timestamp":16421308,"id":1246,"parentId":1193,"tags":{"name":"../pages/api/healthcheck.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165606,"timestamp":16423032,"id":1258,"parentId":1193,"tags":{"name":"../pages/api/clientSideAuth.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161642,"timestamp":16427053,"id":1292,"parentId":1193,"tags":{"name":"../pages/api/registerUser.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162204,"timestamp":16426534,"id":1287,"parentId":1193,"tags":{"name":"../pages/api/social-login/github-auth.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166697,"timestamp":16422123,"id":1253,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/github-login.js","cache":"MISS"},"startTime":1736868348394,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":149385,"timestamp":16439498,"id":1335,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","cache":"MISS"},"startTime":1736868348411,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161954,"timestamp":16426969,"id":1291,"parentId":1193,"tags":{"name":"../pages/api/deleteUserUser.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":155613,"timestamp":16433402,"id":1318,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","cache":"MISS"},"startTime":1736868348405,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168317,"timestamp":16420788,"id":1242,"parentId":1193,"tags":{"name":"../pages/api/connect/verify.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":154664,"timestamp":16434516,"id":1321,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user].js","cache":"MISS"},"startTime":1736868348406,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162346,"timestamp":16426880,"id":1290,"parentId":1193,"tags":{"name":"../pages/api/purgeDb.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":149353,"timestamp":16439955,"id":1337,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database].js","cache":"MISS"},"startTime":1736868348411,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162983,"timestamp":16426398,"id":1286,"parentId":1193,"tags":{"name":"../pages/api/renameMedia.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167467,"timestamp":16421974,"id":1252,"parentId":1193,"tags":{"name":"../pages/api/admin/addUserBackup.js","cache":"MISS"},"startTime":1736868348393,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":151273,"timestamp":16438252,"id":1332,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users.js","cache":"MISS"},"startTime":1736868348410,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161623,"timestamp":16427977,"id":1299,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/reauth-user.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165489,"timestamp":16424177,"id":1268,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/delete-user.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159045,"timestamp":16430721,"id":1314,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/connect.js","cache":"MISS"},"startTime":1736868348402,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163485,"timestamp":16426323,"id":1285,"parentId":1193,"tags":{"name":"../pages/api/resetPassword.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161533,"timestamp":16428372,"id":1302,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/login-user.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":150295,"timestamp":16439675,"id":1336,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables.js","cache":"MISS"},"startTime":1736868348411,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":169306,"timestamp":16420712,"id":1241,"parentId":1193,"tags":{"name":"../pages/api/stream/[path].js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160210,"timestamp":16429893,"id":1313,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/api-keys.js","cache":"MISS"},"startTime":1736868348401,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166068,"timestamp":16424085,"id":1267,"parentId":1193,"tags":{"name":"../pages/api/sql-users/create.js","cache":"MISS"},"startTime":1736868348396,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163959,"timestamp":16426238,"id":1284,"parentId":1193,"tags":{"name":"../pages/api/social-login/utils/checkEmail.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160556,"timestamp":16429678,"id":1312,"parentId":1193,"tags":{"name":"../pages/about.js","cache":"MISS"},"startTime":1736868348401,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":167423,"timestamp":16422865,"id":1257,"parentId":1193,"tags":{"name":"../pages/api/connect/handshake.js","cache":"MISS"},"startTime":1736868348394,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160715,"timestamp":16429615,"id":1311,"parentId":1193,"tags":{"name":"../pages/_app.js","cache":"MISS"},"startTime":1736868348401,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163662,"timestamp":16426762,"id":1289,"parentId":1193,"tags":{"name":"../pages/api/runUserDbQuery.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162664,"timestamp":16427837,"id":1298,"parentId":1193,"tags":{"name":"../pages/api/social-login/facebook-auth.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":164402,"timestamp":16426158,"id":1283,"parentId":1193,"tags":{"name":"../pages/api/resetDelegatedDatabaseToken.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":156115,"timestamp":16434597,"id":1322,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table].js","cache":"MISS"},"startTime":1736868348406,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166878,"timestamp":16423974,"id":1266,"parentId":1193,"tags":{"name":"../pages/api/user-schema/replace-database-schema.js","cache":"MISS"},"startTime":1736868348395,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":150082,"timestamp":16440890,"id":1340,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","cache":"MISS"},"startTime":1736868348412,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162802,"timestamp":16428251,"id":1301,"parentId":1193,"tags":{"name":"../pages/api/addTableEntry.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168373,"timestamp":16422740,"id":1256,"parentId":1193,"tags":{"name":"../pages/api/getUserSchemaData.js","cache":"MISS"},"startTime":1736868348394,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":141874,"timestamp":16449298,"id":1376,"parentId":1193,"tags":{"name":"../pages/docs.js","cache":"MISS"},"startTime":1736868348421,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165142,"timestamp":16426074,"id":1282,"parentId":1193,"tags":{"name":"../pages/api/downloadDatabaseSchema.js","cache":"MISS"},"startTime":1736868348398,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":139836,"timestamp":16451428,"id":1386,"parentId":1193,"tags":{"name":"../webpack-runtime.js","cache":"MISS"},"startTime":1736868348423,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":148991,"timestamp":16442331,"id":1346,"parentId":1193,"tags":{"name":"../pages/su/users/new.js","cache":"MISS"},"startTime":1736868348414,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":150808,"timestamp":16440568,"id":1339,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","cache":"MISS"},"startTime":1736868348412,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163800,"timestamp":16427619,"id":1296,"parentId":1193,"tags":{"name":"../pages/api/social-login/utils/checkSocialId.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":149211,"timestamp":16442251,"id":1345,"parentId":1193,"tags":{"name":"../pages/api/fetch-media.js","cache":"MISS"},"startTime":1736868348414,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":140222,"timestamp":16451293,"id":1385,"parentId":1193,"tags":{"name":"../pages/blog.js","cache":"MISS"},"startTime":1736868348423,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163861,"timestamp":16427708,"id":1297,"parentId":1193,"tags":{"name":"../pages/api/addAdminUserUser.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":162152,"timestamp":16429475,"id":1310,"parentId":1193,"tags":{"name":"../pages/api/addApiKey.js","cache":"MISS"},"startTime":1736868348401,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":171093,"timestamp":16420598,"id":1240,"parentId":1193,"tags":{"name":"../pages/api/updateClonedTableForeignKeys.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"}] +[{"name":"minify-js","duration":149785,"timestamp":16442512,"id":1347,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/shell.js","cache":"MISS"},"startTime":1736868348414,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168179,"timestamp":16425939,"id":1281,"parentId":1193,"tags":{"name":"../pages/api/reAuthenticateUser.js","cache":"MISS"},"startTime":1736868348397,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":156408,"timestamp":16437890,"id":1331,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/databases.js","cache":"MISS"},"startTime":1736868348409,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":147853,"timestamp":16446513,"id":1362,"parentId":1193,"tags":{"name":"../pages/su/login.js","cache":"MISS"},"startTime":1736868348418,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":140341,"timestamp":16454119,"id":1395,"parentId":1193,"tags":{"name":"6622.js","cache":"MISS"},"startTime":1736868348426,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":173995,"timestamp":16420522,"id":1239,"parentId":1193,"tags":{"name":"../pages/api/admin/clientError.js","cache":"MISS"},"startTime":1736868348392,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":143454,"timestamp":16451130,"id":1384,"parentId":1193,"tags":{"name":"../pages/admin.js","cache":"MISS"},"startTime":1736868348423,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":155630,"timestamp":16439058,"id":1334,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/add-user.js","cache":"MISS"},"startTime":1736868348411,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165401,"timestamp":16429346,"id":1309,"parentId":1193,"tags":{"name":"../pages/api/addSocialLogin.js","cache":"MISS"},"startTime":1736868348401,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":148495,"timestamp":16446311,"id":1361,"parentId":1193,"tags":{"name":"../pages/su/users.js","cache":"MISS"},"startTime":1736868348418,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":161809,"timestamp":16434052,"id":1320,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/connect.js","cache":"MISS"},"startTime":1736868348406,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":155750,"timestamp":16440238,"id":1338,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/databases/[database]/[user].js","cache":"MISS"},"startTime":1736868348412,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168565,"timestamp":16427478,"id":1295,"parentId":1193,"tags":{"name":"../pages/api/addNewMediaFolder.js","cache":"MISS"},"startTime":1736868348399,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163277,"timestamp":16432874,"id":1317,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/add-table.js","cache":"MISS"},"startTime":1736868348404,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":155977,"timestamp":16441994,"id":1344,"parentId":1193,"tags":{"name":"../pages/reset-password.js","cache":"MISS"},"startTime":1736868348413,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":143653,"timestamp":16454428,"id":1396,"parentId":1193,"tags":{"name":"9814.js","cache":"MISS"},"startTime":1736868348426,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":159379,"timestamp":16438769,"id":1333,"parentId":1193,"tags":{"name":"../pages/admin/[user_id].js","cache":"MISS"},"startTime":1736868348410,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":152722,"timestamp":16448102,"id":1369,"parentId":1193,"tags":{"name":"../pages/su/error-logs.js","cache":"MISS"},"startTime":1736868348420,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":146970,"timestamp":16453967,"id":1394,"parentId":1193,"tags":{"name":"7769.js","cache":"MISS"},"startTime":1736868348425,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":168330,"timestamp":16432663,"id":1316,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases.js","cache":"MISS"},"startTime":1736868348404,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":155628,"timestamp":16447632,"id":1366,"parentId":1193,"tags":{"name":"../pages/su/docs.js","cache":"MISS"},"startTime":1736868348419,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":143641,"timestamp":16459840,"id":1411,"parentId":1193,"tags":{"name":"6202.js","cache":"MISS"},"startTime":1736868348431,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166245,"timestamp":16437578,"id":1330,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users.js","cache":"MISS"},"startTime":1736868348409,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":158663,"timestamp":16446143,"id":1360,"parentId":1193,"tags":{"name":"../pages/su/load-balancing.js","cache":"MISS"},"startTime":1736868348418,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":163611,"timestamp":16446009,"id":1359,"parentId":1193,"tags":{"name":"../pages/su/docs/create-page.js","cache":"MISS"},"startTime":1736868348418,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":160609,"timestamp":16449142,"id":1375,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/add-image.js","cache":"MISS"},"startTime":1736868348421,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":157125,"timestamp":16460396,"id":1414,"parentId":1193,"tags":{"name":"9240.js","cache":"MISS"},"startTime":1736868348432,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165485,"timestamp":16452905,"id":1390,"parentId":1193,"tags":{"name":"6521.js","cache":"MISS"},"startTime":1736868348424,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165825,"timestamp":16452647,"id":1389,"parentId":1193,"tags":{"name":"9821.js","cache":"MISS"},"startTime":1736868348424,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":189388,"timestamp":16429142,"id":1308,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/update-user.js","cache":"MISS"},"startTime":1736868348401,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":170661,"timestamp":16447970,"id":1368,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/get-private-file.js","cache":"MISS"},"startTime":1736868348419,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":178785,"timestamp":16441716,"id":1343,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","cache":"MISS"},"startTime":1736868348413,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":165488,"timestamp":16455109,"id":1399,"parentId":1193,"tags":{"name":"3704.js","cache":"MISS"},"startTime":1736868348427,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":174876,"timestamp":16445796,"id":1358,"parentId":1193,"tags":{"name":"../pages/su/console.js","cache":"MISS"},"startTime":1736868348417,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":189362,"timestamp":16432337,"id":1315,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/edit-database.js","cache":"MISS"},"startTime":1736868348404,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":190864,"timestamp":16433720,"id":1319,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/schema.js","cache":"MISS"},"startTime":1736868348405,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":196742,"timestamp":16447411,"id":1365,"parentId":1193,"tags":{"name":"../pages/send-password-reset-link.js","cache":"MISS"},"startTime":1736868348419,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":196572,"timestamp":16447757,"id":1367,"parentId":1193,"tags":{"name":"../pages/su/backups.js","cache":"MISS"},"startTime":1736868348419,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":193841,"timestamp":16450696,"id":1383,"parentId":1193,"tags":{"name":"../pages/create-account.js","cache":"MISS"},"startTime":1736868348422,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":200724,"timestamp":16443876,"id":1352,"parentId":1193,"tags":{"name":"../pages/su/docs/pages.js","cache":"MISS"},"startTime":1736868348415,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":199385,"timestamp":16445276,"id":1357,"parentId":1193,"tags":{"name":"../pages/index.js","cache":"MISS"},"startTime":1736868348417,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":203477,"timestamp":16441250,"id":1341,"parentId":1193,"tags":{"name":"../pages/redirect.js","cache":"MISS"},"startTime":1736868348413,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":184571,"timestamp":16460243,"id":1413,"parentId":1193,"tags":{"name":"6133.js","cache":"MISS"},"startTime":1736868348432,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":197553,"timestamp":16447311,"id":1364,"parentId":1193,"tags":{"name":"../pages/api/exportTableData.js","cache":"MISS"},"startTime":1736868348419,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":203543,"timestamp":16441412,"id":1342,"parentId":1193,"tags":{"name":"../pages/privacy.js","cache":"MISS"},"startTime":1736868348413,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":207810,"timestamp":16437216,"id":1329,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","cache":"MISS"},"startTime":1736868348409,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":191502,"timestamp":16453590,"id":1392,"parentId":1193,"tags":{"name":"5392.js","cache":"MISS"},"startTime":1736868348425,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":187337,"timestamp":16457878,"id":1407,"parentId":1193,"tags":{"name":"9136.js","cache":"MISS"},"startTime":1736868348429,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":190095,"timestamp":16455259,"id":1400,"parentId":1193,"tags":{"name":"2282.js","cache":"MISS"},"startTime":1736868348427,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":196419,"timestamp":16449009,"id":1374,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/delete-file.js","cache":"MISS"},"startTime":1736868348421,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":196613,"timestamp":16448866,"id":1373,"parentId":1193,"tags":{"name":"../pages/su/docs/pages/[id].js","cache":"MISS"},"startTime":1736868348420,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":216630,"timestamp":16428931,"id":1307,"parentId":1193,"tags":{"name":"../pages/api/user/[user_id]/send-email-code.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":195172,"timestamp":16450442,"id":1382,"parentId":1193,"tags":{"name":"../pages/contact.js","cache":"MISS"},"startTime":1736868348422,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":185641,"timestamp":16460023,"id":1412,"parentId":1193,"tags":{"name":"194.js","cache":"MISS"},"startTime":1736868348432,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":198700,"timestamp":16454852,"id":1398,"parentId":1193,"tags":{"name":"6247.js","cache":"MISS"},"startTime":1736868348426,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":224827,"timestamp":16428851,"id":1306,"parentId":1193,"tags":{"name":"../pages/api/webhooks/github-push.js","cache":"MISS"},"startTime":1736868348400,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":216867,"timestamp":16436890,"id":1328,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/media/[...folder].js","cache":"MISS"},"startTime":1736868348408,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":205322,"timestamp":16448508,"id":1371,"parentId":1193,"tags":{"name":"../pages/su/docs/edit-page.js","cache":"MISS"},"startTime":1736868348420,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":208978,"timestamp":16444933,"id":1356,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single].js","cache":"MISS"},"startTime":1736868348416,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":200133,"timestamp":16453883,"id":1393,"parentId":1193,"tags":{"name":"1251.js","cache":"MISS"},"startTime":1736868348425,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":196316,"timestamp":16457771,"id":1406,"parentId":1193,"tags":{"name":"1579.js","cache":"MISS"},"startTime":1736868348429,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":228095,"timestamp":16448633,"id":1372,"parentId":1193,"tags":{"name":"../pages/email-verification.js","cache":"MISS"},"startTime":1736868348420,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":217562,"timestamp":16459619,"id":1410,"parentId":1193,"tags":{"name":"7303.js","cache":"MISS"},"startTime":1736868348431,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":220059,"timestamp":16457264,"id":1404,"parentId":1193,"tags":{"name":"5771.js","cache":"MISS"},"startTime":1736868348429,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":240801,"timestamp":16436595,"id":1327,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/media.js","cache":"MISS"},"startTime":1736868348408,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":227239,"timestamp":16450222,"id":1381,"parentId":1193,"tags":{"name":"../pages/docs/[page]/[sub-page].js","cache":"MISS"},"startTime":1736868348422,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":233535,"timestamp":16443990,"id":1353,"parentId":1193,"tags":{"name":"../pages/su/envar.js","cache":"MISS"},"startTime":1736868348415,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":222871,"timestamp":16454716,"id":1397,"parentId":1193,"tags":{"name":"3155.js","cache":"MISS"},"startTime":1736868348426,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":234127,"timestamp":16443557,"id":1351,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/schema.js","cache":"MISS"},"startTime":1736868348415,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":234744,"timestamp":16443004,"id":1349,"parentId":1193,"tags":{"name":"../pages/unsubscribe.js","cache":"MISS"},"startTime":1736868348415,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":234966,"timestamp":16442838,"id":1348,"parentId":1193,"tags":{"name":"../pages/logout.js","cache":"MISS"},"startTime":1736868348414,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":233658,"timestamp":16444221,"id":1354,"parentId":1193,"tags":{"name":"../pages/login.js","cache":"MISS"},"startTime":1736868348416,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":242258,"timestamp":16435700,"id":1324,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","cache":"MISS"},"startTime":1736868348407,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":221249,"timestamp":16456792,"id":1403,"parentId":1193,"tags":{"name":"6903.js","cache":"MISS"},"startTime":1736868348428,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":242712,"timestamp":16435391,"id":1323,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/settings.js","cache":"MISS"},"startTime":1736868348407,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":220649,"timestamp":16457516,"id":1405,"parentId":1193,"tags":{"name":"4627.js","cache":"MISS"},"startTime":1736868348429,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":229951,"timestamp":16448285,"id":1370,"parentId":1193,"tags":{"name":"../pages/su.js","cache":"MISS"},"startTime":1736868348420,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":221615,"timestamp":16456682,"id":1402,"parentId":1193,"tags":{"name":"5954.js","cache":"MISS"},"startTime":1736868348428,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":228653,"timestamp":16449712,"id":1378,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/add-file.js","cache":"MISS"},"startTime":1736868348421,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":233765,"timestamp":16444660,"id":1355,"parentId":1193,"tags":{"name":"../pages/su/servers.js","cache":"MISS"},"startTime":1736868348416,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":228423,"timestamp":16450052,"id":1380,"parentId":1193,"tags":{"name":"../pages/api/addUserMedia.js","cache":"MISS"},"startTime":1736868348422,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":235369,"timestamp":16443201,"id":1350,"parentId":1193,"tags":{"name":"../pages/terms.js","cache":"MISS"},"startTime":1736868348415,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":242757,"timestamp":16435907,"id":1325,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/users/add-user.js","cache":"MISS"},"startTime":1736868348407,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":228300,"timestamp":16451701,"id":1387,"parentId":1193,"tags":{"name":"../webpack-api-runtime.js","cache":"MISS"},"startTime":1736868348423,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":230344,"timestamp":16449828,"id":1379,"parentId":1193,"tags":{"name":"../pages/docs/[page].js","cache":"MISS"},"startTime":1736868348421,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":244047,"timestamp":16436336,"id":1326,"parentId":1193,"tags":{"name":"../pages/admin/[user_id]/databases/add-database.js","cache":"MISS"},"startTime":1736868348408,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":235062,"timestamp":16453097,"id":1391,"parentId":1193,"tags":{"name":"9796.js","cache":"MISS"},"startTime":1736868348425,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":241501,"timestamp":16446750,"id":1363,"parentId":1193,"tags":{"name":"../pages/su/users/[single].js","cache":"MISS"},"startTime":1736868348418,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":232102,"timestamp":16456219,"id":1401,"parentId":1193,"tags":{"name":"725.js","cache":"MISS"},"startTime":1736868348428,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":238785,"timestamp":16449569,"id":1377,"parentId":1193,"tags":{"name":"../pages/api/query/[user_id]/post.js","cache":"MISS"},"startTime":1736868348421,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":229013,"timestamp":16459391,"id":1409,"parentId":1193,"tags":{"name":"3474.js","cache":"MISS"},"startTime":1736868348431,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":233821,"timestamp":16458860,"id":1408,"parentId":1193,"tags":{"name":"8704.js","cache":"MISS"},"startTime":1736868348430,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":266225,"timestamp":16451762,"id":1388,"parentId":1193,"tags":{"name":"883.js","cache":"MISS"},"startTime":1736868348423,"traceId":"d6db589d9eef97d2"},{"name":"minify-webpack-plugin-optimize","duration":354868,"timestamp":16363155,"id":1193,"parentId":16,"tags":{"compilationName":"server"},"startTime":1736868348335,"traceId":"d6db589d9eef97d2"},{"name":"css-minimizer-plugin","duration":241,"timestamp":16718406,"id":1415,"parentId":16,"tags":{},"startTime":1736868348690,"traceId":"d6db589d9eef97d2"},{"name":"create-trace-assets","duration":11405,"timestamp":16719000,"id":1416,"parentId":17,"tags":{},"startTime":1736868348691,"traceId":"d6db589d9eef97d2"},{"name":"seal","duration":1637911,"timestamp":15098951,"id":1180,"parentId":16,"tags":{},"startTime":1736868347070,"traceId":"d6db589d9eef97d2"},{"name":"webpack-compilation","duration":14646874,"timestamp":2090530,"id":16,"parentId":13,"tags":{"name":"server"},"startTime":1736868334062,"traceId":"d6db589d9eef97d2"},{"name":"emit","duration":19098,"timestamp":16737919,"id":1417,"parentId":13,"tags":{},"startTime":1736868348709,"traceId":"d6db589d9eef97d2"},{"name":"webpack-close","duration":680344,"timestamp":16764334,"id":1418,"parentId":13,"tags":{"name":"server"},"startTime":1736868348736,"traceId":"d6db589d9eef97d2"},{"name":"webpack-generate-error-stats","duration":2590,"timestamp":17444761,"id":1419,"parentId":1418,"tags":{},"startTime":1736868349416,"traceId":"d6db589d9eef97d2"}] +[{"name":"make","duration":109,"timestamp":17459332,"id":1421,"parentId":1420,"tags":{},"startTime":1736868349431,"traceId":"d6db589d9eef97d2"},{"name":"chunk-graph","duration":79,"timestamp":17460655,"id":1423,"parentId":1422,"tags":{},"startTime":1736868349432,"traceId":"d6db589d9eef97d2"},{"name":"optimize-modules","duration":8,"timestamp":17460771,"id":1425,"parentId":1422,"tags":{},"startTime":1736868349432,"traceId":"d6db589d9eef97d2"},{"name":"optimize-chunks","duration":189,"timestamp":17460805,"id":1426,"parentId":1422,"tags":{},"startTime":1736868349432,"traceId":"d6db589d9eef97d2"},{"name":"optimize-tree","duration":16,"timestamp":17461020,"id":1427,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"optimize-chunk-modules","duration":86,"timestamp":17461119,"id":1428,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"optimize","duration":471,"timestamp":17460756,"id":1424,"parentId":1422,"tags":{},"startTime":1736868349432,"traceId":"d6db589d9eef97d2"},{"name":"module-hash","duration":18,"timestamp":17461471,"id":1429,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"code-generation","duration":15,"timestamp":17461505,"id":1430,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"hash","duration":64,"timestamp":17461588,"id":1431,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"code-generation-jobs","duration":48,"timestamp":17461652,"id":1432,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"module-assets","duration":27,"timestamp":17461679,"id":1433,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"create-chunk-assets","duration":27,"timestamp":17461716,"id":1434,"parentId":1422,"tags":{},"startTime":1736868349433,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":580,"timestamp":17468814,"id":1436,"parentId":1435,"tags":{"name":"interception-route-rewrite-manifest.js","cache":"MISS"},"startTime":1736868349440,"traceId":"d6db589d9eef97d2"},{"name":"minify-webpack-plugin-optimize","duration":972,"timestamp":17468439,"id":1435,"parentId":1420,"tags":{"compilationName":"edge-server"},"startTime":1736868349440,"traceId":"d6db589d9eef97d2"},{"name":"css-minimizer-plugin","duration":24,"timestamp":17469466,"id":1437,"parentId":1420,"tags":{},"startTime":1736868349441,"traceId":"d6db589d9eef97d2"},{"name":"seal","duration":10054,"timestamp":17460507,"id":1422,"parentId":1420,"tags":{},"startTime":1736868349432,"traceId":"d6db589d9eef97d2"},{"name":"webpack-compilation","duration":13365,"timestamp":17457291,"id":1420,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736868349429,"traceId":"d6db589d9eef97d2"},{"name":"emit","duration":375,"timestamp":17470724,"id":1438,"parentId":13,"tags":{},"startTime":1736868349442,"traceId":"d6db589d9eef97d2"},{"name":"webpack-close","duration":3402,"timestamp":17471295,"id":1439,"parentId":13,"tags":{"name":"edge-server"},"startTime":1736868349443,"traceId":"d6db589d9eef97d2"},{"name":"webpack-generate-error-stats","duration":889,"timestamp":17474727,"id":1440,"parentId":1439,"tags":{},"startTime":1736868349446,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":296,"timestamp":17507642,"id":1516,"parentId":1515,"tags":{"absolutePagePath":"next/dist/pages/_error"},"startTime":1736868349479,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":3144,"timestamp":17506248,"id":1515,"parentId":1444,"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":1736868349478,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":73,"timestamp":17509567,"id":1518,"parentId":1517,"tags":{"absolutePagePath":"private-next-pages/404.tsx"},"startTime":1736868349481,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":700,"timestamp":17509482,"id":1517,"parentId":1445,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!","layer":null},"startTime":1736868349481,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":72,"timestamp":17510259,"id":1520,"parentId":1519,"tags":{"absolutePagePath":"private-next-pages/500.tsx"},"startTime":1736868349482,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":429,"timestamp":17510210,"id":1519,"parentId":1446,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!","layer":null},"startTime":1736868349482,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":46,"timestamp":17510692,"id":1522,"parentId":1521,"tags":{"absolutePagePath":"private-next-pages/_app.tsx"},"startTime":1736868349482,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":304,"timestamp":17510657,"id":1521,"parentId":1447,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!","layer":null},"startTime":1736868349482,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":53,"timestamp":17511002,"id":1524,"parentId":1523,"tags":{"absolutePagePath":"private-next-pages/about.tsx"},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":276,"timestamp":17510975,"id":1523,"parentId":1449,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!","layer":null},"startTime":1736868349482,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":86,"timestamp":17511292,"id":1526,"parentId":1525,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/api-keys/index.tsx"},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":309,"timestamp":17511266,"id":1525,"parentId":1450,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!","layer":null},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":76,"timestamp":17511613,"id":1528,"parentId":1527,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/connect/index.tsx"},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":315,"timestamp":17511589,"id":1527,"parentId":1451,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!","layer":null},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":109,"timestamp":17511948,"id":1530,"parentId":1529,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/edit-database.tsx"},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":361,"timestamp":17511919,"id":1529,"parentId":1452,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!","layer":null},"startTime":1736868349483,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":66,"timestamp":17512321,"id":1532,"parentId":1531,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/index.tsx"},"startTime":1736868349484,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":428,"timestamp":17512294,"id":1531,"parentId":1453,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!","layer":null},"startTime":1736868349484,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":134,"timestamp":17512779,"id":1534,"parentId":1533,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/add-table.tsx"},"startTime":1736868349484,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":457,"timestamp":17512741,"id":1533,"parentId":1454,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!","layer":null},"startTime":1736868349484,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":142,"timestamp":17513250,"id":1536,"parentId":1535,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx"},"startTime":1736868349485,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":452,"timestamp":17513215,"id":1535,"parentId":1455,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!","layer":null},"startTime":1736868349485,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":99,"timestamp":17513719,"id":1538,"parentId":1537,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/schema.tsx"},"startTime":1736868349485,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":370,"timestamp":17513685,"id":1537,"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%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!","layer":null},"startTime":1736868349485,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":70,"timestamp":17514093,"id":1540,"parentId":1539,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/connect.tsx"},"startTime":1736868349486,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":282,"timestamp":17514070,"id":1539,"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%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!","layer":null},"startTime":1736868349486,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":68,"timestamp":17514388,"id":1542,"parentId":1541,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx"},"startTime":1736868349486,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":274,"timestamp":17514365,"id":1541,"parentId":1458,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!","layer":null},"startTime":1736868349486,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":85,"timestamp":17514676,"id":1544,"parentId":1543,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx"},"startTime":1736868349486,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":328,"timestamp":17514652,"id":1543,"parentId":1459,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!","layer":null},"startTime":1736868349486,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":63,"timestamp":17515021,"id":1546,"parentId":1545,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/settings.tsx"},"startTime":1736868349487,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":313,"timestamp":17514995,"id":1545,"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%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!","layer":null},"startTime":1736868349487,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":99,"timestamp":17515354,"id":1548,"parentId":1547,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx"},"startTime":1736868349487,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":348,"timestamp":17515323,"id":1547,"parentId":1461,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!","layer":null},"startTime":1736868349487,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":91,"timestamp":17515717,"id":1550,"parentId":1549,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/add-user.tsx"},"startTime":1736868349487,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":328,"timestamp":17515691,"id":1549,"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%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736868349487,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":71,"timestamp":17516056,"id":1552,"parentId":1551,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/add-database.tsx"},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":276,"timestamp":17516032,"id":1551,"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%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!","layer":null},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":60,"timestamp":17516350,"id":1554,"parentId":1553,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/index.tsx"},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":270,"timestamp":17516325,"id":1553,"parentId":1464,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!","layer":null},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":62,"timestamp":17516635,"id":1556,"parentId":1555,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/media/[...folder].tsx"},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":305,"timestamp":17516607,"id":1555,"parentId":1465,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!","layer":null},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":91,"timestamp":17516959,"id":1558,"parentId":1557,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx"},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":353,"timestamp":17516928,"id":1557,"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%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!","layer":null},"startTime":1736868349488,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":77,"timestamp":17517329,"id":1560,"parentId":1559,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/index.tsx"},"startTime":1736868349489,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":376,"timestamp":17517297,"id":1559,"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%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!","layer":null},"startTime":1736868349489,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":70,"timestamp":17517720,"id":1562,"parentId":1561,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/index.tsx"},"startTime":1736868349489,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":362,"timestamp":17517688,"id":1561,"parentId":1468,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!","layer":null},"startTime":1736868349489,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":74,"timestamp":17518106,"id":1564,"parentId":1563,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/index.tsx"},"startTime":1736868349490,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":354,"timestamp":17518067,"id":1563,"parentId":1469,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!","layer":null},"startTime":1736868349490,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":121,"timestamp":17518467,"id":1566,"parentId":1565,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/index.tsx"},"startTime":1736868349490,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":454,"timestamp":17518437,"id":1565,"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%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!","layer":null},"startTime":1736868349490,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":93,"timestamp":17518946,"id":1568,"parentId":1567,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/users/add-user.tsx"},"startTime":1736868349490,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":386,"timestamp":17518910,"id":1567,"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-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!","layer":null},"startTime":1736868349490,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":113,"timestamp":17519339,"id":1570,"parentId":1569,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx"},"startTime":1736868349491,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":380,"timestamp":17519311,"id":1569,"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%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!","layer":null},"startTime":1736868349491,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":124,"timestamp":17519739,"id":1572,"parentId":1571,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/index.tsx"},"startTime":1736868349491,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":366,"timestamp":17519708,"id":1571,"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%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!","layer":null},"startTime":1736868349491,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":78,"timestamp":17520120,"id":1574,"parentId":1573,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/index.tsx"},"startTime":1736868349492,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":355,"timestamp":17520091,"id":1573,"parentId":1474,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!","layer":null},"startTime":1736868349492,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":140,"timestamp":17520498,"id":1576,"parentId":1575,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/users/databases/[database]/[user].tsx"},"startTime":1736868349492,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":478,"timestamp":17520463,"id":1575,"parentId":1475,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!","layer":null},"startTime":1736868349492,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":172,"timestamp":17520994,"id":1578,"parentId":1577,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx"},"startTime":1736868349493,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":548,"timestamp":17520960,"id":1577,"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%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!","layer":null},"startTime":1736868349492,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":246,"timestamp":17521570,"id":1580,"parentId":1579,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx"},"startTime":1736868349493,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":608,"timestamp":17521532,"id":1579,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!","layer":null},"startTime":1736868349493,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":87,"timestamp":17522208,"id":1582,"parentId":1581,"tags":{"absolutePagePath":"private-next-pages/redirect.tsx"},"startTime":1736868349494,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":501,"timestamp":17522158,"id":1581,"parentId":1478,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!","layer":null},"startTime":1736868349494,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":69,"timestamp":17522715,"id":1584,"parentId":1583,"tags":{"absolutePagePath":"private-next-pages/privacy.tsx"},"startTime":1736868349494,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":333,"timestamp":17522677,"id":1583,"parentId":1479,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!","layer":null},"startTime":1736868349494,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":118,"timestamp":17523073,"id":1586,"parentId":1585,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx"},"startTime":1736868349495,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":447,"timestamp":17523027,"id":1585,"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%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!","layer":null},"startTime":1736868349495,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":91,"timestamp":17523531,"id":1588,"parentId":1587,"tags":{"absolutePagePath":"private-next-pages/reset-password.tsx"},"startTime":1736868349495,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":425,"timestamp":17523495,"id":1587,"parentId":1481,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!","layer":null},"startTime":1736868349495,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":47,"timestamp":17523968,"id":1590,"parentId":1589,"tags":{"absolutePagePath":"private-next-pages/su/users/new.tsx"},"startTime":1736868349495,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":264,"timestamp":17523939,"id":1589,"parentId":1482,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!","layer":null},"startTime":1736868349495,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":67,"timestamp":17524242,"id":1592,"parentId":1591,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/shell.tsx"},"startTime":1736868349496,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":357,"timestamp":17524216,"id":1591,"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%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!","layer":null},"startTime":1736868349496,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":63,"timestamp":17524627,"id":1594,"parentId":1593,"tags":{"absolutePagePath":"private-next-pages/logout.tsx"},"startTime":1736868349496,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":358,"timestamp":17524591,"id":1593,"parentId":1484,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!","layer":null},"startTime":1736868349496,"traceId":"d6db589d9eef97d2"}] +[{"name":"next-client-pages-loader","duration":72,"timestamp":17525248,"id":1596,"parentId":1595,"tags":{"absolutePagePath":"private-next-pages/unsubscribe.tsx"},"startTime":1736868349497,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":387,"timestamp":17525216,"id":1595,"parentId":1485,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!","layer":null},"startTime":1736868349497,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":89,"timestamp":17525664,"id":1598,"parentId":1597,"tags":{"absolutePagePath":"private-next-pages/terms.tsx"},"startTime":1736868349497,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":408,"timestamp":17525628,"id":1597,"parentId":1486,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!","layer":null},"startTime":1736868349497,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":69,"timestamp":17526083,"id":1600,"parentId":1599,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/schema.tsx"},"startTime":1736868349498,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":307,"timestamp":17526054,"id":1599,"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%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!","layer":null},"startTime":1736868349498,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":76,"timestamp":17526417,"id":1602,"parentId":1601,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/index.tsx"},"startTime":1736868349498,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":422,"timestamp":17526378,"id":1601,"parentId":1488,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!","layer":null},"startTime":1736868349498,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":55,"timestamp":17526865,"id":1604,"parentId":1603,"tags":{"absolutePagePath":"private-next-pages/su/envar.tsx"},"startTime":1736868349498,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":390,"timestamp":17526821,"id":1603,"parentId":1489,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!","layer":null},"startTime":1736868349498,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":89,"timestamp":17527271,"id":1606,"parentId":1605,"tags":{"absolutePagePath":"private-next-pages/login.tsx"},"startTime":1736868349499,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":417,"timestamp":17527229,"id":1605,"parentId":1490,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!","layer":null},"startTime":1736868349499,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":67,"timestamp":17527699,"id":1608,"parentId":1607,"tags":{"absolutePagePath":"private-next-pages/su/servers.tsx"},"startTime":1736868349499,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":372,"timestamp":17527665,"id":1607,"parentId":1491,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!","layer":null},"startTime":1736868349499,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":56,"timestamp":17528089,"id":1610,"parentId":1609,"tags":{"absolutePagePath":"private-next-pages/admin/[user_id]/databases/[single]/index.tsx"},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":293,"timestamp":17528052,"id":1609,"parentId":1492,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!","layer":null},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":41,"timestamp":17528383,"id":1612,"parentId":1611,"tags":{"absolutePagePath":"private-next-pages/index.tsx"},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":256,"timestamp":17528359,"id":1611,"parentId":1493,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!","layer":null},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":43,"timestamp":17528653,"id":1614,"parentId":1613,"tags":{"absolutePagePath":"private-next-pages/su/console.tsx"},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":262,"timestamp":17528629,"id":1613,"parentId":1494,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!","layer":null},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":42,"timestamp":17528929,"id":1616,"parentId":1615,"tags":{"absolutePagePath":"private-next-pages/su/docs/create-page.tsx"},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":298,"timestamp":17528905,"id":1615,"parentId":1495,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!","layer":null},"startTime":1736868349500,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":84,"timestamp":17529250,"id":1618,"parentId":1617,"tags":{"absolutePagePath":"private-next-pages/su/load-balancing.tsx"},"startTime":1736868349501,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":319,"timestamp":17529219,"id":1617,"parentId":1496,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!","layer":null},"startTime":1736868349501,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":48,"timestamp":17529578,"id":1620,"parentId":1619,"tags":{"absolutePagePath":"private-next-pages/su/users/index.tsx"},"startTime":1736868349501,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":258,"timestamp":17529552,"id":1619,"parentId":1497,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!","layer":null},"startTime":1736868349501,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":48,"timestamp":17529848,"id":1622,"parentId":1621,"tags":{"absolutePagePath":"private-next-pages/su/login.tsx"},"startTime":1736868349501,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":328,"timestamp":17529824,"id":1621,"parentId":1498,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!","layer":null},"startTime":1736868349501,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":79,"timestamp":17530202,"id":1624,"parentId":1623,"tags":{"absolutePagePath":"private-next-pages/su/users/[single].tsx"},"startTime":1736868349502,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":383,"timestamp":17530168,"id":1623,"parentId":1499,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!","layer":null},"startTime":1736868349502,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":102,"timestamp":17530601,"id":1626,"parentId":1625,"tags":{"absolutePagePath":"private-next-pages/send-password-reset-link.tsx"},"startTime":1736868349502,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":383,"timestamp":17530572,"id":1625,"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.tsx&page=%2Fsend-password-reset-link!","layer":null},"startTime":1736868349502,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":77,"timestamp":17531013,"id":1628,"parentId":1627,"tags":{"absolutePagePath":"private-next-pages/su/docs/index.tsx"},"startTime":1736868349503,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":419,"timestamp":17530977,"id":1627,"parentId":1501,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!","layer":null},"startTime":1736868349502,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":80,"timestamp":17531447,"id":1630,"parentId":1629,"tags":{"absolutePagePath":"private-next-pages/su/backups.tsx"},"startTime":1736868349503,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":361,"timestamp":17531413,"id":1629,"parentId":1502,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!","layer":null},"startTime":1736868349503,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":55,"timestamp":17531819,"id":1632,"parentId":1631,"tags":{"absolutePagePath":"private-next-pages/su/error-logs.tsx"},"startTime":1736868349503,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":345,"timestamp":17531788,"id":1631,"parentId":1503,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!","layer":null},"startTime":1736868349503,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":73,"timestamp":17532184,"id":1634,"parentId":1633,"tags":{"absolutePagePath":"private-next-pages/su/index.tsx"},"startTime":1736868349504,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":511,"timestamp":17532151,"id":1633,"parentId":1504,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!","layer":null},"startTime":1736868349504,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":73,"timestamp":17532723,"id":1636,"parentId":1635,"tags":{"absolutePagePath":"private-next-pages/su/docs/edit-page.tsx"},"startTime":1736868349504,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":353,"timestamp":17532684,"id":1635,"parentId":1505,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!","layer":null},"startTime":1736868349504,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":54,"timestamp":17533085,"id":1638,"parentId":1637,"tags":{"absolutePagePath":"private-next-pages/email-verification/index.tsx"},"startTime":1736868349505,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":312,"timestamp":17533058,"id":1637,"parentId":1506,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!","layer":null},"startTime":1736868349505,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":58,"timestamp":17533413,"id":1640,"parentId":1639,"tags":{"absolutePagePath":"private-next-pages/su/docs/pages/[id].tsx"},"startTime":1736868349505,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":292,"timestamp":17533387,"id":1639,"parentId":1507,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!","layer":null},"startTime":1736868349505,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":46,"timestamp":17533736,"id":1642,"parentId":1641,"tags":{"absolutePagePath":"private-next-pages/docs/index.tsx"},"startTime":1736868349505,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":291,"timestamp":17533698,"id":1641,"parentId":1508,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!","layer":null},"startTime":1736868349505,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":59,"timestamp":17534031,"id":1644,"parentId":1643,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/index.tsx"},"startTime":1736868349506,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":275,"timestamp":17534003,"id":1643,"parentId":1509,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!","layer":null},"startTime":1736868349506,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":73,"timestamp":17534328,"id":1646,"parentId":1645,"tags":{"absolutePagePath":"private-next-pages/docs/[page]/[sub-page]/index.tsx"},"startTime":1736868349506,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":280,"timestamp":17534295,"id":1645,"parentId":1510,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!","layer":null},"startTime":1736868349506,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":39,"timestamp":17534678,"id":1648,"parentId":1647,"tags":{"absolutePagePath":"private-next-pages/contact.tsx"},"startTime":1736868349506,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":399,"timestamp":17534596,"id":1647,"parentId":1511,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!","layer":null},"startTime":1736868349506,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":48,"timestamp":17535040,"id":1650,"parentId":1649,"tags":{"absolutePagePath":"private-next-pages/create-account.tsx"},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":269,"timestamp":17535016,"id":1649,"parentId":1512,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!","layer":null},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":41,"timestamp":17535323,"id":1652,"parentId":1651,"tags":{"absolutePagePath":"private-next-pages/admin/index.tsx"},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":260,"timestamp":17535299,"id":1651,"parentId":1513,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!","layer":null},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"next-client-pages-loader","duration":44,"timestamp":17535598,"id":1654,"parentId":1653,"tags":{"absolutePagePath":"private-next-pages/blog/index.tsx"},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":300,"timestamp":17535574,"id":1653,"parentId":1514,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!","layer":null},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":42886,"timestamp":17535895,"id":1655,"parentId":1443,"tags":{"name":"/app/node_modules/next/dist/client/next.js","layer":null},"startTime":1736868349507,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4056,"timestamp":17581795,"id":1656,"parentId":1515,"tags":{"name":"/app/node_modules/next/dist/pages/_error.js","layer":null},"startTime":1736868349553,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7179,"timestamp":17581927,"id":1657,"parentId":1448,"tags":{"name":"/app/node_modules/next/dist/client/router.js","layer":null},"startTime":1736868349553,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12103,"timestamp":17589726,"id":1658,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/client/webpack.js","layer":null},"startTime":1736868349561,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1666,"timestamp":17604487,"id":1660,"parentId":1657,"tags":{"name":"/app/node_modules/next/dist/lib/is-error.js","layer":null},"startTime":1736868349576,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26751,"timestamp":17589863,"id":1659,"parentId":1655,"tags":{"name":"/app/node_modules/next/dist/client/index.js","layer":null},"startTime":1736868349561,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18902,"timestamp":17604618,"id":1661,"parentId":1656,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head.js","layer":null},"startTime":1736868349576,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19401,"timestamp":17604739,"id":1663,"parentId":1657,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router-context.shared-runtime.js","layer":null},"startTime":1736868349576,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20226,"timestamp":17604686,"id":1662,"parentId":1657,"tags":{"name":"/app/node_modules/next/dist/client/with-router.js","layer":null},"startTime":1736868349576,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":55401,"timestamp":17604796,"id":1664,"parentId":1657,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/router.js","layer":null},"startTime":1736868349576,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1528,"timestamp":17694463,"id":1665,"parentId":1658,"tags":{"name":"/app/node_modules/next/dist/build/deployment-id.js","layer":null},"startTime":1736868349666,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1847,"timestamp":17694591,"id":1666,"parentId":1656,"tags":{"name":"/app/node_modules/react/jsx-runtime.js","layer":null},"startTime":1736868349666,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6910,"timestamp":17698225,"id":1667,"parentId":1656,"tags":{"name":"/app/node_modules/react/index.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9436,"timestamp":17698265,"id":1668,"parentId":1660,"tags":{"name":"/app/node_modules/next/dist/shared/lib/is-plain-object.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9933,"timestamp":17698416,"id":1671,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12063,"timestamp":17698378,"id":1670,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12730,"timestamp":17698330,"id":1669,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12626,"timestamp":17698763,"id":1679,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13102,"timestamp":17698714,"id":1678,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/runtime-config.external.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13758,"timestamp":17698674,"id":1677,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/has-base-path.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14365,"timestamp":17698619,"id":1676,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/mitt.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15091,"timestamp":17698582,"id":1675,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/remove-base-path.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16189,"timestamp":17698538,"id":1674,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/route-announcer.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16512,"timestamp":17698812,"id":1680,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16982,"timestamp":17698857,"id":1681,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19341,"timestamp":17698499,"id":1673,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/page-loader.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21318,"timestamp":17698458,"id":1672,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/head-manager.js","layer":null},"startTime":1736868349670,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12423,"timestamp":17722372,"id":1682,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/adapters.js","layer":null},"startTime":1736868349694,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4055,"timestamp":17732474,"id":1685,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/polyfill-module.js","layer":null},"startTime":1736868349704,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4496,"timestamp":17732677,"id":1688,"parentId":1659,"tags":{"name":"/app/node_modules/react-dom/client.js","layer":null},"startTime":1736868349704,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7397,"timestamp":17732608,"id":1687,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/script.js","layer":null},"startTime":1736868349704,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8151,"timestamp":17732240,"id":1683,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js","layer":null},"startTime":1736868349704,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8965,"timestamp":17732402,"id":1684,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/querystring.js","layer":null},"startTime":1736868349704,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9529,"timestamp":17732547,"id":1686,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/shared.js","layer":null},"startTime":1736868349704,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2961,"timestamp":17754152,"id":1690,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/side-effect.js","layer":null},"startTime":1736868349726,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3866,"timestamp":17754028,"id":1689,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/pages/_app.js","layer":null},"startTime":1736868349726,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1584,"timestamp":17758772,"id":1692,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-mode.js","layer":null},"startTime":1736868349730,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1820,"timestamp":17758829,"id":1693,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/utils/warn-once.js","layer":null},"startTime":1736868349730,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2138,"timestamp":17758863,"id":1694,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","layer":null},"startTime":1736868349730,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2634,"timestamp":17758664,"id":1691,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","layer":null},"startTime":1736868349730,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2992,"timestamp":17758902,"id":1695,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/components/is-next-router-error.js","layer":null},"startTime":1736868349730,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-js","duration":4274,"timestamp":17758947,"id":1696,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/tracing/tracer.js","layer":null},"startTime":1736868349730,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8914,"timestamp":17763882,"id":1697,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/tracing/report-to-socket.js","layer":null},"startTime":1736868349735,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":602,"timestamp":17777490,"id":1701,"parentId":1664,"tags":{"layer":null},"startTime":1736868349749,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18600,"timestamp":17763983,"id":1698,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/route-loader.js","layer":null},"startTime":1736868349735,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1954,"timestamp":17788317,"id":1725,"parentId":1671,"tags":{"name":"/app/node_modules/next/dist/server/lib/interception-routes.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20273,"timestamp":17777221,"id":1699,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","layer":null},"startTime":1736868349749,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20036,"timestamp":17778115,"id":1702,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","layer":null},"startTime":1736868349750,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21481,"timestamp":17777362,"id":1700,"parentId":1659,"tags":{"name":"/app/node_modules/next/dist/client/portal/index.js","layer":null},"startTime":1736868349749,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11979,"timestamp":17787725,"id":1712,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/lib/is-api-route.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15094,"timestamp":17788064,"id":1719,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/lib/constants.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15666,"timestamp":17788348,"id":1726,"parentId":1666,"tags":{"name":"/app/node_modules/react/cjs/react-jsx-runtime.production.min.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16799,"timestamp":17788243,"id":1723,"parentId":1672,"tags":{"name":"/app/node_modules/next/dist/client/set-attributes-from-props.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18858,"timestamp":17788282,"id":1724,"parentId":1673,"tags":{"name":"/app/node_modules/next/dist/shared/lib/constants.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20197,"timestamp":17787587,"id":1709,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/remove-locale.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20955,"timestamp":17787530,"id":1708,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/add-locale.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21414,"timestamp":17787442,"id":1706,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22208,"timestamp":17787178,"id":1703,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22422,"timestamp":17787492,"id":1707,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/detect-domain-locale.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22885,"timestamp":17787632,"id":1710,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/add-base-path.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24510,"timestamp":17787365,"id":1705,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-url.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24494,"timestamp":17787789,"id":1713,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/parse-path.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24583,"timestamp":17788027,"id":1718,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-bot.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24991,"timestamp":17787979,"id":1717,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/is-local-url.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26376,"timestamp":17787666,"id":1711,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/client/resolve-href.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26583,"timestamp":17787937,"id":1716,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/compare-states.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27134,"timestamp":17787878,"id":1715,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27971,"timestamp":17787834,"id":1714,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":30336,"timestamp":17787310,"id":1704,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/route-regex.js","layer":null},"startTime":1736868349759,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":29753,"timestamp":17788147,"id":1721,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/omit.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":30263,"timestamp":17788186,"id":1722,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":31578,"timestamp":17788102,"id":1720,"parentId":1664,"tags":{"name":"/app/node_modules/next/dist/shared/lib/bloom-filter.js","layer":null},"startTime":1736868349760,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16742,"timestamp":17825256,"id":1727,"parentId":1667,"tags":{"name":"/app/node_modules/react/cjs/react.production.min.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17255,"timestamp":17825708,"id":1737,"parentId":1688,"tags":{"name":"/app/node_modules/react-dom/index.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17727,"timestamp":17825720,"id":1738,"parentId":1694,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18366,"timestamp":17825516,"id":1732,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/index.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19155,"timestamp":17825482,"id":1731,"parentId":1687,"tags":{"name":"/app/node_modules/next/dist/client/request-idle-callback.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20947,"timestamp":17825588,"id":1734,"parentId":1682,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21404,"timestamp":17825622,"id":1735,"parentId":1686,"tags":{"name":"/app/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21929,"timestamp":17825440,"id":1730,"parentId":1673,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22345,"timestamp":17825399,"id":1729,"parentId":1677,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22726,"timestamp":17825548,"id":1733,"parentId":1686,"tags":{"name":"/app/node_modules/next/dist/client/react-client-callbacks/report-global-error.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23367,"timestamp":17825343,"id":1728,"parentId":1679,"tags":{"name":"/app/node_modules/next/dist/shared/lib/image-config.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24071,"timestamp":17825659,"id":1736,"parentId":1686,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","layer":null},"startTime":1736868349797,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22790,"timestamp":17858733,"id":1747,"parentId":1593,"tags":{"name":"/app/pages/logout.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23649,"timestamp":17858652,"id":1742,"parentId":1521,"tags":{"name":"/app/pages/_app.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24304,"timestamp":17858773,"id":1749,"parentId":1597,"tags":{"name":"/app/pages/terms.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25269,"timestamp":17858635,"id":1741,"parentId":1519,"tags":{"name":"/app/pages/500.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25975,"timestamp":17858614,"id":1740,"parentId":1517,"tags":{"name":"/app/pages/404.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":26569,"timestamp":17858710,"id":1745,"parentId":1583,"tags":{"name":"/app/pages/privacy.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27389,"timestamp":17858695,"id":1744,"parentId":1581,"tags":{"name":"/app/pages/redirect.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28183,"timestamp":17858667,"id":1743,"parentId":1523,"tags":{"name":"/app/pages/about.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28826,"timestamp":17858786,"id":1750,"parentId":1605,"tags":{"name":"/app/pages/login.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29760,"timestamp":17858831,"id":1753,"parentId":1647,"tags":{"name":"/app/pages/contact.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":30648,"timestamp":17858800,"id":1751,"parentId":1611,"tags":{"name":"/app/pages/index.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31014,"timestamp":17858953,"id":1760,"parentId":1629,"tags":{"name":"/app/pages/su/backups.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31197,"timestamp":17859244,"id":1776,"parentId":1635,"tags":{"name":"/app/pages/su/docs/edit-page.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":32907,"timestamp":17858818,"id":1752,"parentId":1625,"tags":{"name":"/app/pages/send-password-reset-link.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":34064,"timestamp":17858756,"id":1748,"parentId":1595,"tags":{"name":"/app/pages/unsubscribe.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":34310,"timestamp":17859273,"id":1778,"parentId":1525,"tags":{"name":"/app/pages/admin/[user_id]/api-keys/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":35143,"timestamp":17859092,"id":1766,"parentId":1651,"tags":{"name":"/app/pages/admin/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":35500,"timestamp":17859358,"id":1781,"parentId":1549,"tags":{"name":"/app/pages/admin/[user_id]/users/add-user.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":36661,"timestamp":17859303,"id":1779,"parentId":1527,"tags":{"name":"/app/pages/admin/[user_id]/connect/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":37320,"timestamp":17859384,"id":1782,"parentId":1551,"tags":{"name":"/app/pages/admin/[user_id]/databases/add-database.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":38244,"timestamp":17858898,"id":1756,"parentId":1607,"tags":{"name":"/app/pages/su/servers.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":38834,"timestamp":17859262,"id":1777,"parentId":1643,"tags":{"name":"/app/pages/docs/[page]/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":40368,"timestamp":17858855,"id":1754,"parentId":1649,"tags":{"name":"/app/pages/create-account.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":42092,"timestamp":17858722,"id":1746,"parentId":1587,"tags":{"name":"/app/pages/reset-password.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":42453,"timestamp":17858978,"id":1762,"parentId":1633,"tags":{"name":"/app/pages/su/index.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":43162,"timestamp":17858909,"id":1757,"parentId":1613,"tags":{"name":"/app/pages/su/console.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":43498,"timestamp":17859234,"id":1775,"parentId":1627,"tags":{"name":"/app/pages/su/docs/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":43695,"timestamp":17859964,"id":1799,"parentId":1535,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-social-logins.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":45075,"timestamp":17859565,"id":1787,"parentId":1555,"tags":{"name":"/app/pages/admin/[user_id]/media/[...folder].tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":45913,"timestamp":17859331,"id":1780,"parentId":1531,"tags":{"name":"/app/pages/admin/[user_id]/databases/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":46140,"timestamp":17860001,"id":1800,"parentId":1559,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/index.tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":48283,"timestamp":17858993,"id":1763,"parentId":1637,"tags":{"name":"/app/pages/email-verification/index.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":48662,"timestamp":17859187,"id":1771,"parentId":1589,"tags":{"name":"/app/pages/su/users/new.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":49289,"timestamp":17858966,"id":1761,"parentId":1631,"tags":{"name":"/app/pages/su/error-logs.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":49222,"timestamp":17859411,"id":1783,"parentId":1698,"tags":{"name":"/app/node_modules/next/dist/shared/lib/encode-uri-path.js","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":50252,"timestamp":17858924,"id":1758,"parentId":1617,"tags":{"name":"/app/pages/su/load-balancing.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":50839,"timestamp":17858868,"id":1755,"parentId":1603,"tags":{"name":"/app/pages/su/envar.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":51269,"timestamp":17859051,"id":1765,"parentId":1641,"tags":{"name":"/app/pages/docs/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":50856,"timestamp":17860029,"id":1801,"parentId":1567,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/add-user.tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":52182,"timestamp":17859172,"id":1770,"parentId":1565,"tags":{"name":"/app/pages/admin/[user_id]/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":52575,"timestamp":17859525,"id":1786,"parentId":1553,"tags":{"name":"/app/pages/admin/[user_id]/media/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":53932,"timestamp":17858935,"id":1759,"parentId":1621,"tags":{"name":"/app/pages/su/login.tsx","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":54020,"timestamp":17859211,"id":1773,"parentId":1619,"tags":{"name":"/app/pages/su/users/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":54550,"timestamp":17859129,"id":1767,"parentId":1653,"tags":{"name":"/app/pages/blog/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":54826,"timestamp":17859198,"id":1772,"parentId":1615,"tags":{"name":"/app/pages/su/docs/create-page.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":55334,"timestamp":17859160,"id":1769,"parentId":1545,"tags":{"name":"/app/pages/admin/[user_id]/settings.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":54812,"timestamp":17860128,"id":1804,"parentId":1575,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/[user].tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":56504,"timestamp":17859147,"id":1768,"parentId":1537,"tags":{"name":"/app/pages/admin/[user_id]/schema.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":56896,"timestamp":17859222,"id":1774,"parentId":1623,"tags":{"name":"/app/pages/su/users/[single].tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":57163,"timestamp":17859923,"id":1798,"parentId":1533,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/add-table.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":57813,"timestamp":17860086,"id":1803,"parentId":1573,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/[database]/index.tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":58758,"timestamp":17859733,"id":1793,"parentId":1539,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/connect.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":59533,"timestamp":17860060,"id":1802,"parentId":1571,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/index.tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":60406,"timestamp":17859827,"id":1796,"parentId":1599,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/schema.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":61402,"timestamp":17859869,"id":1797,"parentId":1609,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":62107,"timestamp":17859642,"id":1789,"parentId":1601,"tags":{"name":"/app/pages/su/docs/pages/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":62538,"timestamp":17859660,"id":1790,"parentId":1639,"tags":{"name":"/app/pages/su/docs/pages/[id].tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":63190,"timestamp":17859612,"id":1788,"parentId":1563,"tags":{"name":"/app/pages/admin/[user_id]/users/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-tsx","duration":63857,"timestamp":17859704,"id":1792,"parentId":1529,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/edit-database.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":64367,"timestamp":17859795,"id":1795,"parentId":1591,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/shell.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":65029,"timestamp":17859764,"id":1794,"parentId":1561,"tags":{"name":"/app/pages/admin/[user_id]/users/databases/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":65201,"timestamp":17860164,"id":1805,"parentId":1541,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/index.tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":65943,"timestamp":17860253,"id":1806,"parentId":1543,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.tsx","layer":null},"startTime":1736868349832,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":67204,"timestamp":17859675,"id":1791,"parentId":1645,"tags":{"name":"/app/pages/docs/[page]/[sub-page]/index.tsx","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":68308,"timestamp":17859441,"id":1784,"parentId":1698,"tags":{"name":"/app/node_modules/next/dist/client/trusted-types.js","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":69637,"timestamp":17859007,"id":1764,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":71172,"timestamp":17858499,"id":1739,"parentId":1695,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-error.js","layer":null},"startTime":1736868349830,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":71562,"timestamp":17859478,"id":1785,"parentId":1697,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/pages/websocket.js","layer":null},"startTime":1736868349831,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9393,"timestamp":18060259,"id":1807,"parentId":1724,"tags":{"name":"/app/node_modules/next/dist/shared/lib/modern-browserslist-target.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10334,"timestamp":18060400,"id":1808,"parentId":1725,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10725,"timestamp":18060482,"id":1810,"parentId":1710,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11000,"timestamp":18060528,"id":1811,"parentId":1704,"tags":{"name":"/app/node_modules/next/dist/shared/lib/escape-regexp.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11263,"timestamp":18060579,"id":1812,"parentId":1715,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11558,"timestamp":18060645,"id":1813,"parentId":1715,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/add-locale.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12713,"timestamp":18060438,"id":1809,"parentId":1708,"tags":{"name":"/app/node_modules/next/dist/client/normalize-trailing-slash.js","layer":null},"startTime":1736868350032,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":855,"timestamp":18076392,"id":1825,"parentId":1742,"tags":{"name":"/app/node_modules/next/script.js","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4917,"timestamp":18075571,"id":1821,"parentId":1656,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_default.js","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5376,"timestamp":18076278,"id":1822,"parentId":1659,"tags":{"name":"/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6145,"timestamp":18076311,"id":1823,"parentId":1661,"tags":{"name":"/app/node_modules/next/dist/build/polyfills/process.js","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":73808,"timestamp":18076409,"id":1826,"parentId":1737,"tags":{"name":"/app/node_modules/react-dom/cjs/react-dom.production.min.js","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":74356,"timestamp":18076465,"id":1828,"parentId":1749,"tags":{"name":"/app/layouts/GeneralLayout.tsx","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":75922,"timestamp":18075318,"id":1815,"parentId":1547,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.tsx","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":75442,"timestamp":18076438,"id":1827,"parentId":1742,"tags":{"name":"/app/components/ErrorBoundary.tsx","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":76844,"timestamp":18075495,"id":1819,"parentId":1577,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.tsx","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":77519,"timestamp":18075370,"id":1816,"parentId":1557,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.tsx","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":77965,"timestamp":18075411,"id":1817,"parentId":1585,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.tsx","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":78555,"timestamp":18075457,"id":1818,"parentId":1569,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.tsx","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":79025,"timestamp":18075534,"id":1820,"parentId":1579,"tags":{"name":"/app/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].tsx","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":79789,"timestamp":18076342,"id":1824,"parentId":1732,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","layer":null},"startTime":1736868350048,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":81224,"timestamp":18075198,"id":1814,"parentId":1714,"tags":{"name":"/app/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","layer":null},"startTime":1736868350047,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4430,"timestamp":18172276,"id":1830,"parentId":1749,"tags":{"name":"/app/components/general/PageHeadTags.tsx","layer":null},"startTime":1736868350144,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5170,"timestamp":18172156,"id":1829,"parentId":1760,"tags":{"name":"/app/layouts/SuAdminLayout.tsx","layer":null},"startTime":1736868350144,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12595,"timestamp":18178835,"id":1831,"parentId":1742,"tags":{"name":"/app/node_modules/next/head.js","layer":null},"startTime":1736868350150,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":66801,"timestamp":18178896,"id":1832,"parentId":1746,"tags":{"name":"/app/node_modules/lodash/lodash.js","layer":null},"startTime":1736868350150,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":63344,"timestamp":18182768,"id":1841,"parentId":1741,"tags":{"name":"/app/functions/frontend/fetchApi.ts","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":63759,"timestamp":18182710,"id":1839,"parentId":1752,"tags":{"name":"/app/components/general/InfoBlock.tsx","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":63913,"timestamp":18182795,"id":1843,"parentId":1749,"tags":{"name":"/app/components/pages/terms/TermsHero.tsx","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":67970,"timestamp":18178970,"id":1835,"parentId":1752,"tags":{"name":"/app/components/general/FormSuccessBlock.tsx","layer":null},"startTime":1736868350150,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":68278,"timestamp":18178951,"id":1834,"parentId":1752,"tags":{"name":"/app/components/general/LoadingBlock.tsx","layer":null},"startTime":1736868350150,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":64837,"timestamp":18182736,"id":1840,"parentId":1749,"tags":{"name":"/app/functions/frontend/clientAuthUser.ts","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":69058,"timestamp":18178917,"id":1833,"parentId":1750,"tags":{"name":"/app/components/general/Logo.tsx","layer":null},"startTime":1736868350150,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":65831,"timestamp":18182781,"id":1842,"parentId":1760,"tags":{"name":"/app/components/su/SuBackupsContent.tsx","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2294,"timestamp":18265351,"id":1847,"parentId":1743,"tags":{"name":"/app/components/pages/about/Hero.tsx","layer":null},"startTime":1736868350237,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2777,"timestamp":18265282,"id":1845,"parentId":1745,"tags":{"name":"/app/components/pages/privacy/PrivacyHero.tsx","layer":null},"startTime":1736868350237,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":3127,"timestamp":18265371,"id":1848,"parentId":1743,"tags":{"name":"/app/components/pages/homepage/BriefIntroSection.tsx","layer":null},"startTime":1736868350237,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":4515,"timestamp":18265319,"id":1846,"parentId":1745,"tags":{"name":"/app/components/pages/privacy/PrivacyBody.tsx","layer":null},"startTime":1736868350237,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":5669,"timestamp":18265184,"id":1844,"parentId":1749,"tags":{"name":"/app/components/pages/terms/TermsBody.tsx","layer":null},"startTime":1736868350237,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9757,"timestamp":18272924,"id":1856,"parentId":1750,"tags":{"name":"/app/components/general/LoadingScreen.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10231,"timestamp":18272766,"id":1851,"parentId":1753,"tags":{"name":"/app/components/pages/contact/ContactHero.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10366,"timestamp":18272988,"id":1859,"parentId":1778,"tags":{"name":"/app/components/admin/api-keys/TargetApiKeyPreviewPopup.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11154,"timestamp":18272652,"id":1849,"parentId":1743,"tags":{"name":"/app/components/pages/homepage/FooterCta.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11439,"timestamp":18272857,"id":1854,"parentId":1751,"tags":{"name":"/app/components/pages/homepage/FeaturesSummarySection.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11921,"timestamp":18272958,"id":1858,"parentId":1778,"tags":{"name":"/app/components/admin/api-keys/ApiKeysContent.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12581,"timestamp":18272835,"id":1853,"parentId":1751,"tags":{"name":"/app/components/pages/homepage/Hero2.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13464,"timestamp":18272744,"id":1850,"parentId":1750,"tags":{"name":"/app/components/pages/login/LoginForm.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14071,"timestamp":18272806,"id":1852,"parentId":1753,"tags":{"name":"/app/components/pages/contact/ContactForm.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14668,"timestamp":18272945,"id":1857,"parentId":1778,"tags":{"name":"/app/layouts/AdminLayout.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15920,"timestamp":18273023,"id":1860,"parentId":1778,"tags":{"name":"/app/components/admin/api-keys/AddNewApiKeyPopup.tsx","layer":null},"startTime":1736868350245,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17788,"timestamp":18272896,"id":1855,"parentId":1776,"tags":{"name":"/app/components/su/docs/CreatePageContent.tsx","layer":null},"startTime":1736868350244,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8092,"timestamp":18304029,"id":1861,"parentId":1747,"tags":{"name":"/app/components/pages/logout/index.tsx","layer":null},"startTime":1736868350276,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":8811,"timestamp":18304115,"id":1862,"parentId":1777,"tags":{"name":"/app/components/pages/docs/DocsAside.tsx","layer":null},"startTime":1736868350276,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11431,"timestamp":18304142,"id":1863,"parentId":1781,"tags":{"name":"/app/components/admin/users/AddNewUserContent.tsx","layer":null},"startTime":1736868350276,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":837921,"timestamp":17485654,"id":1478,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fredirect.tsx&page=%2Fredirect!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10187,"timestamp":18324361,"id":1870,"parentId":1779,"tags":{"name":"/app/components/admin/connect/NewMariadbUserPopup.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10665,"timestamp":18324305,"id":1868,"parentId":1779,"tags":{"name":"/app/components/admin/connect/ConnectContent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":10849,"timestamp":18324417,"id":1873,"parentId":1777,"tags":{"name":"/app/components/pages/docs/DocsGenereicHero.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11341,"timestamp":18324383,"id":1871,"parentId":1756,"tags":{"name":"/app/components/su/servers/index.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12241,"timestamp":18324122,"id":1864,"parentId":1782,"tags":{"name":"/app/components/admin/databases/AddDatabaseContent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12382,"timestamp":18324396,"id":1872,"parentId":1754,"tags":{"name":"/app/components/pages/create-account/Hero.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12892,"timestamp":18324332,"id":1869,"parentId":1779,"tags":{"name":"/app/components/admin/connect/EditMariadbUserPopup.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13434,"timestamp":18324245,"id":1866,"parentId":1766,"tags":{"name":"/app/components/admin/dashboard/DashboardContent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13897,"timestamp":18324274,"id":1867,"parentId":1766,"tags":{"name":"/app/components/admin/databases/DeleteDatabaseConfirmationPopup.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14296,"timestamp":18324481,"id":1876,"parentId":1787,"tags":{"name":"/app/components/general/UploadFileComponent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15267,"timestamp":18324215,"id":1865,"parentId":1782,"tags":{"name":"/app/components/admin/databases/UserMediaPopup.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15647,"timestamp":18324455,"id":1875,"parentId":1787,"tags":{"name":"/app/components/general/UploadImageComponent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16409,"timestamp":18324503,"id":1877,"parentId":1775,"tags":{"name":"/app/components/su/docs/SuDocsPageListContent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17552,"timestamp":18324440,"id":1874,"parentId":1762,"tags":{"name":"/app/components/su/SuDashboardContent.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19464,"timestamp":18324527,"id":1878,"parentId":1799,"tags":{"name":"/app/components/general/ExtraContentDatabase.tsx","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19935,"timestamp":18324552,"id":1879,"parentId":1739,"tags":{"name":"/app/node_modules/next/dist/client/components/redirect-status-code.js","layer":null},"startTime":1736868350296,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9677,"timestamp":18360113,"id":1887,"parentId":1785,"tags":{"name":"/app/node_modules/next/dist/server/dev/hot-reloader-types.js","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9959,"timestamp":18360083,"id":1886,"parentId":1808,"tags":{"name":"/app/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":10508,"timestamp":18360042,"id":1885,"parentId":1808,"tags":{"name":"/app/node_modules/next/dist/shared/lib/segment.js","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11066,"timestamp":18360203,"id":1891,"parentId":1787,"tags":{"name":"/app/components/general/UploadVideoComponent.tsx","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12152,"timestamp":18360019,"id":1884,"parentId":1787,"tags":{"name":"/app/components/admin/media/MediaFolderContent.tsx","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13044,"timestamp":18359995,"id":1883,"parentId":1787,"tags":{"name":"/app/components/admin/media/NewFolderPopup.tsx","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14342,"timestamp":18359920,"id":1881,"parentId":1787,"tags":{"name":"/app/components/admin/media/NewMediaPopup.tsx","layer":null},"startTime":1736868350331,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15055,"timestamp":18360138,"id":1888,"parentId":1787,"tags":{"name":"/app/components/admin/media/ChooseMediaTypePopup.tsx","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16096,"timestamp":18360188,"id":1890,"parentId":1757,"tags":{"name":"/app/components/su/SuConsoleContent.tsx","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18236,"timestamp":18359960,"id":1882,"parentId":1787,"tags":{"name":"/app/components/admin/media/TargetMediaPreviewPopup.tsx","layer":null},"startTime":1736868350331,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20375,"timestamp":18360161,"id":1889,"parentId":1799,"tags":{"name":"/app/components/admin/users/SocialLoginsContent.tsx","layer":null},"startTime":1736868350332,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21394,"timestamp":18359775,"id":1880,"parentId":1785,"tags":{"name":"/app/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","layer":null},"startTime":1736868350331,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":2153,"timestamp":18403170,"id":1920,"parentId":1798,"tags":{"name":"/app/package-shared/data/defaultFields.json","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"postcss-process","duration":11686,"timestamp":18406183,"id":1933,"parentId":1932,"tags":{},"startTime":1736868350378,"traceId":"d6db589d9eef97d2"},{"name":"postcss-loader","duration":13633,"timestamp":18404269,"id":1932,"parentId":1902,"tags":{},"startTime":1736868350376,"traceId":"d6db589d9eef97d2"},{"name":"css-loader","duration":3686,"timestamp":18417954,"id":1934,"parentId":1902,"tags":{"astUsed":"true"},"startTime":1736868350389,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":19856,"timestamp":18402679,"id":1902,"parentId":1838,"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":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27322,"timestamp":18402711,"id":1903,"parentId":1826,"tags":{"name":"/app/node_modules/scheduler/index.js","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":28896,"timestamp":18402931,"id":1912,"parentId":1823,"tags":{"name":"/app/node_modules/next/dist/compiled/process/browser.js","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29603,"timestamp":18402614,"id":1900,"parentId":1765,"tags":{"name":"/app/components/pages/docs/DocsHomeLinks.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-tsx","duration":30139,"timestamp":18402584,"id":1899,"parentId":1765,"tags":{"name":"/app/components/pages/docs/DocsHomeHero.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":30502,"timestamp":18402534,"id":1897,"parentId":1771,"tags":{"name":"/app/components/su/SuNewUserContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31240,"timestamp":18402311,"id":1892,"parentId":1780,"tags":{"name":"/app/components/admin/databases/DatabasesContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31372,"timestamp":18402552,"id":1898,"parentId":1758,"tags":{"name":"/app/components/su/load-balancing/index.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31872,"timestamp":18402521,"id":1896,"parentId":1755,"tags":{"name":"/app/components/su/SuEnvContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":32579,"timestamp":18402470,"id":1894,"parentId":1800,"tags":{"name":"/app/components/admin/users/DbUsersContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":33238,"timestamp":18402504,"id":1895,"parentId":1761,"tags":{"name":"/app/components/su/SuErrorLogsContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":34169,"timestamp":18402639,"id":1901,"parentId":1801,"tags":{"name":"/app/components/admin/users/DbAddNewUserContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":36440,"timestamp":18402429,"id":1893,"parentId":1800,"tags":{"name":"/app/components/admin/users/TargetUserPreviewPopup.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":36376,"timestamp":18402744,"id":1905,"parentId":1768,"tags":{"name":"/app/components/general/VerificationBanner.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":36492,"timestamp":18402835,"id":1908,"parentId":1767,"tags":{"name":"/app/components/pages/blog/BlogHero.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":36939,"timestamp":18402729,"id":1904,"parentId":1773,"tags":{"name":"/app/components/su/SuUsersContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":37020,"timestamp":18403089,"id":1917,"parentId":1798,"tags":{"name":"/app/components/admin/databases/AddTableContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":37986,"timestamp":18402786,"id":1907,"parentId":1774,"tags":{"name":"/app/components/su/SuSingleUserContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":38041,"timestamp":18403117,"id":1918,"parentId":1798,"tags":{"name":"/app/components/admin/databases/EditFieldPopup.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":39176,"timestamp":18402774,"id":1906,"parentId":1768,"tags":{"name":"/app/components/general/Breadcrumbs.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":39550,"timestamp":18402962,"id":1913,"parentId":1786,"tags":{"name":"/app/components/admin/media/MediaContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":39854,"timestamp":18403063,"id":1916,"parentId":1797,"tags":{"name":"/app/components/admin/databases/DeleteTableConfirmationPopup.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":40685,"timestamp":18402854,"id":1909,"parentId":1769,"tags":{"name":"/app/components/admin/settings/SettingsContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":40883,"timestamp":18403218,"id":1921,"parentId":1803,"tags":{"name":"/app/components/admin/users/SingleDatabaseUsersContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":41400,"timestamp":18403249,"id":1922,"parentId":1793,"tags":{"name":"/app/components/admin/databases/connect/DatabaseConnectContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":41593,"timestamp":18403416,"id":1927,"parentId":1792,"tags":{"name":"/app/components/admin/databases/EditDatabaseContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":41783,"timestamp":18403534,"id":1931,"parentId":1806,"tags":{"name":"/app/layouts/components/GeneralLayout/ScrollToTopButton.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":42285,"timestamp":18403387,"id":1926,"parentId":1794,"tags":{"name":"/app/components/admin/users/AllDatabasesUsersContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":43474,"timestamp":18403144,"id":1919,"parentId":1802,"tags":{"name":"/app/components/admin/databases/TablesContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":44643,"timestamp":18403000,"id":1914,"parentId":1796,"tags":{"name":"/app/components/admin/databases/DatabaseSchemaContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":45707,"timestamp":18402878,"id":1910,"parentId":1768,"tags":{"name":"/app/components/admin/databases/UserSchemaContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":45539,"timestamp":18403293,"id":1923,"parentId":1790,"tags":{"name":"/app/components/su/docs/SuSingleDocPageContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":45957,"timestamp":18403498,"id":1930,"parentId":1806,"tags":{"name":"/app/functions/frontend/updateTableAfterFieldsUpdateFunctionExt.ts","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":47750,"timestamp":18403035,"id":1915,"parentId":1797,"tags":{"name":"/app/components/admin/databases/SingleDatabasesContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":48521,"timestamp":18403362,"id":1925,"parentId":1795,"tags":{"name":"/app/components/admin/databases/DatabaseShellContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":49288,"timestamp":18403322,"id":1924,"parentId":1788,"tags":{"name":"/app/components/admin/users/UsersContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":51830,"timestamp":18402905,"id":1911,"parentId":1804,"tags":{"name":"/app/components/admin/users/SingleDatabaseSingleUserContent.tsx","layer":null},"startTime":1736868350374,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":52584,"timestamp":18403474,"id":1929,"parentId":1806,"tags":{"name":"/app/components/admin/databases/SingleTableContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":54167,"timestamp":18403447,"id":1928,"parentId":1805,"tags":{"name":"/app/components/admin/users/SingleDbUserContent.tsx","layer":null},"startTime":1736868350375,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":980221,"timestamp":17485516,"id":1444,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=next%2Fdist%2Fpages%2F_error&page=%2F_error!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3867,"timestamp":18502055,"id":1949,"parentId":1839,"tags":{"name":"__barrel_optimize__?names=Info!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350474,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5339,"timestamp":18502111,"id":1950,"parentId":1833,"tags":{"name":"__barrel_optimize__?names=Menu!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350474,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16630,"timestamp":18502014,"id":1948,"parentId":1841,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/fetch/index.js","layer":null},"startTime":1736868350474,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17208,"timestamp":18501770,"id":1938,"parentId":1828,"tags":{"name":"/app/layouts/components/GeneralLayout/ProductionHeadComponent.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17331,"timestamp":18502003,"id":1947,"parentId":1843,"tags":{"name":"/app/components/general/FadedImage.tsx","layer":null},"startTime":1736868350474,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18337,"timestamp":18501621,"id":1935,"parentId":1828,"tags":{"name":"/app/functions/frontend/updateNavLinks.ts","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18797,"timestamp":18501743,"id":1937,"parentId":1828,"tags":{"name":"/app/layouts/components/GeneralLayout/Footer.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19941,"timestamp":18501857,"id":1941,"parentId":1816,"tags":{"name":"/app/components/admin/databases/TableFieldsContent.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21413,"timestamp":18501835,"id":1940,"parentId":1819,"tags":{"name":"/app/components/admin/databases/AddTableEntryContent.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22339,"timestamp":18501980,"id":1946,"parentId":1829,"tags":{"name":"/app/layouts/components/SuAdminLayout/AdminHeader.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23258,"timestamp":18501958,"id":1945,"parentId":1829,"tags":{"name":"/app/layouts/components/SuAdminLayout/Aside.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24392,"timestamp":18501908,"id":1943,"parentId":1817,"tags":{"name":"/app/components/admin/databases/EditTableContent.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":26055,"timestamp":18501883,"id":1942,"parentId":1820,"tags":{"name":"/app/components/admin/databases/SingleEntryContent.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27569,"timestamp":18501808,"id":1939,"parentId":1815,"tags":{"name":"/app/components/admin/users/ChangeDbUserPassword.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29049,"timestamp":18501705,"id":1936,"parentId":1828,"tags":{"name":"/app/layouts/components/GeneralLayout/Header.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31195,"timestamp":18501933,"id":1944,"parentId":1818,"tags":{"name":"/app/components/admin/databases/TableEntriesContent.tsx","layer":null},"startTime":1736868350473,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4498,"timestamp":18570418,"id":1953,"parentId":1842,"tags":{"name":"__barrel_optimize__?names=FolderSync!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5847,"timestamp":18570466,"id":1954,"parentId":1849,"tags":{"name":"__barrel_optimize__?names=BookText!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7146,"timestamp":18570504,"id":1955,"parentId":1854,"tags":{"name":"__barrel_optimize__?names=CopyCheck,EarthLock,FileKey2,FolderOutput,Sheet,SquareGanttChart!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8322,"timestamp":18570646,"id":1960,"parentId":1878,"tags":{"name":"__barrel_optimize__?names=ChevronDown,Download,FileInput,FolderOutput,SquareTerminal!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"postcss-process","duration":73662,"timestamp":18579030,"id":1977,"parentId":1975,"tags":{},"startTime":1736868350551,"traceId":"d6db589d9eef97d2"},{"name":"postcss-process","duration":63771,"timestamp":18588931,"id":1978,"parentId":1976,"tags":{},"startTime":1736868350560,"traceId":"d6db589d9eef97d2"},{"name":"postcss-loader","duration":81343,"timestamp":18571375,"id":1975,"parentId":1951,"tags":{},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"postcss-loader","duration":81269,"timestamp":18571450,"id":1976,"parentId":1952,"tags":{},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"css-loader","duration":9596,"timestamp":18652747,"id":1979,"parentId":1951,"tags":{"astUsed":"true"},"startTime":1736868350624,"traceId":"d6db589d9eef97d2"},{"name":"css-loader","duration":9578,"timestamp":18652775,"id":1980,"parentId":1952,"tags":{"astUsed":"true"},"startTime":1736868350624,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":93197,"timestamp":18570259,"id":1951,"parentId":1836,"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":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":93881,"timestamp":18570387,"id":1952,"parentId":1837,"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":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":101228,"timestamp":18570988,"id":1965,"parentId":1852,"tags":{"name":"/app/components/general/FormAlertBlock.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":102052,"timestamp":18570631,"id":1959,"parentId":1854,"tags":{"name":"/app/components/general/IconText.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":101885,"timestamp":18571094,"id":1969,"parentId":1860,"tags":{"name":"/app/functions/frontend/checkUniqueField.ts","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":102858,"timestamp":18570546,"id":1956,"parentId":1848,"tags":{"name":"/app/components/general/ScreenShotDescriptionCard.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":102993,"timestamp":18570872,"id":1962,"parentId":1858,"tags":{"name":"/app/components/admin/api-keys/ApiKeysList.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":103748,"timestamp":18570578,"id":1957,"parentId":1848,"tags":{"name":"/app/components/general/ContainedSection.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":103852,"timestamp":18570924,"id":1963,"parentId":1853,"tags":{"name":"/app/components/general/CodeBlock.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":104459,"timestamp":18570949,"id":1964,"parentId":1857,"tags":{"name":"/app/components/general/DiskUsageComponent.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":104870,"timestamp":18571078,"id":1968,"parentId":1850,"tags":{"name":"/app/functions/frontend/userLogin.ts","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":105444,"timestamp":18571121,"id":1970,"parentId":1850,"tags":{"name":"/app/components/pages/login/SocialLogin.tsx","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":106715,"timestamp":18570618,"id":1958,"parentId":1859,"tags":{"name":"/app/components/general/GeneralPopup.tsx","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":106914,"timestamp":18571043,"id":1967,"parentId":1857,"tags":{"name":"/app/layouts/components/AdminLayout/AdminHeader.tsx","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":107025,"timestamp":18571164,"id":1972,"parentId":1855,"tags":{"name":"/app/components/general/BackButton.tsx","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":108106,"timestamp":18571018,"id":1966,"parentId":1857,"tags":{"name":"/app/layouts/components/AdminLayout/Aside.tsx","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":108669,"timestamp":18571189,"id":1973,"parentId":1855,"tags":{"name":"/app/components/form/FormSelect.tsx","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":110658,"timestamp":18571148,"id":1971,"parentId":1855,"tags":{"name":"/app/components/form/FormInput.tsx","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":111109,"timestamp":18571212,"id":1974,"parentId":1890,"tags":{"name":"/app/node_modules/ansi-regex/index.js","layer":null},"startTime":1736868350543,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":519,"timestamp":18700771,"id":1987,"parentId":1863,"tags":{"name":"/app/jsonData/userPriviledges.json","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3397,"timestamp":18700579,"id":1982,"parentId":1861,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/index.js","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4369,"timestamp":18700734,"id":1986,"parentId":1902,"tags":{"name":"/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/runtime/api.js","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5530,"timestamp":18700672,"id":1984,"parentId":1890,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/index.js","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8193,"timestamp":18700701,"id":1985,"parentId":1903,"tags":{"name":"/app/node_modules/scheduler/cjs/scheduler.production.min.js","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9048,"timestamp":18700921,"id":1993,"parentId":1864,"tags":{"name":"/app/components/admin/databases/AddDatabaseForm.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9980,"timestamp":18700462,"id":1981,"parentId":1855,"tags":{"name":"/app/components/su/components/RichText/DocsRichTextBlock.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9920,"timestamp":18700897,"id":1992,"parentId":1868,"tags":{"name":"/app/components/admin/connect/MariaDBUsers.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10387,"timestamp":18700805,"id":1989,"parentId":1876,"tags":{"name":"/app/functions/frontend/inputFileToBase64.ts","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11001,"timestamp":18700869,"id":1991,"parentId":1868,"tags":{"name":"/app/components/admin/connect/ConnectionInfo.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11600,"timestamp":18700789,"id":1988,"parentId":1863,"tags":{"name":"/app/components/form/FormCheckboxes.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":12594,"timestamp":18700838,"id":1990,"parentId":1870,"tags":{"name":"/app/components/admin/connect/MariDBUserForm.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14046,"timestamp":18700949,"id":1994,"parentId":1872,"tags":{"name":"/app/components/pages/create-account/CreateAccountForm.tsx","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14741,"timestamp":18700621,"id":1983,"parentId":1880,"tags":{"name":"/app/node_modules/next/dist/shared/lib/normalized-asset-prefix.js","layer":null},"startTime":1736868350672,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1234535,"timestamp":17485556,"id":1448,"parentId":1442,"tags":{"request":"/app/node_modules/next/dist/client/router.js"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1234720,"timestamp":17485407,"id":1443,"parentId":1442,"tags":{"request":"./node_modules/next/dist/client/next.js"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":542805,"timestamp":18182622,"id":1838,"parentId":1757,"tags":{"name":"/app/node_modules/xterm/css/xterm.css","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":547235,"timestamp":18179042,"id":1836,"parentId":1742,"tags":{"name":"/app/styles/less.css","layer":null},"startTime":1736868350151,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":544392,"timestamp":18182510,"id":1837,"parentId":1742,"tags":{"name":"/app/styles/tailwind.css","layer":null},"startTime":1736868350154,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2122,"timestamp":18743808,"id":1995,"parentId":1866,"tags":{"name":"/app/components/admin/dashboard/DatabasesSummary.tsx","layer":null},"startTime":1736868350715,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-js","duration":3870,"timestamp":18751844,"id":2004,"parentId":1884,"tags":{"name":"__barrel_optimize__?names=Copy!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4694,"timestamp":18751876,"id":2005,"parentId":1888,"tags":{"name":"__barrel_optimize__?names=FileVideo2,Files,Images!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5449,"timestamp":18751907,"id":2006,"parentId":1882,"tags":{"name":"__barrel_optimize__?names=ChevronLeft,ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6128,"timestamp":18751934,"id":2007,"parentId":1915,"tags":{"name":"__barrel_optimize__?names=FolderOutput!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6615,"timestamp":18752487,"id":2030,"parentId":1931,"tags":{"name":"__barrel_optimize__?names=ChevronUp!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7516,"timestamp":18752513,"id":2031,"parentId":1936,"tags":{"name":"__barrel_optimize__?names=ChevronDown!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18110,"timestamp":18752212,"id":2020,"parentId":1948,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/utils/get-csrf-header-name.js","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18903,"timestamp":18751738,"id":2000,"parentId":1875,"tags":{"name":"/app/functions/frontend/imageInputFileToBase64.ts","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18840,"timestamp":18752056,"id":2013,"parentId":1881,"tags":{"name":"/app/functions/frontend/updateDiskUsage.ts","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19657,"timestamp":18751721,"id":1999,"parentId":1878,"tags":{"name":"/app/components/general/CopySlug.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20050,"timestamp":18751995,"id":2010,"parentId":1890,"tags":{"name":"/app/components/su/xterm.ts","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20963,"timestamp":18751665,"id":1997,"parentId":1866,"tags":{"name":"/app/components/admin/dashboard/Metrics.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21035,"timestamp":18752033,"id":2012,"parentId":1881,"tags":{"name":"/app/components/admin/media/NewFileCard.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21984,"timestamp":18751573,"id":1996,"parentId":1866,"tags":{"name":"/app/components/admin/databases/DelegatedDatabasesSection.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21991,"timestamp":18752094,"id":2015,"parentId":1882,"tags":{"name":"/app/functions/frontend/downloadFile.ts","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22634,"timestamp":18751982,"id":2009,"parentId":1884,"tags":{"name":"/app/components/admin/media/MediaList.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23481,"timestamp":18751696,"id":1998,"parentId":1871,"tags":{"name":"/app/components/su/load-balancing/(partials)/ServerCard.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24101,"timestamp":18751771,"id":2001,"parentId":1878,"tags":{"name":"/app/functions/frontend/downloadApiStream.ts","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24482,"timestamp":18752010,"id":2011,"parentId":1881,"tags":{"name":"/app/components/admin/media/NewMediaCard.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":24694,"timestamp":18752107,"id":2016,"parentId":1882,"tags":{"name":"/app/functions/frontend/downloadPrivateFile.ts","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25552,"timestamp":18751957,"id":2008,"parentId":1877,"tags":{"name":"/app/components/general/ui/ButtonGroup.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25940,"timestamp":18752085,"id":2014,"parentId":1889,"tags":{"name":"/app/components/form/FormRadios.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26101,"timestamp":18752152,"id":2018,"parentId":1949,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/info.js","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26286,"timestamp":18752176,"id":2019,"parentId":1950,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/menu.js","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27554,"timestamp":18751822,"id":2003,"parentId":1877,"tags":{"name":"/app/components/su/components/PageCard.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27410,"timestamp":18752263,"id":2022,"parentId":1900,"tags":{"name":"/app/components/cards/LinkCard.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27759,"timestamp":18752279,"id":2023,"parentId":1894,"tags":{"name":"/app/components/general/ActiveCloneDbBanner.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28261,"timestamp":18752307,"id":2024,"parentId":1907,"tags":{"name":"/app/components/su/components/UserBackups.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28622,"timestamp":18752338,"id":2025,"parentId":1907,"tags":{"name":"/app/components/su/components/UserData.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29735,"timestamp":18751799,"id":2002,"parentId":1874,"tags":{"name":"/app/components/su/components/UserCard.tsx","layer":null},"startTime":1736868350723,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29610,"timestamp":18752374,"id":2026,"parentId":1892,"tags":{"name":"/app/components/admin/databases/DatabasesList.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":30356,"timestamp":18752405,"id":2027,"parentId":1894,"tags":{"name":"/app/components/admin/users/DbUsersList.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31233,"timestamp":18752128,"id":2017,"parentId":1882,"tags":{"name":"/app/components/admin/media/card/MediaMoreButton.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31793,"timestamp":18752250,"id":2021,"parentId":1896,"tags":{"name":"/app/components/su/SuEnvCard.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":32312,"timestamp":18752438,"id":2028,"parentId":1894,"tags":{"name":"/app/components/admin/databases/DatabasesTablesList.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":33456,"timestamp":18752464,"id":2029,"parentId":1901,"tags":{"name":"/app/components/admin/users/DbCreateDbUserForm.tsx","layer":null},"startTime":1736868350724,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1308208,"timestamp":17485753,"id":1498,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Flogin.tsx&page=%2Fsu%2Flogin!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16229,"timestamp":18793834,"id":2032,"parentId":1917,"tags":{"name":"/app/components/admin/databases/AddTableForm.tsx","layer":null},"startTime":1736868350765,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18756,"timestamp":18793918,"id":2033,"parentId":1918,"tags":{"name":"/app/components/admin/databases/ExistingFieldEdit.tsx","layer":null},"startTime":1736868350765,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2021,"timestamp":18814652,"id":2039,"parentId":1964,"tags":{"name":"__barrel_optimize__?names=ArrowLeft,HardDrive,RotateCw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2718,"timestamp":18814679,"id":2040,"parentId":1958,"tags":{"name":"__barrel_optimize__?names=X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3390,"timestamp":18814702,"id":2041,"parentId":1972,"tags":{"name":"__barrel_optimize__?names=ArrowLeft!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11293,"timestamp":18814728,"id":2042,"parentId":1953,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-sync.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11510,"timestamp":18814775,"id":2044,"parentId":1955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-check.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11626,"timestamp":18814844,"id":2047,"parentId":1955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder-output.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11876,"timestamp":18814797,"id":2045,"parentId":1955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/earth-lock.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12032,"timestamp":18814822,"id":2046,"parentId":1955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-key-2.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12199,"timestamp":18814865,"id":2048,"parentId":1955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/sheet.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12474,"timestamp":18814752,"id":2043,"parentId":1954,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/book-text.js","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13513,"timestamp":18814463,"id":2034,"parentId":1909,"tags":{"name":"/app/components/admin/databases/UserImage.tsx","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13757,"timestamp":18814604,"id":2037,"parentId":1926,"tags":{"name":"/app/components/admin/users/DatabaseUsers.tsx","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14194,"timestamp":18814545,"id":2035,"parentId":1927,"tags":{"name":"/app/components/admin/databases/EditDatabaseForm.tsx","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14972,"timestamp":18814627,"id":2038,"parentId":1919,"tags":{"name":"/app/components/admin/databases/TablesList.tsx","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16549,"timestamp":18814573,"id":2036,"parentId":1922,"tags":{"name":"/app/components/admin/databases/connect/ConnectForm.tsx","layer":null},"startTime":1736868350786,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":182,"timestamp":18837383,"id":2070,"parentId":1838,"tags":{},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":17,"timestamp":18837578,"id":2071,"parentId":1836,"tags":{},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":10,"timestamp":18837603,"id":2072,"parentId":1837,"tags":{},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2672,"timestamp":18836527,"id":2054,"parentId":1991,"tags":{"name":"__barrel_optimize__?names=Copy,Download!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13491,"timestamp":18836617,"id":2058,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/logout.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13650,"timestamp":18836709,"id":2059,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/post-login.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14610,"timestamp":18836553,"id":2055,"parentId":1984,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/url.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14678,"timestamp":18836773,"id":2060,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/github/getAccessToken.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15468,"timestamp":18836821,"id":2061,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/auth/google/getAccessToken.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18466,"timestamp":18836597,"id":2057,"parentId":1984,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/manager.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22790,"timestamp":18836577,"id":2056,"parentId":1984,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/socket.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23547,"timestamp":18836883,"id":2062,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputFileToBase64.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24507,"timestamp":18836927,"id":2063,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/imageInputToBase64.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":25211,"timestamp":18836978,"id":2064,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/media/inputFileToBase64.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":25732,"timestamp":18837026,"id":2065,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-query.js","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26073,"timestamp":18837087,"id":2066,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/serialize-cookies.js","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26323,"timestamp":18837120,"id":2067,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/ejson.js","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26489,"timestamp":18837182,"id":2068,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/numberfy.js","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26655,"timestamp":18837254,"id":2069,"parentId":1982,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/package-shared/utils/slugify.js","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27633,"timestamp":18836504,"id":2053,"parentId":1960,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-terminal.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27978,"timestamp":18836338,"id":2049,"parentId":1955,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-gantt-chart.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":28043,"timestamp":18836424,"id":2050,"parentId":1960,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-down.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":28153,"timestamp":18836480,"id":2052,"parentId":1960,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-input.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":28336,"timestamp":18836458,"id":2051,"parentId":1960,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/download.js","layer":null},"startTime":1736868350808,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27461,"timestamp":18837645,"id":2074,"parentId":1915,"tags":{"name":"/app/components/general/DatabaseSlugCopy.tsx","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27717,"timestamp":18837710,"id":2076,"parentId":1925,"tags":{"name":"/app/components/admin/databases/DatabaseShellQueryResult.tsx","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28282,"timestamp":18837683,"id":2075,"parentId":1914,"tags":{"name":"/app/components/admin/databases/DatabaseTablesTablePreview.tsx","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28792,"timestamp":18837621,"id":2073,"parentId":1914,"tags":{"name":"/app/components/general/AceEditor.tsx","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29120,"timestamp":18837735,"id":2077,"parentId":1924,"tags":{"name":"/app/components/admin/users/UsersList.tsx","layer":null},"startTime":1736868350809,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1383786,"timestamp":17485539,"id":1447,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F_app.tsx&page=%2F_app!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-json","duration":1012,"timestamp":18873016,"id":2083,"parentId":1929,"tags":{"name":"/app/package-shared/data/dataTypes.json","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3148,"timestamp":18872989,"id":2082,"parentId":1945,"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":1736868350844,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3624,"timestamp":18873197,"id":2093,"parentId":2009,"tags":{"name":"__barrel_optimize__?names=Plus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4262,"timestamp":18873218,"id":2094,"parentId":2026,"tags":{"name":"__barrel_optimize__?names=PackagePlus!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":4784,"timestamp":18873396,"id":2103,"parentId":1997,"tags":{"name":"__barrel_optimize__?names=Database,Images,Key,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16346,"timestamp":18873509,"id":2107,"parentId":2010,"tags":{"name":"/app/node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-mjs","duration":24553,"timestamp":18873483,"id":2106,"parentId":1999,"tags":{"name":"/app/node_modules/tailwind-merge/dist/bundle-mjs.mjs","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":135741,"timestamp":18873434,"id":2105,"parentId":2010,"tags":{"name":"/app/node_modules/xterm/lib/xterm.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":136434,"timestamp":18873255,"id":2096,"parentId":2004,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":137244,"timestamp":18872976,"id":2081,"parentId":1914,"tags":{"name":"/app/package-shared/utils/ejson.ts","layer":null},"startTime":1736868350844,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":137967,"timestamp":18872848,"id":2078,"parentId":1924,"tags":{"name":"/app/components/admin/users/InvitationReceivedCard.tsx","layer":null},"startTime":1736868350844,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":138062,"timestamp":18873156,"id":2091,"parentId":1942,"tags":{"name":"/app/components/admin/databases/SingleEntryPrevNext.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":138814,"timestamp":18872933,"id":2079,"parentId":1911,"tags":{"name":"/app/components/admin/users/UserImage.tsx","layer":null},"startTime":1736868350844,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":138695,"timestamp":18873275,"id":2097,"parentId":2005,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-video-2.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":138759,"timestamp":18873376,"id":2102,"parentId":2030,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-up.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":139692,"timestamp":18873025,"id":2084,"parentId":1929,"tags":{"name":"/app/components/general/ActiveCloneTableBanner.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":139657,"timestamp":18873335,"id":2100,"parentId":2006,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-left.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-tsx","duration":140804,"timestamp":18873174,"id":2092,"parentId":1942,"tags":{"name":"/app/components/admin/databases/SelectNewEntry.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":141752,"timestamp":18873103,"id":2088,"parentId":1946,"tags":{"name":"/app/components/general/ThemeSelector.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":141867,"timestamp":18873315,"id":2099,"parentId":2005,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/images.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":142161,"timestamp":18873296,"id":2098,"parentId":2005,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/files.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":142259,"timestamp":18873357,"id":2101,"parentId":2006,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/chevron-right.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":142423,"timestamp":18873559,"id":2110,"parentId":1944,"tags":{"name":"/app/components/admin/databases/MoreTableOptions.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":142683,"timestamp":18873528,"id":2108,"parentId":1936,"tags":{"name":"/app/hooks/useLocalUser.ts","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":144364,"timestamp":18872952,"id":2080,"parentId":1929,"tags":{"name":"/app/components/admin/databases/TableEntriesList.tsx","layer":null},"startTime":1736868350844,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":144538,"timestamp":18873237,"id":2095,"parentId":2018,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/createLucideIcon.js","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":146040,"timestamp":18873083,"id":2087,"parentId":1940,"tags":{"name":"/app/components/admin/databases/TableEntryForm.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":146232,"timestamp":18873538,"id":2109,"parentId":1944,"tags":{"name":"/app/components/admin/databases/ImportExportEntries.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":147803,"timestamp":18873064,"id":2086,"parentId":1929,"tags":{"name":"/app/components/admin/databases/TableIndexes.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":149176,"timestamp":18873116,"id":2089,"parentId":1943,"tags":{"name":"/app/components/admin/databases/EditTableForm.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":149851,"timestamp":18873414,"id":2104,"parentId":1936,"tags":{"name":"/app/layouts/components/AdminLayout/AdminUserBlock.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":151942,"timestamp":18873046,"id":2085,"parentId":1929,"tags":{"name":"/app/components/admin/databases/TableFields.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":154384,"timestamp":18873137,"id":2090,"parentId":1942,"tags":{"name":"/app/components/admin/databases/UpdateEntryForm.tsx","layer":null},"startTime":1736868350845,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1451,"timestamp":19038485,"id":2111,"parentId":1966,"tags":{"name":"__barrel_optimize__?names=BookText,CircleGauge,Database,FileKey2,Globe,Images,ShieldEllipsis,Users!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2009,"timestamp":19038567,"id":2112,"parentId":2038,"tags":{"name":"__barrel_optimize__?names=Copy,CopyPlus,Edit,FileX2,Grid2X2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17307,"timestamp":19038591,"id":2113,"parentId":2039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/arrow-left.js","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17466,"timestamp":19038637,"id":2115,"parentId":2039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-cw.js","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17701,"timestamp":19038616,"id":2114,"parentId":2039,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/hard-drive.js","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17863,"timestamp":19038658,"id":2116,"parentId":2040,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/x.js","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18316,"timestamp":19038678,"id":2117,"parentId":1971,"tags":{"name":"/app/functions/frontend/numberFormat.ts","layer":null},"startTime":1736868351010,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2049,"timestamp":19061215,"id":2123,"parentId":2003,"tags":{"name":"__barrel_optimize__?names=Layers,Newspaper!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"postcss-process","duration":2986,"timestamp":19063415,"id":2134,"parentId":2133,"tags":{},"startTime":1736868351035,"traceId":"d6db589d9eef97d2"},{"name":"postcss-loader","duration":4438,"timestamp":19061979,"id":2133,"parentId":2125,"tags":{},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"css-loader","duration":7424,"timestamp":19066436,"id":2135,"parentId":2125,"tags":{"astUsed":"true"},"startTime":1736868351038,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":13135,"timestamp":19061267,"id":2125,"parentId":1961,"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":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15206,"timestamp":19061241,"id":2124,"parentId":2057,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/on.js","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15171,"timestamp":19061424,"id":2131,"parentId":1981,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/index.js","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15960,"timestamp":19061204,"id":2122,"parentId":1966,"tags":{"name":"/app/functions/isLocalSuperUser.ts","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":16584,"timestamp":19061052,"id":2118,"parentId":1971,"tags":{"name":"/app/functions/frontend/numberFormatFloat.ts","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17306,"timestamp":19061123,"id":2119,"parentId":1962,"tags":{"name":"/app/components/admin/api-keys/ApiKeyListCard.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18157,"timestamp":19061150,"id":2120,"parentId":1970,"tags":{"name":"/app/components/pages/login/GoogleIdentityButton.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19212,"timestamp":19061177,"id":2121,"parentId":1970,"tags":{"name":"/app/components/pages/login/GithubLogin.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":19638,"timestamp":19061325,"id":2127,"parentId":1993,"tags":{"name":"/app/components/admin/databases/DatabaseImage.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":20052,"timestamp":19061456,"id":2132,"parentId":1994,"tags":{"name":"/app/functions/frontend/submitNewUserForm.ts","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20952,"timestamp":19061347,"id":2128,"parentId":1992,"tags":{"name":"/app/components/admin/connect/MariaDBUserCard.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21931,"timestamp":19061396,"id":2130,"parentId":1981,"tags":{"name":"/app/components/su/components/RichText/RichTextExtensionBlock.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23334,"timestamp":19061301,"id":2126,"parentId":1993,"tags":{"name":"/app/components/admin/databases/DatabaseForm.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25199,"timestamp":19061368,"id":2129,"parentId":1990,"tags":{"name":"/app/components/admin/connect/MariDBUserFormGrantsSection.tsx","layer":null},"startTime":1736868351033,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2048,"timestamp":19094425,"id":2136,"parentId":2110,"tags":{"name":"__barrel_optimize__?names=Ellipsis!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2769,"timestamp":19094490,"id":2137,"parentId":2080,"tags":{"name":"__barrel_optimize__?names=Grid2x2!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3022,"timestamp":19094882,"id":2156,"parentId":1998,"tags":{"name":"__barrel_optimize__?names=Server!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-css","duration":533858,"timestamp":18570682,"id":1961,"parentId":1853,"tags":{"name":"/app/components/pages/homepage/Home.module.css","layer":null},"startTime":1736868350542,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18461,"timestamp":19094856,"id":2155,"parentId":2058,"tags":{"name":"/app/node_modules/@moduletrace/datasquirel/dist/client/utils/parseClientCookies.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19193,"timestamp":19094838,"id":2154,"parentId":1984,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/index.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21817,"timestamp":19094820,"id":2153,"parentId":1984,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/index.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22401,"timestamp":19094794,"id":2152,"parentId":2057,"tags":{"name":"/app/node_modules/socket.io-client/build/esm/contrib/backo2.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22747,"timestamp":19094697,"id":2147,"parentId":2093,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/plus.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22859,"timestamp":19094759,"id":2150,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/key.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23191,"timestamp":19094590,"id":2142,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/home.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23427,"timestamp":19094512,"id":2138,"parentId":2095,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/defaultAttributes.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23456,"timestamp":19094644,"id":2145,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-chevron-right.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23555,"timestamp":19094776,"id":2151,"parentId":2095,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/shared/src/utils.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23764,"timestamp":19094740,"id":2149,"parentId":2103,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24125,"timestamp":19094534,"id":2139,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/cloud-upload.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24243,"timestamp":19094570,"id":2141,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-warning.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24375,"timestamp":19094607,"id":2143,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24521,"timestamp":19094673,"id":2146,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/users.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24871,"timestamp":19094552,"id":2140,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/database-backup.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":25016,"timestamp":19094625,"id":2144,"parentId":2082,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/server.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":25136,"timestamp":19094719,"id":2148,"parentId":2094,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/package-plus.js","layer":null},"startTime":1736868351066,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1637822,"timestamp":17485688,"id":1484,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogout.tsx&page=%2Flogout!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638498,"timestamp":17485781,"id":1502,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fbackups.tsx&page=%2Fsu%2Fbackups!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638592,"timestamp":17485715,"id":1491,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fservers.tsx&page=%2Fsu%2Fservers!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638535,"timestamp":17485788,"id":1504,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Findex.tsx&page=%2Fsu!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638555,"timestamp":17485784,"id":1503,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Ferror-logs.tsx&page=%2Fsu%2Ferror-logs!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638658,"timestamp":17485747,"id":1496,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fload-balancing.tsx&page=%2Fsu%2Fload-balancing!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638712,"timestamp":17485708,"id":1489,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fenvar.tsx&page=%2Fsu%2Fenvar!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638764,"timestamp":17485670,"id":1482,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Fnew.tsx&page=%2Fsu%2Fusers%2Fnew!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638695,"timestamp":17485750,"id":1497,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2Findex.tsx&page=%2Fsu%2Fusers!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1638658,"timestamp":17485800,"id":1507,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D.tsx&page=%2Fsu%2Fdocs%2Fpages%2F%5Bid%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21786,"timestamp":19123237,"id":2164,"parentId":2085,"tags":{"name":"/app/node_modules/gsap/Flip.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":22520,"timestamp":19123257,"id":2165,"parentId":2085,"tags":{"name":"/app/node_modules/gsap/index.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26091,"timestamp":19123267,"id":2166,"parentId":2110,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/Popover.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26620,"timestamp":19123106,"id":2158,"parentId":2111,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/globe.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":26946,"timestamp":19123009,"id":2157,"parentId":2111,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-gauge.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27012,"timestamp":19123154,"id":2160,"parentId":2112,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/copy-plus.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27144,"timestamp":19123196,"id":2162,"parentId":2112,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-x-2.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27369,"timestamp":19123132,"id":2159,"parentId":2111,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/shield-ellipsis.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27451,"timestamp":19123216,"id":2163,"parentId":2112,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/grid-2x2.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":27685,"timestamp":19123176,"id":2161,"parentId":2112,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/square-pen.js","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27801,"timestamp":19123432,"id":2173,"parentId":1997,"tags":{"name":"/app/components/general/MetricCard.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28986,"timestamp":19123292,"id":2167,"parentId":2012,"tags":{"name":"/app/components/admin/media/TogglePrivacyButton.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":29493,"timestamp":19123375,"id":2170,"parentId":2025,"tags":{"name":"/app/components/su/components/UserFiles.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":30197,"timestamp":19123337,"id":2169,"parentId":2009,"tags":{"name":"/app/components/admin/media/MediaFolderCard.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":31515,"timestamp":19123414,"id":2172,"parentId":2009,"tags":{"name":"/app/components/admin/media/card/MediaListCard.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":32287,"timestamp":19123487,"id":2176,"parentId":2033,"tags":{"name":"/app/components/admin/databases/MoreOptionsModal.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":34023,"timestamp":19123314,"id":2168,"parentId":1996,"tags":{"name":"/app/components/admin/databases/DatabaseListCard.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":34812,"timestamp":19123442,"id":2174,"parentId":2032,"tags":{"name":"/app/components/admin/databases/NewTableForm.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":36286,"timestamp":19123395,"id":2171,"parentId":2025,"tags":{"name":"/app/components/su/components/UserDbShell.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":38787,"timestamp":19123465,"id":2175,"parentId":2032,"tags":{"name":"/app/components/admin/databases/CloneTableForm.tsx","layer":null},"startTime":1736868351095,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2057,"timestamp":19175452,"id":2177,"parentId":2128,"tags":{"name":"__barrel_optimize__?names=CircleX,Copy,Edit!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351147,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2680,"timestamp":19175634,"id":2180,"parentId":2130,"tags":{"name":"__barrel_optimize__?names=CircleX,List,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351147,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14743,"timestamp":19175556,"id":2178,"parentId":2123,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/layers.js","layer":null},"startTime":1736868351147,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14983,"timestamp":19175596,"id":2179,"parentId":2123,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/newspaper.js","layer":null},"startTime":1736868351147,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15868,"timestamp":19175670,"id":2181,"parentId":2033,"tags":{"name":"/app/components/admin/databases/fields/text/JSONTextOption.tsx","layer":null},"startTime":1736868351147,"traceId":"d6db589d9eef97d2"},{"name":"build-module","duration":34,"timestamp":19195559,"id":2182,"parentId":1961,"tags":{},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1710758,"timestamp":17485773,"id":1501,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Findex.tsx&page=%2Fsu%2Fdocs!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1710910,"timestamp":17485703,"id":1488,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fpages%2Findex.tsx&page=%2Fsu%2Fdocs%2Fpages!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"}] +[{"name":"build-module-js","duration":4669,"timestamp":19195745,"id":2185,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transport.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5448,"timestamp":19195777,"id":2186,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/util.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6023,"timestamp":19195965,"id":2192,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-fetch.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7116,"timestamp":19196072,"id":2195,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/webtransport.js","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7850,"timestamp":19195805,"id":2187,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/globals.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9097,"timestamp":19196036,"id":2194,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/websocket.js","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":9438,"timestamp":19195936,"id":2191,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/index.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14668,"timestamp":19195890,"id":2190,"parentId":2131,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":19602,"timestamp":19195699,"id":2184,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/socket.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":20434,"timestamp":19195833,"id":2188,"parentId":2153,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/binary.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":21197,"timestamp":19196123,"id":2196,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseuri.js","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":23675,"timestamp":19196001,"id":2193,"parentId":2154,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling-xhr.js","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":24475,"timestamp":19195859,"id":2189,"parentId":2153,"tags":{"name":"/app/node_modules/socket.io-parser/build/esm/is-binary.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":25051,"timestamp":19195612,"id":2183,"parentId":2136,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/ellipsis.js","layer":null},"startTime":1736868351167,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25201,"timestamp":19196216,"id":2199,"parentId":2038,"tags":{"name":"/app/components/admin/databases/ImportSchemaComponent.tsx","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25927,"timestamp":19196187,"id":2198,"parentId":2038,"tags":{"name":"/app/components/admin/databases/ImportDbComponent.tsx","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27133,"timestamp":19196156,"id":2197,"parentId":2038,"tags":{"name":"/app/components/admin/databases/TableListCard.tsx","layer":null},"startTime":1736868351168,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1948,"timestamp":19229312,"id":2200,"parentId":2167,"tags":{"name":"__barrel_optimize__?names=Lock,LockKeyholeOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2578,"timestamp":19229383,"id":2201,"parentId":2169,"tags":{"name":"__barrel_optimize__?names=Folder,X!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3297,"timestamp":19229414,"id":2202,"parentId":2168,"tags":{"name":"__barrel_optimize__?names=ChevronRight!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":31399,"timestamp":19229461,"id":2204,"parentId":2165,"tags":{"name":"/app/node_modules/gsap/CSSPlugin.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":31978,"timestamp":19229479,"id":2205,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/PopoverPortal.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":33604,"timestamp":19229521,"id":2206,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/usePopover.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":34163,"timestamp":19229652,"id":2210,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/ArrowContainer.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":34593,"timestamp":19229567,"id":2207,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useMemoizedArray.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":36176,"timestamp":19229599,"id":2208,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/util.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":36578,"timestamp":19229623,"id":2209,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useHandlePrevValues.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":37388,"timestamp":19229679,"id":2211,"parentId":2166,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useArrowContainer.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":40910,"timestamp":19229704,"id":2212,"parentId":2164,"tags":{"name":"/app/node_modules/gsap/utils/matrix.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":76778,"timestamp":19229439,"id":2203,"parentId":2165,"tags":{"name":"/app/node_modules/gsap/gsap-core.js","layer":null},"startTime":1736868351201,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":7906,"timestamp":19313714,"id":2220,"parentId":2087,"tags":{"name":"/app/functions/frontend/defaultFieldsRegexp.ts","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8472,"timestamp":19313451,"id":2213,"parentId":2177,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-x.js","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8517,"timestamp":19313581,"id":2215,"parentId":2180,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":8777,"timestamp":19313547,"id":2214,"parentId":2180,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/list.js","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9030,"timestamp":19313702,"id":2219,"parentId":2085,"tags":{"name":"/app/components/general/ExpandBlock.tsx","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":9443,"timestamp":19313677,"id":2218,"parentId":2104,"tags":{"name":"/app/layouts/components/AdminUserDropdown.tsx","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":10125,"timestamp":19313647,"id":2217,"parentId":2073,"tags":{"name":"/app/components/admin/databases/fields/text/ace-editor.ts","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":11062,"timestamp":19313610,"id":2216,"parentId":2077,"tags":{"name":"/app/components/admin/users/UserListCard.tsx","layer":null},"startTime":1736868351285,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2691,"timestamp":19328016,"id":2221,"parentId":2199,"tags":{"name":"__barrel_optimize__?names=FileCog!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3473,"timestamp":19328091,"id":2222,"parentId":2197,"tags":{"name":"__barrel_optimize__?names=ChevronRight,Sheet!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12569,"timestamp":19328116,"id":2223,"parentId":2185,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/parseqs.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":13709,"timestamp":19328144,"id":2224,"parentId":2192,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/transports/polling.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15085,"timestamp":19328205,"id":2226,"parentId":2190,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":15205,"timestamp":19328248,"id":2227,"parentId":2190,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16307,"timestamp":19328309,"id":2229,"parentId":2190,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":16686,"timestamp":19328178,"id":2225,"parentId":2193,"tags":{"name":"/app/node_modules/engine.io-client/build/esm/contrib/has-cors.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":17644,"timestamp":19328280,"id":2228,"parentId":2190,"tags":{"name":"/app/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.js","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":17850,"timestamp":19328342,"id":2230,"parentId":2086,"tags":{"name":"/app/functions/frontend/addNewTemplateIndex.ts","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18045,"timestamp":19328386,"id":2231,"parentId":2085,"tags":{"name":"/app/functions/frontend/addNewTempField.ts","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18238,"timestamp":19328670,"id":2241,"parentId":2109,"tags":{"name":"/app/components/admin/databases/functions/import-export-handler.ts","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":18847,"timestamp":19328696,"id":2242,"parentId":2085,"tags":{"name":"/app/components/admin/databases/functions/generateTypeDefinition.ts","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":19534,"timestamp":19328724,"id":2243,"parentId":2087,"tags":{"name":"/app/functions/frontend/newEntryHandler.ts","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20238,"timestamp":19328651,"id":2240,"parentId":2090,"tags":{"name":"/app/components/admin/databases/UpdateEntryMoreOptions.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21405,"timestamp":19328510,"id":2234,"parentId":2087,"tags":{"name":"/app/components/admin/databases/TableEntryField.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":22180,"timestamp":19328553,"id":2236,"parentId":2086,"tags":{"name":"/app/components/admin/databases/SingleTableIndexCard.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23248,"timestamp":19328593,"id":2238,"parentId":2085,"tags":{"name":"/app/components/admin/databases/NewFieldTemp.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24329,"timestamp":19328573,"id":2237,"parentId":2085,"tags":{"name":"/app/components/admin/databases/ClonedSingleTableFieldCard.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":25423,"timestamp":19328630,"id":2239,"parentId":2085,"tags":{"name":"/app/components/admin/databases/SingleTableFieldCard.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":26799,"timestamp":19328413,"id":2232,"parentId":2110,"tags":{"name":"/app/components/admin/databases/SyncDataButton.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":28132,"timestamp":19328443,"id":2233,"parentId":2080,"tags":{"name":"/app/components/admin/databases/SearchEntriesSection.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":30751,"timestamp":19328532,"id":2235,"parentId":2086,"tags":{"name":"/app/components/admin/databases/NewIndexFieldTemp.tsx","layer":null},"startTime":1736868351300,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11357,"timestamp":19365550,"id":2247,"parentId":2206,"tags":{"name":"/app/node_modules/react-tiny-popover/dist/useElementRef.js","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":11734,"timestamp":19365527,"id":2246,"parentId":2201,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/folder.js","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12006,"timestamp":19365494,"id":2245,"parentId":2200,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-keyhole-open.js","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":12270,"timestamp":19365394,"id":2244,"parentId":2200,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock.js","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12370,"timestamp":19365577,"id":2248,"parentId":2121,"tags":{"name":"/app/functions/frontend/clearCaches.ts","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13059,"timestamp":19365610,"id":2250,"parentId":2126,"tags":{"name":"/app/functions/frontend/submitNewDatabaseForm.ts","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":13830,"timestamp":19365589,"id":2249,"parentId":2126,"tags":{"name":"/app/functions/frontend/submitUpdateDatabaseForm.ts","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":15069,"timestamp":19365659,"id":2252,"parentId":2130,"tags":{"name":"/app/components/su/components/RichText/fns.ts","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17217,"timestamp":19365633,"id":2251,"parentId":2130,"tags":{"name":"/app/components/su/components/RichText/ElementStyleModalContent.tsx","layer":null},"startTime":1736868351337,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1902366,"timestamp":17485711,"id":1490,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Flogin.tsx&page=%2Flogin!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1336,"timestamp":19387995,"id":2253,"parentId":2218,"tags":{"name":"__barrel_optimize__?names=CircleGauge!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351360,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914081,"timestamp":17485698,"id":1486,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fterms.tsx&page=%2Fterms!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914340,"timestamp":17485535,"id":1446,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F500.tsx&page=%2F500!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914390,"timestamp":17485531,"id":1445,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2F404.tsx&page=%2F404!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914287,"timestamp":17485659,"id":1479,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fprivacy.tsx&page=%2Fprivacy!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914400,"timestamp":17485563,"id":1449,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fabout.tsx&page=%2Fabout!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914164,"timestamp":17485819,"id":1511,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcontact.tsx&page=%2Fcontact!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914281,"timestamp":17485720,"id":1493,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Findex.tsx&page=%2F!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914260,"timestamp":17485763,"id":1500,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsend-password-reset-link.tsx&page=%2Fsend-password-reset-link!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914343,"timestamp":17485696,"id":1485,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Funsubscribe.tsx&page=%2Funsubscribe!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914231,"timestamp":17485823,"id":1512,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fcreate-account.tsx&page=%2Fcreate-account!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914403,"timestamp":17485667,"id":1481,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Freset-password.tsx&page=%2Freset-password!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914275,"timestamp":17485810,"id":1509,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914306,"timestamp":17485797,"id":1506,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Femail-verification%2Findex.tsx&page=%2Femail-verification!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914311,"timestamp":17485807,"id":1508,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2Findex.tsx&page=%2Fdocs!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914339,"timestamp":17485831,"id":1514,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fblog%2Findex.tsx&page=%2Fblog!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914370,"timestamp":17485816,"id":1510,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D%2Findex.tsx&page=%2Fdocs%2F%5Bpage%5D%2F%5Bsub-page%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914637,"timestamp":17485566,"id":1450,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fapi-keys%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fapi-keys!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914613,"timestamp":17485605,"id":1462,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fadd-user!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914625,"timestamp":17485607,"id":1463,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Fadd-database!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914422,"timestamp":17485826,"id":1513,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2Findex.tsx&page=%2Fadmin!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914692,"timestamp":17485570,"id":1451,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fconnect%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fconnect!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914702,"timestamp":17485582,"id":1455,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-social-logins!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914722,"timestamp":17485576,"id":1453,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914682,"timestamp":17485630,"id":1471,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Fadd-user!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914700,"timestamp":17485628,"id":1470,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914744,"timestamp":17485598,"id":1460,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fsettings.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fsettings!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914770,"timestamp":17485586,"id":1456,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fschema!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914732,"timestamp":17485642,"id":1475,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2F%5Buser%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1914801,"timestamp":17485588,"id":1457,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fconnect!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"}] +[{"name":"add-entry","duration":1914997,"timestamp":17485639,"id":1474,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2F%5Bdatabase%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1915029,"timestamp":17485625,"id":1469,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1915136,"timestamp":17485573,"id":1452,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fedit-database!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1915049,"timestamp":17485673,"id":1483,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fshell!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1915114,"timestamp":17485620,"id":1468,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fusers%2Fdatabases!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1915156,"timestamp":17485591,"id":1458,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1915158,"timestamp":17485600,"id":1461,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2F%5Buser%5D%2Fchange-password!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3707,"timestamp":19398196,"id":2254,"parentId":2234,"tags":{"name":"__barrel_optimize__?names=Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1936,"timestamp":19405087,"id":2270,"parentId":2251,"tags":{"name":"__barrel_optimize__?names=CircleX!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351377,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":14657,"timestamp":19398297,"id":2255,"parentId":2221,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/file-cog.js","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15246,"timestamp":19398425,"id":2259,"parentId":2171,"tags":{"name":"/app/components/su/components/UserDbShellQueryResult.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15943,"timestamp":19398358,"id":2257,"parentId":2170,"tags":{"name":"/app/components/su/components/UserSingleFile.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16564,"timestamp":19398466,"id":2261,"parentId":2172,"tags":{"name":"/app/components/admin/media/card/MediaLinksDropdown.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17243,"timestamp":19398330,"id":2256,"parentId":2170,"tags":{"name":"/app/components/su/components/UserFolder.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":17549,"timestamp":19398547,"id":2264,"parentId":2176,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/EncryptionSelect.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18216,"timestamp":19398493,"id":2262,"parentId":2172,"tags":{"name":"/app/components/admin/media/card/MediaPrivacyButton.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18582,"timestamp":19398608,"id":2266,"parentId":2176,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/AutoIncrement.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":18914,"timestamp":19398673,"id":2268,"parentId":2176,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/UniqueFieldSelect.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20171,"timestamp":19398445,"id":2260,"parentId":2172,"tags":{"name":"/app/components/admin/media/card/MediaPreviewSection.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":20877,"timestamp":19398642,"id":2267,"parentId":2176,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/RegexPattern.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":21973,"timestamp":19398517,"id":2263,"parentId":2176,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/CSSFiles.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23514,"timestamp":19398386,"id":2258,"parentId":2174,"tags":{"name":"/app/components/admin/databases/NewTableNameSlugAndDescSection.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":24252,"timestamp":19398706,"id":2269,"parentId":2176,"tags":{"name":"/app/components/general/Modal.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":18775,"timestamp":19405175,"id":2271,"parentId":2057,"tags":{"name":"/app/node_modules/@socket.io/component-emitter/lib/esm/index.js","layer":null},"startTime":1736868351377,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":27752,"timestamp":19398578,"id":2265,"parentId":2176,"tags":{"name":"/app/components/admin/databases/fields/fields-inputs/ForeignKey.tsx","layer":null},"startTime":1736868351370,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":21326,"timestamp":19405263,"id":2273,"parentId":2238,"tags":{"name":"/app/functions/frontend/addNewField.ts","layer":null},"startTime":1736868351377,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":22032,"timestamp":19405289,"id":2274,"parentId":2239,"tags":{"name":"/app/functions/frontend/reorderField.ts","layer":null},"startTime":1736868351377,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":23267,"timestamp":19405221,"id":2272,"parentId":2234,"tags":{"name":"/app/functions/frontend/generateFormElementsForEntry.tsx","layer":null},"startTime":1736868351377,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1947790,"timestamp":17485618,"id":1467,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fusers!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1947862,"timestamp":17485637,"id":1473,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1947825,"timestamp":17485701,"id":1487,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Fschema!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1947829,"timestamp":17485718,"id":1492,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12172,"timestamp":19432886,"id":2275,"parentId":2235,"tags":{"name":"/app/functions/frontend/addNewIndex.ts","layer":null},"startTime":1736868351404,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":12713,"timestamp":19433060,"id":2280,"parentId":2232,"tags":{"name":"/app/functions/frontend/syncTableDataFormHandler.ts","layer":null},"startTime":1736868351405,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":13438,"timestamp":19433038,"id":2279,"parentId":2234,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditor.tsx","layer":null},"startTime":1736868351405,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":14197,"timestamp":19432965,"id":2276,"parentId":2234,"tags":{"name":"/app/components/admin/databases/TableRichTextEntryField.tsx","layer":null},"startTime":1736868351404,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":15398,"timestamp":19433017,"id":2278,"parentId":2238,"tags":{"name":"/app/components/admin/databases/NewFieldFormContent.tsx","layer":null},"startTime":1736868351405,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":16843,"timestamp":19432993,"id":2277,"parentId":2236,"tags":{"name":"/app/components/admin/databases/ExistingIndexEdit.tsx","layer":null},"startTime":1736868351404,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1966647,"timestamp":17485635,"id":1472,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1970040,"timestamp":17485579,"id":1454,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2Fadd-table!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1970038,"timestamp":17485615,"id":1466,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Ffields!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1970010,"timestamp":17485662,"id":1480,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fedit-table!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6527,"timestamp":19456422,"id":2281,"parentId":2257,"tags":{"name":"__barrel_optimize__?names=HardDrive!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351428,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":7257,"timestamp":19456538,"id":2282,"parentId":2256,"tags":{"name":"__barrel_optimize__?names=Copy,RotateCcw!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351428,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3223,"timestamp":19461381,"id":2283,"parentId":2262,"tags":{"name":"__barrel_optimize__?names=Lock,LockOpen!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351433,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":5185,"timestamp":19461526,"id":2284,"parentId":2185,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/index.js","layer":null},"startTime":1736868351433,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1981700,"timestamp":17485758,"id":1499,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fusers%2F%5Bsingle%5D.tsx&page=%2Fsu%2Fusers%2F%5Bsingle%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1468,"timestamp":19470114,"id":2290,"parentId":2284,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/encodePacket.browser.js","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2057,"timestamp":19470145,"id":2291,"parentId":2284,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/decodePacket.browser.js","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2511,"timestamp":19470098,"id":2289,"parentId":2229,"tags":{"name":"/app/node_modules/prop-types/index.js","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2709,"timestamp":19470174,"id":2292,"parentId":2284,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/commons.js","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":3144,"timestamp":19469952,"id":2285,"parentId":2283,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/lock-open.js","layer":null},"startTime":1736868351441,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":3466,"timestamp":19470072,"id":2288,"parentId":2276,"tags":{"name":"/app/functions/frontend/tinyMCEEditorSetup.ts","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":3854,"timestamp":19470039,"id":2287,"parentId":2279,"tags":{"name":"/app/components/admin/databases/fields/text/JSONEditorHeader.tsx","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":4348,"timestamp":19470012,"id":2286,"parentId":2277,"tags":{"name":"/app/components/admin/databases/indexes/indexSelectChange.ts","layer":null},"startTime":1736868351442,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1989797,"timestamp":17485612,"id":1465,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia%2F%5B...folder%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1989867,"timestamp":17485610,"id":1464,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fmedia%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fmedia!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":1990881,"timestamp":17485594,"id":1459,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Findex.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1242,"timestamp":19484134,"id":2293,"parentId":2287,"tags":{"name":"__barrel_optimize__?names=CircleMinus,CirclePlus,Lock!=!/app/node_modules/lucide-react/dist/esm/lucide-react.js","layer":null},"startTime":1736868351456,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1652,"timestamp":19485691,"id":2297,"parentId":2289,"tags":{"name":"/app/node_modules/prop-types/factoryWithThrowingShims.js","layer":null},"startTime":1736868351457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":2481,"timestamp":19485721,"id":2298,"parentId":2291,"tags":{"name":"/app/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","layer":null},"startTime":1736868351457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-ts","duration":2793,"timestamp":19485680,"id":2296,"parentId":2288,"tags":{"name":"/app/functions/frontend/handleCopyHTML.ts","layer":null},"startTime":1736868351457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":3268,"timestamp":19485624,"id":2294,"parentId":2288,"tags":{"name":"/app/functions/frontend/handleEditHTML.tsx","layer":null},"startTime":1736868351457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":3685,"timestamp":19485667,"id":2295,"parentId":2288,"tags":{"name":"/app/functions/frontend/handleEmbed.tsx","layer":null},"startTime":1736868351457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2004189,"timestamp":17485725,"id":1494,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fconsole.tsx&page=%2Fsu%2Fconsole!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1055,"timestamp":19491571,"id":2300,"parentId":2293,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-plus.js","layer":null},"startTime":1736868351463,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1301,"timestamp":19491512,"id":2299,"parentId":2293,"tags":{"name":"/app/node_modules/lucide-react/dist/esm/icons/circle-minus.js","layer":null},"startTime":1736868351463,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":1484,"timestamp":19492154,"id":2301,"parentId":2295,"tags":{"name":"/app/components/general/EmbedPopupContent.tsx","layer":null},"startTime":1736868351464,"traceId":"d6db589d9eef97d2"},{"name":"build-module-tsx","duration":2184,"timestamp":19492194,"id":2302,"parentId":2294,"tags":{"name":"/app/components/general/EditHTMLPopupContent.tsx","layer":null},"startTime":1736868351464,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":6212,"timestamp":19495706,"id":2303,"parentId":2297,"tags":{"name":"/app/node_modules/prop-types/lib/ReactPropTypesSecret.js","layer":null},"startTime":1736868351467,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2016278,"timestamp":17485794,"id":1505,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fedit-page.tsx&page=%2Fsu%2Fdocs%2Fedit-page!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2016411,"timestamp":17485740,"id":1495,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fsu%2Fdocs%2Fcreate-page.tsx&page=%2Fsu%2Fdocs%2Fcreate-page!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":855,"timestamp":19502225,"id":2304,"parentId":2302,"tags":{"name":"/app/node_modules/html-prettify/src/index.js","layer":null},"startTime":1736868351474,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":757,"timestamp":19504145,"id":2305,"parentId":2304,"tags":{"name":"/app/node_modules/html-prettify/src/utils/addIndentation.js","layer":null},"startTime":1736868351476,"traceId":"d6db589d9eef97d2"},{"name":"build-module-js","duration":1255,"timestamp":19504183,"id":2306,"parentId":2304,"tags":{"name":"/app/node_modules/html-prettify/src/utils/toLines.js","layer":null},"startTime":1736868351476,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2019847,"timestamp":17485648,"id":1476,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2Fadd-entry!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"add-entry","duration":2019894,"timestamp":17485651,"id":1477,"parentId":1442,"tags":{"request":"next-client-pages-loader?absolutePagePath=private-next-pages%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D.tsx&page=%2Fadmin%2F%5Buser_id%5D%2Fdatabases%2F%5Bsingle%5D%2Ftables%2F%5Bsingle_table%5D%2Fentries%2F%5Bsingle_entry%5D!"},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"make","duration":2020486,"timestamp":17485171,"id":1442,"parentId":1441,"tags":{},"startTime":1736868349457,"traceId":"d6db589d9eef97d2"},{"name":"chunk-graph","duration":15864,"timestamp":19546801,"id":2308,"parentId":2307,"tags":{},"startTime":1736868351518,"traceId":"d6db589d9eef97d2"},{"name":"optimize-modules","duration":15,"timestamp":19562745,"id":2310,"parentId":2307,"tags":{},"startTime":1736868351534,"traceId":"d6db589d9eef97d2"},{"name":"optimize-chunks","duration":16012,"timestamp":19562926,"id":2311,"parentId":2307,"tags":{},"startTime":1736868351534,"traceId":"d6db589d9eef97d2"},{"name":"optimize-tree","duration":10,"timestamp":19578988,"id":2312,"parentId":2307,"tags":{},"startTime":1736868351550,"traceId":"d6db589d9eef97d2"},{"name":"optimize-chunk-modules","duration":26024,"timestamp":19579035,"id":2313,"parentId":2307,"tags":{},"startTime":1736868351551,"traceId":"d6db589d9eef97d2"},{"name":"optimize","duration":42387,"timestamp":19562713,"id":2309,"parentId":2307,"tags":{},"startTime":1736868351534,"traceId":"d6db589d9eef97d2"},{"name":"module-hash","duration":20024,"timestamp":19612707,"id":2314,"parentId":2307,"tags":{},"startTime":1736868351584,"traceId":"d6db589d9eef97d2"},{"name":"code-generation","duration":225536,"timestamp":19632772,"id":2315,"parentId":2307,"tags":{},"startTime":1736868351604,"traceId":"d6db589d9eef97d2"},{"name":"hash","duration":8706,"timestamp":19862426,"id":2316,"parentId":2307,"tags":{},"startTime":1736868351834,"traceId":"d6db589d9eef97d2"},{"name":"code-generation-jobs","duration":222,"timestamp":19871130,"id":2317,"parentId":2307,"tags":{},"startTime":1736868351843,"traceId":"d6db589d9eef97d2"},{"name":"module-assets","duration":333,"timestamp":19871319,"id":2318,"parentId":2307,"tags":{},"startTime":1736868351843,"traceId":"d6db589d9eef97d2"},{"name":"create-chunk-assets","duration":13680,"timestamp":19871666,"id":2319,"parentId":2307,"tags":{},"startTime":1736868351843,"traceId":"d6db589d9eef97d2"},{"name":"NextJsBuildManifest-generateClientManifest","duration":4828,"timestamp":19908892,"id":2321,"parentId":1441,"tags":{},"startTime":1736868351880,"traceId":"d6db589d9eef97d2"},{"name":"NextJsBuildManifest-createassets","duration":7505,"timestamp":19906238,"id":2320,"parentId":1441,"tags":{},"startTime":1736868351878,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":83963,"timestamp":19969950,"id":2324,"parentId":2322,"tags":{"name":"static/chunks/pages/_error-158556db7d796075.js","cache":"MISS"},"startTime":1736868351941,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":84119,"timestamp":19970106,"id":2326,"parentId":2322,"tags":{"name":"static/chunks/pages/500-ada124a7e1534a33.js","cache":"MISS"},"startTime":1736868351942,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":84306,"timestamp":19969981,"id":2325,"parentId":2322,"tags":{"name":"static/chunks/pages/404-99c53fc9e4c4ade7.js","cache":"MISS"},"startTime":1736868351941,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":81033,"timestamp":19973307,"id":2328,"parentId":2322,"tags":{"name":"static/chunks/pages/about-eb383d540195a479.js","cache":"MISS"},"startTime":1736868351945,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":79710,"timestamp":19974684,"id":2332,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases-bf3bc5b18c2bc2ae.js","cache":"MISS"},"startTime":1736868351946,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":79959,"timestamp":19974487,"id":2331,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-51c2fc7c6de18627.js","cache":"MISS"},"startTime":1736868351946,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":76709,"timestamp":19977814,"id":2343,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/media-201e9fa79241a69a.js","cache":"MISS"},"startTime":1736868351949,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":77339,"timestamp":19977244,"id":2340,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-b7ed25f208e3660d.js","cache":"MISS"},"startTime":1736868351949,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":76965,"timestamp":19977665,"id":2342,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/add-database-f472688657c5343d.js","cache":"MISS"},"startTime":1736868351949,"traceId":"d6db589d9eef97d2"}] +[{"name":"minify-js","duration":79619,"timestamp":19975480,"id":2335,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/schema-8fccd6f83b790679.js","cache":"MISS"},"startTime":1736868351947,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":79106,"timestamp":19976054,"id":2337,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-2ecd2f59890bf3e1.js","cache":"MISS"},"startTime":1736868351948,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":78280,"timestamp":19976928,"id":2339,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/settings-01961ed0eee04479.js","cache":"MISS"},"startTime":1736868351948,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":80059,"timestamp":19975207,"id":2334,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-d2e2697a2298b5c6.js","cache":"MISS"},"startTime":1736868351947,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":81903,"timestamp":19973417,"id":2329,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/api-keys-ebc6dbdf36455187.js","cache":"MISS"},"startTime":1736868351945,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":73219,"timestamp":19982146,"id":2363,"parentId":2322,"tags":{"name":"static/chunks/pages/logout-7734315d383002d3.js","cache":"MISS"},"startTime":1736868351954,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":79631,"timestamp":19975790,"id":2336,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/connect-ddccc2c29b3dd13f.js","cache":"MISS"},"startTime":1736868351947,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70434,"timestamp":19985117,"id":2379,"parentId":2322,"tags":{"name":"static/chunks/pages/send-password-reset-link-b4106468732bfad7.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":78238,"timestamp":19977404,"id":2341,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/add-user-70dd307f3209487c.js","cache":"MISS"},"startTime":1736868351949,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":81798,"timestamp":19973898,"id":2330,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/connect-ceed0d87dc41fbea.js","cache":"MISS"},"startTime":1736868351945,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":69528,"timestamp":19986227,"id":2390,"parentId":2322,"tags":{"name":"static/chunks/pages/contact-49cac5579a199547.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":75623,"timestamp":19980186,"id":2353,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]-1420681ea698d5b2.js","cache":"MISS"},"startTime":1736868351952,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":81063,"timestamp":19974800,"id":2333,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-9ed3b2c1935e7f49.js","cache":"MISS"},"startTime":1736868351946,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70501,"timestamp":19985398,"id":2382,"parentId":2322,"tags":{"name":"static/chunks/pages/su/error-logs-060485b02b78417f.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":76171,"timestamp":19979784,"id":2351,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-d72644bbc496aaf8.js","cache":"MISS"},"startTime":1736868351951,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70773,"timestamp":19985238,"id":2380,"parentId":2322,"tags":{"name":"static/chunks/pages/su/docs-a820e92d9f236f03.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70779,"timestamp":19985284,"id":2381,"parentId":2322,"tags":{"name":"static/chunks/pages/su/backups-7b0ae936f386d60d.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":75793,"timestamp":19980324,"id":2354,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-1b173a0a5bd64011.js","cache":"MISS"},"startTime":1736868351952,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":76668,"timestamp":19979496,"id":2350,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-4c8ff2ebaae32e06.js","cache":"MISS"},"startTime":1736868351951,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70056,"timestamp":19986143,"id":2389,"parentId":2322,"tags":{"name":"static/chunks/pages/docs/[page]/[sub-page]-9e4ed8062d5a855d.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":72400,"timestamp":19983837,"id":2372,"parentId":2322,"tags":{"name":"static/chunks/pages/index-fe4527d2d078edc2.js","cache":"MISS"},"startTime":1736868351955,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":71847,"timestamp":19984423,"id":2376,"parentId":2322,"tags":{"name":"static/chunks/pages/su/users-1bbc526bb9d2f8ce.js","cache":"MISS"},"startTime":1736868351956,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":69882,"timestamp":19986423,"id":2391,"parentId":2322,"tags":{"name":"static/chunks/pages/create-account-2388b08838d62136.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":80052,"timestamp":19976302,"id":2338,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-16c952028c5343ce.js","cache":"MISS"},"startTime":1736868351948,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":77120,"timestamp":19979271,"id":2349,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]-cb69b2f56865df4e.js","cache":"MISS"},"startTime":1736868351951,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70419,"timestamp":19986034,"id":2388,"parentId":2322,"tags":{"name":"static/chunks/pages/docs/[page]-879d3d2b634f3646.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":75394,"timestamp":19981112,"id":2358,"parentId":2322,"tags":{"name":"static/chunks/pages/privacy-d22338a9bbeab14f.js","cache":"MISS"},"startTime":1736868351953,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":73009,"timestamp":19983559,"id":2371,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]-d621493ccddd5440.js","cache":"MISS"},"startTime":1736868351955,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":69832,"timestamp":19986774,"id":2394,"parentId":2322,"tags":{"name":"static/chunks/webpack-810c18afc07353bc.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":75629,"timestamp":19981041,"id":2357,"parentId":2322,"tags":{"name":"static/chunks/pages/redirect-a083a626f8b277a1.js","cache":"MISS"},"startTime":1736868351953,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":72413,"timestamp":19984306,"id":2375,"parentId":2322,"tags":{"name":"static/chunks/pages/su/load-balancing-db47a1eec84be27c.js","cache":"MISS"},"startTime":1736868351956,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70084,"timestamp":19986683,"id":2393,"parentId":2322,"tags":{"name":"static/chunks/pages/blog-0bb58209f442fad4.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":75482,"timestamp":19981337,"id":2359,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-49af600f89c4a62b.js","cache":"MISS"},"startTime":1736868351953,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":70991,"timestamp":19985867,"id":2387,"parentId":2322,"tags":{"name":"static/chunks/pages/docs-5921fd42ef437a28.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":65755,"timestamp":19991149,"id":2404,"parentId":2322,"tags":{"name":"static/chunks/7287-2869cee5f20273cf.js","cache":"MISS"},"startTime":1736868351963,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":77020,"timestamp":19979929,"id":2352,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables-4df72e28070c661d.js","cache":"MISS"},"startTime":1736868351951,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":73596,"timestamp":19983395,"id":2370,"parentId":2322,"tags":{"name":"static/chunks/pages/su/servers-2f5518b8a4370fa8.js","cache":"MISS"},"startTime":1736868351955,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":72772,"timestamp":19984258,"id":2374,"parentId":2322,"tags":{"name":"static/chunks/pages/su/docs/create-page-ec7a474c711f4aab.js","cache":"MISS"},"startTime":1736868351956,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":71272,"timestamp":19985791,"id":2386,"parentId":2322,"tags":{"name":"static/chunks/pages/su/docs/pages/[id]-88e8fa764087cd8e.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":78159,"timestamp":19978955,"id":2348,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/users-3527e3fb682652c8.js","cache":"MISS"},"startTime":1736868351950,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":73174,"timestamp":19985697,"id":2385,"parentId":2322,"tags":{"name":"static/chunks/pages/email-verification-1d11a9de2526a176.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":73923,"timestamp":19985656,"id":2384,"parentId":2322,"tags":{"name":"static/chunks/pages/su/docs/edit-page-0d9f864ae1c2491a.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":73073,"timestamp":19986577,"id":2392,"parentId":2322,"tags":{"name":"static/chunks/pages/admin-111c2e98619e424d.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":76807,"timestamp":19983220,"id":2369,"parentId":2322,"tags":{"name":"static/chunks/pages/login-3675a0e03650b68b.js","cache":"MISS"},"startTime":1736868351955,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":71742,"timestamp":19991761,"id":2407,"parentId":2322,"tags":{"name":"static/chunks/5810-949e2c13b225cb77.js","cache":"MISS"},"startTime":1736868351963,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":82499,"timestamp":19981890,"id":2362,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/shell-61bae285b8476ee8.js","cache":"MISS"},"startTime":1736868351953,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":85755,"timestamp":19978806,"id":2347,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/users/databases-00c6c7eed959b915.js","cache":"MISS"},"startTime":1736868351950,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":88092,"timestamp":19991596,"id":2406,"parentId":2322,"tags":{"name":"static/chunks/8076-c7ee477994274ba9.js","cache":"MISS"},"startTime":1736868351963,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":95906,"timestamp":19984117,"id":2373,"parentId":2322,"tags":{"name":"static/chunks/pages/su/console-04bd8655e1f27673.js","cache":"MISS"},"startTime":1736868351956,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":97039,"timestamp":19983030,"id":2368,"parentId":2322,"tags":{"name":"static/chunks/pages/su/envar-a744d9ce2e005fcf.js","cache":"MISS"},"startTime":1736868351955,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":99310,"timestamp":19980799,"id":2356,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-9847da070ca014d9.js","cache":"MISS"},"startTime":1736868351952,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":98428,"timestamp":19981708,"id":2361,"parentId":2322,"tags":{"name":"static/chunks/pages/su/users/new-34f1b011a190cd7c.js","cache":"MISS"},"startTime":1736868351953,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":94645,"timestamp":19985522,"id":2383,"parentId":2322,"tags":{"name":"static/chunks/pages/su-c5ab2df75c7c5c88.js","cache":"MISS"},"startTime":1736868351957,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":97210,"timestamp":19982981,"id":2367,"parentId":2322,"tags":{"name":"static/chunks/pages/su/docs/pages-9d23a704d1108cf4.js","cache":"MISS"},"startTime":1736868351954,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":95591,"timestamp":19984631,"id":2378,"parentId":2322,"tags":{"name":"static/chunks/pages/su/users/[single]-62fe99ae79f52df9.js","cache":"MISS"},"startTime":1736868351956,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":98668,"timestamp":19981584,"id":2360,"parentId":2322,"tags":{"name":"static/chunks/pages/reset-password-414be1502e481980.js","cache":"MISS"},"startTime":1736868351953,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":83103,"timestamp":19997174,"id":2425,"parentId":2322,"tags":{"name":"static/H18gzOjVUv9E4GCco-0Rs/_ssgManifest.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":101739,"timestamp":19978572,"id":2346,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/users-8e036c92b4386a3f.js","cache":"MISS"},"startTime":1736868351950,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":95786,"timestamp":19984551,"id":2377,"parentId":2322,"tags":{"name":"static/chunks/pages/su/login-5340c2e7a0c5d584.js","cache":"MISS"},"startTime":1736868351956,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":83164,"timestamp":19997193,"id":2428,"parentId":2322,"tags":{"name":"server/next-font-manifest.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":83751,"timestamp":19996640,"id":2420,"parentId":2322,"tags":{"name":"static/chunks/6099-d50f5ab4ad8155be.js","cache":"MISS"},"startTime":1736868351968,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":83243,"timestamp":19997170,"id":2424,"parentId":2322,"tags":{"name":"server/dynamic-css-manifest.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":83271,"timestamp":19997159,"id":2423,"parentId":2322,"tags":{"name":"server/middleware-react-loadable-manifest.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":96840,"timestamp":19997184,"id":2427,"parentId":2322,"tags":{"name":"static/H18gzOjVUv9E4GCco-0Rs/_buildManifest.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":102892,"timestamp":19991262,"id":2405,"parentId":2322,"tags":{"name":"static/chunks/7391-82961bb886832d6e.js","cache":"MISS"},"startTime":1736868351963,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":116195,"timestamp":19978018,"id":2344,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/media/[...folder]-4077258539896b9b.js","cache":"MISS"},"startTime":1736868351950,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":113723,"timestamp":19980540,"id":2355,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-3cb64992d90a2310.js","cache":"MISS"},"startTime":1736868351952,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":97144,"timestamp":19997180,"id":2426,"parentId":2322,"tags":{"name":"server/middleware-build-manifest.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":97513,"timestamp":19997006,"id":2422,"parentId":2322,"tags":{"name":"static/chunks/3298-bf77c986348119d2.js","cache":"MISS"},"startTime":1736868351969,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":112235,"timestamp":19982340,"id":2365,"parentId":2322,"tags":{"name":"static/chunks/pages/terms-cebe07840010e0af.js","cache":"MISS"},"startTime":1736868351954,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":112539,"timestamp":19982673,"id":2366,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/schema-c28f71be0d8fc169.js","cache":"MISS"},"startTime":1736868351954,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":121711,"timestamp":19996819,"id":2421,"parentId":2322,"tags":{"name":"static/chunks/6272-f0df622d7ae62bd3.js","cache":"MISS"},"startTime":1736868351968,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":136514,"timestamp":19982236,"id":2364,"parentId":2322,"tags":{"name":"static/chunks/pages/unsubscribe-16f49fb4445efa1d.js","cache":"MISS"},"startTime":1736868351954,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":123963,"timestamp":19994863,"id":2416,"parentId":2322,"tags":{"name":"static/chunks/8319-a881b95e06431438.js","cache":"MISS"},"startTime":1736868351966,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":140678,"timestamp":19978221,"id":2345,"parentId":2322,"tags":{"name":"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-90b1d044a8d8a307.js","cache":"MISS"},"startTime":1736868351950,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":122946,"timestamp":19996029,"id":2419,"parentId":2322,"tags":{"name":"static/chunks/4403-6d995a5674a1315a.js","cache":"MISS"},"startTime":1736868351968,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":130734,"timestamp":19988301,"id":2399,"parentId":2322,"tags":{"name":"static/chunks/1335-4f422e8f1a2be407.js","cache":"MISS"},"startTime":1736868351960,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":130589,"timestamp":19988533,"id":2400,"parentId":2322,"tags":{"name":"static/chunks/9660-78c8822b00ea7704.js","cache":"MISS"},"startTime":1736868351960,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":134824,"timestamp":19993910,"id":2413,"parentId":2322,"tags":{"name":"static/chunks/4261-f81c8f64448d27cb.js","cache":"MISS"},"startTime":1736868351965,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":134180,"timestamp":19994669,"id":2415,"parentId":2322,"tags":{"name":"static/chunks/6830-9d1d72fda9b42a3d.js","cache":"MISS"},"startTime":1736868351966,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":136792,"timestamp":19992113,"id":2409,"parentId":2322,"tags":{"name":"static/chunks/2438-59937fcecf2c04f5.js","cache":"MISS"},"startTime":1736868351964,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":135212,"timestamp":19993744,"id":2412,"parentId":2322,"tags":{"name":"static/chunks/6383-1b6c88d49308b969.js","cache":"MISS"},"startTime":1736868351965,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":134765,"timestamp":19994950,"id":2417,"parentId":2322,"tags":{"name":"static/chunks/7384-6a4fa2dfc497799f.js","cache":"MISS"},"startTime":1736868351966,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":140648,"timestamp":19989791,"id":2402,"parentId":2322,"tags":{"name":"static/chunks/2829-4502fbb746023c5f.js","cache":"MISS"},"startTime":1736868351961,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":142737,"timestamp":19988016,"id":2398,"parentId":2322,"tags":{"name":"static/chunks/6428-871d12a0e04dc58d.js","cache":"MISS"},"startTime":1736868351960,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":142445,"timestamp":19991973,"id":2408,"parentId":2322,"tags":{"name":"static/chunks/9268-e50b8b33479f88cf.js","cache":"MISS"},"startTime":1736868351963,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":141556,"timestamp":19993349,"id":2411,"parentId":2322,"tags":{"name":"static/chunks/1580-7b44e7c7734b23fc.js","cache":"MISS"},"startTime":1736868351965,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":153586,"timestamp":19994431,"id":2414,"parentId":2322,"tags":{"name":"static/chunks/9950-6c030044cc5aeefb.js","cache":"MISS"},"startTime":1736868351966,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":166762,"timestamp":19995100,"id":2418,"parentId":2322,"tags":{"name":"static/chunks/9551-0ecb883f430fb625.js","cache":"MISS"},"startTime":1736868351967,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":169545,"timestamp":19992416,"id":2410,"parentId":2322,"tags":{"name":"static/chunks/8311-54cf225740f6b2c6.js","cache":"MISS"},"startTime":1736868351964,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":194218,"timestamp":19990098,"id":2403,"parentId":2322,"tags":{"name":"static/chunks/2793-e696ad685b3d9b29.js","cache":"MISS"},"startTime":1736868351962,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":195505,"timestamp":19988902,"id":2401,"parentId":2322,"tags":{"name":"static/chunks/6460-8055b8160f733eb7.js","cache":"MISS"},"startTime":1736868351960,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":250602,"timestamp":19966354,"id":2323,"parentId":2322,"tags":{"name":"static/chunks/main-a0bdd92e7b43604b.js","cache":"MISS"},"startTime":1736868351938,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":229817,"timestamp":19987281,"id":2396,"parentId":2322,"tags":{"name":"static/chunks/94726e6d-32f68157960855f5.js","cache":"MISS"},"startTime":1736868351959,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":302411,"timestamp":19970218,"id":2327,"parentId":2322,"tags":{"name":"static/chunks/pages/_app-cb5ac4db287ad305.js","cache":"MISS"},"startTime":1736868351942,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":292752,"timestamp":19986885,"id":2395,"parentId":2322,"tags":{"name":"static/chunks/framework-bd96dea0d6d5688f.js","cache":"MISS"},"startTime":1736868351958,"traceId":"d6db589d9eef97d2"},{"name":"minify-js","duration":363528,"timestamp":19987870,"id":2397,"parentId":2322,"tags":{"name":"static/chunks/ed150ef9-4bae487078acc5bf.js","cache":"MISS"},"startTime":1736868351959,"traceId":"d6db589d9eef97d2"},{"name":"minify-webpack-plugin-optimize","duration":436587,"timestamp":19915009,"id":2322,"parentId":1441,"tags":{"compilationName":"client"},"startTime":1736868351887,"traceId":"d6db589d9eef97d2"},{"name":"minify-css","duration":371265,"timestamp":20351932,"id":2430,"parentId":2429,"tags":{"file":"static/css/bf9db5436f73da1d.css","cache":"MISS"},"startTime":1736868352323,"traceId":"d6db589d9eef97d2"},{"name":"minify-css","duration":371173,"timestamp":20352040,"id":2431,"parentId":2429,"tags":{"file":"static/css/9b1cffe2c89f6bb5.css","cache":"MISS"},"startTime":1736868352324,"traceId":"d6db589d9eef97d2"},{"name":"minify-css","duration":371169,"timestamp":20352046,"id":2432,"parentId":2429,"tags":{"file":"static/css/2c3db85a1d7310ee.css","cache":"MISS"},"startTime":1736868352324,"traceId":"d6db589d9eef97d2"}] +[{"name":"css-minimizer-plugin","duration":371682,"timestamp":20351782,"id":2429,"parentId":1441,"tags":{},"startTime":1736868352323,"traceId":"d6db589d9eef97d2"},{"name":"seal","duration":1211917,"timestamp":19526882,"id":2307,"parentId":1441,"tags":{},"startTime":1736868351498,"traceId":"d6db589d9eef97d2"},{"name":"webpack-compilation","duration":3255444,"timestamp":17483450,"id":1441,"parentId":13,"tags":{"name":"client"},"startTime":1736868349455,"traceId":"d6db589d9eef97d2"},{"name":"emit","duration":4385,"timestamp":20738947,"id":2433,"parentId":13,"tags":{},"startTime":1736868352710,"traceId":"d6db589d9eef97d2"},{"name":"webpack-close","duration":331517,"timestamp":20744010,"id":2434,"parentId":13,"tags":{"name":"client"},"startTime":1736868352716,"traceId":"d6db589d9eef97d2"},{"name":"webpack-generate-error-stats","duration":1131,"timestamp":21075553,"id":2435,"parentId":2434,"tags":{},"startTime":1736868353047,"traceId":"d6db589d9eef97d2"},{"name":"run-webpack-compiler","duration":19695038,"timestamp":1382138,"id":13,"parentId":1,"tags":{},"startTime":1736868333354,"traceId":"d6db589d9eef97d2"},{"name":"format-webpack-messages","duration":251,"timestamp":21077253,"id":2436,"parentId":1,"tags":{},"startTime":1736868353049,"traceId":"d6db589d9eef97d2"},{"name":"check-static-error-page","duration":53012,"timestamp":21456948,"id":2439,"parentId":2438,"tags":{},"startTime":1736868353428,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":13872,"timestamp":21562996,"id":2441,"parentId":2438,"tags":{"page":"/_error"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":16359,"timestamp":21561226,"id":2440,"parentId":2438,"tags":{"page":"/_app"},"startTime":1736868353533,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":14841,"timestamp":21563083,"id":2442,"parentId":2438,"tags":{"page":"/_document"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":13799,"timestamp":21564803,"id":2479,"parentId":2438,"tags":{"page":"/api/acceptUserInvitation"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":13903,"timestamp":21564857,"id":2480,"parentId":2438,"tags":{"page":"/api/addAdminUserUser"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":14237,"timestamp":21564911,"id":2482,"parentId":2438,"tags":{"page":"/api/addDbUser"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":14887,"timestamp":21564883,"id":2481,"parentId":2438,"tags":{"page":"/api/addApiKey"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":15123,"timestamp":21564942,"id":2483,"parentId":2438,"tags":{"page":"/api/addNewMediaFolder"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":15859,"timestamp":21564968,"id":2484,"parentId":2438,"tags":{"page":"/api/addSocialLogin"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":16379,"timestamp":21564988,"id":2485,"parentId":2438,"tags":{"page":"/api/addTableEntry"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":16785,"timestamp":21565025,"id":2486,"parentId":2438,"tags":{"page":"/api/addUserMedia"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":17941,"timestamp":21565048,"id":2487,"parentId":2438,"tags":{"page":"/api/addUserTable"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":18665,"timestamp":21565072,"id":2488,"parentId":2438,"tags":{"page":"/api/addUserUser"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":18866,"timestamp":21565143,"id":2491,"parentId":2438,"tags":{"page":"/api/admin/clearErrorLogs"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":19546,"timestamp":21565118,"id":2490,"parentId":2438,"tags":{"page":"/api/admin/addUserBackup"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":20474,"timestamp":21565094,"id":2489,"parentId":2438,"tags":{"page":"/api/addUsersTableToDatabase"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":20699,"timestamp":21565184,"id":2492,"parentId":2438,"tags":{"page":"/api/admin/clientError"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":21021,"timestamp":21565206,"id":2493,"parentId":2438,"tags":{"page":"/api/admin/createNewBackup"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":21452,"timestamp":21565229,"id":2494,"parentId":2438,"tags":{"page":"/api/admin/docs/[action]"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":21699,"timestamp":21565249,"id":2495,"parentId":2438,"tags":{"page":"/api/admin/getTablesForUserDatabase"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":22112,"timestamp":21565296,"id":2497,"parentId":2438,"tags":{"page":"/api/admin/getUserData"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":22326,"timestamp":21565331,"id":2498,"parentId":2438,"tags":{"page":"/api/admin/grabBackups"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":22671,"timestamp":21565271,"id":2496,"parentId":2438,"tags":{"page":"/api/admin/getUserBackups"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":22844,"timestamp":21565353,"id":2499,"parentId":2438,"tags":{"page":"/api/admin/grabErrorLogs"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":23106,"timestamp":21565375,"id":2500,"parentId":2438,"tags":{"page":"/api/admin/grabFile"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":23403,"timestamp":21565396,"id":2501,"parentId":2438,"tags":{"page":"/api/admin/loginSuUser"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":23685,"timestamp":21565452,"id":2503,"parentId":2438,"tags":{"page":"/api/admin/updateEnv"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":24026,"timestamp":21565472,"id":2504,"parentId":2438,"tags":{"page":"/api/changeDbUserPassword"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":24516,"timestamp":21565415,"id":2502,"parentId":2438,"tags":{"page":"/api/admin/runUserDbQuery"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":24565,"timestamp":21565555,"id":2507,"parentId":2438,"tags":{"page":"/api/clientSideAuth"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":24945,"timestamp":21565492,"id":2505,"parentId":2438,"tags":{"page":"/api/checkDuplicateData"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":25189,"timestamp":21565516,"id":2506,"parentId":2438,"tags":{"page":"/api/checkExistingFolder"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":25438,"timestamp":21565577,"id":2508,"parentId":2438,"tags":{"page":"/api/connect/disconnect"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":25710,"timestamp":21565597,"id":2509,"parentId":2438,"tags":{"page":"/api/connect/handshake"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":26073,"timestamp":21565618,"id":2510,"parentId":2438,"tags":{"page":"/api/connect"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":26429,"timestamp":21565639,"id":2511,"parentId":2438,"tags":{"page":"/api/connect/verify"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":26744,"timestamp":21565671,"id":2512,"parentId":2438,"tags":{"page":"/api/contact"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":27640,"timestamp":21565697,"id":2513,"parentId":2438,"tags":{"page":"/api/createUserDatabase"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":28029,"timestamp":21565721,"id":2514,"parentId":2438,"tags":{"page":"/api/deleteApiKey"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":28240,"timestamp":21565758,"id":2515,"parentId":2438,"tags":{"page":"/api/deleteDbUser"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":28447,"timestamp":21565778,"id":2516,"parentId":2438,"tags":{"page":"/api/deleteInvitation"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":28830,"timestamp":21565832,"id":2518,"parentId":2438,"tags":{"page":"/api/deleteTableEntry"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":29418,"timestamp":21565801,"id":2517,"parentId":2438,"tags":{"page":"/api/deleteMediaFolder"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":30100,"timestamp":21565854,"id":2519,"parentId":2438,"tags":{"page":"/api/deleteUser"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":30485,"timestamp":21565874,"id":2520,"parentId":2438,"tags":{"page":"/api/deleteUserDatabase"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":30966,"timestamp":21565893,"id":2521,"parentId":2438,"tags":{"page":"/api/deleteUserMedia"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":31668,"timestamp":21565919,"id":2522,"parentId":2438,"tags":{"page":"/api/deleteUserTable"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":31934,"timestamp":21565944,"id":2523,"parentId":2438,"tags":{"page":"/api/deleteUserUser"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":32247,"timestamp":21565965,"id":2524,"parentId":2438,"tags":{"page":"/api/downloadDatabaseSchema"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":32450,"timestamp":21565985,"id":2525,"parentId":2438,"tags":{"page":"/api/exportDatabase"},"startTime":1736868353537,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":32745,"timestamp":21566004,"id":2526,"parentId":2438,"tags":{"page":"/api/exportTableData"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":33113,"timestamp":21566026,"id":2527,"parentId":2438,"tags":{"page":"/api/fetch-entries-basic"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":33179,"timestamp":21566045,"id":2528,"parentId":2438,"tags":{"page":"/api/fetch-media"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":33713,"timestamp":21566068,"id":2529,"parentId":2438,"tags":{"page":"/api/get-authorized-databases"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":34014,"timestamp":21566086,"id":2530,"parentId":2438,"tags":{"page":"/api/getDatabaseTables"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":34523,"timestamp":21566109,"id":2531,"parentId":2438,"tags":{"page":"/api/getDelegatedDatabaseToken"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":34923,"timestamp":21566131,"id":2532,"parentId":2438,"tags":{"page":"/api/getDelegatedDatabases"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":35071,"timestamp":21566183,"id":2534,"parentId":2438,"tags":{"page":"/api/getUserDatabaseTables"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":35889,"timestamp":21566158,"id":2533,"parentId":2438,"tags":{"page":"/api/getDiskUsage"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":36033,"timestamp":21566204,"id":2535,"parentId":2438,"tags":{"page":"/api/getUserDatabases"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":36123,"timestamp":21566223,"id":2536,"parentId":2438,"tags":{"page":"/api/getUserMedia"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":36412,"timestamp":21566251,"id":2537,"parentId":2438,"tags":{"page":"/api/getUserSchemaData"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":36534,"timestamp":21566271,"id":2538,"parentId":2438,"tags":{"page":"/api/healthcheck"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":36904,"timestamp":21566292,"id":2539,"parentId":2438,"tags":{"page":"/api/importDatabase"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":37351,"timestamp":21566310,"id":2540,"parentId":2438,"tags":{"page":"/api/importDatabaseSchema"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":37822,"timestamp":21566343,"id":2541,"parentId":2438,"tags":{"page":"/api/infiniteScroll"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":37945,"timestamp":21566379,"id":2542,"parentId":2438,"tags":{"page":"/api/loginUser"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":38000,"timestamp":21566404,"id":2543,"parentId":2438,"tags":{"page":"/api/logoutUser"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":38862,"timestamp":21566434,"id":2544,"parentId":2438,"tags":{"page":"/api/media/addPrivateMedia"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":39014,"timestamp":21566460,"id":2545,"parentId":2438,"tags":{"page":"/api/media/getPrivateMedia"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":39452,"timestamp":21566479,"id":2546,"parentId":2438,"tags":{"page":"/api/purgeDb"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":39590,"timestamp":21566505,"id":2547,"parentId":2438,"tags":{"page":"/api/query/[user_id]/add-file"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":39678,"timestamp":21566543,"id":2548,"parentId":2438,"tags":{"page":"/api/query/[user_id]/add-image"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":39771,"timestamp":21566569,"id":2549,"parentId":2438,"tags":{"page":"/api/query/[user_id]/delete-file"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":39860,"timestamp":21566589,"id":2550,"parentId":2438,"tags":{"page":"/api/query/[user_id]/get-private-file"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":40422,"timestamp":21566612,"id":2551,"parentId":2438,"tags":{"page":"/api/query/[user_id]/get-schema"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":40726,"timestamp":21566633,"id":2552,"parentId":2438,"tags":{"page":"/api/query/[user_id]/get"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":40813,"timestamp":21566660,"id":2553,"parentId":2438,"tags":{"page":"/api/query/[user_id]/post"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":41163,"timestamp":21566680,"id":2554,"parentId":2438,"tags":{"page":"/api/query/[user_id]/update-schema-from-single-database"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":41383,"timestamp":21566723,"id":2556,"parentId":2438,"tags":{"page":"/api/reAuthenticateUser"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":41816,"timestamp":21566701,"id":2555,"parentId":2438,"tags":{"page":"/api/queryEntriesSearchTerm"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":42214,"timestamp":21566744,"id":2557,"parentId":2438,"tags":{"page":"/api/refreshEntry"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":43595,"timestamp":21566764,"id":2558,"parentId":2438,"tags":{"page":"/api/registerUser"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":44149,"timestamp":21566784,"id":2559,"parentId":2438,"tags":{"page":"/api/renameMedia"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":44354,"timestamp":21566806,"id":2560,"parentId":2438,"tags":{"page":"/api/resetDelegatedDatabaseToken"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":44432,"timestamp":21566829,"id":2561,"parentId":2438,"tags":{"page":"/api/resetPassword"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":44720,"timestamp":21566847,"id":2562,"parentId":2438,"tags":{"page":"/api/runUserDbQuery"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":44895,"timestamp":21566868,"id":2563,"parentId":2438,"tags":{"page":"/api/sendEmailVerificationLink"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":45114,"timestamp":21566891,"id":2564,"parentId":2438,"tags":{"page":"/api/sendPasswordResetLink"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":45582,"timestamp":21566910,"id":2565,"parentId":2438,"tags":{"page":"/api/social-login/facebook-auth"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":45951,"timestamp":21566928,"id":2566,"parentId":2438,"tags":{"page":"/api/social-login/github-auth"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":46510,"timestamp":21566953,"id":2567,"parentId":2438,"tags":{"page":"/api/social-login/google-auth"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"}] +[{"name":"check-page","duration":47007,"timestamp":21566981,"id":2568,"parentId":2438,"tags":{"page":"/api/social-login/utils/checkEmail"},"startTime":1736868353538,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":47272,"timestamp":21567002,"id":2569,"parentId":2438,"tags":{"page":"/api/social-login/utils/checkSocialId"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":47530,"timestamp":21567023,"id":2570,"parentId":2438,"tags":{"page":"/api/social-login/utils/getEmailFromSocialId"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":47920,"timestamp":21567045,"id":2571,"parentId":2438,"tags":{"page":"/api/sql-users/create"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":48235,"timestamp":21567065,"id":2572,"parentId":2438,"tags":{"page":"/api/sql-users/delete"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":48839,"timestamp":21567091,"id":2573,"parentId":2438,"tags":{"page":"/api/sql-users/update"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":48947,"timestamp":21567110,"id":2574,"parentId":2438,"tags":{"page":"/api/stream/[path]"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":49612,"timestamp":21567135,"id":2575,"parentId":2438,"tags":{"page":"/api/sync-table-data"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":49655,"timestamp":21567161,"id":2576,"parentId":2438,"tags":{"page":"/api/test/cors"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":49916,"timestamp":21567186,"id":2577,"parentId":2438,"tags":{"page":"/api/test/mail"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":50158,"timestamp":21567211,"id":2578,"parentId":2438,"tags":{"page":"/api/unsubscribe"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":50537,"timestamp":21567231,"id":2579,"parentId":2438,"tags":{"page":"/api/updateAdminUserAccess"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":51001,"timestamp":21567256,"id":2580,"parentId":2438,"tags":{"page":"/api/updateClonedTableForeignKeys"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":51562,"timestamp":21567276,"id":2581,"parentId":2438,"tags":{"page":"/api/updateDbSchemaDataForUser"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":51877,"timestamp":21567296,"id":2582,"parentId":2438,"tags":{"page":"/api/updateDbUser"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":52421,"timestamp":21567331,"id":2583,"parentId":2438,"tags":{"page":"/api/updateTableEntry"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":53017,"timestamp":21567357,"id":2584,"parentId":2438,"tags":{"page":"/api/updateUser"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":53842,"timestamp":21567383,"id":2585,"parentId":2438,"tags":{"page":"/api/updateUserDatabase"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":54687,"timestamp":21567402,"id":2586,"parentId":2438,"tags":{"page":"/api/updateUserTable"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":55009,"timestamp":21567422,"id":2587,"parentId":2438,"tags":{"page":"/api/updateUserUser"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":55237,"timestamp":21567466,"id":2589,"parentId":2438,"tags":{"page":"/api/user/[user_id]/add-user"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":55749,"timestamp":21567444,"id":2588,"parentId":2438,"tags":{"page":"/api/user-schema/replace-database-schema"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":55958,"timestamp":21567485,"id":2590,"parentId":2438,"tags":{"page":"/api/user/[user_id]/delete-user"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":56212,"timestamp":21567511,"id":2591,"parentId":2438,"tags":{"page":"/api/user/[user_id]/get-user"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":56482,"timestamp":21567550,"id":2593,"parentId":2438,"tags":{"page":"/api/user/[user_id]/google-login"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":56867,"timestamp":21567530,"id":2592,"parentId":2438,"tags":{"page":"/api/user/[user_id]/github-login"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":57216,"timestamp":21567570,"id":2594,"parentId":2438,"tags":{"page":"/api/user/[user_id]/grab-google-user-from-token"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":57501,"timestamp":21567592,"id":2595,"parentId":2438,"tags":{"page":"/api/user/[user_id]/login-user"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":57810,"timestamp":21567612,"id":2596,"parentId":2438,"tags":{"page":"/api/user/[user_id]/reauth-user"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":58165,"timestamp":21567642,"id":2597,"parentId":2438,"tags":{"page":"/api/user/[user_id]/send-email-code"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":58502,"timestamp":21567665,"id":2598,"parentId":2438,"tags":{"page":"/api/user/[user_id]/update-user"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":58801,"timestamp":21567688,"id":2599,"parentId":2438,"tags":{"page":"/api/webhooks/github-push"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":852862,"timestamp":21633038,"id":2645,"parentId":2456,"tags":{},"startTime":1736868353605,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":922255,"timestamp":21563818,"id":2456,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":863791,"timestamp":21633618,"id":2646,"parentId":2457,"tags":{},"startTime":1736868353605,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":933632,"timestamp":21563867,"id":2457,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":908637,"timestamp":21634887,"id":2648,"parentId":2458,"tags":{},"startTime":1736868353606,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":979655,"timestamp":21563923,"id":2458,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":916795,"timestamp":21634223,"id":2647,"parentId":2459,"tags":{},"startTime":1736868353606,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":987096,"timestamp":21563977,"id":2459,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/add-table"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":924742,"timestamp":21635700,"id":2650,"parentId":2460,"tags":{},"startTime":1736868353607,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1013015,"timestamp":21564024,"id":2460,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":942221,"timestamp":21635124,"id":2649,"parentId":2461,"tags":{},"startTime":1736868353607,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1013309,"timestamp":21564059,"id":2461,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":949320,"timestamp":21636087,"id":2651,"parentId":2462,"tags":{},"startTime":1736868353608,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1021339,"timestamp":21564117,"id":2462,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/users/[user]"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":950246,"timestamp":21636546,"id":2652,"parentId":2463,"tags":{},"startTime":1736868353608,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1022673,"timestamp":21564156,"id":2463,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":958900,"timestamp":21637065,"id":2653,"parentId":2464,"tags":{},"startTime":1736868353609,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1031824,"timestamp":21564186,"id":2464,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/users/add-user"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":963331,"timestamp":21637388,"id":2654,"parentId":2466,"tags":{},"startTime":1736868353609,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1036521,"timestamp":21564247,"id":2466,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/add-database"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":968811,"timestamp":21638229,"id":2656,"parentId":2467,"tags":{},"startTime":1736868353610,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1042801,"timestamp":21564287,"id":2467,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":972019,"timestamp":21638528,"id":2657,"parentId":2468,"tags":{},"startTime":1736868353610,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1046304,"timestamp":21564323,"id":2468,"parentId":2438,"tags":{"page":"/admin/[user_id]"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":985700,"timestamp":21637821,"id":2655,"parentId":2465,"tags":{},"startTime":1736868353609,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1059363,"timestamp":21564215,"id":2465,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/users"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":990048,"timestamp":21639092,"id":2658,"parentId":2469,"tags":{},"startTime":1736868353611,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1077143,"timestamp":21564356,"id":2469,"parentId":2438,"tags":{"page":"/admin/[user_id]/media/[...folder]"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1001822,"timestamp":21639990,"id":2660,"parentId":2470,"tags":{},"startTime":1736868353611,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1077427,"timestamp":21564397,"id":2470,"parentId":2438,"tags":{"page":"/admin/[user_id]/media"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1002835,"timestamp":21639375,"id":2659,"parentId":2471,"tags":{},"startTime":1736868353611,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1077796,"timestamp":21564431,"id":2471,"parentId":2438,"tags":{"page":"/admin/[user_id]/schema"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1028964,"timestamp":21628664,"id":2636,"parentId":2443,"tags":{},"startTime":1736868353600,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1094634,"timestamp":21563115,"id":2443,"parentId":2438,"tags":{"page":"/404"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1029719,"timestamp":21628183,"id":2635,"parentId":2445,"tags":{},"startTime":1736868353600,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1094722,"timestamp":21563207,"id":2445,"parentId":2438,"tags":{"page":"/about"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1031086,"timestamp":21626918,"id":2632,"parentId":2444,"tags":{},"startTime":1736868353598,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1094865,"timestamp":21563152,"id":2444,"parentId":2438,"tags":{"page":"/500"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1018641,"timestamp":21640698,"id":2662,"parentId":2473,"tags":{},"startTime":1736868353612,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1094877,"timestamp":21564510,"id":2473,"parentId":2438,"tags":{"page":"/admin/[user_id]/users/add-user"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1031534,"timestamp":21627991,"id":2634,"parentId":2447,"tags":{},"startTime":1736868353599,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1096196,"timestamp":21563339,"id":2447,"parentId":2438,"tags":{"page":"/admin/[user_id]/connect"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1020308,"timestamp":21640324,"id":2661,"parentId":2472,"tags":{},"startTime":1736868353612,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1096195,"timestamp":21564462,"id":2472,"parentId":2438,"tags":{"page":"/admin/[user_id]/settings"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1033905,"timestamp":21631485,"id":2642,"parentId":2449,"tags":{},"startTime":1736868353603,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1101973,"timestamp":21563461,"id":2449,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/edit-database"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1026314,"timestamp":21643953,"id":2668,"parentId":2600,"tags":{},"startTime":1736868353615,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1102611,"timestamp":21567711,"id":2600,"parentId":2438,"tags":{"page":"/blog"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1045092,"timestamp":21627728,"id":2633,"parentId":2446,"tags":{},"startTime":1736868353599,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1109592,"timestamp":21563272,"id":2446,"parentId":2438,"tags":{"page":"/admin/[user_id]/api-keys"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1036911,"timestamp":21642245,"id":2666,"parentId":2477,"tags":{},"startTime":1736868353614,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1114484,"timestamp":21564719,"id":2477,"parentId":2438,"tags":{"page":"/admin/[user_id]/users"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1048185,"timestamp":21641494,"id":2664,"parentId":2475,"tags":{},"startTime":1736868353613,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1125114,"timestamp":21564628,"id":2475,"parentId":2438,"tags":{"page":"/admin/[user_id]/users/databases/[database]"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1047351,"timestamp":21644375,"id":2669,"parentId":2601,"tags":{},"startTime":1736868353616,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1124053,"timestamp":21567737,"id":2601,"parentId":2438,"tags":{"page":"/contact"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1052894,"timestamp":21642592,"id":2667,"parentId":2478,"tags":{},"startTime":1736868353614,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1130793,"timestamp":21564769,"id":2478,"parentId":2438,"tags":{"page":"/admin"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1049295,"timestamp":21647294,"id":2673,"parentId":2605,"tags":{},"startTime":1736868353619,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1128769,"timestamp":21567852,"id":2605,"parentId":2438,"tags":{"page":"/docs"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1054406,"timestamp":21650147,"id":2674,"parentId":2606,"tags":{},"startTime":1736868353622,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1136712,"timestamp":21567886,"id":2606,"parentId":2438,"tags":{"page":"/email-verification"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1057257,"timestamp":21650685,"id":2675,"parentId":2607,"tags":{},"startTime":1736868353622,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1140084,"timestamp":21567919,"id":2607,"parentId":2438,"tags":{"page":"/"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1067023,"timestamp":21641127,"id":2663,"parentId":2474,"tags":{},"startTime":1736868353613,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1143595,"timestamp":21564568,"id":2474,"parentId":2438,"tags":{"page":"/admin/[user_id]/users/databases/[database]/[user]"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1059169,"timestamp":21651434,"id":2676,"parentId":2608,"tags":{},"startTime":1736868353623,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1142721,"timestamp":21567945,"id":2608,"parentId":2438,"tags":{"page":"/login"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1061907,"timestamp":21652041,"id":2678,"parentId":2610,"tags":{},"startTime":1736868353624,"traceId":"d6db589d9eef97d2"}] +[{"name":"check-page","duration":1146564,"timestamp":21568007,"id":2610,"parentId":2438,"tags":{"page":"/privacy"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1062288,"timestamp":21652439,"id":2679,"parentId":2611,"tags":{},"startTime":1736868353624,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1146696,"timestamp":21568046,"id":2611,"parentId":2438,"tags":{"page":"/redirect"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1072902,"timestamp":21641899,"id":2665,"parentId":2476,"tags":{},"startTime":1736868353613,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1150135,"timestamp":21564678,"id":2476,"parentId":2438,"tags":{"page":"/admin/[user_id]/users/databases"},"startTime":1736868353536,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1064099,"timestamp":21652980,"id":2680,"parentId":2612,"tags":{},"startTime":1736868353624,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1149055,"timestamp":21568070,"id":2612,"parentId":2438,"tags":{"page":"/reset-password"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1093407,"timestamp":21630206,"id":2639,"parentId":2451,"tags":{},"startTime":1736868353602,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1160093,"timestamp":21563566,"id":2451,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/schema"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1072333,"timestamp":21654615,"id":2682,"parentId":2614,"tags":{},"startTime":1736868353626,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1158869,"timestamp":21568127,"id":2614,"parentId":2438,"tags":{"page":"/su/backups"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1077775,"timestamp":21653444,"id":2681,"parentId":2613,"tags":{},"startTime":1736868353625,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1163163,"timestamp":21568099,"id":2613,"parentId":2438,"tags":{"page":"/send-password-reset-link"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1103683,"timestamp":21629115,"id":2637,"parentId":2448,"tags":{},"startTime":1736868353601,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1169451,"timestamp":21563394,"id":2448,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/connect"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1119187,"timestamp":21630618,"id":2640,"parentId":2452,"tags":{},"startTime":1736868353602,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1186256,"timestamp":21563615,"id":2452,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/shell"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1117925,"timestamp":21632080,"id":2643,"parentId":2454,"tags":{},"startTime":1736868353604,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1186302,"timestamp":21563716,"id":2454,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1090366,"timestamp":21659722,"id":2686,"parentId":2618,"tags":{},"startTime":1736868353631,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1181855,"timestamp":21568244,"id":2618,"parentId":2438,"tags":{"page":"/su/docs"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1096742,"timestamp":21658446,"id":2685,"parentId":2617,"tags":{},"startTime":1736868353630,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1187018,"timestamp":21568218,"id":2617,"parentId":2438,"tags":{"page":"/su/docs/edit-page"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1125552,"timestamp":21629769,"id":2638,"parentId":2450,"tags":{},"startTime":1736868353601,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1191815,"timestamp":21563519,"id":2450,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1095083,"timestamp":21663659,"id":2689,"parentId":2621,"tags":{},"startTime":1736868353635,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1190460,"timestamp":21568330,"id":2621,"parentId":2438,"tags":{"page":"/su/envar"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1104238,"timestamp":21669406,"id":2694,"parentId":2626,"tags":{},"startTime":1736868353641,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205215,"timestamp":21568472,"id":2626,"parentId":2438,"tags":{"page":"/su/servers"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1112712,"timestamp":21661034,"id":2687,"parentId":2619,"tags":{},"startTime":1736868353633,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205482,"timestamp":21568273,"id":2619,"parentId":2438,"tags":{"page":"/su/docs/pages/[id]"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1107393,"timestamp":21666416,"id":2691,"parentId":2623,"tags":{},"startTime":1736868353638,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205416,"timestamp":21568401,"id":2623,"parentId":2438,"tags":{"page":"/su"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1116643,"timestamp":21657228,"id":2684,"parentId":2616,"tags":{},"startTime":1736868353629,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205693,"timestamp":21568185,"id":2616,"parentId":2438,"tags":{"page":"/su/docs/create-page"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1105226,"timestamp":21668707,"id":2693,"parentId":2625,"tags":{},"startTime":1736868353640,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205489,"timestamp":21568451,"id":2625,"parentId":2438,"tags":{"page":"/su/login"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1111544,"timestamp":21662414,"id":2688,"parentId":2620,"tags":{},"startTime":1736868353634,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205658,"timestamp":21568305,"id":2620,"parentId":2438,"tags":{"page":"/su/docs/pages"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1109034,"timestamp":21664948,"id":2690,"parentId":2622,"tags":{},"startTime":1736868353636,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205621,"timestamp":21568366,"id":2622,"parentId":2438,"tags":{"page":"/su/error-logs"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1106900,"timestamp":21667102,"id":2692,"parentId":2624,"tags":{},"startTime":1736868353639,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205583,"timestamp":21568424,"id":2624,"parentId":2438,"tags":{"page":"/su/load-balancing"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1118063,"timestamp":21655960,"id":2683,"parentId":2615,"tags":{},"startTime":1736868353627,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1205877,"timestamp":21568151,"id":2615,"parentId":2438,"tags":{"page":"/su/console"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1132372,"timestamp":21644886,"id":2670,"parentId":2602,"tags":{},"startTime":1736868353616,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1209538,"timestamp":21567765,"id":2602,"parentId":2438,"tags":{"page":"/create-account"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1105850,"timestamp":21672255,"id":2696,"parentId":2628,"tags":{},"startTime":1736868353644,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1209609,"timestamp":21568521,"id":2628,"parentId":2438,"tags":{"page":"/su/users"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1105580,"timestamp":21673714,"id":2698,"parentId":2630,"tags":{},"startTime":1736868353645,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1210759,"timestamp":21568573,"id":2630,"parentId":2438,"tags":{"page":"/terms"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1106623,"timestamp":21673285,"id":2697,"parentId":2629,"tags":{},"startTime":1736868353645,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1211383,"timestamp":21568544,"id":2629,"parentId":2438,"tags":{"page":"/su/users/new"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1105366,"timestamp":21676537,"id":2699,"parentId":2631,"tags":{},"startTime":1736868353648,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1213333,"timestamp":21568602,"id":2631,"parentId":2438,"tags":{"page":"/unsubscribe"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1111676,"timestamp":21670976,"id":2695,"parentId":2627,"tags":{},"startTime":1736868353642,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1214186,"timestamp":21568498,"id":2627,"parentId":2438,"tags":{"page":"/su/users/[single]"},"startTime":1736868353540,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1157253,"timestamp":21632563,"id":2644,"parentId":2455,"tags":{},"startTime":1736868353604,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1226094,"timestamp":21563767,"id":2455,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1170338,"timestamp":21631094,"id":2641,"parentId":2453,"tags":{},"startTime":1736868353603,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1237801,"timestamp":21563663,"id":2453,"parentId":2438,"tags":{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table"},"startTime":1736868353535,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1203803,"timestamp":21646709,"id":2672,"parentId":2604,"tags":{},"startTime":1736868353618,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1282786,"timestamp":21567819,"id":2604,"parentId":2438,"tags":{"page":"/docs/[page]"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1207897,"timestamp":21645704,"id":2671,"parentId":2603,"tags":{},"startTime":1736868353617,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1285836,"timestamp":21567796,"id":2603,"parentId":2438,"tags":{"page":"/docs/[page]/[sub-page]"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"is-page-static","duration":1206824,"timestamp":21651640,"id":2677,"parentId":2609,"tags":{},"startTime":1736868353623,"traceId":"d6db589d9eef97d2"},{"name":"check-page","duration":1290527,"timestamp":21567972,"id":2609,"parentId":2438,"tags":{"page":"/logout"},"startTime":1736868353539,"traceId":"d6db589d9eef97d2"},{"name":"static-check","duration":1402811,"timestamp":21455780,"id":2438,"parentId":1,"tags":{},"startTime":1736868353427,"traceId":"d6db589d9eef97d2"},{"name":"generate-required-server-files","duration":443,"timestamp":23132504,"id":2701,"parentId":1,"tags":{},"startTime":1736868355104,"traceId":"d6db589d9eef97d2"},{"name":"write-routes-manifest","duration":1326,"timestamp":23145854,"id":2703,"parentId":1,"tags":{},"startTime":1736868355117,"traceId":"d6db589d9eef97d2"},{"name":"load-dotenv","duration":162,"timestamp":23159419,"id":2706,"parentId":2705,"tags":{},"startTime":1736868355131,"traceId":"d6db589d9eef97d2"},{"name":"run-export-path-map","duration":368,"timestamp":23165421,"id":2707,"parentId":2705,"tags":{},"startTime":1736868355137,"traceId":"d6db589d9eef97d2"},{"name":"next-export","duration":12355525,"timestamp":23157840,"id":2705,"parentId":1,"tags":{},"startTime":1736868355129,"traceId":"d6db589d9eef97d2"},{"name":"node-file-trace-build","duration":12494155,"timestamp":23137945,"id":2702,"parentId":1,"tags":{"isTurbotrace":"false"},"startTime":1736868355109,"traceId":"d6db589d9eef97d2"},{"name":"apply-include-excludes","duration":1203,"timestamp":35632123,"id":2708,"parentId":1,"tags":{},"startTime":1736868367604,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":487,"timestamp":35634100,"id":2709,"parentId":2704,"tags":{},"startTime":1736868367606,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":191,"timestamp":35634609,"id":2710,"parentId":2704,"tags":{},"startTime":1736868367606,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":147,"timestamp":35634816,"id":2711,"parentId":2704,"tags":{},"startTime":1736868367606,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":87,"timestamp":35634995,"id":2712,"parentId":2704,"tags":{},"startTime":1736868367607,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":94,"timestamp":35635104,"id":2713,"parentId":2704,"tags":{},"startTime":1736868367607,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":86,"timestamp":35635206,"id":2714,"parentId":2704,"tags":{},"startTime":1736868367607,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":119,"timestamp":35635298,"id":2715,"parentId":2704,"tags":{},"startTime":1736868367607,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":122,"timestamp":35635427,"id":2716,"parentId":2704,"tags":{},"startTime":1736868367607,"traceId":"d6db589d9eef97d2"},{"name":"move-exported-page","duration":69,"timestamp":35635559,"id":2717,"parentId":2704,"tags":{},"startTime":1736868367607,"traceId":"d6db589d9eef97d2"},{"name":"static-generation","duration":12481225,"timestamp":23154773,"id":2704,"parentId":1,"tags":{},"startTime":1736868355126,"traceId":"d6db589d9eef97d2"},{"name":"print-tree-view","duration":11967,"timestamp":35639981,"id":2718,"parentId":1,"tags":{},"startTime":1736868367611,"traceId":"d6db589d9eef97d2"},{"name":"telemetry-flush","duration":489416,"timestamp":35651974,"id":2719,"parentId":1,"tags":{},"startTime":1736868367623,"traceId":"d6db589d9eef97d2"},{"name":"next-build","duration":35615475,"timestamp":525940,"id":1,"tags":{"buildMode":"default","isTurboBuild":"false","version":"15.1.4","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1736868332497,"traceId":"d6db589d9eef97d2"}] diff --git a/dsql-app/bun.lockb b/dsql-app/bun.lockb index bbd7e61..1121439 100755 Binary files a/dsql-app/bun.lockb and b/dsql-app/bun.lockb differ diff --git a/dsql-app/docker-entrypoint.sh b/dsql-app/docker-entrypoint.sh index 871393f..842a540 100755 --- a/dsql-app/docker-entrypoint.sh +++ b/dsql-app/docker-entrypoint.sh @@ -30,7 +30,7 @@ if [ -n "${NEXT_PUBLIC_DSQL_LOCAL}" ]; then if [[ "$DSQL_HOST_ENV" == *"dev_dev"* ]]; then echo "NEXT_PUBLIC_DSQL_LOCAL is set in dev environment." # batchrun - bun dev + bun server.ts else echo "NEXT_PUBLIC_DSQL_LOCAL is set. Running Local initialization ..." # bun /app/docker-root-user-init.ts diff --git a/dsql-app/hooks/useLocalUser.ts b/dsql-app/hooks/useLocalUser.ts new file mode 100644 index 0000000..54e76e8 --- /dev/null +++ b/dsql-app/hooks/useLocalUser.ts @@ -0,0 +1,13 @@ +import { UserType } from "@/package-shared/types"; +import React from "react"; + +export default function useLocalUser() { + const [user, setUser] = React.useState(); + React.useEffect(() => { + try { + const localUserJSON = localStorage.getItem("user"); + setUser(JSON.parse(localUserJSON || "")); + } catch (error) {} + }, []); + return { user }; +} diff --git a/dsql-app/package-shared/functions/api/users/api-login.ts b/dsql-app/package-shared/functions/api/users/api-login.ts index fb7c851..8efd018 100644 --- a/dsql-app/package-shared/functions/api/users/api-login.ts +++ b/dsql-app/package-shared/functions/api/users/api-login.ts @@ -3,6 +3,7 @@ import { APILoginFunctionReturn, DATASQUIREL_LoggedInUser, } from "../../../types"; +import grabDbFullName from "../../../utils/grab-db-full-name"; import varDatabaseDbHandler from "../../backend/varDatabaseDbHandler"; import hashPassword from "../../dsql/hashPassword"; @@ -23,8 +24,10 @@ export default async function apiLoginUser({ skipPassword, social, useLocal, + dbUserId, + debug, }: APILoginFunctionParams): Promise { - const dbFullName = database.replace(/[^a-z0-9_]/g, ""); + const dbFullName = grabDbFullName({ dbName: database, userId: dbUserId }); /** * Check input validity @@ -54,13 +57,23 @@ export default async function apiLoginUser({ }) : null; + if (debug) { + console.log("apiLoginUser:database:", dbFullName); + console.log("apiLoginUser:Finding User ..."); + } + let foundUser = await varDatabaseDbHandler({ queryString: `SELECT * FROM ${dbFullName}.users WHERE email = ? OR username = ?`, queryValuesArray: [email, username], database: dbFullName, useLocal, + debug, }); + if (debug) { + console.log("apiLoginUser:foundUser:", foundUser); + } + if ((!foundUser || !foundUser[0]) && !social) return { success: false, @@ -70,9 +83,20 @@ export default async function apiLoginUser({ let isPasswordCorrect = false; + if (debug) { + console.log("apiLoginUser:isPasswordCorrect:", isPasswordCorrect); + } + if (foundUser?.[0] && !email_login && skipPassword) { isPasswordCorrect = true; } else if (foundUser?.[0] && !email_login) { + if (debug) { + console.log("apiLoginUser:hashedPassword:", hashedPassword); + console.log( + "apiLoginUser:foundUser[0].password:", + foundUser[0].password + ); + } isPasswordCorrect = hashedPassword === foundUser[0].password; } else if ( foundUser && @@ -81,8 +105,11 @@ export default async function apiLoginUser({ email_login_code && email_login_field ) { - /** @type {string} */ - const tempCode = foundUser[0][email_login_field]; + const tempCode: string = foundUser[0][email_login_field]; + + if (debug) { + console.log("apiLoginUser:tempCode:", tempCode); + } if (!tempCode) throw new Error("No code Found!"); @@ -106,6 +133,11 @@ export default async function apiLoginUser({ }; } + if (debug) { + console.log("apiLoginUser:isPasswordCorrect:", isPasswordCorrect); + console.log("apiLoginUser:email_login:", email_login); + } + if (isPasswordCorrect && email_login) { const resetTempCode = await varDatabaseDbHandler({ queryString: `UPDATE ${dbFullName}.users SET ${email_login_field} = '' WHERE email = ? OR username = ?`, @@ -139,6 +171,11 @@ export default async function apiLoginUser({ date: Date.now(), }; + if (debug) { + console.log("apiLoginUser:userPayload:", userPayload); + console.log("apiLoginUser:Sending Response Object ..."); + } + const resposeObject: APILoginFunctionReturn = { success: true, msg: "Login Successful", diff --git a/dsql-app/package-shared/functions/api/users/reset-password/(utils)/encrypt-url.ts b/dsql-app/package-shared/functions/api/users/reset-password/(utils)/encrypt-url.ts new file mode 100644 index 0000000..a7872c7 --- /dev/null +++ b/dsql-app/package-shared/functions/api/users/reset-password/(utils)/encrypt-url.ts @@ -0,0 +1,35 @@ +import EJSON from "../../../../../utils/ejson"; +import encrypt from "../../../../dsql/encrypt"; + +type Param = { + email: string; + encryptionKey?: string; + encryptionSalt?: string; +}; + +export type EncryptResetPasswordObject = { + email: string; + createdAt: number; +}; + +export default function encryptReserPasswordUrl({ + email, + encryptionKey, + encryptionSalt, +}: Param) { + const encryptObject: EncryptResetPasswordObject = { + email, + createdAt: Date.now(), + }; + + const encryptStr = encrypt({ + data: EJSON.stringify(encryptObject) as string, + encryptionKey, + encryptionSalt, + }); + + const defaultUrlOrigin = `https://datasquirel.com`; + let urlOrigin = process.env.DSQL_HOST || defaultUrlOrigin; + + const url = `${defaultUrlOrigin}`; +} diff --git a/dsql-app/package-shared/functions/api/users/reset-password/api-send-reset-password-link.ts b/dsql-app/package-shared/functions/api/users/reset-password/api-send-reset-password-link.ts new file mode 100644 index 0000000..a89905d --- /dev/null +++ b/dsql-app/package-shared/functions/api/users/reset-password/api-send-reset-password-link.ts @@ -0,0 +1,77 @@ +import { DSQL_MYSQL_user_databases_Type } from "../../../../types"; +import grabDbFullName from "../../../../utils/grab-db-full-name"; +import varDatabaseDbHandler from "../../../backend/varDatabaseDbHandler"; + +type Return = { + success: boolean; + msg?: string; + error?: string; +}; + +type Param = { + key?: string; + database: string; + email: string; + encryptionKey?: string; + encryptionSalt?: string; + useLocal?: boolean; + debug?: boolean; + apiUserID?: string | number; + dbUserId?: string | number; +}; + +/** + * # API Login + */ +export default async function apiSendResetPasswordLink({ + database, + email, + apiUserID, + dbUserId, + debug, + encryptionKey, + encryptionSalt, + key, + useLocal, +}: Param): Promise { + const dbFullName = grabDbFullName({ dbName: database, userId: dbUserId }); + + /** + * Check input validity + * + * @description Check input validity + */ + if (email?.match(/ /)) { + return { + success: false, + msg: "Invalid Email/Password format", + }; + } + + let foundUser = await varDatabaseDbHandler({ + queryString: `SELECT * FROM ${dbFullName}.users WHERE email = ? OR username = ?`, + queryValuesArray: [email, email], + database: dbFullName, + useLocal, + debug, + }); + + if (debug) { + console.log("apiSendResetPassword:foundUser:", foundUser); + } + + const targetUser = foundUser?.[0] as + | DSQL_MYSQL_user_databases_Type + | undefined; + + if (!targetUser) + return { + success: false, + msg: "No user found", + }; + + return { success: true }; +} + +export type SendResetPasswordParam = Param; +export type SendResetPasswordReturn = Return; diff --git a/dsql-app/package-shared/functions/backend/dbHandler.ts b/dsql-app/package-shared/functions/backend/dbHandler.ts index f2281ea..e00b852 100644 --- a/dsql-app/package-shared/functions/backend/dbHandler.ts +++ b/dsql-app/package-shared/functions/backend/dbHandler.ts @@ -1,5 +1,7 @@ import fs from "fs"; import serverError from "./serverError"; +import mysql from "serverless-mysql"; +import grabDSQLConnection from "../../utils/grab-dsql-connection"; /** * # Main DB Handler Function @@ -12,6 +14,8 @@ export default async function dbHandler(...args: any[]) { "utf8" ); + const CONNECTION = grabDSQLConnection(); + let results; /** @@ -20,10 +24,8 @@ export default async function dbHandler(...args: any[]) { * @description Fetch data from db if no cache */ try { - const connection = global.DSQL_DB_CONN; - results = await new Promise((resolve, reject) => { - connection.query( + CONNECTION.query( ...args, (error: any, result: any, fields: any) => { if (error) { @@ -34,8 +36,6 @@ export default async function dbHandler(...args: any[]) { } ); }); - - await connection.end(); } catch (error: any) { fs.appendFileSync( "./.tmp/dbErrorLogs.txt", @@ -49,6 +49,8 @@ export default async function dbHandler(...args: any[]) { component: "dbHandler", message: error.message, }); + } finally { + await CONNECTION?.end(); } /** diff --git a/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.ts b/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.ts index acb0bcf..ae6f7d0 100644 --- a/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.ts +++ b/dsql-app/package-shared/functions/backend/varDatabaseDbHandler.ts @@ -1,8 +1,7 @@ import parseDbResults from "./parseDbResults"; import serverError from "./serverError"; -import DB_HANDLER from "../../utils/backend/global-db/DB_HANDLER"; -import DSQL_USER_DB_HANDLER from "../../utils/backend/global-db/DSQL_USER_DB_HANDLER"; -import LOCAL_DB_HANDLER from "../../utils/backend/global-db/LOCAL_DB_HANDLER"; +import grabDSQLConnection from "../../utils/grab-dsql-connection"; +import connDbHandler from "../../utils/db/conn-db-handler"; type Param = { queryString: string; @@ -10,6 +9,7 @@ type Param = { database?: string; tableSchema?: import("../../types").DSQL_TableSchemaType; useLocal?: boolean; + debug?: boolean; }; /** @@ -21,66 +21,27 @@ export default async function varDatabaseDbHandler({ database, tableSchema, useLocal, + debug, }: Param): Promise { - /** - * Declare variables - * - * @description Declare "results" variable - */ - const isMaster = useLocal - ? true - : database?.match(/^datasquirel$/) - ? true - : false; + let CONNECTION = grabDSQLConnection({ fa: true }); + if (useLocal) CONNECTION = grabDSQLConnection({ local: true }); + if (database?.match(/^datasquirel$/)) CONNECTION = grabDSQLConnection(); - const FINAL_DB_HANDLER: any = useLocal - ? LOCAL_DB_HANDLER - : isMaster - ? DB_HANDLER - : DSQL_USER_DB_HANDLER; - - let results; - - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ - try { - if ( - queryString && - queryValuesArray && - Array.isArray(queryValuesArray) && - queryValuesArray[0] - ) { - results = isMaster - ? await FINAL_DB_HANDLER(queryString, queryValuesArray) - : await FINAL_DB_HANDLER({ - paradigm: "Full Access", - queryString, - queryValues: queryValuesArray, - }); - } else { - results = isMaster - ? await FINAL_DB_HANDLER(queryString) - : await FINAL_DB_HANDLER({ - paradigm: "Full Access", - queryString, - }); - } - } catch (error: any) { - console.log(`varDatabaseDbHandler Error: ${error.message}`); - serverError({ - component: "varDatabaseDbHandler/lines-29-32", - message: error.message, - }); + if (debug) { + console.log(`varDatabaseDbHandler:query:`, queryString); + console.log(`varDatabaseDbHandler:values:`, queryValuesArray); + } + + let results = await connDbHandler( + CONNECTION, + queryString, + queryValuesArray + ); + + if (debug) { + console.log(`varDatabaseDbHandler:results:`, results); } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results && tableSchema) { try { const unparsedResults = results; diff --git a/dsql-app/package-shared/functions/dsql/decrypt.ts b/dsql-app/package-shared/functions/dsql/decrypt.ts index f25ed5d..f3ac739 100644 --- a/dsql-app/package-shared/functions/dsql/decrypt.ts +++ b/dsql-app/package-shared/functions/dsql/decrypt.ts @@ -2,6 +2,7 @@ import { scryptSync, createDecipheriv } from "crypto"; import { Buffer } from "buffer"; +import grabKeys from "../../utils/grab-keys"; type Param = { encryptedString: string; @@ -22,28 +23,26 @@ export default function decrypt({ return encryptedString; } - const finalEncryptionKey = - encryptionKey || process.env.DSQL_ENCRYPTION_PASSWORD; - const finalEncryptionSalt = - encryptionSalt || process.env.DSQL_ENCRYPTION_SALT; - const finalKeyLen = process.env.DSQL_ENCRYPTION_KEY_LENGTH - ? Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH) - : 24; + const { + key: encrptKey, + salt, + keyLen, + algorithm, + bufferAllocSize, + } = grabKeys({ encryptionKey }); - if (!finalEncryptionKey?.match(/.{8,}/)) { + if (!encrptKey?.match(/.{8,}/)) { console.log("Decrption key is invalid"); return encryptedString; } - if (!finalEncryptionSalt?.match(/.{8,}/)) { + if (!salt?.match(/.{8,}/)) { console.log("Decrption salt is invalid"); return encryptedString; } - const algorithm = "aes-192-cbc"; - - let key = scryptSync(finalEncryptionKey, finalEncryptionSalt, finalKeyLen); - let iv = Buffer.alloc(16, 0); + let key = scryptSync(encrptKey, salt, keyLen); + let iv = Buffer.alloc(bufferAllocSize, 0); const decipher = createDecipheriv(algorithm, key, iv); diff --git a/dsql-app/package-shared/functions/dsql/encrypt.ts b/dsql-app/package-shared/functions/dsql/encrypt.ts index ce61fcb..be09530 100644 --- a/dsql-app/package-shared/functions/dsql/encrypt.ts +++ b/dsql-app/package-shared/functions/dsql/encrypt.ts @@ -2,6 +2,7 @@ import { scryptSync, createCipheriv } from "crypto"; import { Buffer } from "buffer"; +import grabKeys from "../../utils/grab-keys"; type Param = { data: string; @@ -22,36 +23,35 @@ export default function encrypt({ return data; } - const finalEncryptionKey = - encryptionKey || process.env.DSQL_ENCRYPTION_PASSWORD; - const finalEncryptionSalt = - encryptionSalt || process.env.DSQL_ENCRYPTION_SALT; - const finalKeyLen = process.env.DSQL_ENCRYPTION_KEY_LENGTH - ? Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH) - : 24; + const { + key: encrptKey, + salt, + keyLen, + algorithm, + bufferAllocSize, + } = grabKeys({ encryptionKey }); - if (!finalEncryptionKey?.match(/.{8,}/)) { + if (!encrptKey?.match(/.{8,}/)) { console.log("Encryption key is invalid"); return data; } - if (!finalEncryptionSalt?.match(/.{8,}/)) { + if (!salt?.match(/.{8,}/)) { console.log("Encryption salt is invalid"); return data; } - const algorithm = "aes-192-cbc"; - const password = finalEncryptionKey; + const password = encrptKey; + + let key = scryptSync(password, salt, keyLen); + let iv = Buffer.alloc(bufferAllocSize, 0); - let key = scryptSync(password, finalEncryptionSalt, finalKeyLen); - let iv = Buffer.alloc(16, 0); - // @ts-ignore const cipher = createCipheriv(algorithm, key, iv); try { let encrypted = cipher.update(data, "utf8", "hex"); encrypted += cipher.final("hex"); return encrypted; - } catch (/** @type {*} */ error: any) { + } catch (error: any) { console.log("Error in encrypting =>", error.message); return data; } diff --git a/dsql-app/package-shared/functions/dsql/hashPassword.ts b/dsql-app/package-shared/functions/dsql/hashPassword.ts index b5c6f6a..1fcd551 100644 --- a/dsql-app/package-shared/functions/dsql/hashPassword.ts +++ b/dsql-app/package-shared/functions/dsql/hashPassword.ts @@ -1,4 +1,5 @@ import { createHmac } from "crypto"; +import grabKeys from "../../utils/grab-keys"; type Param = { password: string; @@ -12,14 +13,13 @@ export default function hashPassword({ password, encryptionKey, }: Param): string { - const finalEncryptionKey = - encryptionKey || process.env.DSQL_ENCRYPTION_PASSWORD; + const { key } = grabKeys({ encryptionKey }); - if (!finalEncryptionKey?.match(/.{8,}/)) { + if (!key?.match(/.{8,}/)) { throw new Error("Encryption key is invalid"); } - const hmac = createHmac("sha512", finalEncryptionKey); + const hmac = createHmac("sha512", key); hmac.update(password); let hashed = hmac.digest("base64"); return hashed; diff --git a/dsql-app/package-shared/shell/checkDb.ts b/dsql-app/package-shared/shell/checkDb.ts index f29a7a9..aa7aefc 100755 --- a/dsql-app/package-shared/shell/checkDb.ts +++ b/dsql-app/package-shared/shell/checkDb.ts @@ -1,6 +1,6 @@ require("dotenv").config({ path: "./../.env" }); import mysql from "serverless-mysql"; -import grabDbSSL from "../utils/backend/grabDbSSL"; +import grabDSQLConnection from "../utils/grab-dsql-connection"; /** * # Main DB Handler Function @@ -14,17 +14,17 @@ import grabDbSSL from "../utils/backend/grabDbSSL"; * @returns {Promise} */ (async () => { - const connection = global.DSQL_DB_CONN; + const CONNECTION = grabDSQLConnection(); try { - const result = await connection.query( + const result = await CONNECTION.query( "SELECT id,first_name,last_name FROM users LIMIT 3" ); console.log("Connection Query Success =>", result); } catch (error: any) { console.log("Connection query ERROR =>", error.message); } finally { - connection.end(); + CONNECTION?.end(); process.exit(); } })(); diff --git a/dsql-app/package-shared/shell/test-external-server.ts b/dsql-app/package-shared/shell/test-external-server.ts index 1602624..66efa8a 100755 --- a/dsql-app/package-shared/shell/test-external-server.ts +++ b/dsql-app/package-shared/shell/test-external-server.ts @@ -1,17 +1,5 @@ require("dotenv").config({ path: "./.env" }); -import grabDbSSL from "../utils/backend/grabDbSSL"; -import mysql from "serverless-mysql"; - -const connection = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DB_USER, - password: process.env.DB_PASS, - // database: process.env.DSQL_DB_NAME, - charset: "utf8mb4", - ssl: grabDbSSL(), - }, -}); +import grabDSQLConnection from "../utils/grab-dsql-connection"; /** * # Main DB Handler Function @@ -25,13 +13,15 @@ const connection = mysql({ * @returns {Promise} */ (async () => { + const CONNECTION = grabDSQLConnection({ noDb: true }); + /** * Switch Database * * @description If a database is provided, switch to it */ try { - const result = await connection.query("SHOW DATABASES"); + const result = await CONNECTION.query("SHOW DATABASES"); const parsedResults = JSON.parse(JSON.stringify(result)); @@ -39,7 +29,7 @@ const connection = mysql({ } catch (error: any) { console.log("Connection query ERROR =>", error.message); } finally { - connection.end(); + CONNECTION?.end(); process.exit(); } })(); diff --git a/dsql-app/package-shared/shell/updateSSLUsers.ts b/dsql-app/package-shared/shell/updateSSLUsers.ts index 2f2a3c4..c137a23 100755 --- a/dsql-app/package-shared/shell/updateSSLUsers.ts +++ b/dsql-app/package-shared/shell/updateSSLUsers.ts @@ -1,6 +1,6 @@ require("dotenv").config({ path: "./../.env" }); -import grabDbSSL from "../utils/backend/grabDbSSL"; import mysql from "serverless-mysql"; +import grabDSQLConnection from "../utils/grab-dsql-connection"; /** * # Main DB Handler Function @@ -14,10 +14,10 @@ import mysql from "serverless-mysql"; * @returns {Promise} */ (async () => { - const connection = global.DSQL_DB_CONN; + const CONNECTION = grabDSQLConnection(); try { - const result = await connection.query( + const result = await CONNECTION.query( "SELECT user,host,ssl_type FROM mysql.user" ); const parsedResults = JSON.parse(JSON.stringify(result)); @@ -39,7 +39,7 @@ import mysql from "serverless-mysql"; continue; } - const addUserSSL = await connection.query( + const addUserSSL = await CONNECTION.query( `ALTER USER '${User}'@'${Host}'` ); @@ -48,7 +48,7 @@ import mysql from "serverless-mysql"; } catch (error: any) { console.log("Connection query ERROR =>", error.message); } finally { - connection.end(); + CONNECTION.end(); process.exit(); } })(); diff --git a/dsql-app/package-shared/shell/utils/dbHandler.ts b/dsql-app/package-shared/shell/utils/dbHandler.ts index f81b4d3..a9325d9 100755 --- a/dsql-app/package-shared/shell/utils/dbHandler.ts +++ b/dsql-app/package-shared/shell/utils/dbHandler.ts @@ -3,6 +3,7 @@ import path from "path"; import mysql from "serverless-mysql"; import grabDbSSL from "../../utils/backend/grabDbSSL"; +import grabDSQLConnection from "../../utils/grab-dsql-connection"; type Param = { query: string; @@ -17,15 +18,15 @@ export default async function dbHandler({ query, values, }: Param): Promise { - let connection = global.DSQL_DB_CONN; + const CONNECTION = grabDSQLConnection(); let results; try { if (query && values) { - results = await connection.query(query, values); + results = await CONNECTION.query(query, values); } else { - results = await connection.query(query); + results = await CONNECTION.query(query); } } catch (/** @type {any} */ error: any) { if (process.env.FIRST_RUN) { @@ -34,7 +35,7 @@ export default async function dbHandler({ console.log("ERROR in dbHandler =>", error.message); console.log(error); - console.log(connection.config()); + console.log(CONNECTION.config()); fs.appendFileSync( path.resolve(__dirname, "../.tmp/dbErrorLogs.txt"), @@ -43,7 +44,7 @@ export default async function dbHandler({ ); results = null; } finally { - await connection?.end(); + await CONNECTION?.end(); } if (results) { diff --git a/dsql-app/package-shared/types/index.ts b/dsql-app/package-shared/types/index.ts index 768623d..69e2ca9 100644 --- a/dsql-app/package-shared/types/index.ts +++ b/dsql-app/package-shared/types/index.ts @@ -158,6 +158,7 @@ export interface PackageUserLoginRequestBody { social?: boolean; dbSchema?: DSQL_DatabaseSchemaType; skipPassword?: boolean; + dbUserId: string | number; } export interface PackageUserLoginLocalBody { @@ -1208,6 +1209,8 @@ export type APILoginFunctionParams = { skipPassword?: boolean; social?: boolean; useLocal?: boolean; + dbUserId?: number | string; + debug?: boolean; }; export type APILoginFunctionReturn = { success: boolean; diff --git a/dsql-app/package-shared/utils/backend/global-db/DB_HANDLER.ts b/dsql-app/package-shared/utils/backend/global-db/DB_HANDLER.ts index 6f32d13..622ce6a 100644 --- a/dsql-app/package-shared/utils/backend/global-db/DB_HANDLER.ts +++ b/dsql-app/package-shared/utils/backend/global-db/DB_HANDLER.ts @@ -1,9 +1,12 @@ +import mysql from "serverless-mysql"; +import grabDSQLConnection from "../../grab-dsql-connection"; + /** * # DSQL user read-only DB handler * @requires DSQL_DB_CONN - Gobal Variable for Datasquirel Database */ export default async function DB_HANDLER(...args: any[]) { - const CONNECTION = global.DSQL_DB_CONN; + const CONNECTION = grabDSQLConnection(); try { if (!CONNECTION) diff --git a/dsql-app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts b/dsql-app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts index f0659f1..54ab5f8 100644 --- a/dsql-app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts +++ b/dsql-app/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.ts @@ -1,4 +1,5 @@ import connDbHandler from "../../db/conn-db-handler"; +import grabDSQLConnection from "../../grab-dsql-connection"; type Param = { paradigm: "Full Access" | "FA" | "Read Only"; @@ -14,122 +15,17 @@ export default async function DSQL_USER_DB_HANDLER({ queryString, queryValues, }: Param) { + const CONNECTION = + paradigm == "Read Only" + ? grabDSQLConnection({ ro: true }) + : grabDSQLConnection({ fa: true }); + try { - switch (paradigm) { - case "Read Only": - return await connDbHandler( - global.DSQL_READ_ONLY_DB_CONN, - queryString, - queryValues - ); - - case "Full Access": - return await connDbHandler( - global.DSQL_FULL_ACCESS_DB_CONN, - queryString, - queryValues - ); - - case "FA": - return await connDbHandler( - global.DSQL_FULL_ACCESS_DB_CONN, - queryString, - queryValues - ); - - default: - return null; - } + return await connDbHandler(CONNECTION, queryString, queryValues); } catch (error: any) { console.log(`DSQL_USER_DB_HANDLER Error: ${error.message}`); return null; + } finally { + CONNECTION?.end(); } - - // try { - // return new Promise((resolve, reject) => { - // const fullAccess = paradigm?.match(/full.access|^fa$/i) - // ? true - // : false; - - // try { - // if (fullAccess) { - // DSQL_USER = mysql({ - // config: { - // host: process.env.DSQL_DB_HOST, - // user: process.env.DSQL_DB_FULL_ACCESS_USERNAME, - // password: process.env.DSQL_DB_FULL_ACCESS_PASSWORD, - // database: database, - // ssl: grabDbSSL(), - // }, - // }); - // } else { - // DSQL_USER = mysql({ - // config: { - // host: process.env.DSQL_DB_HOST, - // user: process.env.DSQL_DB_READ_ONLY_USERNAME, - // password: process.env.DSQL_DB_READ_ONLY_PASSWORD, - // database: database, - // ssl: grabDbSSL(), - // }, - // }); - // } - - // /** - // * ### Run query Function - // * @param {any} results - // */ - // function runQuery(results: any) { - // DSQL_USER.end(); - // resolve(JSON.parse(JSON.stringify(results))); - // } - - // /** - // * ### Query Error - // * @param {any} err - // */ - // function queryError(err: any) { - // DSQL_USER.end(); - // resolve({ - // error: err.message, - // queryStringGenerated: queryString, - // queryValuesGenerated: queryValues, - // sql: err.sql, - // }); - // } - - // if ( - // queryValues && - // Array.isArray(queryValues) && - // queryValues[0] - // ) { - // DSQL_USER.query(queryString, queryValues) - // .then(runQuery) - // .catch(queryError); - // } else { - // DSQL_USER.query(queryString) - // .then(runQuery) - // .catch(queryError); - // } - - // //////////////////////////////////////// - // } catch (/** @type {any} */ error: any) { - // //////////////////////////////////////// - - // fs.appendFileSync( - // "./.tmp/dbErrorLogs.txt", - // error.message + "\n" + Date() + "\n\n\n", - // "utf8" - // ); - - // resolve({ - // error: error.message, - // }); - // } - // }); - // } catch (/** @type {any} */ error: any) { - // return { - // success: false, - // error: error.message, - // }; - // } } diff --git a/dsql-app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts b/dsql-app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts index e008b66..3eafd0e 100644 --- a/dsql-app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts +++ b/dsql-app/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.ts @@ -1,45 +1,24 @@ -import mysql from "serverless-mysql"; -import grabDbSSL from "../grabDbSSL"; +import grabDSQLConnection from "../../grab-dsql-connection"; /** * # DSQL user read-only DB handler */ export default async function LOCAL_DB_HANDLER(...args: any[]) { - const MASTER = mysql({ - 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) - : undefined, - charset: "utf8mb4", - ssl: grabDbSSL(), - }, - onConnect: () => { - console.log("Connection Successful!"); - }, - onConnectError: (/** @type {any} */ err: any) => { - console.log("Connection Error", err.message); - }, - onError: (/** @type {any} */ err: any) => { - console.log("Client Error", err.message); - }, - }); + const MASTER = grabDSQLConnection(); console.log("Querying ..."); try { const results = await MASTER.query(...args); - await MASTER.end(); return JSON.parse(JSON.stringify(results)); - } catch (/** @type {any} */ error: any) { + } catch (error: any) { console.log("DB Error =>", error.message); return { success: false, error: error.message, }; + } finally { + await MASTER?.end(); } } diff --git a/dsql-app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts b/dsql-app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts index c1569e8..020a539 100644 --- a/dsql-app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts +++ b/dsql-app/package-shared/utils/backend/global-db/NO_DB_HANDLER.ts @@ -1,21 +1,22 @@ import mysql from "serverless-mysql"; import grabDbSSL from "../grabDbSSL"; +import grabDSQLConnection from "../../grab-dsql-connection"; /** * # DSQL user read-only DB handler */ export default function NO_DB_HANDLER(...args: any[]) { - const NO_DB = global.DSQL_DB_CONN; + const CONNECTION = grabDSQLConnection(); try { return new Promise((resolve, reject) => { - NO_DB.query(...args) + CONNECTION.query(...args) .then((results) => { - NO_DB.end(); + CONNECTION.end(); resolve(JSON.parse(JSON.stringify(results))); }) .catch((err) => { - NO_DB.end(); + CONNECTION.end(); resolve({ error: err.message, sql: err.sql, @@ -27,5 +28,7 @@ export default function NO_DB_HANDLER(...args: any[]) { success: false, error: error.message, }; + } finally { + CONNECTION?.end(); } } diff --git a/dsql-app/package-shared/utils/backend/global-db/ROOT_DB_HANDLER.ts b/dsql-app/package-shared/utils/backend/global-db/ROOT_DB_HANDLER.ts index 1bff67a..1103078 100644 --- a/dsql-app/package-shared/utils/backend/global-db/ROOT_DB_HANDLER.ts +++ b/dsql-app/package-shared/utils/backend/global-db/ROOT_DB_HANDLER.ts @@ -1,18 +1,20 @@ +import grabDSQLConnection from "../../grab-dsql-connection"; + /** * # Root DB handler */ export default function ROOT_DB_HANDLER(...args: any[]) { - const NO_DB = global.DSQL_DB_CONN; + const CONNECTION = grabDSQLConnection(); try { return new Promise((resolve, reject) => { - NO_DB.query(...args) + CONNECTION.query(...args) .then((results) => { - NO_DB.end(); + CONNECTION.end(); resolve(JSON.parse(JSON.stringify(results))); }) .catch((err) => { - NO_DB.end(); + CONNECTION.end(); resolve({ error: err.message, sql: err.sql, @@ -24,5 +26,7 @@ export default function ROOT_DB_HANDLER(...args: any[]) { success: false, error: error.message, }; + } finally { + CONNECTION?.end(); } } diff --git a/dsql-app/package-shared/utils/grab-db-full-name.ts b/dsql-app/package-shared/utils/grab-db-full-name.ts new file mode 100644 index 0000000..d344e1c --- /dev/null +++ b/dsql-app/package-shared/utils/grab-db-full-name.ts @@ -0,0 +1,18 @@ +type Param = { + dbName: string; + userId?: string | number; +}; + +/** + * # Grab Database Full Name + */ +export default function grabDbFullName({ dbName, userId }: Param): string { + const sanitizedName = dbName.replace(/[^a-z0-9\_]/g, ""); + const cleanedDbName = sanitizedName.replace(/datasquirel_user_\d+_/, ""); + + if (!userId) return cleanedDbName; + + const dbNamePrefix = `datasquirel_user_${userId}_`; + + return dbNamePrefix + cleanedDbName; +} diff --git a/dsql-app/package-shared/utils/grab-dsql-connection.ts b/dsql-app/package-shared/utils/grab-dsql-connection.ts new file mode 100644 index 0000000..ac81f94 --- /dev/null +++ b/dsql-app/package-shared/utils/grab-dsql-connection.ts @@ -0,0 +1,75 @@ +import mysql, { ServerlessMysql } from "serverless-mysql"; + +type Param = { + /** + * Read Only? + */ + ro?: boolean; + /** + * Full Access? + */ + fa?: boolean; + /** + * No Database Connection + */ + noDb?: boolean; + /** + * Is this a local connection? + */ + local?: boolean; +}; + +/** + * # Grab General CONNECTION for DSQL + */ +export default function grabDSQLConnection(param?: Param): ServerlessMysql { + if (param?.ro) { + return ( + DSQL_READ_ONLY_DB_CONN || + mysql({ + config: { + host: process.env.DSQL_DB_HOST, + user: process.env.DSQL_DB_READ_ONLY_USERNAME, + password: process.env.DSQL_DB_READ_ONLY_PASSWORD, + port: process.env.DSQL_DB_PORT + ? Number(process.env.DSQL_DB_PORT) + : undefined, + charset: "utf8mb4", + }, + }) + ); + } + + if (param?.fa) { + return ( + global.DSQL_FULL_ACCESS_DB_CONN || + mysql({ + config: { + host: process.env.DSQL_DB_HOST, + user: process.env.DSQL_DB_FULL_ACCESS_USERNAME, + password: process.env.DSQL_DB_FULL_ACCESS_PASSWORD, + port: process.env.DSQL_DB_PORT + ? Number(process.env.DSQL_DB_PORT) + : undefined, + charset: "utf8mb4", + }, + }) + ); + } + + return ( + global.DSQL_DB_CONN || + mysql({ + config: { + host: process.env.DSQL_DB_HOST, + user: process.env.DSQL_DB_USERNAME, + password: process.env.DSQL_DB_PASSWORD, + database: param?.noDb ? undefined : process.env.DSQL_DB_NAME, + port: process.env.DSQL_DB_PORT + ? Number(process.env.DSQL_DB_PORT) + : undefined, + charset: "utf8mb4", + }, + }) + ); +} diff --git a/dsql-app/package-shared/utils/grab-host-names.ts b/dsql-app/package-shared/utils/grab-host-names.ts index 5ded3bc..b59b34b 100644 --- a/dsql-app/package-shared/utils/grab-host-names.ts +++ b/dsql-app/package-shared/utils/grab-host-names.ts @@ -10,10 +10,14 @@ type GrabHostNamesReturn = { user_id: string | number; }; +type Param = { + userId?: string | number; +}; + /** * # Grab Names For Query */ -export default function grabHostNames(): GrabHostNamesReturn { +export default function grabHostNames(param?: Param): GrabHostNamesReturn { const scheme = process.env.DSQL_HTTP_SCHEME; const localHost = process.env.DSQL_LOCAL_HOST; const localHostPort = process.env.DSQL_LOCAL_HOST_PORT; @@ -28,6 +32,6 @@ export default function grabHostNames(): GrabHostNamesReturn { host: remoteHost || localHost || "datasquirel.com", port: remoteHostPort || localHostPort || 443, scheme: scheme?.match(/^http$/i) ? http : https, - user_id: String(process.env.DSQL_API_USER_ID || 0), + user_id: param?.userId || String(process.env.DSQL_API_USER_ID || 0), }; } diff --git a/dsql-app/package-shared/utils/grab-keys.ts b/dsql-app/package-shared/utils/grab-keys.ts new file mode 100644 index 0000000..2e37871 --- /dev/null +++ b/dsql-app/package-shared/utils/grab-keys.ts @@ -0,0 +1,34 @@ +import numberfy from "./numberfy"; + +export type GrabEncryptionKeysParam = { + encryptionKey?: string; + encryptionSalt?: string; + apiKey?: string; + algorithm?: string; + bufferAllocSize?: number; +}; + +/** + * # Grab Encryption Keys + * @description Grab Required Encryption Keys + */ +export default function grabKeys(param?: GrabEncryptionKeysParam) { + return { + key: param?.encryptionKey || process.env.DSQL_ENCRYPTION_PASSWORD, + keyLen: process.env.DSQL_ENCRYPTION_KEY_LENGTH + ? Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH) + : 24, + salt: param?.encryptionSalt || process.env.DSQL_ENCRYPTION_SALT, + apiKey: param?.apiKey || process.env.DSQL_API_KEY, + algorithm: + param?.algorithm || + process.env.DSQL_ENCRYPTION_ALGORITHM || + "aes-192-cbc", + bufferAllocSize: + param?.bufferAllocSize || + (process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE + ? numberfy(process.env.DSQL_ENCRYPTION_BUFFER_ALLOCATION_SIZE) + : undefined) || + 16, + }; +} diff --git a/dsql-app/package-shared/utils/numberfy.ts b/dsql-app/package-shared/utils/numberfy.ts index 4f5de1c..2f25327 100644 --- a/dsql-app/package-shared/utils/numberfy.ts +++ b/dsql-app/package-shared/utils/numberfy.ts @@ -7,7 +7,7 @@ * numberfy("123.456", 0) // 123 * numberfy("123.456", 3) // 123.456 */ -export default function numberfy(num: any, decimals: number): number { +export default function numberfy(num: any, decimals?: number): number { try { const numberfiedNum = Number(num); if (typeof numberfiedNum !== "number") return 0; diff --git a/dsql-app/package.json b/dsql-app/package.json index 2ae4b9b..e7be2d1 100644 --- a/dsql-app/package.json +++ b/dsql-app/package.json @@ -42,7 +42,7 @@ "@heroicons/react": "^1.0.6", "@mdx-js/loader": "^3.1.0", "@mdx-js/react": "^3.1.0", - "@moduletrace/datasquirel": "^3.4.2", + "@moduletrace/datasquirel": "^3.5.9", "@monaco-editor/react": "^4.6.0", "@next/mdx": "^15.0.3", "@radix-ui/react-icons": "^1.3.0",